diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 000000000..b99d1c255 --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,22 @@ +name: PR +on: + pull_request: + paths-ignore: + - '.github/workflows/**' +jobs: + pr: + name: pr + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js environment + uses: actions/setup-node@v2 + with: + node-version: 18 + - run: yarn + - name: codegen + run: yarn codegen + # Need to update tsconfig inputs paths for this to work + # - name: build + # run: yarn build + diff --git a/.gitignore b/.gitignore index c139d877d..53b19635a 100644 --- a/.gitignore +++ b/.gitignore @@ -23,10 +23,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Agoric/agoric-starter/.gitignore b/Agoric/agoric-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Agoric/agoric-starter/.gitignore +++ b/Agoric/agoric-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Agoric/agoric-starter/docker-compose.yml b/Agoric/agoric-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Agoric/agoric-starter/docker-compose.yml +++ b/Agoric/agoric-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Agoric/agoric-starter/package.json b/Agoric/agoric-starter/package.json index 56a1332b7..003679752 100644 --- a/Agoric/agoric-starter/package.json +++ b/Agoric/agoric-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Agoric/agoric-starter/project.ts b/Agoric/agoric-starter/project.ts new file mode 100644 index 000000000..3628f4f78 --- /dev/null +++ b/Agoric/agoric-starter/project.ts @@ -0,0 +1,86 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "agoric-starter", + description: + "This project can be use as a starting point for developing your Cosmos agoric based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "agoric-3", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://agoric-rpc.stakely.io"], + dictionary: "https://api.subquery.network/sq/subquery/agoric-dictionary", + chaintypes: new Map([ + ["cosmos.slashing.v1beta1", {file: "./proto/cosmos/slashing/v1beta1/tx.proto", messages: ["MsgUnjail"]}], + ["cosmos.gov.v1beta1", {file: "./proto/cosmos/gov/v1beta1/tx.proto", messages: ["MsgVoteWeighted"]}], + ["cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: ["WeightedVoteOption"] + }], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 11628269, + mapping: { + file: './dist/index.js', + handlers: [ + // { + // Using block handlers slows your project down as they can be executed with each and every block. + // Only use if you need to + // handler: 'handleEvent', + // kind: SubqlCosmosHandlerKind.Block, + // }, + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'transfer', + messageFilter: { + type: '/cosmos.bank.v1beta1.MsgSend' + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: '/cosmos.bank.v1beta1.MsgSend' + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Agoric/agoric-starter/project.yaml b/Agoric/agoric-starter/project.yaml deleted file mode 100644 index 0d301b820..000000000 --- a/Agoric/agoric-starter/project.yaml +++ /dev/null @@ -1,58 +0,0 @@ -specVersion: 1.0.0 -name: agoric-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (%NETWORK_NAME%) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: agoric-3 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://agoric-rpc.stakely.io"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/agoric-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 11628269 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Agoric/agoric-starter/src/types/CosmosMessageTypes.ts b/Agoric/agoric-starter/src/types/CosmosMessageTypes.ts deleted file mode 100644 index 9703fd259..000000000 --- a/Agoric/agoric-starter/src/types/CosmosMessageTypes.ts +++ /dev/null @@ -1,16 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -// Auto-generated , DO NOT EDIT -import { CosmosMessage } from "@subql/types-cosmos"; - -import { MsgUnjail } from "./proto-interfaces/cosmos/slashing/v1beta1/tx"; - -import { MsgVoteWeighted } from "./proto-interfaces/cosmos/gov/v1beta1/tx"; - -import { WeightedVoteOption } from "./proto-interfaces/cosmos/gov/v1beta1/gov"; - -export type MsgUnjailMessage = CosmosMessage; - -export type MsgVoteWeightedMessage = CosmosMessage; - -export type WeightedVoteOptionMessage = CosmosMessage; diff --git a/Agoric/agoric-starter/src/types/index.ts b/Agoric/agoric-starter/src/types/index.ts deleted file mode 100644 index 86842696a..000000000 --- a/Agoric/agoric-starter/src/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -// Auto-generated , DO NOT EDIT -export * from "./models"; diff --git a/Agoric/agoric-starter/src/types/models/Message.ts b/Agoric/agoric-starter/src/types/models/Message.ts deleted file mode 100644 index 6c0d41e83..000000000 --- a/Agoric/agoric-starter/src/types/models/Message.ts +++ /dev/null @@ -1,94 +0,0 @@ -// Auto-generated , DO NOT EDIT -import { Entity, FunctionPropertyNames } from "@subql/types"; -import assert from "assert"; - -export type MessageProps = Omit< - Message, - NonNullable> | "_name" ->; - -export class Message implements Entity { - constructor( - id: string, - - blockHeight: bigint, - - txHash: string, - - from: string, - - to: string, - - amount: string - ) { - this.id = id; - - this.blockHeight = blockHeight; - - this.txHash = txHash; - - this.from = from; - - this.to = to; - - this.amount = amount; - } - - public id: string; - - public blockHeight: bigint; - - public txHash: string; - - public from: string; - - public to: string; - - public amount: string; - - get _name(): string { - return "Message"; - } - - async save(): Promise { - let id = this.id; - assert(id !== null, "Cannot save Message entity without an ID"); - await store.set("Message", id.toString(), this); - } - static async remove(id: string): Promise { - assert(id !== null, "Cannot remove Message entity without an ID"); - await store.remove("Message", id.toString()); - } - - static async get(id: string): Promise { - assert( - id !== null && id !== undefined, - "Cannot get Message entity without an ID" - ); - const record = await store.get("Message", id.toString()); - if (record) { - return this.create(record as MessageProps); - } else { - return; - } - } - - static create(record: MessageProps): Message { - assert(typeof record.id === "string", "id must be provided"); - let entity = new this( - record.id, - - record.blockHeight, - - record.txHash, - - record.from, - - record.to, - - record.amount - ); - Object.assign(entity, record); - return entity; - } -} diff --git a/Agoric/agoric-starter/src/types/models/TransferEvent.ts b/Agoric/agoric-starter/src/types/models/TransferEvent.ts deleted file mode 100644 index e0f4a1eab..000000000 --- a/Agoric/agoric-starter/src/types/models/TransferEvent.ts +++ /dev/null @@ -1,94 +0,0 @@ -// Auto-generated , DO NOT EDIT -import { Entity, FunctionPropertyNames } from "@subql/types"; -import assert from "assert"; - -export type TransferEventProps = Omit< - TransferEvent, - NonNullable> | "_name" ->; - -export class TransferEvent implements Entity { - constructor( - id: string, - - blockHeight: bigint, - - txHash: string, - - recipient: string, - - sender: string, - - amount: string - ) { - this.id = id; - - this.blockHeight = blockHeight; - - this.txHash = txHash; - - this.recipient = recipient; - - this.sender = sender; - - this.amount = amount; - } - - public id: string; - - public blockHeight: bigint; - - public txHash: string; - - public recipient: string; - - public sender: string; - - public amount: string; - - get _name(): string { - return "TransferEvent"; - } - - async save(): Promise { - let id = this.id; - assert(id !== null, "Cannot save TransferEvent entity without an ID"); - await store.set("TransferEvent", id.toString(), this); - } - static async remove(id: string): Promise { - assert(id !== null, "Cannot remove TransferEvent entity without an ID"); - await store.remove("TransferEvent", id.toString()); - } - - static async get(id: string): Promise { - assert( - id !== null && id !== undefined, - "Cannot get TransferEvent entity without an ID" - ); - const record = await store.get("TransferEvent", id.toString()); - if (record) { - return this.create(record as TransferEventProps); - } else { - return; - } - } - - static create(record: TransferEventProps): TransferEvent { - assert(typeof record.id === "string", "id must be provided"); - let entity = new this( - record.id, - - record.blockHeight, - - record.txHash, - - record.recipient, - - record.sender, - - record.amount - ); - Object.assign(entity, record); - return entity; - } -} diff --git a/Agoric/agoric-starter/src/types/models/index.ts b/Agoric/agoric-starter/src/types/models/index.ts deleted file mode 100644 index 2983e773c..000000000 --- a/Agoric/agoric-starter/src/types/models/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -// Auto-generated , DO NOT EDIT - -export { TransferEvent } from "./TransferEvent"; - -export { Message } from "./Message"; diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/bundle.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/bundle.ts deleted file mode 100644 index 9a835ac9c..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/bundle.ts +++ /dev/null @@ -1,34 +0,0 @@ -import * as _0 from "./lien/genesis"; -import * as _1 from "./lien/lien"; -import * as _2 from "./swingset/genesis"; -import * as _3 from "./swingset/msgs"; -import * as _4 from "./swingset/swingset"; -import * as _5 from "./vbank/genesis"; -import * as _6 from "./vbank/msgs"; -import * as _7 from "./vbank/vbank"; -import * as _8 from "./vibc/msgs"; -import * as _9 from "./vstorage/genesis"; -import * as _10 from "./vstorage/vstorage"; -export namespace agoric { - export const lien = { - ..._0, - ..._1, - }; - export const swingset = { - ..._2, - ..._3, - ..._4, - }; - export const vbank = { - ..._5, - ..._6, - ..._7, - }; - export const vibc = { - ..._8, - }; - export const vstorage = { - ..._9, - ..._10, - }; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/lien/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/lien/genesis.ts deleted file mode 100644 index b0bab76ef..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/lien/genesis.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Lien, LienAmino, LienSDKType } from "./lien"; -/** The initial or exported state. */ -export interface GenesisState { - liens: AccountLien[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/agoric.lien.GenesisState"; - value: Uint8Array; -} -/** The initial or exported state. */ -export interface GenesisStateAmino { - liens: AccountLienAmino[]; -} -export interface GenesisStateAminoMsg { - type: "/agoric.lien.GenesisState"; - value: GenesisStateAmino; -} -/** The initial or exported state. */ -export interface GenesisStateSDKType { - liens: AccountLienSDKType[]; -} -/** The lien on a particular account */ -export interface AccountLien { - /** Account address, bech32-encoded. */ - address: string; - /** The liened amount. Should be nonzero. */ - lien: Lien; -} -export interface AccountLienProtoMsg { - typeUrl: "/agoric.lien.AccountLien"; - value: Uint8Array; -} -/** The lien on a particular account */ -export interface AccountLienAmino { - /** Account address, bech32-encoded. */ - address: string; - /** The liened amount. Should be nonzero. */ - lien?: LienAmino; -} -export interface AccountLienAminoMsg { - type: "/agoric.lien.AccountLien"; - value: AccountLienAmino; -} -/** The lien on a particular account */ -export interface AccountLienSDKType { - address: string; - lien: LienSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/lien/lien.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/lien/lien.ts deleted file mode 100644 index 12d9b4192..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/lien/lien.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../cosmos/base/v1beta1/coin"; -/** Lien contains the lien state of a particular account. */ -export interface Lien { - /** coins holds the amount liened */ - coins: Coin[]; - /** - * delegated tracks the net amount delegated for non-vesting accounts, - * or zero coins for vesting accounts. - * (Vesting accounts have their own fields to track delegation.) - */ - delegated: Coin[]; -} -export interface LienProtoMsg { - typeUrl: "/agoric.lien.Lien"; - value: Uint8Array; -} -/** Lien contains the lien state of a particular account. */ -export interface LienAmino { - /** coins holds the amount liened */ - coins: CoinAmino[]; - /** - * delegated tracks the net amount delegated for non-vesting accounts, - * or zero coins for vesting accounts. - * (Vesting accounts have their own fields to track delegation.) - */ - delegated: CoinAmino[]; -} -export interface LienAminoMsg { - type: "/agoric.lien.Lien"; - value: LienAmino; -} -/** Lien contains the lien state of a particular account. */ -export interface LienSDKType { - coins: CoinSDKType[]; - delegated: CoinSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/swingset/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/swingset/genesis.ts deleted file mode 100644 index e2f0a1d7a..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/swingset/genesis.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - State, - StateAmino, - StateSDKType, -} from "./swingset"; -/** The initial or exported state. */ -export interface GenesisState { - params: Params; - state: State; - swingStoreExportData: SwingStoreExportDataEntry[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/agoric.swingset.GenesisState"; - value: Uint8Array; -} -/** The initial or exported state. */ -export interface GenesisStateAmino { - params?: ParamsAmino; - state?: StateAmino; - swing_store_export_data: SwingStoreExportDataEntryAmino[]; -} -export interface GenesisStateAminoMsg { - type: "/agoric.swingset.GenesisState"; - value: GenesisStateAmino; -} -/** The initial or exported state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - state: StateSDKType; - swing_store_export_data: SwingStoreExportDataEntrySDKType[]; -} -/** A SwingStore "export data" entry. */ -export interface SwingStoreExportDataEntry { - key: string; - value: string; -} -export interface SwingStoreExportDataEntryProtoMsg { - typeUrl: "/agoric.swingset.SwingStoreExportDataEntry"; - value: Uint8Array; -} -/** A SwingStore "export data" entry. */ -export interface SwingStoreExportDataEntryAmino { - key: string; - value: string; -} -export interface SwingStoreExportDataEntryAminoMsg { - type: "/agoric.swingset.SwingStoreExportDataEntry"; - value: SwingStoreExportDataEntryAmino; -} -/** A SwingStore "export data" entry. */ -export interface SwingStoreExportDataEntrySDKType { - key: string; - value: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/swingset/msgs.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/swingset/msgs.ts deleted file mode 100644 index ec4e22131..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/swingset/msgs.ts +++ /dev/null @@ -1,251 +0,0 @@ -import { Long } from "../../helpers"; -/** MsgDeliverInbound defines an SDK message for delivering an eventual send */ -export interface MsgDeliverInbound { - messages: string[]; - nums: Long[]; - ack: Long; - submitter: Uint8Array; -} -export interface MsgDeliverInboundProtoMsg { - typeUrl: "/agoric.swingset.MsgDeliverInbound"; - value: Uint8Array; -} -/** MsgDeliverInbound defines an SDK message for delivering an eventual send */ -export interface MsgDeliverInboundAmino { - messages: string[]; - nums: string[]; - ack: string; - submitter: Uint8Array; -} -export interface MsgDeliverInboundAminoMsg { - type: "/agoric.swingset.MsgDeliverInbound"; - value: MsgDeliverInboundAmino; -} -/** MsgDeliverInbound defines an SDK message for delivering an eventual send */ -export interface MsgDeliverInboundSDKType { - messages: string[]; - nums: Long[]; - ack: Long; - submitter: Uint8Array; -} -/** MsgDeliverInboundResponse is an empty reply. */ -export interface MsgDeliverInboundResponse {} -export interface MsgDeliverInboundResponseProtoMsg { - typeUrl: "/agoric.swingset.MsgDeliverInboundResponse"; - value: Uint8Array; -} -/** MsgDeliverInboundResponse is an empty reply. */ -export interface MsgDeliverInboundResponseAmino {} -export interface MsgDeliverInboundResponseAminoMsg { - type: "/agoric.swingset.MsgDeliverInboundResponse"; - value: MsgDeliverInboundResponseAmino; -} -/** MsgDeliverInboundResponse is an empty reply. */ -export interface MsgDeliverInboundResponseSDKType {} -/** - * MsgWalletAction defines an SDK message for the on-chain wallet to perform an - * action that *does not* spend any assets (other than gas fees/stamps). This - * message type is typically protected by feegrant budgets. - */ -export interface MsgWalletAction { - owner: Uint8Array; - /** The action to perform, as JSON-stringified marshalled data. */ - action: string; -} -export interface MsgWalletActionProtoMsg { - typeUrl: "/agoric.swingset.MsgWalletAction"; - value: Uint8Array; -} -/** - * MsgWalletAction defines an SDK message for the on-chain wallet to perform an - * action that *does not* spend any assets (other than gas fees/stamps). This - * message type is typically protected by feegrant budgets. - */ -export interface MsgWalletActionAmino { - owner: Uint8Array; - /** The action to perform, as JSON-stringified marshalled data. */ - action: string; -} -export interface MsgWalletActionAminoMsg { - type: "/agoric.swingset.MsgWalletAction"; - value: MsgWalletActionAmino; -} -/** - * MsgWalletAction defines an SDK message for the on-chain wallet to perform an - * action that *does not* spend any assets (other than gas fees/stamps). This - * message type is typically protected by feegrant budgets. - */ -export interface MsgWalletActionSDKType { - owner: Uint8Array; - action: string; -} -/** MsgWalletActionResponse is an empty reply. */ -export interface MsgWalletActionResponse {} -export interface MsgWalletActionResponseProtoMsg { - typeUrl: "/agoric.swingset.MsgWalletActionResponse"; - value: Uint8Array; -} -/** MsgWalletActionResponse is an empty reply. */ -export interface MsgWalletActionResponseAmino {} -export interface MsgWalletActionResponseAminoMsg { - type: "/agoric.swingset.MsgWalletActionResponse"; - value: MsgWalletActionResponseAmino; -} -/** MsgWalletActionResponse is an empty reply. */ -export interface MsgWalletActionResponseSDKType {} -/** - * MsgWalletSpendAction defines an SDK message for the on-chain wallet to - * perform an action that *does spend the owner's assets.* This message type is - * typically protected by explicit confirmation by the user. - */ -export interface MsgWalletSpendAction { - owner: Uint8Array; - /** The action to perform, as JSON-stringified marshalled data. */ - spendAction: string; -} -export interface MsgWalletSpendActionProtoMsg { - typeUrl: "/agoric.swingset.MsgWalletSpendAction"; - value: Uint8Array; -} -/** - * MsgWalletSpendAction defines an SDK message for the on-chain wallet to - * perform an action that *does spend the owner's assets.* This message type is - * typically protected by explicit confirmation by the user. - */ -export interface MsgWalletSpendActionAmino { - owner: Uint8Array; - /** The action to perform, as JSON-stringified marshalled data. */ - spend_action: string; -} -export interface MsgWalletSpendActionAminoMsg { - type: "/agoric.swingset.MsgWalletSpendAction"; - value: MsgWalletSpendActionAmino; -} -/** - * MsgWalletSpendAction defines an SDK message for the on-chain wallet to - * perform an action that *does spend the owner's assets.* This message type is - * typically protected by explicit confirmation by the user. - */ -export interface MsgWalletSpendActionSDKType { - owner: Uint8Array; - spend_action: string; -} -/** MsgWalletSpendActionResponse is an empty reply. */ -export interface MsgWalletSpendActionResponse {} -export interface MsgWalletSpendActionResponseProtoMsg { - typeUrl: "/agoric.swingset.MsgWalletSpendActionResponse"; - value: Uint8Array; -} -/** MsgWalletSpendActionResponse is an empty reply. */ -export interface MsgWalletSpendActionResponseAmino {} -export interface MsgWalletSpendActionResponseAminoMsg { - type: "/agoric.swingset.MsgWalletSpendActionResponse"; - value: MsgWalletSpendActionResponseAmino; -} -/** MsgWalletSpendActionResponse is an empty reply. */ -export interface MsgWalletSpendActionResponseSDKType {} -/** MsgProvision defines an SDK message for provisioning a client to the chain */ -export interface MsgProvision { - nickname: string; - address: Uint8Array; - powerFlags: string[]; - submitter: Uint8Array; -} -export interface MsgProvisionProtoMsg { - typeUrl: "/agoric.swingset.MsgProvision"; - value: Uint8Array; -} -/** MsgProvision defines an SDK message for provisioning a client to the chain */ -export interface MsgProvisionAmino { - nickname: string; - address: Uint8Array; - power_flags: string[]; - submitter: Uint8Array; -} -export interface MsgProvisionAminoMsg { - type: "/agoric.swingset.MsgProvision"; - value: MsgProvisionAmino; -} -/** MsgProvision defines an SDK message for provisioning a client to the chain */ -export interface MsgProvisionSDKType { - nickname: string; - address: Uint8Array; - power_flags: string[]; - submitter: Uint8Array; -} -/** MsgProvisionResponse is an empty reply. */ -export interface MsgProvisionResponse {} -export interface MsgProvisionResponseProtoMsg { - typeUrl: "/agoric.swingset.MsgProvisionResponse"; - value: Uint8Array; -} -/** MsgProvisionResponse is an empty reply. */ -export interface MsgProvisionResponseAmino {} -export interface MsgProvisionResponseAminoMsg { - type: "/agoric.swingset.MsgProvisionResponse"; - value: MsgProvisionResponseAmino; -} -/** MsgProvisionResponse is an empty reply. */ -export interface MsgProvisionResponseSDKType {} -/** MsgInstallBundle carries a signed bundle to SwingSet. */ -export interface MsgInstallBundle { - bundle: string; - submitter: Uint8Array; - /** - * Either bundle or compressed_bundle will be set. - * Default compression algorithm is gzip. - */ - compressedBundle: Uint8Array; - /** Size in bytes of uncompression of compressed_bundle. */ - uncompressedSize: Long; -} -export interface MsgInstallBundleProtoMsg { - typeUrl: "/agoric.swingset.MsgInstallBundle"; - value: Uint8Array; -} -/** MsgInstallBundle carries a signed bundle to SwingSet. */ -export interface MsgInstallBundleAmino { - bundle: string; - submitter: Uint8Array; - /** - * Either bundle or compressed_bundle will be set. - * Default compression algorithm is gzip. - */ - compressed_bundle: Uint8Array; - /** Size in bytes of uncompression of compressed_bundle. */ - uncompressed_size: string; -} -export interface MsgInstallBundleAminoMsg { - type: "/agoric.swingset.MsgInstallBundle"; - value: MsgInstallBundleAmino; -} -/** MsgInstallBundle carries a signed bundle to SwingSet. */ -export interface MsgInstallBundleSDKType { - bundle: string; - submitter: Uint8Array; - compressed_bundle: Uint8Array; - uncompressed_size: Long; -} -/** - * MsgInstallBundleResponse is an empty acknowledgement that an install bundle - * message has been queued for the SwingSet kernel's consideration. - */ -export interface MsgInstallBundleResponse {} -export interface MsgInstallBundleResponseProtoMsg { - typeUrl: "/agoric.swingset.MsgInstallBundleResponse"; - value: Uint8Array; -} -/** - * MsgInstallBundleResponse is an empty acknowledgement that an install bundle - * message has been queued for the SwingSet kernel's consideration. - */ -export interface MsgInstallBundleResponseAmino {} -export interface MsgInstallBundleResponseAminoMsg { - type: "/agoric.swingset.MsgInstallBundleResponse"; - value: MsgInstallBundleResponseAmino; -} -/** - * MsgInstallBundleResponse is an empty acknowledgement that an install bundle - * message has been queued for the SwingSet kernel's consideration. - */ -export interface MsgInstallBundleResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/swingset/swingset.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/swingset/swingset.ts deleted file mode 100644 index a3cc24d42..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/swingset/swingset.ts +++ /dev/null @@ -1,372 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../cosmos/base/v1beta1/coin"; -/** - * CoreEvalProposal is a gov Content type for evaluating code in the SwingSet - * core. - * See `agoric-sdk/packages/vats/src/core/eval.js`. - */ -export interface CoreEvalProposal { - title: string; - description: string; - /** - * Although evals are sequential, they may run concurrently, since they each - * can return a Promise. - */ - evals: CoreEval[]; -} -export interface CoreEvalProposalProtoMsg { - typeUrl: "/agoric.swingset.CoreEvalProposal"; - value: Uint8Array; -} -/** - * CoreEvalProposal is a gov Content type for evaluating code in the SwingSet - * core. - * See `agoric-sdk/packages/vats/src/core/eval.js`. - */ -export interface CoreEvalProposalAmino { - title: string; - description: string; - /** - * Although evals are sequential, they may run concurrently, since they each - * can return a Promise. - */ - evals: CoreEvalAmino[]; -} -export interface CoreEvalProposalAminoMsg { - type: "/agoric.swingset.CoreEvalProposal"; - value: CoreEvalProposalAmino; -} -/** - * CoreEvalProposal is a gov Content type for evaluating code in the SwingSet - * core. - * See `agoric-sdk/packages/vats/src/core/eval.js`. - */ -export interface CoreEvalProposalSDKType { - title: string; - description: string; - evals: CoreEvalSDKType[]; -} -/** - * CoreEval defines an individual SwingSet core evaluation, for use in - * CoreEvalProposal. - */ -export interface CoreEval { - /** - * Grant these JSON-stringified core bootstrap permits to the jsCode, as the - * `powers` endowment. - */ - jsonPermits: string; - /** - * Evaluate this JavaScript code in a Compartment endowed with `powers` as - * well as some powerless helpers. - */ - jsCode: string; -} -export interface CoreEvalProtoMsg { - typeUrl: "/agoric.swingset.CoreEval"; - value: Uint8Array; -} -/** - * CoreEval defines an individual SwingSet core evaluation, for use in - * CoreEvalProposal. - */ -export interface CoreEvalAmino { - /** - * Grant these JSON-stringified core bootstrap permits to the jsCode, as the - * `powers` endowment. - */ - json_permits: string; - /** - * Evaluate this JavaScript code in a Compartment endowed with `powers` as - * well as some powerless helpers. - */ - js_code: string; -} -export interface CoreEvalAminoMsg { - type: "/agoric.swingset.CoreEval"; - value: CoreEvalAmino; -} -/** - * CoreEval defines an individual SwingSet core evaluation, for use in - * CoreEvalProposal. - */ -export interface CoreEvalSDKType { - json_permits: string; - js_code: string; -} -/** Params are the swingset configuration/governance parameters. */ -export interface Params { - /** - * Map from unit name to a value in SwingSet "beans". - * Must not be negative. - * - * These values are used by SwingSet to normalize named per-resource charges - * (maybe rent) in a single Nat usage unit, the "bean". - * - * There is no required order to this list of entries, but all the chain - * nodes must all serialize and deserialize the existing order without - * permuting it. - */ - beansPerUnit: StringBeans[]; - /** - * The price in Coins per the unit named "fee". This value is used by - * cosmic-swingset JS code to decide how many tokens to charge. - * - * cost = beans_used * fee_unit_price / beans_per_unit["fee"] - */ - feeUnitPrice: Coin[]; - /** - * The SwingSet bootstrap vat configuration file. Not usefully modifiable - * via governance as it is only referenced by the chain's initial - * construction. - */ - bootstrapVatConfig: string; - /** - * If the provision submitter doesn't hold a provisionpass, their requested - * power flags are looked up in this fee menu (first match wins) and the sum - * is charged. If any power flag is not found in this menu, the request is - * rejected. - */ - powerFlagFees: PowerFlagFee[]; - /** - * Maximum sizes for queues. - * These values are used by SwingSet to compute how many messages should be - * accepted in a block. - * - * There is no required order to this list of entries, but all the chain - * nodes must all serialize and deserialize the existing order without - * permuting it. - */ - queueMax: QueueSize[]; -} -export interface ParamsProtoMsg { - typeUrl: "/agoric.swingset.Params"; - value: Uint8Array; -} -/** Params are the swingset configuration/governance parameters. */ -export interface ParamsAmino { - /** - * Map from unit name to a value in SwingSet "beans". - * Must not be negative. - * - * These values are used by SwingSet to normalize named per-resource charges - * (maybe rent) in a single Nat usage unit, the "bean". - * - * There is no required order to this list of entries, but all the chain - * nodes must all serialize and deserialize the existing order without - * permuting it. - */ - beans_per_unit: StringBeansAmino[]; - /** - * The price in Coins per the unit named "fee". This value is used by - * cosmic-swingset JS code to decide how many tokens to charge. - * - * cost = beans_used * fee_unit_price / beans_per_unit["fee"] - */ - fee_unit_price: CoinAmino[]; - /** - * The SwingSet bootstrap vat configuration file. Not usefully modifiable - * via governance as it is only referenced by the chain's initial - * construction. - */ - bootstrap_vat_config: string; - /** - * If the provision submitter doesn't hold a provisionpass, their requested - * power flags are looked up in this fee menu (first match wins) and the sum - * is charged. If any power flag is not found in this menu, the request is - * rejected. - */ - power_flag_fees: PowerFlagFeeAmino[]; - /** - * Maximum sizes for queues. - * These values are used by SwingSet to compute how many messages should be - * accepted in a block. - * - * There is no required order to this list of entries, but all the chain - * nodes must all serialize and deserialize the existing order without - * permuting it. - */ - queue_max: QueueSizeAmino[]; -} -export interface ParamsAminoMsg { - type: "/agoric.swingset.Params"; - value: ParamsAmino; -} -/** Params are the swingset configuration/governance parameters. */ -export interface ParamsSDKType { - beans_per_unit: StringBeansSDKType[]; - fee_unit_price: CoinSDKType[]; - bootstrap_vat_config: string; - power_flag_fees: PowerFlagFeeSDKType[]; - queue_max: QueueSizeSDKType[]; -} -/** The current state of the module. */ -export interface State { - /** - * The allowed number of items to add to queues, as determined by SwingSet. - * Transactions which attempt to enqueue more should be rejected. - */ - queueAllowed: QueueSize[]; -} -export interface StateProtoMsg { - typeUrl: "/agoric.swingset.State"; - value: Uint8Array; -} -/** The current state of the module. */ -export interface StateAmino { - /** - * The allowed number of items to add to queues, as determined by SwingSet. - * Transactions which attempt to enqueue more should be rejected. - */ - queue_allowed: QueueSizeAmino[]; -} -export interface StateAminoMsg { - type: "/agoric.swingset.State"; - value: StateAmino; -} -/** The current state of the module. */ -export interface StateSDKType { - queue_allowed: QueueSizeSDKType[]; -} -/** Map element of a string key to a Nat bean count. */ -export interface StringBeans { - /** What the beans are for. */ - key: string; - /** The actual bean value. */ - beans: string; -} -export interface StringBeansProtoMsg { - typeUrl: "/agoric.swingset.StringBeans"; - value: Uint8Array; -} -/** Map element of a string key to a Nat bean count. */ -export interface StringBeansAmino { - /** What the beans are for. */ - key: string; - /** The actual bean value. */ - beans: string; -} -export interface StringBeansAminoMsg { - type: "/agoric.swingset.StringBeans"; - value: StringBeansAmino; -} -/** Map element of a string key to a Nat bean count. */ -export interface StringBeansSDKType { - key: string; - beans: string; -} -/** Map a provisioning power flag to its corresponding fee. */ -export interface PowerFlagFee { - powerFlag: string; - fee: Coin[]; -} -export interface PowerFlagFeeProtoMsg { - typeUrl: "/agoric.swingset.PowerFlagFee"; - value: Uint8Array; -} -/** Map a provisioning power flag to its corresponding fee. */ -export interface PowerFlagFeeAmino { - power_flag: string; - fee: CoinAmino[]; -} -export interface PowerFlagFeeAminoMsg { - type: "/agoric.swingset.PowerFlagFee"; - value: PowerFlagFeeAmino; -} -/** Map a provisioning power flag to its corresponding fee. */ -export interface PowerFlagFeeSDKType { - power_flag: string; - fee: CoinSDKType[]; -} -/** Map element of a string key to a size. */ -export interface QueueSize { - /** What the size is for. */ - key: string; - /** The actual size value. */ - size: number; -} -export interface QueueSizeProtoMsg { - typeUrl: "/agoric.swingset.QueueSize"; - value: Uint8Array; -} -/** Map element of a string key to a size. */ -export interface QueueSizeAmino { - /** What the size is for. */ - key: string; - /** The actual size value. */ - size: number; -} -export interface QueueSizeAminoMsg { - type: "/agoric.swingset.QueueSize"; - value: QueueSizeAmino; -} -/** Map element of a string key to a size. */ -export interface QueueSizeSDKType { - key: string; - size: number; -} -/** Egress is the format for a swingset egress. */ -export interface Egress { - nickname: string; - peer: Uint8Array; - /** TODO: Remove these power flags as they are deprecated and have no effect. */ - powerFlags: string[]; -} -export interface EgressProtoMsg { - typeUrl: "/agoric.swingset.Egress"; - value: Uint8Array; -} -/** Egress is the format for a swingset egress. */ -export interface EgressAmino { - nickname: string; - peer: Uint8Array; - /** TODO: Remove these power flags as they are deprecated and have no effect. */ - power_flags: string[]; -} -export interface EgressAminoMsg { - type: "/agoric.swingset.Egress"; - value: EgressAmino; -} -/** Egress is the format for a swingset egress. */ -export interface EgressSDKType { - nickname: string; - peer: Uint8Array; - power_flags: string[]; -} -/** - * SwingStoreArtifact encodes an artifact of a swing-store export. - * Artifacts may be stored or transmitted in any order. Most handlers do - * maintain the artifact order from their original source as an effect of how - * they handle the artifacts. - */ -export interface SwingStoreArtifact { - name: string; - data: Uint8Array; -} -export interface SwingStoreArtifactProtoMsg { - typeUrl: "/agoric.swingset.SwingStoreArtifact"; - value: Uint8Array; -} -/** - * SwingStoreArtifact encodes an artifact of a swing-store export. - * Artifacts may be stored or transmitted in any order. Most handlers do - * maintain the artifact order from their original source as an effect of how - * they handle the artifacts. - */ -export interface SwingStoreArtifactAmino { - name: string; - data: Uint8Array; -} -export interface SwingStoreArtifactAminoMsg { - type: "/agoric.swingset.SwingStoreArtifact"; - value: SwingStoreArtifactAmino; -} -/** - * SwingStoreArtifact encodes an artifact of a swing-store export. - * Artifacts may be stored or transmitted in any order. Most handlers do - * maintain the artifact order from their original source as an effect of how - * they handle the artifacts. - */ -export interface SwingStoreArtifactSDKType { - name: string; - data: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vbank/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vbank/genesis.ts deleted file mode 100644 index 976512cc2..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vbank/genesis.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - State, - StateAmino, - StateSDKType, -} from "./vbank"; -/** The initial and exported module state. */ -export interface GenesisState { - /** parms defines all the parameters of the module. */ - params: Params; - /** state is the current operation state. */ - state: State; -} -export interface GenesisStateProtoMsg { - typeUrl: "/agoric.vbank.GenesisState"; - value: Uint8Array; -} -/** The initial and exported module state. */ -export interface GenesisStateAmino { - /** parms defines all the parameters of the module. */ - params?: ParamsAmino; - /** state is the current operation state. */ - state?: StateAmino; -} -export interface GenesisStateAminoMsg { - type: "/agoric.vbank.GenesisState"; - value: GenesisStateAmino; -} -/** The initial and exported module state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - state: StateSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vbank/msgs.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vbank/msgs.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vbank/msgs.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vbank/vbank.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vbank/vbank.ts deleted file mode 100644 index f05bd61c9..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vbank/vbank.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../cosmos/base/v1beta1/coin"; -import { Long } from "../../helpers"; -/** The module governance/configuration parameters. */ -export interface Params { - /** - * reward_epoch_duration_blocks is the length of a reward epoch, in blocks. - * A value of zero has the same meaning as a value of one: - * the full reward buffer should be distributed immediately. - */ - rewardEpochDurationBlocks: Long; - /** - * per_epoch_reward_fraction is a fraction of the reward pool to distrubute - * once every reward epoch. If less than zero, use approximately continuous - * per-block distribution. - */ - perEpochRewardFraction: string; - /** - * reward_smoothing_blocks is the number of blocks over which to distribute - * an epoch's rewards. If zero, use the same value as - * reward_epoch_duration_blocks. - */ - rewardSmoothingBlocks: Long; -} -export interface ParamsProtoMsg { - typeUrl: "/agoric.vbank.Params"; - value: Uint8Array; -} -/** The module governance/configuration parameters. */ -export interface ParamsAmino { - /** - * reward_epoch_duration_blocks is the length of a reward epoch, in blocks. - * A value of zero has the same meaning as a value of one: - * the full reward buffer should be distributed immediately. - */ - reward_epoch_duration_blocks: string; - /** - * per_epoch_reward_fraction is a fraction of the reward pool to distrubute - * once every reward epoch. If less than zero, use approximately continuous - * per-block distribution. - */ - per_epoch_reward_fraction: string; - /** - * reward_smoothing_blocks is the number of blocks over which to distribute - * an epoch's rewards. If zero, use the same value as - * reward_epoch_duration_blocks. - */ - reward_smoothing_blocks: string; -} -export interface ParamsAminoMsg { - type: "/agoric.vbank.Params"; - value: ParamsAmino; -} -/** The module governance/configuration parameters. */ -export interface ParamsSDKType { - reward_epoch_duration_blocks: Long; - per_epoch_reward_fraction: string; - reward_smoothing_blocks: Long; -} -/** The current state of the module. */ -export interface State { - /** - * rewardPool is the current balance of rewards in the module account. - * NOTE: Tracking manually since there is no bank call for getting a - * module account balance by name. - */ - rewardPool: Coin[]; - /** - * reward_block_amount is the amount of reward, if available, to send to the - * fee collector module on every block. - */ - rewardBlockAmount: Coin[]; - /** last_sequence is a sequence number for communicating with the VM. */ - lastSequence: Long; - lastRewardDistributionBlock: Long; -} -export interface StateProtoMsg { - typeUrl: "/agoric.vbank.State"; - value: Uint8Array; -} -/** The current state of the module. */ -export interface StateAmino { - /** - * rewardPool is the current balance of rewards in the module account. - * NOTE: Tracking manually since there is no bank call for getting a - * module account balance by name. - */ - reward_pool: CoinAmino[]; - /** - * reward_block_amount is the amount of reward, if available, to send to the - * fee collector module on every block. - */ - reward_block_amount: CoinAmino[]; - /** last_sequence is a sequence number for communicating with the VM. */ - last_sequence: string; - last_reward_distribution_block: string; -} -export interface StateAminoMsg { - type: "/agoric.vbank.State"; - value: StateAmino; -} -/** The current state of the module. */ -export interface StateSDKType { - reward_pool: CoinSDKType[]; - reward_block_amount: CoinSDKType[]; - last_sequence: Long; - last_reward_distribution_block: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vibc/msgs.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vibc/msgs.ts deleted file mode 100644 index 855f9b3b0..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vibc/msgs.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { - Packet, - PacketAmino, - PacketSDKType, -} from "../../ibc/core/channel/v1/channel"; -/** MsgSendPacket is an SDK message for sending an outgoing IBC packet */ -export interface MsgSendPacket { - packet: Packet; - sender: Uint8Array; -} -export interface MsgSendPacketProtoMsg { - typeUrl: "/agoric.vibc.MsgSendPacket"; - value: Uint8Array; -} -/** MsgSendPacket is an SDK message for sending an outgoing IBC packet */ -export interface MsgSendPacketAmino { - packet?: PacketAmino; - sender: Uint8Array; -} -export interface MsgSendPacketAminoMsg { - type: "/agoric.vibc.MsgSendPacket"; - value: MsgSendPacketAmino; -} -/** MsgSendPacket is an SDK message for sending an outgoing IBC packet */ -export interface MsgSendPacketSDKType { - packet: PacketSDKType; - sender: Uint8Array; -} -/** Empty response for SendPacket. */ -export interface MsgSendPacketResponse {} -export interface MsgSendPacketResponseProtoMsg { - typeUrl: "/agoric.vibc.MsgSendPacketResponse"; - value: Uint8Array; -} -/** Empty response for SendPacket. */ -export interface MsgSendPacketResponseAmino {} -export interface MsgSendPacketResponseAminoMsg { - type: "/agoric.vibc.MsgSendPacketResponse"; - value: MsgSendPacketResponseAmino; -} -/** Empty response for SendPacket. */ -export interface MsgSendPacketResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vstorage/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vstorage/genesis.ts deleted file mode 100644 index da962364f..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vstorage/genesis.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** The initial or exported state. */ -export interface GenesisState { - data: DataEntry[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/agoric.vstorage.GenesisState"; - value: Uint8Array; -} -/** The initial or exported state. */ -export interface GenesisStateAmino { - data: DataEntryAmino[]; -} -export interface GenesisStateAminoMsg { - type: "/agoric.vstorage.GenesisState"; - value: GenesisStateAmino; -} -/** The initial or exported state. */ -export interface GenesisStateSDKType { - data: DataEntrySDKType[]; -} -/** - * A vstorage entry. The only necessary entries are those with data, as the - * ancestor nodes are reconstructed on import. - */ -export interface DataEntry { - /** - * A "."-separated path with individual path elements matching - * `[-_A-Za-z0-9]+` - */ - path: string; - value: string; -} -export interface DataEntryProtoMsg { - typeUrl: "/agoric.vstorage.DataEntry"; - value: Uint8Array; -} -/** - * A vstorage entry. The only necessary entries are those with data, as the - * ancestor nodes are reconstructed on import. - */ -export interface DataEntryAmino { - /** - * A "."-separated path with individual path elements matching - * `[-_A-Za-z0-9]+` - */ - path: string; - value: string; -} -export interface DataEntryAminoMsg { - type: "/agoric.vstorage.DataEntry"; - value: DataEntryAmino; -} -/** - * A vstorage entry. The only necessary entries are those with data, as the - * ancestor nodes are reconstructed on import. - */ -export interface DataEntrySDKType { - path: string; - value: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vstorage/vstorage.ts b/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vstorage/vstorage.ts deleted file mode 100644 index bf322e0f1..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/agoric/vstorage/vstorage.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** Data is the vstorage node data. */ -export interface Data { - value: string; -} -export interface DataProtoMsg { - typeUrl: "/agoric.vstorage.Data"; - value: Uint8Array; -} -/** Data is the vstorage node data. */ -export interface DataAmino { - value: string; -} -export interface DataAminoMsg { - type: "/agoric.vstorage.Data"; - value: DataAmino; -} -/** Data is the vstorage node data. */ -export interface DataSDKType { - value: string; -} -/** - * Children are the immediate names (just one level deep) of subnodes leading to - * more data from a given vstorage node. - */ -export interface Children { - children: string[]; -} -export interface ChildrenProtoMsg { - typeUrl: "/agoric.vstorage.Children"; - value: Uint8Array; -} -/** - * Children are the immediate names (just one level deep) of subnodes leading to - * more data from a given vstorage node. - */ -export interface ChildrenAmino { - children: string[]; -} -export interface ChildrenAminoMsg { - type: "/agoric.vstorage.Children"; - value: ChildrenAmino; -} -/** - * Children are the immediate names (just one level deep) of subnodes leading to - * more data from a given vstorage node. - */ -export interface ChildrenSDKType { - children: string[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/confio/proofs.ts b/Agoric/agoric-starter/src/types/proto-interfaces/confio/proofs.ts deleted file mode 100644 index 09592409b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/confio/proofs.ts +++ /dev/null @@ -1,753 +0,0 @@ -export enum HashOp { - /** NO_HASH - NO_HASH is the default if no data passed. Note this is an illegal argument some places. */ - NO_HASH = 0, - SHA256 = 1, - SHA512 = 2, - KECCAK = 3, - RIPEMD160 = 4, - /** BITCOIN - ripemd160(sha256(x)) */ - BITCOIN = 5, - UNRECOGNIZED = -1, -} -export const HashOpSDKType = HashOp; -export const HashOpAmino = HashOp; -export function hashOpFromJSON(object: any): HashOp { - switch (object) { - case 0: - case "NO_HASH": - return HashOp.NO_HASH; - case 1: - case "SHA256": - return HashOp.SHA256; - case 2: - case "SHA512": - return HashOp.SHA512; - case 3: - case "KECCAK": - return HashOp.KECCAK; - case 4: - case "RIPEMD160": - return HashOp.RIPEMD160; - case 5: - case "BITCOIN": - return HashOp.BITCOIN; - case -1: - case "UNRECOGNIZED": - default: - return HashOp.UNRECOGNIZED; - } -} -export function hashOpToJSON(object: HashOp): string { - switch (object) { - case HashOp.NO_HASH: - return "NO_HASH"; - case HashOp.SHA256: - return "SHA256"; - case HashOp.SHA512: - return "SHA512"; - case HashOp.KECCAK: - return "KECCAK"; - case HashOp.RIPEMD160: - return "RIPEMD160"; - case HashOp.BITCOIN: - return "BITCOIN"; - case HashOp.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * LengthOp defines how to process the key and value of the LeafOp - * to include length information. After encoding the length with the given - * algorithm, the length will be prepended to the key and value bytes. - * (Each one with it's own encoded length) - */ -export enum LengthOp { - /** NO_PREFIX - NO_PREFIX don't include any length info */ - NO_PREFIX = 0, - /** VAR_PROTO - VAR_PROTO uses protobuf (and go-amino) varint encoding of the length */ - VAR_PROTO = 1, - /** VAR_RLP - VAR_RLP uses rlp int encoding of the length */ - VAR_RLP = 2, - /** FIXED32_BIG - FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer */ - FIXED32_BIG = 3, - /** FIXED32_LITTLE - FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer */ - FIXED32_LITTLE = 4, - /** FIXED64_BIG - FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer */ - FIXED64_BIG = 5, - /** FIXED64_LITTLE - FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer */ - FIXED64_LITTLE = 6, - /** REQUIRE_32_BYTES - REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) */ - REQUIRE_32_BYTES = 7, - /** REQUIRE_64_BYTES - REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) */ - REQUIRE_64_BYTES = 8, - UNRECOGNIZED = -1, -} -export const LengthOpSDKType = LengthOp; -export const LengthOpAmino = LengthOp; -export function lengthOpFromJSON(object: any): LengthOp { - switch (object) { - case 0: - case "NO_PREFIX": - return LengthOp.NO_PREFIX; - case 1: - case "VAR_PROTO": - return LengthOp.VAR_PROTO; - case 2: - case "VAR_RLP": - return LengthOp.VAR_RLP; - case 3: - case "FIXED32_BIG": - return LengthOp.FIXED32_BIG; - case 4: - case "FIXED32_LITTLE": - return LengthOp.FIXED32_LITTLE; - case 5: - case "FIXED64_BIG": - return LengthOp.FIXED64_BIG; - case 6: - case "FIXED64_LITTLE": - return LengthOp.FIXED64_LITTLE; - case 7: - case "REQUIRE_32_BYTES": - return LengthOp.REQUIRE_32_BYTES; - case 8: - case "REQUIRE_64_BYTES": - return LengthOp.REQUIRE_64_BYTES; - case -1: - case "UNRECOGNIZED": - default: - return LengthOp.UNRECOGNIZED; - } -} -export function lengthOpToJSON(object: LengthOp): string { - switch (object) { - case LengthOp.NO_PREFIX: - return "NO_PREFIX"; - case LengthOp.VAR_PROTO: - return "VAR_PROTO"; - case LengthOp.VAR_RLP: - return "VAR_RLP"; - case LengthOp.FIXED32_BIG: - return "FIXED32_BIG"; - case LengthOp.FIXED32_LITTLE: - return "FIXED32_LITTLE"; - case LengthOp.FIXED64_BIG: - return "FIXED64_BIG"; - case LengthOp.FIXED64_LITTLE: - return "FIXED64_LITTLE"; - case LengthOp.REQUIRE_32_BYTES: - return "REQUIRE_32_BYTES"; - case LengthOp.REQUIRE_64_BYTES: - return "REQUIRE_64_BYTES"; - case LengthOp.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - */ -export interface ExistenceProof { - key: Uint8Array; - value: Uint8Array; - leaf: LeafOp; - path: InnerOp[]; -} -export interface ExistenceProofProtoMsg { - typeUrl: "/ics23.ExistenceProof"; - value: Uint8Array; -} -/** - * ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - */ -export interface ExistenceProofAmino { - key: Uint8Array; - value: Uint8Array; - leaf?: LeafOpAmino; - path: InnerOpAmino[]; -} -export interface ExistenceProofAminoMsg { - type: "/ics23.ExistenceProof"; - value: ExistenceProofAmino; -} -/** - * ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - */ -export interface ExistenceProofSDKType { - key: Uint8Array; - value: Uint8Array; - leaf: LeafOpSDKType; - path: InnerOpSDKType[]; -} -/** - * NonExistenceProof takes a proof of two neighbors, one left of the desired key, - * one right of the desired key. If both proofs are valid AND they are neighbors, - * then there is no valid proof for the given key. - */ -export interface NonExistenceProof { - /** TODO: remove this as unnecessary??? we prove a range */ - key: Uint8Array; - left: ExistenceProof; - right: ExistenceProof; -} -export interface NonExistenceProofProtoMsg { - typeUrl: "/ics23.NonExistenceProof"; - value: Uint8Array; -} -/** - * NonExistenceProof takes a proof of two neighbors, one left of the desired key, - * one right of the desired key. If both proofs are valid AND they are neighbors, - * then there is no valid proof for the given key. - */ -export interface NonExistenceProofAmino { - /** TODO: remove this as unnecessary??? we prove a range */ - key: Uint8Array; - left?: ExistenceProofAmino; - right?: ExistenceProofAmino; -} -export interface NonExistenceProofAminoMsg { - type: "/ics23.NonExistenceProof"; - value: NonExistenceProofAmino; -} -/** - * NonExistenceProof takes a proof of two neighbors, one left of the desired key, - * one right of the desired key. If both proofs are valid AND they are neighbors, - * then there is no valid proof for the given key. - */ -export interface NonExistenceProofSDKType { - key: Uint8Array; - left: ExistenceProofSDKType; - right: ExistenceProofSDKType; -} -/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */ -export interface CommitmentProof { - exist?: ExistenceProof; - nonexist?: NonExistenceProof; - batch?: BatchProof; - compressed?: CompressedBatchProof; -} -export interface CommitmentProofProtoMsg { - typeUrl: "/ics23.CommitmentProof"; - value: Uint8Array; -} -/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */ -export interface CommitmentProofAmino { - exist?: ExistenceProofAmino; - nonexist?: NonExistenceProofAmino; - batch?: BatchProofAmino; - compressed?: CompressedBatchProofAmino; -} -export interface CommitmentProofAminoMsg { - type: "/ics23.CommitmentProof"; - value: CommitmentProofAmino; -} -/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */ -export interface CommitmentProofSDKType { - exist?: ExistenceProofSDKType; - nonexist?: NonExistenceProofSDKType; - batch?: BatchProofSDKType; - compressed?: CompressedBatchProofSDKType; -} -/** - * LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - */ -export interface LeafOp { - hash: HashOp; - prehashKey: HashOp; - prehashValue: HashOp; - length: LengthOp; - /** - * prefix is a fixed bytes that may optionally be included at the beginning to differentiate - * a leaf node from an inner node. - */ - prefix: Uint8Array; -} -export interface LeafOpProtoMsg { - typeUrl: "/ics23.LeafOp"; - value: Uint8Array; -} -/** - * LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - */ -export interface LeafOpAmino { - hash: HashOp; - prehash_key: HashOp; - prehash_value: HashOp; - length: LengthOp; - /** - * prefix is a fixed bytes that may optionally be included at the beginning to differentiate - * a leaf node from an inner node. - */ - prefix: Uint8Array; -} -export interface LeafOpAminoMsg { - type: "/ics23.LeafOp"; - value: LeafOpAmino; -} -/** - * LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - */ -export interface LeafOpSDKType { - hash: HashOp; - prehash_key: HashOp; - prehash_value: HashOp; - length: LengthOp; - prefix: Uint8Array; -} -/** - * InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - */ -export interface InnerOp { - hash: HashOp; - prefix: Uint8Array; - suffix: Uint8Array; -} -export interface InnerOpProtoMsg { - typeUrl: "/ics23.InnerOp"; - value: Uint8Array; -} -/** - * InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - */ -export interface InnerOpAmino { - hash: HashOp; - prefix: Uint8Array; - suffix: Uint8Array; -} -export interface InnerOpAminoMsg { - type: "/ics23.InnerOp"; - value: InnerOpAmino; -} -/** - * InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - */ -export interface InnerOpSDKType { - hash: HashOp; - prefix: Uint8Array; - suffix: Uint8Array; -} -/** - * ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - */ -export interface ProofSpec { - /** - * any field in the ExistenceProof must be the same as in this spec. - * except Prefix, which is just the first bytes of prefix (spec can be longer) - */ - leafSpec: LeafOp; - innerSpec: InnerSpec; - /** max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) */ - maxDepth: number; - /** min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) */ - minDepth: number; -} -export interface ProofSpecProtoMsg { - typeUrl: "/ics23.ProofSpec"; - value: Uint8Array; -} -/** - * ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - */ -export interface ProofSpecAmino { - /** - * any field in the ExistenceProof must be the same as in this spec. - * except Prefix, which is just the first bytes of prefix (spec can be longer) - */ - leaf_spec?: LeafOpAmino; - inner_spec?: InnerSpecAmino; - /** max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) */ - max_depth: number; - /** min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) */ - min_depth: number; -} -export interface ProofSpecAminoMsg { - type: "/ics23.ProofSpec"; - value: ProofSpecAmino; -} -/** - * ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - */ -export interface ProofSpecSDKType { - leaf_spec: LeafOpSDKType; - inner_spec: InnerSpecSDKType; - max_depth: number; - min_depth: number; -} -/** - * InnerSpec contains all store-specific structure info to determine if two proofs from a - * given store are neighbors. - * - * This enables: - * - * isLeftMost(spec: InnerSpec, op: InnerOp) - * isRightMost(spec: InnerSpec, op: InnerOp) - * isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) - */ -export interface InnerSpec { - /** - * Child order is the ordering of the children node, must count from 0 - * iavl tree is [0, 1] (left then right) - * merk is [0, 2, 1] (left, right, here) - */ - childOrder: number[]; - childSize: number; - minPrefixLength: number; - maxPrefixLength: number; - /** empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) */ - emptyChild: Uint8Array; - /** hash is the algorithm that must be used for each InnerOp */ - hash: HashOp; -} -export interface InnerSpecProtoMsg { - typeUrl: "/ics23.InnerSpec"; - value: Uint8Array; -} -/** - * InnerSpec contains all store-specific structure info to determine if two proofs from a - * given store are neighbors. - * - * This enables: - * - * isLeftMost(spec: InnerSpec, op: InnerOp) - * isRightMost(spec: InnerSpec, op: InnerOp) - * isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) - */ -export interface InnerSpecAmino { - /** - * Child order is the ordering of the children node, must count from 0 - * iavl tree is [0, 1] (left then right) - * merk is [0, 2, 1] (left, right, here) - */ - child_order: number[]; - child_size: number; - min_prefix_length: number; - max_prefix_length: number; - /** empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) */ - empty_child: Uint8Array; - /** hash is the algorithm that must be used for each InnerOp */ - hash: HashOp; -} -export interface InnerSpecAminoMsg { - type: "/ics23.InnerSpec"; - value: InnerSpecAmino; -} -/** - * InnerSpec contains all store-specific structure info to determine if two proofs from a - * given store are neighbors. - * - * This enables: - * - * isLeftMost(spec: InnerSpec, op: InnerOp) - * isRightMost(spec: InnerSpec, op: InnerOp) - * isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) - */ -export interface InnerSpecSDKType { - child_order: number[]; - child_size: number; - min_prefix_length: number; - max_prefix_length: number; - empty_child: Uint8Array; - hash: HashOp; -} -/** BatchProof is a group of multiple proof types than can be compressed */ -export interface BatchProof { - entries: BatchEntry[]; -} -export interface BatchProofProtoMsg { - typeUrl: "/ics23.BatchProof"; - value: Uint8Array; -} -/** BatchProof is a group of multiple proof types than can be compressed */ -export interface BatchProofAmino { - entries: BatchEntryAmino[]; -} -export interface BatchProofAminoMsg { - type: "/ics23.BatchProof"; - value: BatchProofAmino; -} -/** BatchProof is a group of multiple proof types than can be compressed */ -export interface BatchProofSDKType { - entries: BatchEntrySDKType[]; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface BatchEntry { - exist?: ExistenceProof; - nonexist?: NonExistenceProof; -} -export interface BatchEntryProtoMsg { - typeUrl: "/ics23.BatchEntry"; - value: Uint8Array; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface BatchEntryAmino { - exist?: ExistenceProofAmino; - nonexist?: NonExistenceProofAmino; -} -export interface BatchEntryAminoMsg { - type: "/ics23.BatchEntry"; - value: BatchEntryAmino; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface BatchEntrySDKType { - exist?: ExistenceProofSDKType; - nonexist?: NonExistenceProofSDKType; -} -export interface CompressedBatchProof { - entries: CompressedBatchEntry[]; - lookupInners: InnerOp[]; -} -export interface CompressedBatchProofProtoMsg { - typeUrl: "/ics23.CompressedBatchProof"; - value: Uint8Array; -} -export interface CompressedBatchProofAmino { - entries: CompressedBatchEntryAmino[]; - lookup_inners: InnerOpAmino[]; -} -export interface CompressedBatchProofAminoMsg { - type: "/ics23.CompressedBatchProof"; - value: CompressedBatchProofAmino; -} -export interface CompressedBatchProofSDKType { - entries: CompressedBatchEntrySDKType[]; - lookup_inners: InnerOpSDKType[]; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface CompressedBatchEntry { - exist?: CompressedExistenceProof; - nonexist?: CompressedNonExistenceProof; -} -export interface CompressedBatchEntryProtoMsg { - typeUrl: "/ics23.CompressedBatchEntry"; - value: Uint8Array; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface CompressedBatchEntryAmino { - exist?: CompressedExistenceProofAmino; - nonexist?: CompressedNonExistenceProofAmino; -} -export interface CompressedBatchEntryAminoMsg { - type: "/ics23.CompressedBatchEntry"; - value: CompressedBatchEntryAmino; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface CompressedBatchEntrySDKType { - exist?: CompressedExistenceProofSDKType; - nonexist?: CompressedNonExistenceProofSDKType; -} -export interface CompressedExistenceProof { - key: Uint8Array; - value: Uint8Array; - leaf: LeafOp; - /** these are indexes into the lookup_inners table in CompressedBatchProof */ - path: number[]; -} -export interface CompressedExistenceProofProtoMsg { - typeUrl: "/ics23.CompressedExistenceProof"; - value: Uint8Array; -} -export interface CompressedExistenceProofAmino { - key: Uint8Array; - value: Uint8Array; - leaf?: LeafOpAmino; - /** these are indexes into the lookup_inners table in CompressedBatchProof */ - path: number[]; -} -export interface CompressedExistenceProofAminoMsg { - type: "/ics23.CompressedExistenceProof"; - value: CompressedExistenceProofAmino; -} -export interface CompressedExistenceProofSDKType { - key: Uint8Array; - value: Uint8Array; - leaf: LeafOpSDKType; - path: number[]; -} -export interface CompressedNonExistenceProof { - /** TODO: remove this as unnecessary??? we prove a range */ - key: Uint8Array; - left: CompressedExistenceProof; - right: CompressedExistenceProof; -} -export interface CompressedNonExistenceProofProtoMsg { - typeUrl: "/ics23.CompressedNonExistenceProof"; - value: Uint8Array; -} -export interface CompressedNonExistenceProofAmino { - /** TODO: remove this as unnecessary??? we prove a range */ - key: Uint8Array; - left?: CompressedExistenceProofAmino; - right?: CompressedExistenceProofAmino; -} -export interface CompressedNonExistenceProofAminoMsg { - type: "/ics23.CompressedNonExistenceProof"; - value: CompressedNonExistenceProofAmino; -} -export interface CompressedNonExistenceProofSDKType { - key: Uint8Array; - left: CompressedExistenceProofSDKType; - right: CompressedExistenceProofSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/config.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/config.ts deleted file mode 100644 index 46882dadd..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/config.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface Config { - /** modules are the module configurations for the app. */ - modules: ModuleConfig[]; -} -export interface ConfigProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.Config"; - value: Uint8Array; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigAmino { - /** modules are the module configurations for the app. */ - modules: ModuleConfigAmino[]; -} -export interface ConfigAminoMsg { - type: "cosmos-sdk/Config"; - value: ConfigAmino; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigSDKType { - modules: ModuleConfigSDKType[]; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfig { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config: Any; -} -export interface ModuleConfigProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.ModuleConfig"; - value: Uint8Array; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigAmino { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config?: AnyAmino; -} -export interface ModuleConfigAminoMsg { - type: "cosmos-sdk/ModuleConfig"; - value: ModuleConfigAmino; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigSDKType { - name: string; - config: AnySDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/module.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/module.ts deleted file mode 100644 index d8ba15b36..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/module.ts +++ /dev/null @@ -1,206 +0,0 @@ -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptor { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. Either go_import must be defined here - * or the go_package option must be defined at the file level to indicate - * to users where to location the module implementation. go_import takes - * precedence over go_package when both are defined. - */ - goImport: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - usePackage: PackageReference[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - canMigrateFrom: MigrateFromInfo[]; -} -export interface ModuleDescriptorProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor"; - value: Uint8Array; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorAmino { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. Either go_import must be defined here - * or the go_package option must be defined at the file level to indicate - * to users where to location the module implementation. go_import takes - * precedence over go_package when both are defined. - */ - go_import: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - use_package: PackageReferenceAmino[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - can_migrate_from: MigrateFromInfoAmino[]; -} -export interface ModuleDescriptorAminoMsg { - type: "cosmos-sdk/ModuleDescriptor"; - value: ModuleDescriptorAmino; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorSDKType { - go_import: string; - use_package: PackageReferenceSDKType[]; - can_migrate_from: MigrateFromInfoSDKType[]; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReference { - /** name is the fully-qualified name of the package. */ - name: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its fields containing the - * test "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * 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. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision: number; -} -export interface PackageReferenceProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.PackageReference"; - value: Uint8Array; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceAmino { - /** name is the fully-qualified name of the package. */ - name: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its fields containing the - * test "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * 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. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision: number; -} -export interface PackageReferenceAminoMsg { - type: "cosmos-sdk/PackageReference"; - value: PackageReferenceAmino; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceSDKType { - name: string; - revision: number; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfo { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module: string; -} -export interface MigrateFromInfoProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo"; - value: Uint8Array; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoAmino { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module: string; -} -export interface MigrateFromInfoAminoMsg { - type: "cosmos-sdk/MigrateFromInfo"; - value: MigrateFromInfoAmino; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoSDKType { - module: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/auth.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/auth.ts deleted file mode 100644 index adac0a8f8..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/auth.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccount { - address: string; - pubKey: Any; - accountNumber: Long; - sequence: Long; -} -export interface BaseAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount"; - value: Uint8Array; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountAmino { - address: string; - pub_key?: AnyAmino; - account_number: string; - sequence: string; -} -export interface BaseAccountAminoMsg { - type: "cosmos-sdk/BaseAccount"; - value: BaseAccountAmino; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountSDKType { - address: string; - pub_key: AnySDKType; - account_number: Long; - sequence: Long; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccount { - baseAccount: BaseAccount; - name: string; - permissions: string[]; -} -export interface ModuleAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount"; - value: Uint8Array; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountAmino { - base_account?: BaseAccountAmino; - name: string; - permissions: string[]; -} -export interface ModuleAccountAminoMsg { - type: "cosmos-sdk/ModuleAccount"; - value: ModuleAccountAmino; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountSDKType { - base_account: BaseAccountSDKType; - name: string; - permissions: string[]; -} -/** Params defines the parameters for the auth module. */ -export interface Params { - maxMemoCharacters: Long; - txSigLimit: Long; - txSizeCostPerByte: Long; - sigVerifyCostEd25519: Long; - sigVerifyCostSecp256k1: Long; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsAmino { - max_memo_characters: string; - tx_sig_limit: string; - tx_size_cost_per_byte: string; - sig_verify_cost_ed25519: string; - sig_verify_cost_secp256k1: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsSDKType { - max_memo_characters: Long; - tx_sig_limit: Long; - tx_size_cost_per_byte: Long; - sig_verify_cost_ed25519: Long; - sig_verify_cost_secp256k1: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/genesis.ts deleted file mode 100644 index a077a0d2f..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/genesis.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType } from "./auth"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** accounts are the accounts present at genesis. */ - accounts: Any[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** accounts are the accounts present at genesis. */ - accounts: AnyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - accounts: AnySDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/authz.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/authz.ts deleted file mode 100644 index a4d169933..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/authz.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorization { - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg: string; -} -export interface GenericAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization"; - value: Uint8Array; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationAmino { - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg: string; -} -export interface GenericAuthorizationAminoMsg { - type: "cosmos-sdk/GenericAuthorization"; - value: GenericAuthorizationAmino; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationSDKType { - msg: string; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface Grant { - authorization: Any; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: Date; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.Grant"; - value: Uint8Array; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantAmino { - authorization?: AnyAmino; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: Date; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantSDKType { - authorization: AnySDKType; - expiration?: Date; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorization { - granter: string; - grantee: string; - authorization: Any; - expiration: Date; -} -export interface GrantAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization"; - value: Uint8Array; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationAmino { - granter: string; - grantee: string; - authorization?: AnyAmino; - expiration?: Date; -} -export interface GrantAuthorizationAminoMsg { - type: "cosmos-sdk/GrantAuthorization"; - value: GrantAuthorizationAmino; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationSDKType { - granter: string; - grantee: string; - authorization: AnySDKType; - expiration: Date; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItem { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msgTypeUrls: string[]; -} -export interface GrantQueueItemProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem"; - value: Uint8Array; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemAmino { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msg_type_urls: string[]; -} -export interface GrantQueueItemAminoMsg { - type: "cosmos-sdk/GrantQueueItem"; - value: GrantQueueItemAmino; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemSDKType { - msg_type_urls: string[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/event.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/event.ts deleted file mode 100644 index bed3a5790..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/event.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrant { - /** Msg type URL for which an autorization is granted */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventGrant"; - value: Uint8Array; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantAmino { - /** Msg type URL for which an autorization is granted */ - msg_type_url: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventGrantAminoMsg { - type: "cosmos-sdk/EventGrant"; - value: EventGrantAmino; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevoke { - /** Msg type URL for which an autorization is revoked */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke"; - value: Uint8Array; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeAmino { - /** Msg type URL for which an autorization is revoked */ - msg_type_url: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventRevokeAminoMsg { - type: "cosmos-sdk/EventRevoke"; - value: EventRevokeAmino; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/genesis.ts deleted file mode 100644 index ee5a91e87..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/genesis.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { - GrantAuthorization, - GrantAuthorizationAmino, - GrantAuthorizationSDKType, -} from "./authz"; -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisState { - authorization: GrantAuthorization[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateAmino { - authorization: GrantAuthorizationAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateSDKType { - authorization: GrantAuthorizationSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/tx.ts deleted file mode 100644 index 37535156c..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/tx.ts +++ /dev/null @@ -1,165 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./authz"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrant { - granter: string; - grantee: string; - grant: Grant; -} -export interface MsgGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant"; - value: Uint8Array; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantAmino { - granter: string; - grantee: string; - grant?: GrantAmino; -} -export interface MsgGrantAminoMsg { - type: "cosmos-sdk/MsgGrant"; - value: MsgGrantAmino; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantSDKType { - granter: string; - grantee: string; - grant: GrantSDKType; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponse { - results: Uint8Array[]; -} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseAmino { - results: Uint8Array[]; -} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseSDKType { - results: Uint8Array[]; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExec { - grantee: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: Any[]; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExec"; - value: Uint8Array; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecAmino { - grantee: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: AnyAmino[]; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/MsgExec"; - value: MsgExecAmino; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecSDKType { - grantee: string; - msgs: AnySDKType[]; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponse {} -export interface MsgGrantResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; - value: Uint8Array; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseAmino {} -export interface MsgGrantResponseAminoMsg { - type: "cosmos-sdk/MsgGrantResponse"; - value: MsgGrantResponseAmino; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseSDKType {} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevoke { - granter: string; - grantee: string; - msgTypeUrl: string; -} -export interface MsgRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke"; - value: Uint8Array; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeAmino { - granter: string; - grantee: string; - msg_type_url: string; -} -export interface MsgRevokeAminoMsg { - type: "cosmos-sdk/MsgRevoke"; - value: MsgRevokeAmino; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeSDKType { - granter: string; - grantee: string; - msg_type_url: string; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponse {} -export interface MsgRevokeResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; - value: Uint8Array; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseAmino {} -export interface MsgRevokeResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeResponse"; - value: MsgRevokeResponseAmino; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/authz.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/authz.ts deleted file mode 100644 index f58a62af0..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/authz.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorization { - spendLimit: Coin[]; -} -export interface SendAuthorizationProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization"; - value: Uint8Array; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationAmino { - spend_limit: CoinAmino[]; -} -export interface SendAuthorizationAminoMsg { - type: "cosmos-sdk/SendAuthorization"; - value: SendAuthorizationAmino; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationSDKType { - spend_limit: CoinSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/bank.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/bank.ts deleted file mode 100644 index 5232cdd98..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/bank.ts +++ /dev/null @@ -1,296 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** Params defines the parameters for the bank module. */ -export interface Params { - sendEnabled: SendEnabled[]; - defaultSendEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsAmino { - send_enabled: SendEnabledAmino[]; - default_send_enabled: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsSDKType { - send_enabled: SendEnabledSDKType[]; - default_send_enabled: boolean; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabled { - denom: string; - enabled: boolean; -} -export interface SendEnabledProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled"; - value: Uint8Array; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledAmino { - denom: string; - enabled: boolean; -} -export interface SendEnabledAminoMsg { - type: "cosmos-sdk/SendEnabled"; - value: SendEnabledAmino; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledSDKType { - denom: string; - enabled: boolean; -} -/** Input models transaction input. */ -export interface Input { - address: string; - coins: Coin[]; -} -export interface InputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Input"; - value: Uint8Array; -} -/** Input models transaction input. */ -export interface InputAmino { - address: string; - coins: CoinAmino[]; -} -export interface InputAminoMsg { - type: "cosmos-sdk/Input"; - value: InputAmino; -} -/** Input models transaction input. */ -export interface InputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** Output models transaction outputs. */ -export interface Output { - address: string; - coins: Coin[]; -} -export interface OutputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Output"; - value: Uint8Array; -} -/** Output models transaction outputs. */ -export interface OutputAmino { - address: string; - coins: CoinAmino[]; -} -export interface OutputAminoMsg { - type: "cosmos-sdk/Output"; - value: OutputAmino; -} -/** Output models transaction outputs. */ -export interface OutputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface Supply { - total: Coin[]; -} -export interface SupplyProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Supply"; - value: Uint8Array; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplyAmino { - total: CoinAmino[]; -} -export interface SupplyAminoMsg { - type: "cosmos-sdk/Supply"; - value: SupplyAmino; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplySDKType { - total: CoinSDKType[]; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnit { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent: number; - /** aliases is a list of string aliases for the given denom */ - aliases: string[]; -} -export interface DenomUnitProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit"; - value: Uint8Array; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitAmino { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent: number; - /** aliases is a list of string aliases for the given denom */ - aliases: string[]; -} -export interface DenomUnitAminoMsg { - type: "cosmos-sdk/DenomUnit"; - value: DenomUnitAmino; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitSDKType { - denom: string; - exponent: number; - aliases: string[]; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface Metadata { - description: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denomUnits: DenomUnit[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uriHash: string; -} -export interface MetadataProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Metadata"; - value: Uint8Array; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataAmino { - description: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units: DenomUnitAmino[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri_hash: string; -} -export interface MetadataAminoMsg { - type: "cosmos-sdk/Metadata"; - value: MetadataAmino; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataSDKType { - description: string; - denom_units: DenomUnitSDKType[]; - base: string; - display: string; - name: string; - symbol: string; - uri: string; - uri_hash: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/genesis.ts deleted file mode 100644 index ce661ebbb..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/genesis.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - Metadata, - MetadataAmino, - MetadataSDKType, -} from "./bank"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** balances is an array containing the balances of all the accounts. */ - balances: Balance[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply: Coin[]; - /** denom_metadata defines the metadata of the differents coins. */ - denomMetadata: Metadata[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** balances is an array containing the balances of all the accounts. */ - balances: BalanceAmino[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply: CoinAmino[]; - /** denom_metadata defines the metadata of the differents coins. */ - denom_metadata: MetadataAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - balances: BalanceSDKType[]; - supply: CoinSDKType[]; - denom_metadata: MetadataSDKType[]; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface Balance { - /** address is the address of the balance holder. */ - address: string; - /** coins defines the different coins this balance holds. */ - coins: Coin[]; -} -export interface BalanceProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Balance"; - value: Uint8Array; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceAmino { - /** address is the address of the balance holder. */ - address: string; - /** coins defines the different coins this balance holds. */ - coins: CoinAmino[]; -} -export interface BalanceAminoMsg { - type: "cosmos-sdk/Balance"; - value: BalanceAmino; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceSDKType { - address: string; - coins: CoinSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/tx.ts deleted file mode 100644 index dccc2392f..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/tx.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { - Input, - InputAmino, - InputSDKType, - Output, - OutputAmino, - OutputSDKType, -} from "./bank"; -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSend { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSend"; - value: Uint8Array; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendAmino { - from_address: string; - to_address: string; - amount: CoinAmino[]; -} -export interface MsgSendAminoMsg { - type: "cosmos-sdk/MsgSend"; - value: MsgSendAmino; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse {} -export interface MsgSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseAmino {} -export interface MsgSendResponseAminoMsg { - type: "cosmos-sdk/MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType {} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSend { - inputs: Input[]; - outputs: Output[]; -} -export interface MsgMultiSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend"; - value: Uint8Array; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendAmino { - inputs: InputAmino[]; - outputs: OutputAmino[]; -} -export interface MsgMultiSendAminoMsg { - type: "cosmos-sdk/MsgMultiSend"; - value: MsgMultiSendAmino; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendSDKType { - inputs: InputSDKType[]; - outputs: OutputSDKType[]; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponse {} -export interface MsgMultiSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse"; - value: Uint8Array; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseAmino {} -export interface MsgMultiSendResponseAminoMsg { - type: "cosmos-sdk/MsgMultiSendResponse"; - value: MsgMultiSendResponseAmino; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/abci/v1beta1/abci.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/abci/v1beta1/abci.ts deleted file mode 100644 index 67efe9c14..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/abci/v1beta1/abci.ts +++ /dev/null @@ -1,476 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - Event, - EventAmino, - EventSDKType, -} from "../../../../tendermint/abci/types"; -import { Long } from "../../../../helpers"; -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponse { - /** The block height */ - height: Long; - /** The transaction hash. */ - txhash: string; - /** Namespace for the Code */ - codespace: string; - /** Response code. */ - code: number; - /** Result bytes, if any. */ - data: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - rawLog: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs: ABCIMessageLog[]; - /** Additional information. May be non-deterministic. */ - info: string; - /** Amount of gas requested for transaction. */ - gasWanted: Long; - /** Amount of gas consumed by transaction. */ - gasUsed: Long; - /** The request transaction bytes. */ - tx: Any; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante handler. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events: Event[]; -} -export interface TxResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse"; - value: Uint8Array; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseAmino { - /** The block height */ - height: string; - /** The transaction hash. */ - txhash: string; - /** Namespace for the Code */ - codespace: string; - /** Response code. */ - code: number; - /** Result bytes, if any. */ - data: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs: ABCIMessageLogAmino[]; - /** Additional information. May be non-deterministic. */ - info: string; - /** Amount of gas requested for transaction. */ - gas_wanted: string; - /** Amount of gas consumed by transaction. */ - gas_used: string; - /** The request transaction bytes. */ - tx?: AnyAmino; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante handler. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events: EventAmino[]; -} -export interface TxResponseAminoMsg { - type: "cosmos-sdk/TxResponse"; - value: TxResponseAmino; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseSDKType { - height: Long; - txhash: string; - codespace: string; - code: number; - data: string; - raw_log: string; - logs: ABCIMessageLogSDKType[]; - info: string; - gas_wanted: Long; - gas_used: Long; - tx: AnySDKType; - timestamp: string; - events: EventSDKType[]; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLog { - msgIndex: number; - log: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events: StringEvent[]; -} -export interface ABCIMessageLogProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog"; - value: Uint8Array; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogAmino { - msg_index: number; - log: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events: StringEventAmino[]; -} -export interface ABCIMessageLogAminoMsg { - type: "cosmos-sdk/ABCIMessageLog"; - value: ABCIMessageLogAmino; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogSDKType { - msg_index: number; - log: string; - events: StringEventSDKType[]; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEvent { - type: string; - attributes: Attribute[]; -} -export interface StringEventProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent"; - value: Uint8Array; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventAmino { - type: string; - attributes: AttributeAmino[]; -} -export interface StringEventAminoMsg { - type: "cosmos-sdk/StringEvent"; - value: StringEventAmino; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventSDKType { - type: string; - attributes: AttributeSDKType[]; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface Attribute { - key: string; - value: string; -} -export interface AttributeProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute"; - value: Uint8Array; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeAmino { - key: string; - value: string; -} -export interface AttributeAminoMsg { - type: "cosmos-sdk/Attribute"; - value: AttributeAmino; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeSDKType { - key: string; - value: string; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfo { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gasWanted: Long; - /** GasUsed is the amount of gas actually consumed. */ - gasUsed: Long; -} -export interface GasInfoProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; - value: Uint8Array; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoAmino { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gas_wanted: string; - /** GasUsed is the amount of gas actually consumed. */ - gas_used: string; -} -export interface GasInfoAminoMsg { - type: "cosmos-sdk/GasInfo"; - value: GasInfoAmino; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoSDKType { - gas_wanted: Long; - gas_used: Long; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface Result { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data: Uint8Array; - /** Log contains the log information from message or handler execution. */ - log: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events: Event[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface ResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Result"; - value: Uint8Array; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultAmino { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data: Uint8Array; - /** Log contains the log information from message or handler execution. */ - log: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events: EventAmino[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses: AnyAmino[]; -} -export interface ResultAminoMsg { - type: "cosmos-sdk/Result"; - value: ResultAmino; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultSDKType { - /** @deprecated */ - data: Uint8Array; - log: string; - events: EventSDKType[]; - msg_responses: AnySDKType[]; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponse { - gasInfo: GasInfo; - result: Result; -} -export interface SimulationResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; - value: Uint8Array; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseAmino { - gas_info?: GasInfoAmino; - result?: ResultAmino; -} -export interface SimulationResponseAminoMsg { - type: "cosmos-sdk/SimulationResponse"; - value: SimulationResponseAmino; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseSDKType { - gas_info: GasInfoSDKType; - result: ResultSDKType; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgData { - msgType: string; - data: Uint8Array; -} -export interface MsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData"; - value: Uint8Array; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataAmino { - msg_type: string; - data: Uint8Array; -} -export interface MsgDataAminoMsg { - type: "cosmos-sdk/MsgData"; - value: MsgDataAmino; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataSDKType { - msg_type: string; - data: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgData { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data: MsgData[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface TxMsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData"; - value: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataAmino { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data: MsgDataAmino[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses: AnyAmino[]; -} -export interface TxMsgDataAminoMsg { - type: "cosmos-sdk/TxMsgData"; - value: TxMsgDataAmino; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataSDKType { - /** @deprecated */ - data: MsgDataSDKType[]; - msg_responses: AnySDKType[]; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResult { - /** Count of all txs */ - totalCount: Long; - /** Count of txs in current page */ - count: Long; - /** Index of current page, start from 1 */ - pageNumber: Long; - /** Count of total pages */ - pageTotal: Long; - /** Max count txs per page */ - limit: Long; - /** List of txs in current page */ - txs: TxResponse[]; -} -export interface SearchTxsResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult"; - value: Uint8Array; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultAmino { - /** Count of all txs */ - total_count: string; - /** Count of txs in current page */ - count: string; - /** Index of current page, start from 1 */ - page_number: string; - /** Count of total pages */ - page_total: string; - /** Max count txs per page */ - limit: string; - /** List of txs in current page */ - txs: TxResponseAmino[]; -} -export interface SearchTxsResultAminoMsg { - type: "cosmos-sdk/SearchTxsResult"; - value: SearchTxsResultAmino; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultSDKType { - total_count: Long; - count: Long; - page_number: Long; - page_total: Long; - limit: Long; - txs: TxResponseSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/kv/v1beta1/kv.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/kv/v1beta1/kv.ts deleted file mode 100644 index 9ddbbc636..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/kv/v1beta1/kv.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** Pairs defines a repeated slice of Pair objects. */ -export interface Pairs { - pairs: Pair[]; -} -export interface PairsProtoMsg { - typeUrl: "/cosmos.base.kv.v1beta1.Pairs"; - value: Uint8Array; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsAmino { - pairs: PairAmino[]; -} -export interface PairsAminoMsg { - type: "cosmos-sdk/Pairs"; - value: PairsAmino; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsSDKType { - pairs: PairSDKType[]; -} -/** Pair defines a key/value bytes tuple. */ -export interface Pair { - key: Uint8Array; - value: Uint8Array; -} -export interface PairProtoMsg { - typeUrl: "/cosmos.base.kv.v1beta1.Pair"; - value: Uint8Array; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairAmino { - key: Uint8Array; - value: Uint8Array; -} -export interface PairAminoMsg { - type: "cosmos-sdk/Pair"; - value: PairAmino; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairSDKType { - key: Uint8Array; - value: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/query/v1beta1/pagination.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/query/v1beta1/pagination.ts deleted file mode 100644 index fc8aa4f67..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/query/v1beta1/pagination.ts +++ /dev/null @@ -1,172 +0,0 @@ -import { Long } from "../../../../helpers"; -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequest { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - */ - key: Uint8Array; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - */ - offset: Long; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - */ - limit: Long; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - countTotal: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse: boolean; -} -export interface PageRequestProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest"; - value: Uint8Array; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestAmino { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - */ - key: Uint8Array; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - */ - offset: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - */ - limit: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - count_total: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse: boolean; -} -export interface PageRequestAminoMsg { - type: "cosmos-sdk/PageRequest"; - value: PageRequestAmino; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestSDKType { - key: Uint8Array; - offset: Long; - limit: Long; - count_total: boolean; - reverse: boolean; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponse { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - nextKey: Uint8Array; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total: Long; -} -export interface PageResponseProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse"; - value: Uint8Array; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseAmino { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - next_key: Uint8Array; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total: string; -} -export interface PageResponseAminoMsg { - type: "cosmos-sdk/PageResponse"; - value: PageResponseAmino; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseSDKType { - next_key: Uint8Array; - total: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/reflection/v1beta1/reflection.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/reflection/v1beta1/reflection.ts deleted file mode 100644 index 0fb5a77f3..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/reflection/v1beta1/reflection.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequest {} -export interface ListAllInterfacesRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest"; - value: Uint8Array; -} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestAmino {} -export interface ListAllInterfacesRequestAminoMsg { - type: "cosmos-sdk/ListAllInterfacesRequest"; - value: ListAllInterfacesRequestAmino; -} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestSDKType {} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponse { - /** interface_names is an array of all the registered interfaces. */ - interfaceNames: string[]; -} -export interface ListAllInterfacesResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse"; - value: Uint8Array; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseAmino { - /** interface_names is an array of all the registered interfaces. */ - interface_names: string[]; -} -export interface ListAllInterfacesResponseAminoMsg { - type: "cosmos-sdk/ListAllInterfacesResponse"; - value: ListAllInterfacesResponseAmino; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseSDKType { - interface_names: string[]; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequest { - /** interface_name defines the interface to query the implementations for. */ - interfaceName: string; -} -export interface ListImplementationsRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest"; - value: Uint8Array; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestAmino { - /** interface_name defines the interface to query the implementations for. */ - interface_name: string; -} -export interface ListImplementationsRequestAminoMsg { - type: "cosmos-sdk/ListImplementationsRequest"; - value: ListImplementationsRequestAmino; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestSDKType { - interface_name: string; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponse { - implementationMessageNames: string[]; -} -export interface ListImplementationsResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse"; - value: Uint8Array; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseAmino { - implementation_message_names: string[]; -} -export interface ListImplementationsResponseAminoMsg { - type: "cosmos-sdk/ListImplementationsResponse"; - value: ListImplementationsResponseAmino; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseSDKType { - implementation_message_names: string[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/reflection/v2alpha1/reflection.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/reflection/v2alpha1/reflection.ts deleted file mode 100644 index 8f20ded2b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/reflection/v2alpha1/reflection.ts +++ /dev/null @@ -1,700 +0,0 @@ -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptor { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn: AuthnDescriptor; - /** chain provides the chain descriptor */ - chain: ChainDescriptor; - /** codec provides metadata information regarding codec related types */ - codec: CodecDescriptor; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration: ConfigurationDescriptor; - /** query_services provides metadata information regarding the available queriable endpoints */ - queryServices: QueryServicesDescriptor; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx: TxDescriptor; -} -export interface AppDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor"; - value: Uint8Array; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorAmino { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn?: AuthnDescriptorAmino; - /** chain provides the chain descriptor */ - chain?: ChainDescriptorAmino; - /** codec provides metadata information regarding codec related types */ - codec?: CodecDescriptorAmino; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration?: ConfigurationDescriptorAmino; - /** query_services provides metadata information regarding the available queriable endpoints */ - query_services?: QueryServicesDescriptorAmino; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx?: TxDescriptorAmino; -} -export interface AppDescriptorAminoMsg { - type: "cosmos-sdk/AppDescriptor"; - value: AppDescriptorAmino; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorSDKType { - authn: AuthnDescriptorSDKType; - chain: ChainDescriptorSDKType; - codec: CodecDescriptorSDKType; - configuration: ConfigurationDescriptorSDKType; - query_services: QueryServicesDescriptorSDKType; - tx: TxDescriptorSDKType; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptor { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs: MsgDescriptor[]; -} -export interface TxDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor"; - value: Uint8Array; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorAmino { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs: MsgDescriptorAmino[]; -} -export interface TxDescriptorAminoMsg { - type: "cosmos-sdk/TxDescriptor"; - value: TxDescriptorAmino; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorSDKType { - fullname: string; - msgs: MsgDescriptorSDKType[]; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptor { - /** sign_modes defines the supported signature algorithm */ - signModes: SigningModeDescriptor[]; -} -export interface AuthnDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor"; - value: Uint8Array; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorAmino { - /** sign_modes defines the supported signature algorithm */ - sign_modes: SigningModeDescriptorAmino[]; -} -export interface AuthnDescriptorAminoMsg { - type: "cosmos-sdk/AuthnDescriptor"; - value: AuthnDescriptorAmino; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorSDKType { - sign_modes: SigningModeDescriptorSDKType[]; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptor { - /** name defines the unique name of the signing mode */ - name: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authnInfoProviderMethodFullname: string; -} -export interface SigningModeDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor"; - value: Uint8Array; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorAmino { - /** name defines the unique name of the signing mode */ - name: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authn_info_provider_method_fullname: string; -} -export interface SigningModeDescriptorAminoMsg { - type: "cosmos-sdk/SigningModeDescriptor"; - value: SigningModeDescriptorAmino; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorSDKType { - name: string; - number: number; - authn_info_provider_method_fullname: string; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptor { - /** id is the chain id */ - id: string; -} -export interface ChainDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor"; - value: Uint8Array; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorAmino { - /** id is the chain id */ - id: string; -} -export interface ChainDescriptorAminoMsg { - type: "cosmos-sdk/ChainDescriptor"; - value: ChainDescriptorAmino; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorSDKType { - id: string; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptor { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces: InterfaceDescriptor[]; -} -export interface CodecDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor"; - value: Uint8Array; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorAmino { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces: InterfaceDescriptorAmino[]; -} -export interface CodecDescriptorAminoMsg { - type: "cosmos-sdk/CodecDescriptor"; - value: CodecDescriptorAmino; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorSDKType { - interfaces: InterfaceDescriptorSDKType[]; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptor { - /** fullname is the name of the interface */ - fullname: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interfaceImplementers: InterfaceImplementerDescriptor[]; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor"; - value: Uint8Array; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorAmino { - /** fullname is the name of the interface */ - fullname: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interface_accepting_messages: InterfaceAcceptingMessageDescriptorAmino[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interface_implementers: InterfaceImplementerDescriptorAmino[]; -} -export interface InterfaceDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorSDKType { - fullname: string; - interface_accepting_messages: InterfaceAcceptingMessageDescriptorSDKType[]; - interface_implementers: InterfaceImplementerDescriptorSDKType[]; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptor { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - typeUrl: string; -} -export interface InterfaceImplementerDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor"; - value: Uint8Array; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorAmino { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - type_url: string; -} -export interface InterfaceImplementerDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceImplementerDescriptor"; - value: InterfaceImplementerDescriptorAmino; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorSDKType { - fullname: string; - type_url: string; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptor { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - fieldDescriptorNames: string[]; -} -export interface InterfaceAcceptingMessageDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor"; - value: Uint8Array; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorAmino { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - field_descriptor_names: string[]; -} -export interface InterfaceAcceptingMessageDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor"; - value: InterfaceAcceptingMessageDescriptorAmino; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorSDKType { - fullname: string; - field_descriptor_names: string[]; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptor { - /** bech32_account_address_prefix is the account address prefix */ - bech32AccountAddressPrefix: string; -} -export interface ConfigurationDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor"; - value: Uint8Array; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorAmino { - /** bech32_account_address_prefix is the account address prefix */ - bech32_account_address_prefix: string; -} -export interface ConfigurationDescriptorAminoMsg { - type: "cosmos-sdk/ConfigurationDescriptor"; - value: ConfigurationDescriptorAmino; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorSDKType { - bech32_account_address_prefix: string; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptor { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msgTypeUrl: string; -} -export interface MsgDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor"; - value: Uint8Array; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorAmino { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msg_type_url: string; -} -export interface MsgDescriptorAminoMsg { - type: "cosmos-sdk/MsgDescriptor"; - value: MsgDescriptorAmino; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorSDKType { - msg_type_url: string; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequest {} -export interface GetAuthnDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest"; - value: Uint8Array; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestAmino {} -export interface GetAuthnDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorRequest"; - value: GetAuthnDescriptorRequestAmino; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestSDKType {} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponse { - /** authn describes how to authenticate to the application when sending transactions */ - authn: AuthnDescriptor; -} -export interface GetAuthnDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; - value: Uint8Array; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseAmino { - /** authn describes how to authenticate to the application when sending transactions */ - authn?: AuthnDescriptorAmino; -} -export interface GetAuthnDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorResponse"; - value: GetAuthnDescriptorResponseAmino; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseSDKType { - authn: AuthnDescriptorSDKType; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequest {} -export interface GetChainDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest"; - value: Uint8Array; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestAmino {} -export interface GetChainDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetChainDescriptorRequest"; - value: GetChainDescriptorRequestAmino; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestSDKType {} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponse { - /** chain describes application chain information */ - chain: ChainDescriptor; -} -export interface GetChainDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; - value: Uint8Array; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseAmino { - /** chain describes application chain information */ - chain?: ChainDescriptorAmino; -} -export interface GetChainDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetChainDescriptorResponse"; - value: GetChainDescriptorResponseAmino; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseSDKType { - chain: ChainDescriptorSDKType; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequest {} -export interface GetCodecDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest"; - value: Uint8Array; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestAmino {} -export interface GetCodecDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorRequest"; - value: GetCodecDescriptorRequestAmino; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestSDKType {} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponse { - /** codec describes the application codec such as registered interfaces and implementations */ - codec: CodecDescriptor; -} -export interface GetCodecDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; - value: Uint8Array; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseAmino { - /** codec describes the application codec such as registered interfaces and implementations */ - codec?: CodecDescriptorAmino; -} -export interface GetCodecDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorResponse"; - value: GetCodecDescriptorResponseAmino; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseSDKType { - codec: CodecDescriptorSDKType; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequest {} -export interface GetConfigurationDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest"; - value: Uint8Array; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestAmino {} -export interface GetConfigurationDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorRequest"; - value: GetConfigurationDescriptorRequestAmino; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestSDKType {} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponse { - /** config describes the application's sdk.Config */ - config: ConfigurationDescriptor; -} -export interface GetConfigurationDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; - value: Uint8Array; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseAmino { - /** config describes the application's sdk.Config */ - config?: ConfigurationDescriptorAmino; -} -export interface GetConfigurationDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorResponse"; - value: GetConfigurationDescriptorResponseAmino; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseSDKType { - config: ConfigurationDescriptorSDKType; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequest {} -export interface GetQueryServicesDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestAmino {} -export interface GetQueryServicesDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorRequest"; - value: GetQueryServicesDescriptorRequestAmino; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestSDKType {} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponse { - /** queries provides information on the available queryable services */ - queries: QueryServicesDescriptor; -} -export interface GetQueryServicesDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseAmino { - /** queries provides information on the available queryable services */ - queries?: QueryServicesDescriptorAmino; -} -export interface GetQueryServicesDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorResponse"; - value: GetQueryServicesDescriptorResponseAmino; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseSDKType { - queries: QueryServicesDescriptorSDKType; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequest {} -export interface GetTxDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest"; - value: Uint8Array; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestAmino {} -export interface GetTxDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetTxDescriptorRequest"; - value: GetTxDescriptorRequestAmino; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestSDKType {} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponse { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx: TxDescriptor; -} -export interface GetTxDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; - value: Uint8Array; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseAmino { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx?: TxDescriptorAmino; -} -export interface GetTxDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetTxDescriptorResponse"; - value: GetTxDescriptorResponseAmino; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseSDKType { - tx: TxDescriptorSDKType; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptor { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - queryServices: QueryServiceDescriptor[]; -} -export interface QueryServicesDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor"; - value: Uint8Array; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorAmino { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - query_services: QueryServiceDescriptorAmino[]; -} -export interface QueryServicesDescriptorAminoMsg { - type: "cosmos-sdk/QueryServicesDescriptor"; - value: QueryServicesDescriptorAmino; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorSDKType { - query_services: QueryServiceDescriptorSDKType[]; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptor { - /** fullname is the protobuf fullname of the service descriptor */ - fullname: string; - /** is_module describes if this service is actually exposed by an application's module */ - isModule: boolean; - /** methods provides a list of query service methods */ - methods: QueryMethodDescriptor[]; -} -export interface QueryServiceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor"; - value: Uint8Array; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorAmino { - /** fullname is the protobuf fullname of the service descriptor */ - fullname: string; - /** is_module describes if this service is actually exposed by an application's module */ - is_module: boolean; - /** methods provides a list of query service methods */ - methods: QueryMethodDescriptorAmino[]; -} -export interface QueryServiceDescriptorAminoMsg { - type: "cosmos-sdk/QueryServiceDescriptor"; - value: QueryServiceDescriptorAmino; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorSDKType { - fullname: string; - is_module: boolean; - methods: QueryMethodDescriptorSDKType[]; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptor { - /** name is the protobuf name (not fullname) of the method */ - name: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - fullQueryPath: string; -} -export interface QueryMethodDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor"; - value: Uint8Array; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorAmino { - /** name is the protobuf name (not fullname) of the method */ - name: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - full_query_path: string; -} -export interface QueryMethodDescriptorAminoMsg { - type: "cosmos-sdk/QueryMethodDescriptor"; - value: QueryMethodDescriptorAmino; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorSDKType { - name: string; - full_query_path: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/snapshots/v1beta1/snapshot.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/snapshots/v1beta1/snapshot.ts deleted file mode 100644 index 9dec53c0f..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/snapshots/v1beta1/snapshot.ts +++ /dev/null @@ -1,229 +0,0 @@ -import { Long } from "../../../../helpers"; -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface Snapshot { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Metadata; -} -export interface SnapshotProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.Snapshot"; - value: Uint8Array; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotAmino { - height: string; - format: number; - chunks: number; - hash: Uint8Array; - metadata?: MetadataAmino; -} -export interface SnapshotAminoMsg { - type: "cosmos-sdk/Snapshot"; - value: SnapshotAmino; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotSDKType { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: MetadataSDKType; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface Metadata { - /** SHA-256 chunk hashes */ - chunkHashes: Uint8Array[]; -} -export interface MetadataProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.Metadata"; - value: Uint8Array; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataAmino { - /** SHA-256 chunk hashes */ - chunk_hashes: Uint8Array[]; -} -export interface MetadataAminoMsg { - type: "cosmos-sdk/Metadata"; - value: MetadataAmino; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataSDKType { - chunk_hashes: Uint8Array[]; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItem { - store?: SnapshotStoreItem; - iavl?: SnapshotIAVLItem; - extension?: SnapshotExtensionMeta; - extensionPayload?: SnapshotExtensionPayload; - kv?: SnapshotKVItem; - schema?: SnapshotSchema; -} -export interface SnapshotItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotItem"; - value: Uint8Array; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItemAmino { - store?: SnapshotStoreItemAmino; - iavl?: SnapshotIAVLItemAmino; - extension?: SnapshotExtensionMetaAmino; - extension_payload?: SnapshotExtensionPayloadAmino; - kv?: SnapshotKVItemAmino; - schema?: SnapshotSchemaAmino; -} -export interface SnapshotItemAminoMsg { - type: "cosmos-sdk/SnapshotItem"; - value: SnapshotItemAmino; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItemSDKType { - store?: SnapshotStoreItemSDKType; - iavl?: SnapshotIAVLItemSDKType; - extension?: SnapshotExtensionMetaSDKType; - extension_payload?: SnapshotExtensionPayloadSDKType; - kv?: SnapshotKVItemSDKType; - schema?: SnapshotSchemaSDKType; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItem { - name: string; -} -export interface SnapshotStoreItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotStoreItem"; - value: Uint8Array; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItemAmino { - name: string; -} -export interface SnapshotStoreItemAminoMsg { - type: "cosmos-sdk/SnapshotStoreItem"; - value: SnapshotStoreItemAmino; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItemSDKType { - name: string; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItem { - key: Uint8Array; - value: Uint8Array; - /** version is block height */ - version: Long; - /** height is depth of the tree. */ - height: number; -} -export interface SnapshotIAVLItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotIAVLItem"; - value: Uint8Array; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItemAmino { - key: Uint8Array; - value: Uint8Array; - /** version is block height */ - version: string; - /** height is depth of the tree. */ - height: number; -} -export interface SnapshotIAVLItemAminoMsg { - type: "cosmos-sdk/SnapshotIAVLItem"; - value: SnapshotIAVLItemAmino; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItemSDKType { - key: Uint8Array; - value: Uint8Array; - version: Long; - height: number; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMeta { - name: string; - format: number; -} -export interface SnapshotExtensionMetaProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta"; - value: Uint8Array; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMetaAmino { - name: string; - format: number; -} -export interface SnapshotExtensionMetaAminoMsg { - type: "cosmos-sdk/SnapshotExtensionMeta"; - value: SnapshotExtensionMetaAmino; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMetaSDKType { - name: string; - format: number; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayload { - payload: Uint8Array; -} -export interface SnapshotExtensionPayloadProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload"; - value: Uint8Array; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayloadAmino { - payload: Uint8Array; -} -export interface SnapshotExtensionPayloadAminoMsg { - type: "cosmos-sdk/SnapshotExtensionPayload"; - value: SnapshotExtensionPayloadAmino; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayloadSDKType { - payload: Uint8Array; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItem { - key: Uint8Array; - value: Uint8Array; -} -export interface SnapshotKVItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotKVItem"; - value: Uint8Array; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItemAmino { - key: Uint8Array; - value: Uint8Array; -} -export interface SnapshotKVItemAminoMsg { - type: "cosmos-sdk/SnapshotKVItem"; - value: SnapshotKVItemAmino; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItemSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchema { - keys: Uint8Array[]; -} -export interface SnapshotSchemaProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotSchema"; - value: Uint8Array; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchemaAmino { - keys: Uint8Array[]; -} -export interface SnapshotSchemaAminoMsg { - type: "cosmos-sdk/SnapshotSchema"; - value: SnapshotSchemaAmino; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchemaSDKType { - keys: Uint8Array[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/commit_info.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/commit_info.ts deleted file mode 100644 index ca59c9719..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/commit_info.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { Long } from "../../../../helpers"; -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfo { - version: Long; - storeInfos: StoreInfo[]; -} -export interface CommitInfoProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.CommitInfo"; - value: Uint8Array; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoAmino { - version: string; - store_infos: StoreInfoAmino[]; -} -export interface CommitInfoAminoMsg { - type: "cosmos-sdk/CommitInfo"; - value: CommitInfoAmino; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoSDKType { - version: Long; - store_infos: StoreInfoSDKType[]; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfo { - name: string; - commitId: CommitID; -} -export interface StoreInfoProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.StoreInfo"; - value: Uint8Array; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoAmino { - name: string; - commit_id?: CommitIDAmino; -} -export interface StoreInfoAminoMsg { - type: "cosmos-sdk/StoreInfo"; - value: StoreInfoAmino; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoSDKType { - name: string; - commit_id: CommitIDSDKType; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitID { - version: Long; - hash: Uint8Array; -} -export interface CommitIDProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.CommitID"; - value: Uint8Array; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDAmino { - version: string; - hash: Uint8Array; -} -export interface CommitIDAminoMsg { - type: "cosmos-sdk/CommitID"; - value: CommitIDAmino; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDSDKType { - version: Long; - hash: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/listening.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/listening.ts deleted file mode 100644 index ef76c07c0..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/listening.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPair { - /** the store key for the KVStore this pair originates from */ - storeKey: string; - /** true indicates a delete operation, false indicates a set operation */ - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -export interface StoreKVPairProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.StoreKVPair"; - value: Uint8Array; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairAmino { - /** the store key for the KVStore this pair originates from */ - store_key: string; - /** true indicates a delete operation, false indicates a set operation */ - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -export interface StoreKVPairAminoMsg { - type: "cosmos-sdk/StoreKVPair"; - value: StoreKVPairAmino; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairSDKType { - store_key: string; - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/v1beta1/coin.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/v1beta1/coin.ts deleted file mode 100644 index 64e2475c4..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/base/v1beta1/coin.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface Coin { - denom: string; - amount: string; -} -export interface CoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.Coin"; - value: Uint8Array; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinAmino { - denom: string; - amount: string; -} -export interface CoinAminoMsg { - type: "cosmos-sdk/Coin"; - value: CoinAmino; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinSDKType { - denom: string; - amount: string; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoin { - denom: string; - amount: string; -} -export interface DecCoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecCoin"; - value: Uint8Array; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinAmino { - denom: string; - amount: string; -} -export interface DecCoinAminoMsg { - type: "cosmos-sdk/DecCoin"; - value: DecCoinAmino; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinSDKType { - denom: string; - amount: string; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProto { - int: string; -} -export interface IntProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.IntProto"; - value: Uint8Array; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoAmino { - int: string; -} -export interface IntProtoAminoMsg { - type: "cosmos-sdk/IntProto"; - value: IntProtoAmino; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoSDKType { - int: string; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProto { - dec: string; -} -export interface DecProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecProto"; - value: Uint8Array; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoAmino { - dec: string; -} -export interface DecProtoAminoMsg { - type: "cosmos-sdk/DecProto"; - value: DecProtoAmino; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoSDKType { - dec: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bundle.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bundle.ts deleted file mode 100644 index 66a321de1..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/bundle.ts +++ /dev/null @@ -1,298 +0,0 @@ -import * as _13 from "./app/v1alpha1/config"; -import * as _14 from "./app/v1alpha1/module"; -import * as _15 from "./auth/v1beta1/auth"; -import * as _16 from "./auth/v1beta1/genesis"; -import * as _17 from "./authz/v1beta1/authz"; -import * as _18 from "./authz/v1beta1/event"; -import * as _19 from "./authz/v1beta1/genesis"; -import * as _20 from "./authz/v1beta1/tx"; -import * as _21 from "./bank/v1beta1/authz"; -import * as _22 from "./bank/v1beta1/bank"; -import * as _23 from "./bank/v1beta1/genesis"; -import * as _24 from "./bank/v1beta1/tx"; -import * as _25 from "./base/abci/v1beta1/abci"; -import * as _26 from "./base/kv/v1beta1/kv"; -import * as _27 from "./base/query/v1beta1/pagination"; -import * as _28 from "./base/reflection/v1beta1/reflection"; -import * as _29 from "./base/reflection/v2alpha1/reflection"; -import * as _30 from "./base/snapshots/v1beta1/snapshot"; -import * as _31 from "./base/store/v1beta1/commit_info"; -import * as _32 from "./base/store/v1beta1/listening"; -import * as _33 from "./base/v1beta1/coin"; -import * as _34 from "./capability/v1beta1/capability"; -import * as _35 from "./capability/v1beta1/genesis"; -import * as _36 from "./crisis/v1beta1/genesis"; -import * as _37 from "./crisis/v1beta1/tx"; -import * as _38 from "./crypto/ed25519/keys"; -import * as _39 from "./crypto/hd/v1/hd"; -import * as _40 from "./crypto/keyring/v1/record"; -import * as _41 from "./crypto/multisig/keys"; -import * as _42 from "./crypto/secp256k1/keys"; -import * as _43 from "./crypto/secp256r1/keys"; -import * as _44 from "./distribution/v1beta1/distribution"; -import * as _45 from "./distribution/v1beta1/genesis"; -import * as _46 from "./distribution/v1beta1/tx"; -import * as _47 from "./evidence/v1beta1/evidence"; -import * as _48 from "./evidence/v1beta1/genesis"; -import * as _49 from "./evidence/v1beta1/tx"; -import * as _50 from "./feegrant/v1beta1/feegrant"; -import * as _51 from "./feegrant/v1beta1/genesis"; -import * as _52 from "./feegrant/v1beta1/tx"; -import * as _53 from "./genutil/v1beta1/genesis"; -import * as _54 from "./gov/v1/genesis"; -import * as _55 from "./gov/v1/gov"; -import * as _56 from "./gov/v1/tx"; -import * as _57 from "./gov/v1beta1/genesis"; -import * as _58 from "./gov/v1beta1/gov"; -import * as _59 from "./gov/v1beta1/tx"; -import * as _60 from "./group/v1/events"; -import * as _61 from "./group/v1/genesis"; -import * as _62 from "./group/v1/tx"; -import * as _63 from "./group/v1/types"; -import * as _64 from "./mint/v1beta1/genesis"; -import * as _65 from "./mint/v1beta1/mint"; -import * as _66 from "./msg/v1/msg"; -import * as _67 from "./slashing/v1beta1/msg"; -import * as _68 from "./nft/v1beta1/event"; -import * as _69 from "./nft/v1beta1/genesis"; -import * as _70 from "./nft/v1beta1/nft"; -import * as _71 from "./nft/v1beta1/tx"; -import * as _72 from "./orm/v1/orm"; -import * as _73 from "./orm/v1alpha1/schema"; -import * as _74 from "./params/v1beta1/params"; -import * as _75 from "./slashing/v1beta1/genesis"; -import * as _76 from "./slashing/v1beta1/slashing"; -import * as _77 from "./slashing/v1beta1/tx"; -import * as _78 from "./staking/v1beta1/authz"; -import * as _79 from "./staking/v1beta1/genesis"; -import * as _80 from "./staking/v1beta1/staking"; -import * as _81 from "./staking/v1beta1/tx"; -import * as _82 from "./tx/signing/v1beta1/signing"; -import * as _83 from "./tx/v1beta1/service"; -import * as _84 from "./tx/v1beta1/tx"; -import * as _85 from "./upgrade/v1beta1/tx"; -import * as _86 from "./upgrade/v1beta1/upgrade"; -import * as _87 from "./vesting/v1beta1/tx"; -import * as _88 from "./vesting/v1beta1/vesting"; -export namespace cosmos { - export namespace app { - export const v1alpha1 = { - ..._13, - ..._14, - }; - } - export namespace auth { - export const v1beta1 = { - ..._15, - ..._16, - }; - } - export namespace authz { - export const v1beta1 = { - ..._17, - ..._18, - ..._19, - ..._20, - }; - } - export namespace bank { - export const v1beta1 = { - ..._21, - ..._22, - ..._23, - ..._24, - }; - } - export namespace base { - export namespace abci { - export const v1beta1 = { - ..._25, - }; - } - export namespace kv { - export const v1beta1 = { - ..._26, - }; - } - export namespace query { - export const v1beta1 = { - ..._27, - }; - } - export namespace reflection { - export const v1beta1 = { - ..._28, - }; - export const v2alpha1 = { - ..._29, - }; - } - export namespace snapshots { - export const v1beta1 = { - ..._30, - }; - } - export namespace store { - export const v1beta1 = { - ..._31, - ..._32, - }; - } - export const v1beta1 = { - ..._33, - }; - } - export namespace capability { - export const v1beta1 = { - ..._34, - ..._35, - }; - } - export namespace crisis { - export const v1beta1 = { - ..._36, - ..._37, - }; - } - export namespace crypto { - export const ed25519 = { - ..._38, - }; - export namespace hd { - export const v1 = { - ..._39, - }; - } - export namespace keyring { - export const v1 = { - ..._40, - }; - } - export const multisig = { - ..._41, - }; - export const secp256k1 = { - ..._42, - }; - export const secp256r1 = { - ..._43, - }; - } - export namespace distribution { - export const v1beta1 = { - ..._44, - ..._45, - ..._46, - }; - } - export namespace evidence { - export const v1beta1 = { - ..._47, - ..._48, - ..._49, - }; - } - export namespace feegrant { - export const v1beta1 = { - ..._50, - ..._51, - ..._52, - }; - } - export namespace genutil { - export const v1beta1 = { - ..._53, - }; - } - export namespace gov { - export const v1 = { - ..._54, - ..._55, - ..._56, - }; - export const v1beta1 = { - ..._57, - ..._58, - ..._59, - }; - } - export namespace group { - export const v1 = { - ..._60, - ..._61, - ..._62, - ..._63, - }; - } - export namespace mint { - export const v1beta1 = { - ..._64, - ..._65, - }; - } - export namespace msg { - export const v1 = { - ..._66, - ..._67, - }; - } - export namespace nft { - export const v1beta1 = { - ..._68, - ..._69, - ..._70, - ..._71, - }; - } - export namespace orm { - export const v1 = { - ..._72, - }; - export const v1alpha1 = { - ..._73, - }; - } - export namespace params { - export const v1beta1 = { - ..._74, - }; - } - export namespace slashing { - export const v1beta1 = { - ..._75, - ..._76, - ..._77, - }; - } - export namespace staking { - export const v1beta1 = { - ..._78, - ..._79, - ..._80, - ..._81, - }; - } - export namespace tx { - export namespace signing { - export const v1beta1 = { - ..._82, - }; - } - export const v1beta1 = { - ..._83, - ..._84, - }; - } - export namespace upgrade { - export const v1beta1 = { - ..._85, - ..._86, - }; - } - export namespace vesting { - export const v1beta1 = { - ..._87, - ..._88, - }; - } -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/capability.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/capability.ts deleted file mode 100644 index ba2a4148a..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/capability.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { Long } from "../../../helpers"; -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface Capability { - index: Long; -} -export interface CapabilityProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.Capability"; - value: Uint8Array; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilityAmino { - index: string; -} -export interface CapabilityAminoMsg { - type: "cosmos-sdk/Capability"; - value: CapabilityAmino; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilitySDKType { - index: Long; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface Owner { - module: string; - name: string; -} -export interface OwnerProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.Owner"; - value: Uint8Array; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerAmino { - module: string; - name: string; -} -export interface OwnerAminoMsg { - type: "cosmos-sdk/Owner"; - value: OwnerAmino; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerSDKType { - module: string; - name: string; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwners { - owners: Owner[]; -} -export interface CapabilityOwnersProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.CapabilityOwners"; - value: Uint8Array; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersAmino { - owners: OwnerAmino[]; -} -export interface CapabilityOwnersAminoMsg { - type: "cosmos-sdk/CapabilityOwners"; - value: CapabilityOwnersAmino; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersSDKType { - owners: OwnerSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/genesis.ts deleted file mode 100644 index e6464c132..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/genesis.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { - CapabilityOwners, - CapabilityOwnersAmino, - CapabilityOwnersSDKType, -} from "./capability"; -import { Long } from "../../../helpers"; -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwners { - /** index is the index of the capability owner. */ - index: Long; - /** index_owners are the owners at the given index. */ - indexOwners: CapabilityOwners; -} -export interface GenesisOwnersProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.GenesisOwners"; - value: Uint8Array; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersAmino { - /** index is the index of the capability owner. */ - index: string; - /** index_owners are the owners at the given index. */ - index_owners?: CapabilityOwnersAmino; -} -export interface GenesisOwnersAminoMsg { - type: "cosmos-sdk/GenesisOwners"; - value: GenesisOwnersAmino; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersSDKType { - index: Long; - index_owners: CapabilityOwnersSDKType; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisState { - /** index is the capability global index. */ - index: Long; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners: GenesisOwners[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateAmino { - /** index is the capability global index. */ - index: string; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners: GenesisOwnersAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateSDKType { - index: Long; - owners: GenesisOwnersSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/genesis.ts deleted file mode 100644 index a2c251ed2..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/genesis.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisState { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constantFee: Coin; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateAmino { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constant_fee?: CoinAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateSDKType { - constant_fee: CoinSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/tx.ts deleted file mode 100644 index 50f8fd809..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/tx.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariant { - sender: string; - invariantModuleName: string; - invariantRoute: string; -} -export interface MsgVerifyInvariantProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant"; - value: Uint8Array; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantAmino { - sender: string; - invariant_module_name: string; - invariant_route: string; -} -export interface MsgVerifyInvariantAminoMsg { - type: "cosmos-sdk/MsgVerifyInvariant"; - value: MsgVerifyInvariantAmino; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantSDKType { - sender: string; - invariant_module_name: string; - invariant_route: string; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponse {} -export interface MsgVerifyInvariantResponseProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse"; - value: Uint8Array; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseAmino {} -export interface MsgVerifyInvariantResponseAminoMsg { - type: "cosmos-sdk/MsgVerifyInvariantResponse"; - value: MsgVerifyInvariantResponseAmino; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/ed25519/keys.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/ed25519/keys.ts deleted file mode 100644 index b53aa6f66..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/ed25519/keys.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PubKey"; - value: Uint8Array; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeyAmino { - key: Uint8Array; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PrivKey"; - value: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeyAmino { - key: Uint8Array; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeySDKType { - key: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/hd/v1/hd.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/hd/v1/hd.ts deleted file mode 100644 index cba849387..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/hd/v1/hd.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44Params { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose: number; - /** coin_type is a constant that improves privacy */ - coinType: number; - /** account splits the key space into independent user identities */ - account: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change: boolean; - /** address_index is used as child index in BIP32 derivation */ - addressIndex: number; -} -export interface BIP44ParamsProtoMsg { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params"; - value: Uint8Array; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsAmino { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose: number; - /** coin_type is a constant that improves privacy */ - coin_type: number; - /** account splits the key space into independent user identities */ - account: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change: boolean; - /** address_index is used as child index in BIP32 derivation */ - address_index: number; -} -export interface BIP44ParamsAminoMsg { - type: "cosmos-sdk/BIP44Params"; - value: BIP44ParamsAmino; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsSDKType { - purpose: number; - coin_type: number; - account: number; - change: boolean; - address_index: number; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/keyring/v1/record.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/keyring/v1/record.ts deleted file mode 100644 index 7ef48b72a..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/keyring/v1/record.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - BIP44Params, - BIP44ParamsAmino, - BIP44ParamsSDKType, -} from "../../hd/v1/hd"; -/** Record is used for representing a key in the keyring. */ -export interface Record { - /** name represents a name of Record */ - name: string; - /** pub_key represents a public key in any format */ - pubKey: Any; - /** local stores the public information about a locally stored key */ - local?: Record_Local; - /** ledger stores the public information about a Ledger key */ - ledger?: Record_Ledger; - /** Multi does not store any information. */ - multi?: Record_Multi; - /** Offline does not store any information. */ - offline?: Record_Offline; -} -export interface RecordProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Record"; - value: Uint8Array; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordAmino { - /** name represents a name of Record */ - name: string; - /** pub_key represents a public key in any format */ - pub_key?: AnyAmino; - /** local stores the public information about a locally stored key */ - local?: Record_LocalAmino; - /** ledger stores the public information about a Ledger key */ - ledger?: Record_LedgerAmino; - /** Multi does not store any information. */ - multi?: Record_MultiAmino; - /** Offline does not store any information. */ - offline?: Record_OfflineAmino; -} -export interface RecordAminoMsg { - type: "cosmos-sdk/Record"; - value: RecordAmino; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordSDKType { - name: string; - pub_key: AnySDKType; - local?: Record_LocalSDKType; - ledger?: Record_LedgerSDKType; - multi?: Record_MultiSDKType; - offline?: Record_OfflineSDKType; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_Local { - privKey: Any; - privKeyType: string; -} -export interface Record_LocalProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Local"; - value: Uint8Array; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalAmino { - priv_key?: AnyAmino; - priv_key_type: string; -} -export interface Record_LocalAminoMsg { - type: "cosmos-sdk/Local"; - value: Record_LocalAmino; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalSDKType { - priv_key: AnySDKType; - priv_key_type: string; -} -/** Ledger item */ -export interface Record_Ledger { - path: BIP44Params; -} -export interface Record_LedgerProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger"; - value: Uint8Array; -} -/** Ledger item */ -export interface Record_LedgerAmino { - path?: BIP44ParamsAmino; -} -export interface Record_LedgerAminoMsg { - type: "cosmos-sdk/Ledger"; - value: Record_LedgerAmino; -} -/** Ledger item */ -export interface Record_LedgerSDKType { - path: BIP44ParamsSDKType; -} -/** Multi item */ -export interface Record_Multi {} -export interface Record_MultiProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Multi"; - value: Uint8Array; -} -/** Multi item */ -export interface Record_MultiAmino {} -export interface Record_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: Record_MultiAmino; -} -/** Multi item */ -export interface Record_MultiSDKType {} -/** Offline item */ -export interface Record_Offline {} -export interface Record_OfflineProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Offline"; - value: Uint8Array; -} -/** Offline item */ -export interface Record_OfflineAmino {} -export interface Record_OfflineAminoMsg { - type: "cosmos-sdk/Offline"; - value: Record_OfflineAmino; -} -/** Offline item */ -export interface Record_OfflineSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/multisig/keys.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/multisig/keys.ts deleted file mode 100644 index 32db1d810..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/multisig/keys.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKey { - threshold: number; - publicKeys: Any[]; -} -export interface LegacyAminoPubKeyProtoMsg { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey"; - value: Uint8Array; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeyAmino { - threshold: number; - public_keys: AnyAmino[]; -} -export interface LegacyAminoPubKeyAminoMsg { - type: "cosmos-sdk/LegacyAminoPubKey"; - value: LegacyAminoPubKeyAmino; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeySDKType { - threshold: number; - public_keys: AnySDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/multisig/v1beta1/multisig.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/multisig/v1beta1/multisig.ts deleted file mode 100644 index 1f2addb46..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/multisig/v1beta1/multisig.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignature { - signatures: Uint8Array[]; -} -export interface MultiSignatureProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature"; - value: Uint8Array; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureAmino { - signatures: Uint8Array[]; -} -export interface MultiSignatureAminoMsg { - type: "cosmos-sdk/MultiSignature"; - value: MultiSignatureAmino; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureSDKType { - signatures: Uint8Array[]; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArray { - extraBitsStored: number; - elems: Uint8Array; -} -export interface CompactBitArrayProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray"; - value: Uint8Array; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArrayAmino { - extra_bits_stored: number; - elems: Uint8Array; -} -export interface CompactBitArrayAminoMsg { - type: "cosmos-sdk/CompactBitArray"; - value: CompactBitArrayAmino; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArraySDKType { - extra_bits_stored: number; - elems: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/secp256k1/keys.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/secp256k1/keys.ts deleted file mode 100644 index 350d0e855..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/secp256k1/keys.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PubKey"; - value: Uint8Array; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeyAmino { - key: Uint8Array; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeyAmino { - key: Uint8Array; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeySDKType { - key: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/secp256r1/keys.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/secp256r1/keys.ts deleted file mode 100644 index 909dc35cf..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/crypto/secp256r1/keys.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKey { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PubKey"; - value: Uint8Array; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeyAmino { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key: Uint8Array; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKey { - /** secret number serialized using big-endian encoding */ - secret: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeyAmino { - /** secret number serialized using big-endian encoding */ - secret: Uint8Array; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeySDKType { - secret: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/distribution.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/distribution.ts deleted file mode 100644 index 17b3132cf..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/distribution.ts +++ /dev/null @@ -1,432 +0,0 @@ -import { - DecCoin, - DecCoinAmino, - DecCoinSDKType, - Coin, - CoinAmino, - CoinSDKType, -} from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** Params defines the set of params for the distribution module. */ -export interface Params { - communityTax: string; - baseProposerReward: string; - bonusProposerReward: string; - withdrawAddrEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsAmino { - community_tax: string; - base_proposer_reward: string; - bonus_proposer_reward: string; - withdraw_addr_enabled: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsSDKType { - community_tax: string; - base_proposer_reward: string; - bonus_proposer_reward: string; - withdraw_addr_enabled: boolean; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * 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 - */ -export interface ValidatorHistoricalRewards { - cumulativeRewardRatio: DecCoin[]; - referenceCount: number; -} -export interface ValidatorHistoricalRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * 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 - */ -export interface ValidatorHistoricalRewardsAmino { - cumulative_reward_ratio: DecCoinAmino[]; - reference_count: number; -} -export interface ValidatorHistoricalRewardsAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewards"; - value: ValidatorHistoricalRewardsAmino; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * 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 - */ -export interface ValidatorHistoricalRewardsSDKType { - cumulative_reward_ratio: DecCoinSDKType[]; - reference_count: number; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewards { - rewards: DecCoin[]; - period: Long; -} -export interface ValidatorCurrentRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards"; - value: Uint8Array; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsAmino { - rewards: DecCoinAmino[]; - period: string; -} -export interface ValidatorCurrentRewardsAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewards"; - value: ValidatorCurrentRewardsAmino; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsSDKType { - rewards: DecCoinSDKType[]; - period: Long; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommission { - commission: DecCoin[]; -} -export interface ValidatorAccumulatedCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionAmino { - commission: DecCoinAmino[]; -} -export interface ValidatorAccumulatedCommissionAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommission"; - value: ValidatorAccumulatedCommissionAmino; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionSDKType { - commission: DecCoinSDKType[]; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewards { - rewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards"; - value: Uint8Array; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsAmino { - rewards: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewards"; - value: ValidatorOutstandingRewardsAmino; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsSDKType { - rewards: DecCoinSDKType[]; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEvent { - validatorPeriod: Long; - fraction: string; -} -export interface ValidatorSlashEventProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent"; - value: Uint8Array; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventAmino { - validator_period: string; - fraction: string; -} -export interface ValidatorSlashEventAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvent"; - value: ValidatorSlashEventAmino; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventSDKType { - validator_period: Long; - fraction: string; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEvents { - validatorSlashEvents: ValidatorSlashEvent[]; -} -export interface ValidatorSlashEventsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents"; - value: Uint8Array; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsAmino { - validator_slash_events: ValidatorSlashEventAmino[]; -} -export interface ValidatorSlashEventsAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvents"; - value: ValidatorSlashEventsAmino; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsSDKType { - validator_slash_events: ValidatorSlashEventSDKType[]; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePool { - communityPool: DecCoin[]; -} -export interface FeePoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.FeePool"; - value: Uint8Array; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolAmino { - community_pool: DecCoinAmino[]; -} -export interface FeePoolAminoMsg { - type: "cosmos-sdk/FeePool"; - value: FeePoolAmino; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolSDKType { - community_pool: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposal { - title: string; - description: string; - recipient: string; - amount: Coin[]; -} -export interface CommunityPoolSpendProposalProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalAmino { - title: string; - description: string; - recipient: string; - amount: CoinAmino[]; -} -export interface CommunityPoolSpendProposalAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposal"; - value: CommunityPoolSpendProposalAmino; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalSDKType { - title: string; - description: string; - recipient: string; - amount: CoinSDKType[]; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator 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. - */ -export interface DelegatorStartingInfo { - previousPeriod: Long; - stake: string; - height: Long; -} -export interface DelegatorStartingInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo"; - value: Uint8Array; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator 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. - */ -export interface DelegatorStartingInfoAmino { - previous_period: string; - stake: string; - height: string; -} -export interface DelegatorStartingInfoAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfo"; - value: DelegatorStartingInfoAmino; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator 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. - */ -export interface DelegatorStartingInfoSDKType { - previous_period: Long; - stake: string; - height: Long; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorReward { - validatorAddress: string; - reward: DecCoin[]; -} -export interface DelegationDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward"; - value: Uint8Array; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardAmino { - validator_address: string; - reward: DecCoinAmino[]; -} -export interface DelegationDelegatorRewardAminoMsg { - type: "cosmos-sdk/DelegationDelegatorReward"; - value: DelegationDelegatorRewardAmino; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardSDKType { - validator_address: string; - reward: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDeposit { - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -export interface CommunityPoolSpendProposalWithDepositProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositAmino { - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -export interface CommunityPoolSpendProposalWithDepositAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit"; - value: CommunityPoolSpendProposalWithDepositAmino; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositSDKType { - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/genesis.ts deleted file mode 100644 index e0de5a96d..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/genesis.ts +++ /dev/null @@ -1,331 +0,0 @@ -import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; -import { - ValidatorAccumulatedCommission, - ValidatorAccumulatedCommissionAmino, - ValidatorAccumulatedCommissionSDKType, - ValidatorHistoricalRewards, - ValidatorHistoricalRewardsAmino, - ValidatorHistoricalRewardsSDKType, - ValidatorCurrentRewards, - ValidatorCurrentRewardsAmino, - ValidatorCurrentRewardsSDKType, - DelegatorStartingInfo, - DelegatorStartingInfoAmino, - DelegatorStartingInfoSDKType, - ValidatorSlashEvent, - ValidatorSlashEventAmino, - ValidatorSlashEventSDKType, - Params, - ParamsAmino, - ParamsSDKType, - FeePool, - FeePoolAmino, - FeePoolSDKType, -} from "./distribution"; -import { Long } from "../../../helpers"; -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfo { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdrawAddress: string; -} -export interface DelegatorWithdrawInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo"; - value: Uint8Array; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoAmino { - /** delegator_address is the address of the delegator. */ - delegator_address: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdraw_address: string; -} -export interface DelegatorWithdrawInfoAminoMsg { - type: "cosmos-sdk/DelegatorWithdrawInfo"; - value: DelegatorWithdrawInfoAmino; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoSDKType { - delegator_address: string; - withdraw_address: string; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstandingRewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord"; - value: Uint8Array; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstanding_rewards: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewardsRecord"; - value: ValidatorOutstandingRewardsRecordAmino; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordSDKType { - validator_address: string; - outstanding_rewards: DecCoinSDKType[]; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated: ValidatorAccumulatedCommission; -} -export interface ValidatorAccumulatedCommissionRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated?: ValidatorAccumulatedCommissionAmino; -} -export interface ValidatorAccumulatedCommissionRecordAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord"; - value: ValidatorAccumulatedCommissionRecordAmino; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordSDKType { - validator_address: string; - accumulated: ValidatorAccumulatedCommissionSDKType; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** period defines the period the historical rewards apply to. */ - period: Long; - /** rewards defines the historical rewards of a validator. */ - rewards: ValidatorHistoricalRewards; -} -export interface ValidatorHistoricalRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** period defines the period the historical rewards apply to. */ - period: string; - /** rewards defines the historical rewards of a validator. */ - rewards?: ValidatorHistoricalRewardsAmino; -} -export interface ValidatorHistoricalRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewardsRecord"; - value: ValidatorHistoricalRewardsRecordAmino; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordSDKType { - validator_address: string; - period: Long; - rewards: ValidatorHistoricalRewardsSDKType; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** rewards defines the current rewards of a validator. */ - rewards: ValidatorCurrentRewards; -} -export interface ValidatorCurrentRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord"; - value: Uint8Array; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** rewards defines the current rewards of a validator. */ - rewards?: ValidatorCurrentRewardsAmino; -} -export interface ValidatorCurrentRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewardsRecord"; - value: ValidatorCurrentRewardsRecordAmino; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordSDKType { - validator_address: string; - rewards: ValidatorCurrentRewardsSDKType; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecord { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** starting_info defines the starting info of a delegator. */ - startingInfo: DelegatorStartingInfo; -} -export interface DelegatorStartingInfoRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord"; - value: Uint8Array; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordAmino { - /** delegator_address is the address of the delegator. */ - delegator_address: string; - /** validator_address is the address of the validator. */ - validator_address: string; - /** starting_info defines the starting info of a delegator. */ - starting_info?: DelegatorStartingInfoAmino; -} -export interface DelegatorStartingInfoRecordAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfoRecord"; - value: DelegatorStartingInfoRecordAmino; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordSDKType { - delegator_address: string; - validator_address: string; - starting_info: DelegatorStartingInfoSDKType; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** height defines the block height at which the slash event occured. */ - height: Long; - /** period is the period of the slash event. */ - period: Long; - /** validator_slash_event describes the slash event. */ - validatorSlashEvent: ValidatorSlashEvent; -} -export interface ValidatorSlashEventRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord"; - value: Uint8Array; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** height defines the block height at which the slash event occured. */ - height: string; - /** period is the period of the slash event. */ - period: string; - /** validator_slash_event describes the slash event. */ - validator_slash_event?: ValidatorSlashEventAmino; -} -export interface ValidatorSlashEventRecordAminoMsg { - type: "cosmos-sdk/ValidatorSlashEventRecord"; - value: ValidatorSlashEventRecordAmino; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordSDKType { - validator_address: string; - height: Long; - period: Long; - validator_slash_event: ValidatorSlashEventSDKType; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** fee_pool defines the fee pool at genesis. */ - feePool: FeePool; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegatorWithdrawInfos: DelegatorWithdrawInfo[]; - /** fee_pool defines the previous proposer at genesis. */ - previousProposer: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstandingRewards: ValidatorOutstandingRewardsRecord[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validatorCurrentRewards: ValidatorCurrentRewardsRecord[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegatorStartingInfos: DelegatorStartingInfoRecord[]; - /** fee_pool defines the validator slash events at genesis. */ - validatorSlashEvents: ValidatorSlashEventRecord[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** fee_pool defines the fee pool at genesis. */ - fee_pool?: FeePoolAmino; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegator_withdraw_infos: DelegatorWithdrawInfoAmino[]; - /** fee_pool defines the previous proposer at genesis. */ - previous_proposer: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstanding_rewards: ValidatorOutstandingRewardsRecordAmino[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordAmino[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validator_historical_rewards: ValidatorHistoricalRewardsRecordAmino[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validator_current_rewards: ValidatorCurrentRewardsRecordAmino[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegator_starting_infos: DelegatorStartingInfoRecordAmino[]; - /** fee_pool defines the validator slash events at genesis. */ - validator_slash_events: ValidatorSlashEventRecordAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - fee_pool: FeePoolSDKType; - delegator_withdraw_infos: DelegatorWithdrawInfoSDKType[]; - previous_proposer: string; - outstanding_rewards: ValidatorOutstandingRewardsRecordSDKType[]; - validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordSDKType[]; - validator_historical_rewards: ValidatorHistoricalRewardsRecordSDKType[]; - validator_current_rewards: ValidatorCurrentRewardsRecordSDKType[]; - delegator_starting_infos: DelegatorStartingInfoRecordSDKType[]; - validator_slash_events: ValidatorSlashEventRecordSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/tx.ts deleted file mode 100644 index 26e82fab9..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/tx.ts +++ /dev/null @@ -1,194 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddress { - delegatorAddress: string; - withdrawAddress: string; -} -export interface MsgSetWithdrawAddressProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; - value: Uint8Array; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressAmino { - delegator_address: string; - withdraw_address: string; -} -export interface MsgSetWithdrawAddressAminoMsg { - type: "cosmos-sdk/MsgModifyWithdrawAddress"; - value: MsgSetWithdrawAddressAmino; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressSDKType { - delegator_address: string; - withdraw_address: string; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponse {} -export interface MsgSetWithdrawAddressResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; - value: Uint8Array; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseAmino {} -export interface MsgSetWithdrawAddressResponseAminoMsg { - type: "cosmos-sdk/MsgSetWithdrawAddressResponse"; - value: MsgSetWithdrawAddressResponseAmino; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseSDKType {} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorReward { - delegatorAddress: string; - validatorAddress: string; -} -export interface MsgWithdrawDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; - value: Uint8Array; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardAmino { - delegator_address: string; - validator_address: string; -} -export interface MsgWithdrawDelegatorRewardAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegationReward"; - value: MsgWithdrawDelegatorRewardAmino; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardSDKType { - delegator_address: string; - validator_address: string; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponse { - amount: Coin[]; -} -export interface MsgWithdrawDelegatorRewardResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; - value: Uint8Array; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseAmino { - amount: CoinAmino[]; -} -export interface MsgWithdrawDelegatorRewardResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse"; - value: MsgWithdrawDelegatorRewardResponseAmino; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommission { - validatorAddress: string; -} -export interface MsgWithdrawValidatorCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; - value: Uint8Array; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionAmino { - validator_address: string; -} -export interface MsgWithdrawValidatorCommissionAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommission"; - value: MsgWithdrawValidatorCommissionAmino; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionSDKType { - validator_address: string; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponse { - amount: Coin[]; -} -export interface MsgWithdrawValidatorCommissionResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; - value: Uint8Array; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseAmino { - amount: CoinAmino[]; -} -export interface MsgWithdrawValidatorCommissionResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse"; - value: MsgWithdrawValidatorCommissionResponseAmino; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPool { - amount: Coin[]; - depositor: string; -} -export interface MsgFundCommunityPoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool"; - value: Uint8Array; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolAmino { - amount: CoinAmino[]; - depositor: string; -} -export interface MsgFundCommunityPoolAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPool"; - value: MsgFundCommunityPoolAmino; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolSDKType { - amount: CoinSDKType[]; - depositor: string; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponse {} -export interface MsgFundCommunityPoolResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; - value: Uint8Array; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseAmino {} -export interface MsgFundCommunityPoolResponseAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPoolResponse"; - value: MsgFundCommunityPoolResponseAmino; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/evidence.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/evidence.ts deleted file mode 100644 index 3803fce2f..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/evidence.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Long } from "../../../helpers"; -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface Equivocation { - height: Long; - time: Date; - power: Long; - consensusAddress: string; -} -export interface EquivocationProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.Equivocation"; - value: Uint8Array; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationAmino { - height: string; - time?: Date; - power: string; - consensus_address: string; -} -export interface EquivocationAminoMsg { - type: "cosmos-sdk/Equivocation"; - value: EquivocationAmino; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationSDKType { - height: Long; - time: Date; - power: Long; - consensus_address: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/genesis.ts deleted file mode 100644 index e0e1f6fad..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/genesis.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisState { - /** evidence defines all the evidence at genesis. */ - evidence: Any[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateAmino { - /** evidence defines all the evidence at genesis. */ - evidence: AnyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateSDKType { - evidence: AnySDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/tx.ts deleted file mode 100644 index 6f94a50f9..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/tx.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidence { - submitter: string; - evidence: Any; -} -export interface MsgSubmitEvidenceProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence"; - value: Uint8Array; -} -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceAmino { - submitter: string; - evidence?: AnyAmino; -} -export interface MsgSubmitEvidenceAminoMsg { - type: "cosmos-sdk/MsgSubmitEvidence"; - value: MsgSubmitEvidenceAmino; -} -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceSDKType { - submitter: string; - evidence: AnySDKType; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponse { - /** hash defines the hash of the evidence. */ - hash: Uint8Array; -} -export interface MsgSubmitEvidenceResponseProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse"; - value: Uint8Array; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseAmino { - /** hash defines the hash of the evidence. */ - hash: Uint8Array; -} -export interface MsgSubmitEvidenceResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitEvidenceResponse"; - value: MsgSubmitEvidenceResponseAmino; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseSDKType { - hash: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/feegrant.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/feegrant.ts deleted file mode 100644 index debb2ad7b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/feegrant.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowance { - /** - * spend_limit specifies the maximum amount of tokens that can be spent - * by this allowance and will be updated as tokens are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spendLimit: Coin[]; - /** expiration specifies an optional time when this allowance expires */ - expiration: Date; -} -export interface BasicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance"; - value: Uint8Array; -} -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceAmino { - /** - * spend_limit specifies the maximum amount of tokens that can be spent - * by this allowance and will be updated as tokens are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spend_limit: CoinAmino[]; - /** expiration specifies an optional time when this allowance expires */ - expiration?: Date; -} -export interface BasicAllowanceAminoMsg { - type: "cosmos-sdk/BasicAllowance"; - value: BasicAllowanceAmino; -} -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceSDKType { - spend_limit: CoinSDKType[]; - expiration: Date; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowance { - /** basic specifies a struct of `BasicAllowance` */ - basic: BasicAllowance; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period: Duration; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - periodSpendLimit: Coin[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - periodCanSpend: Coin[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - periodReset: Date; -} -export interface PeriodicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - value: Uint8Array; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceAmino { - /** basic specifies a struct of `BasicAllowance` */ - basic?: BasicAllowanceAmino; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period?: DurationAmino; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - period_spend_limit: CoinAmino[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - period_can_spend: CoinAmino[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - period_reset?: Date; -} -export interface PeriodicAllowanceAminoMsg { - type: "cosmos-sdk/PeriodicAllowance"; - value: PeriodicAllowanceAmino; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceSDKType { - basic: BasicAllowanceSDKType; - period: DurationSDKType; - period_spend_limit: CoinSDKType[]; - period_can_spend: CoinSDKType[]; - period_reset: Date; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowance { - /** allowance can be any of basic and periodic fee allowance. */ - allowance: Any; - /** allowed_messages are the messages for which the grantee has the access. */ - allowedMessages: string[]; -} -export interface AllowedMsgAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - value: Uint8Array; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceAmino { - /** allowance can be any of basic and periodic fee allowance. */ - allowance?: AnyAmino; - /** allowed_messages are the messages for which the grantee has the access. */ - allowed_messages: string[]; -} -export interface AllowedMsgAllowanceAminoMsg { - type: "cosmos-sdk/AllowedMsgAllowance"; - value: AllowedMsgAllowanceAmino; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceSDKType { - allowance: AnySDKType; - allowed_messages: string[]; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface Grant { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: Any; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.Grant"; - value: Uint8Array; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantSDKType { - granter: string; - grantee: string; - allowance: AnySDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/genesis.ts deleted file mode 100644 index 11589eaeb..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/genesis.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisState { - allowances: Grant[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateAmino { - allowances: GrantAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateSDKType { - allowances: GrantSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/tx.ts deleted file mode 100644 index c7de37a3f..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/tx.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: Any; -} -export interface MsgGrantAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; - value: Uint8Array; -} -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface MsgGrantAllowanceAminoMsg { - type: "cosmos-sdk/MsgGrantAllowance"; - value: MsgGrantAllowanceAmino; -} -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceSDKType { - granter: string; - grantee: string; - allowance: AnySDKType; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponse {} -export interface MsgGrantAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; - value: Uint8Array; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseAmino {} -export interface MsgGrantAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgGrantAllowanceResponse"; - value: MsgGrantAllowanceResponseAmino; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseSDKType {} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface MsgRevokeAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"; - value: Uint8Array; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface MsgRevokeAllowanceAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowance"; - value: MsgRevokeAllowanceAmino; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceSDKType { - granter: string; - grantee: string; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponse {} -export interface MsgRevokeAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; - value: Uint8Array; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseAmino {} -export interface MsgRevokeAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowanceResponse"; - value: MsgRevokeAllowanceResponseAmino; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/genutil/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/genutil/v1beta1/genesis.ts deleted file mode 100644 index e696f4c0b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/genutil/v1beta1/genesis.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisState { - /** gen_txs defines the genesis transactions. */ - genTxs: Uint8Array[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.genutil.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateAmino { - /** gen_txs defines the genesis transactions. */ - gen_txs: Uint8Array[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateSDKType { - gen_txs: Uint8Array[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1/genesis.ts deleted file mode 100644 index b0346552a..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1/genesis.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { - Deposit, - DepositAmino, - DepositSDKType, - Vote, - VoteAmino, - VoteSDKType, - Proposal, - ProposalAmino, - ProposalSDKType, - DepositParams, - DepositParamsAmino, - DepositParamsSDKType, - VotingParams, - VotingParamsAmino, - VotingParamsSDKType, - TallyParams, - TallyParamsAmino, - TallyParamsSDKType, -} from "./gov"; -import { Long } from "../../../helpers"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: Long; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id: string; - /** deposits defines all the deposits present at genesis. */ - deposits: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/v1/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: Long; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1/gov.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1/gov.ts deleted file mode 100644 index 8e5fd9b42..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1/gov.ts +++ /dev/null @@ -1,427 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Long } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption"; - value: Uint8Array; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionAmino { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/v1/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/v1/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - id: Long; - messages: Any[]; - status: ProposalStatus; - /** - * 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. - */ - finalTallyResult: TallyResult; - submitTime: Date; - depositEndTime: Date; - totalDeposit: Coin[]; - votingStartTime: Date; - votingEndTime: Date; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.Proposal"; - value: Uint8Array; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - id: string; - messages: AnyAmino[]; - status: ProposalStatus; - /** - * 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. - */ - final_tally_result?: TallyResultAmino; - submit_time?: Date; - deposit_end_time?: Date; - total_deposit: CoinAmino[]; - voting_start_time?: Date; - voting_end_time?: Date; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/v1/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - id: Long; - messages: AnySDKType[]; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: Date; - deposit_end_time: Date; - total_deposit: CoinSDKType[]; - voting_start_time: Date; - voting_end_time: Date; - metadata: string; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yesCount: string; - abstainCount: string; - noCount: string; - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/v1/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id: string; - voter: string; - options: WeightedVoteOptionAmino[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/v1/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/v1/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/v1/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: string; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold: string; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/v1/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: string; - threshold: string; - veto_threshold: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1/tx.ts deleted file mode 100644 index a1a4a1833..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1/tx.ts +++ /dev/null @@ -1,245 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { - VoteOption, - WeightedVoteOption, - WeightedVoteOptionAmino, - WeightedVoteOptionSDKType, -} from "./gov"; -import { Long } from "../../../helpers"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - messages: Any[]; - initialDeposit: Coin[]; - proposer: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - messages: AnyAmino[]; - initial_deposit: CoinAmino[]; - proposer: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - messages: AnySDKType[]; - initial_deposit: CoinSDKType[]; - proposer: string; - metadata: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: Long; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContent { - /** content is the proposal's content. */ - content: Any; - /** authority must be the gov module address. */ - authority: string; -} -export interface MsgExecLegacyContentProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent"; - value: Uint8Array; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentAmino { - /** content is the proposal's content. */ - content?: AnyAmino; - /** authority must be the gov module address. */ - authority: string; -} -export interface MsgExecLegacyContentAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContent"; - value: MsgExecLegacyContentAmino; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentSDKType { - content: AnySDKType; - authority: string; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponse {} -export interface MsgExecLegacyContentResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse"; - value: Uint8Array; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseAmino {} -export interface MsgExecLegacyContentResponseAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContentResponse"; - value: MsgExecLegacyContentResponseAmino; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseSDKType {} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: Long; - voter: string; - option: VoteOption; - metadata: string; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id: string; - voter: string; - option: VoteOption; - metadata: string; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/v1/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse {} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino {} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeighted { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; - metadata: string; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted"; - value: Uint8Array; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter: string; - options: WeightedVoteOptionAmino[]; - metadata: string; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponse {} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseAmino {} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseSDKType {} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/v1/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse {} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino {} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/v1/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/genesis.ts deleted file mode 100644 index e0b85cea1..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/genesis.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { - Deposit, - DepositAmino, - DepositSDKType, - Vote, - VoteAmino, - VoteSDKType, - Proposal, - ProposalAmino, - ProposalSDKType, - DepositParams, - DepositParamsAmino, - DepositParamsSDKType, - VotingParams, - VotingParamsAmino, - VotingParamsSDKType, - TallyParams, - TallyParamsAmino, - TallyParamsSDKType, -} from "./gov"; -import { Long } from "../../../helpers"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: Long; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id: string; - /** deposits defines all the deposits present at genesis. */ - deposits: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: Long; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/gov.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/gov.ts deleted file mode 100644 index 5133ab902..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/gov.ts +++ /dev/null @@ -1,469 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Long } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption"; - value: Uint8Array; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionAmino { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposal { - title: string; - description: string; -} -export interface TextProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TextProposal"; - value: Uint8Array; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalAmino { - title: string; - description: string; -} -export interface TextProposalAminoMsg { - type: "cosmos-sdk/TextProposal"; - value: TextProposalAmino; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalSDKType { - title: string; - description: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - proposalId: Long; - content: Any; - status: ProposalStatus; - finalTallyResult: TallyResult; - submitTime: Date; - depositEndTime: Date; - totalDeposit: Coin[]; - votingStartTime: Date; - votingEndTime: Date; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Proposal"; - value: Uint8Array; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - proposal_id: string; - content?: AnyAmino; - status: ProposalStatus; - final_tally_result?: TallyResultAmino; - submit_time?: Date; - deposit_end_time?: Date; - total_deposit: CoinAmino[]; - voting_start_time?: Date; - voting_end_time?: Date; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - proposal_id: Long; - content: AnySDKType; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: Date; - deposit_end_time: Date; - total_deposit: CoinSDKType[]; - voting_start_time: Date; - voting_end_time: Date; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yes: string; - abstain: string; - no: string; - noWithVeto: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes: string; - abstain: string; - no: string; - no_with_veto: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes: string; - abstain: string; - no: string; - no_with_veto: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: Long; - voter: string; - /** - * 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. - */ - /** @deprecated */ - option: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options: WeightedVoteOption[]; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id: string; - voter: string; - /** - * 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. - */ - /** @deprecated */ - option: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options: WeightedVoteOptionAmino[]; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - /** @deprecated */ - option: VoteOption; - options: WeightedVoteOptionSDKType[]; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: Uint8Array; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: Uint8Array; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: Uint8Array; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: Uint8Array; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: Uint8Array; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold: Uint8Array; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: Uint8Array; - threshold: Uint8Array; - veto_threshold: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/tx.ts deleted file mode 100644 index 2685458ef..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/tx.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { - VoteOption, - WeightedVoteOption, - WeightedVoteOptionAmino, - WeightedVoteOptionSDKType, -} from "./gov"; -import { Long } from "../../../helpers"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - content: Any; - initialDeposit: Coin[]; - proposer: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal"; - value: Uint8Array; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - content?: AnyAmino; - initial_deposit: CoinAmino[]; - proposer: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - content: AnySDKType; - initial_deposit: CoinSDKType[]; - proposer: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: Long; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: Long; - voter: string; - option: VoteOption; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id: string; - voter: string; - option: VoteOption; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse {} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino {} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeighted { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted"; - value: Uint8Array; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter: string; - options: WeightedVoteOptionAmino[]; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponse {} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseAmino {} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseSDKType {} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse {} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino {} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/events.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/events.ts deleted file mode 100644 index af9763f7b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/events.ts +++ /dev/null @@ -1,210 +0,0 @@ -import { ProposalExecutorResult } from "./types"; -import { Long } from "../../../helpers"; -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -export interface EventCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroup"; - value: Uint8Array; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id: string; -} -export interface EventCreateGroupAminoMsg { - type: "cosmos-sdk/EventCreateGroup"; - value: EventCreateGroupAmino; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupSDKType { - group_id: Long; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -export interface EventUpdateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroup"; - value: Uint8Array; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id: string; -} -export interface EventUpdateGroupAminoMsg { - type: "cosmos-sdk/EventUpdateGroup"; - value: EventUpdateGroupAmino; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupSDKType { - group_id: Long; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy"; - value: Uint8Array; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventCreateGroupPolicy"; - value: EventCreateGroupPolicyAmino; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicySDKType { - address: string; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventUpdateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy"; - value: Uint8Array; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventUpdateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventUpdateGroupPolicy"; - value: EventUpdateGroupPolicyAmino; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicySDKType { - address: string; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -export interface EventSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventSubmitProposal"; - value: Uint8Array; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; -} -export interface EventSubmitProposalAminoMsg { - type: "cosmos-sdk/EventSubmitProposal"; - value: EventSubmitProposalAmino; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalSDKType { - proposal_id: Long; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -export interface EventWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal"; - value: Uint8Array; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; -} -export interface EventWithdrawProposalAminoMsg { - type: "cosmos-sdk/EventWithdrawProposal"; - value: EventWithdrawProposalAmino; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalSDKType { - proposal_id: Long; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVote { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -export interface EventVoteProtoMsg { - typeUrl: "/cosmos.group.v1.EventVote"; - value: Uint8Array; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; -} -export interface EventVoteAminoMsg { - type: "cosmos-sdk/EventVote"; - value: EventVoteAmino; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteSDKType { - proposal_id: Long; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExec { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; - /** result is the proposal execution result. */ - result: ProposalExecutorResult; -} -export interface EventExecProtoMsg { - typeUrl: "/cosmos.group.v1.EventExec"; - value: Uint8Array; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; - /** result is the proposal execution result. */ - result: ProposalExecutorResult; -} -export interface EventExecAminoMsg { - type: "cosmos-sdk/EventExec"; - value: EventExecAmino; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecSDKType { - proposal_id: Long; - result: ProposalExecutorResult; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** address is the account address of the group member. */ - address: string; -} -export interface EventLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventLeaveGroup"; - value: Uint8Array; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupAmino { - /** group_id is the unique ID of the group. */ - group_id: string; - /** address is the account address of the group member. */ - address: string; -} -export interface EventLeaveGroupAminoMsg { - type: "cosmos-sdk/EventLeaveGroup"; - value: EventLeaveGroupAmino; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupSDKType { - group_id: Long; - address: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/genesis.ts deleted file mode 100644 index 88f2dd468..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/genesis.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - GroupInfo, - GroupInfoAmino, - GroupInfoSDKType, - GroupMember, - GroupMemberAmino, - GroupMemberSDKType, - GroupPolicyInfo, - GroupPolicyInfoAmino, - GroupPolicyInfoSDKType, - Proposal, - ProposalAmino, - ProposalSDKType, - Vote, - VoteAmino, - VoteSDKType, -} from "./types"; -import { Long } from "../../../helpers"; -/** GenesisState defines the group module's genesis state. */ -export interface GenesisState { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - groupSeq: Long; - /** groups is the list of groups info. */ - groups: GroupInfo[]; - /** group_members is the list of groups members. */ - groupMembers: GroupMember[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - groupPolicySeq: Long; - /** group_policies is the list of group policies info. */ - groupPolicies: GroupPolicyInfo[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposalSeq: Long; - /** proposals is the list of proposals. */ - proposals: Proposal[]; - /** votes is the list of votes. */ - votes: Vote[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.group.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateAmino { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - group_seq: string; - /** groups is the list of groups info. */ - groups: GroupInfoAmino[]; - /** group_members is the list of groups members. */ - group_members: GroupMemberAmino[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - group_policy_seq: string; - /** group_policies is the list of group policies info. */ - group_policies: GroupPolicyInfoAmino[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposal_seq: string; - /** proposals is the list of proposals. */ - proposals: ProposalAmino[]; - /** votes is the list of votes. */ - votes: VoteAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateSDKType { - group_seq: Long; - groups: GroupInfoSDKType[]; - group_members: GroupMemberSDKType[]; - group_policy_seq: Long; - group_policies: GroupPolicyInfoSDKType[]; - proposal_seq: Long; - proposals: ProposalSDKType[]; - votes: VoteSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/tx.ts deleted file mode 100644 index 549b9e35e..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/tx.ts +++ /dev/null @@ -1,778 +0,0 @@ -import { Member, MemberAmino, MemberSDKType, VoteOption } from "./types"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** Exec defines modes of execution of a proposal on creation or on new vote. */ -export enum Exec { - /** - * EXEC_UNSPECIFIED - An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - */ - EXEC_UNSPECIFIED = 0, - /** - * EXEC_TRY - Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - */ - EXEC_TRY = 1, - UNRECOGNIZED = -1, -} -export const ExecSDKType = Exec; -export const ExecAmino = Exec; -export function execFromJSON(object: any): Exec { - switch (object) { - case 0: - case "EXEC_UNSPECIFIED": - return Exec.EXEC_UNSPECIFIED; - case 1: - case "EXEC_TRY": - return Exec.EXEC_TRY; - case -1: - case "UNRECOGNIZED": - default: - return Exec.UNRECOGNIZED; - } -} -export function execToJSON(object: Exec): string { - switch (object) { - case Exec.EXEC_UNSPECIFIED: - return "EXEC_UNSPECIFIED"; - case Exec.EXEC_TRY: - return "EXEC_TRY"; - case Exec.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroup { - /** admin is the account address of the group admin. */ - admin: string; - /** members defines the group members. */ - members: Member[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; -} -export interface MsgCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroup"; - value: Uint8Array; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** members defines the group members. */ - members: MemberAmino[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; -} -export interface MsgCreateGroupAminoMsg { - type: "cosmos-sdk/MsgCreateGroup"; - value: MsgCreateGroupAmino; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupSDKType { - admin: string; - members: MemberSDKType[]; - metadata: string; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponse { - /** group_id is the unique ID of the newly created group. */ - groupId: Long; -} -export interface MsgCreateGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse"; - value: Uint8Array; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseAmino { - /** group_id is the unique ID of the newly created group. */ - group_id: string; -} -export interface MsgCreateGroupResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupResponse"; - value: MsgCreateGroupResponseAmino; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseSDKType { - group_id: Long; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembers { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - memberUpdates: Member[]; -} -export interface MsgUpdateGroupMembersProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers"; - value: Uint8Array; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - member_updates: MemberAmino[]; -} -export interface MsgUpdateGroupMembersAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembers"; - value: MsgUpdateGroupMembersAmino; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersSDKType { - admin: string; - group_id: Long; - member_updates: MemberSDKType[]; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponse {} -export interface MsgUpdateGroupMembersResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseAmino {} -export interface MsgUpdateGroupMembersResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembersResponse"; - value: MsgUpdateGroupMembersResponseAmino; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseSDKType {} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdmin { - /** admin is the current account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** new_admin is the group new admin account address. */ - newAdmin: string; -} -export interface MsgUpdateGroupAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminAmino { - /** admin is the current account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** new_admin is the group new admin account address. */ - new_admin: string; -} -export interface MsgUpdateGroupAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdmin"; - value: MsgUpdateGroupAdminAmino; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminSDKType { - admin: string; - group_id: Long; - new_admin: string; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponse {} -export interface MsgUpdateGroupAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseAmino {} -export interface MsgUpdateGroupAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdminResponse"; - value: MsgUpdateGroupAdminResponseAmino; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseSDKType {} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** metadata is the updated group's metadata. */ - metadata: string; -} -export interface MsgUpdateGroupMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** metadata is the updated group's metadata. */ - metadata: string; -} -export interface MsgUpdateGroupMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadata"; - value: MsgUpdateGroupMetadataAmino; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataSDKType { - admin: string; - group_id: Long; - metadata: string; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponse {} -export interface MsgUpdateGroupMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseAmino {} -export interface MsgUpdateGroupMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadataResponse"; - value: MsgUpdateGroupMetadataResponseAmino; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseSDKType {} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata: string; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; -} -export interface MsgCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; - value: Uint8Array; -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicyAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicy"; - value: MsgCreateGroupPolicyAmino; -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicySDKType { - admin: string; - group_id: Long; - metadata: string; - decision_policy: AnySDKType; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponse { - /** address is the account address of the newly created group policy. */ - address: string; -} -export interface MsgCreateGroupPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseAmino { - /** address is the account address of the newly created group policy. */ - address: string; -} -export interface MsgCreateGroupPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicyResponse"; - value: MsgCreateGroupPolicyResponseAmino; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseSDKType { - address: string; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdmin { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of the group policy. */ - address: string; - /** new_admin is the new group policy admin. */ - newAdmin: string; -} -export interface MsgUpdateGroupPolicyAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of the group policy. */ - address: string; - /** new_admin is the new group policy admin. */ - new_admin: string; -} -export interface MsgUpdateGroupPolicyAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; - value: MsgUpdateGroupPolicyAdminAmino; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminSDKType { - admin: string; - address: string; - new_admin: string; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicy { - /** admin is the account address of the group and group policy admin. */ - admin: string; - /** members defines the group members. */ - members: Member[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - groupMetadata: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - groupPolicyMetadata: string; - /** group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin. */ - groupPolicyAsAdmin: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; -} -export interface MsgCreateGroupWithPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy"; - value: Uint8Array; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicyAmino { - /** admin is the account address of the group and group policy admin. */ - admin: string; - /** members defines the group members. */ - members: MemberAmino[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - group_metadata: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - group_policy_metadata: string; - /** group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin. */ - group_policy_as_admin: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupWithPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicy"; - value: MsgCreateGroupWithPolicyAmino; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicySDKType { - admin: string; - members: MemberSDKType[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: AnySDKType; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponse { - /** group_id is the unique ID of the newly created group with policy. */ - groupId: Long; - /** group_policy_address is the account address of the newly created group policy. */ - groupPolicyAddress: string; -} -export interface MsgCreateGroupWithPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseAmino { - /** group_id is the unique ID of the newly created group with policy. */ - group_id: string; - /** group_policy_address is the account address of the newly created group policy. */ - group_policy_address: string; -} -export interface MsgCreateGroupWithPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse"; - value: MsgCreateGroupWithPolicyResponseAmino; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseSDKType { - group_id: Long; - group_policy_address: string; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponse {} -export interface MsgUpdateGroupPolicyAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseAmino {} -export interface MsgUpdateGroupPolicyAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse"; - value: MsgUpdateGroupPolicyAdminResponseAmino; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseSDKType {} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** decision_policy is the updated group policy's decision policy. */ - decisionPolicy: Any; -} -export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** decision_policy is the updated group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgUpdateGroupPolicyDecisionPolicyAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicy"; - value: MsgUpdateGroupPolicyDecisionPolicyAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicySDKType { - admin: string; - address: string; - decision_policy: AnySDKType; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponse {} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAmino {} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: MsgUpdateGroupPolicyDecisionPolicyResponseAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType {} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** metadata is the updated group policy metadata. */ - metadata: string; -} -export interface MsgUpdateGroupPolicyMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** metadata is the updated group policy metadata. */ - metadata: string; -} -export interface MsgUpdateGroupPolicyMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; - value: MsgUpdateGroupPolicyMetadataAmino; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataSDKType { - admin: string; - address: string; - metadata: string; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponse {} -export interface MsgUpdateGroupPolicyMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseAmino {} -export interface MsgUpdateGroupPolicyMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse"; - value: MsgUpdateGroupPolicyMetadataResponseAmino; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseSDKType {} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposal { - /** address is the account address of group policy. */ - address: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec: Exec; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalAmino { - /** address is the account address of group policy. */ - address: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: AnyAmino[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec: Exec; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/group/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalSDKType { - address: string; - proposers: string[]; - metadata: string; - messages: AnySDKType[]; - exec: Exec; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposal { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address: string; -} -export interface MsgWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal"; - value: Uint8Array; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address: string; -} -export interface MsgWithdrawProposalAminoMsg { - type: "cosmos-sdk/group/MsgWithdrawProposal"; - value: MsgWithdrawProposalAmino; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalSDKType { - proposal_id: Long; - address: string; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponse {} -export interface MsgWithdrawProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse"; - value: Uint8Array; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseAmino {} -export interface MsgWithdrawProposalResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawProposalResponse"; - value: MsgWithdrawProposalResponseAmino; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseSDKType {} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVote { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** voter is the voter account address. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec: Exec; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; - /** voter is the voter account address. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec: Exec; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/group/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; - exec: Exec; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponse {} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseAmino {} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExec { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** signer is the account address used to execute the proposal. */ - signer: string; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExec"; - value: Uint8Array; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; - /** signer is the account address used to execute the proposal. */ - signer: string; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/group/MsgExec"; - value: MsgExecAmino; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecSDKType { - proposal_id: Long; - signer: string; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponse {} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseAmino {} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseSDKType {} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroup { - /** address is the account address of the group member. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: Long; -} -export interface MsgLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup"; - value: Uint8Array; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupAmino { - /** address is the account address of the group member. */ - address: string; - /** group_id is the unique ID of the group. */ - group_id: string; -} -export interface MsgLeaveGroupAminoMsg { - type: "cosmos-sdk/group/MsgLeaveGroup"; - value: MsgLeaveGroupAmino; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupSDKType { - address: string; - group_id: Long; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponse {} -export interface MsgLeaveGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse"; - value: Uint8Array; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseAmino {} -export interface MsgLeaveGroupResponseAminoMsg { - type: "cosmos-sdk/MsgLeaveGroupResponse"; - value: MsgLeaveGroupResponseAmino; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/types.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/types.ts deleted file mode 100644 index 4f28fc180..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/group/v1/types.ts +++ /dev/null @@ -1,761 +0,0 @@ -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus defines proposal statuses. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when persisted. */ - PROPOSAL_STATUS_SUBMITTED = 1, - /** PROPOSAL_STATUS_CLOSED - Final status of a proposal when the final tally was executed. */ - PROPOSAL_STATUS_CLOSED = 2, - /** PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group was modified before the final tally. */ - PROPOSAL_STATUS_ABORTED = 3, - /** - * PROPOSAL_STATUS_WITHDRAWN - A proposal can be deleted before the voting start time by the owner. When this happens the final status - * is Withdrawn. - */ - PROPOSAL_STATUS_WITHDRAWN = 4, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_SUBMITTED": - return ProposalStatus.PROPOSAL_STATUS_SUBMITTED; - case 2: - case "PROPOSAL_STATUS_CLOSED": - return ProposalStatus.PROPOSAL_STATUS_CLOSED; - case 3: - case "PROPOSAL_STATUS_ABORTED": - return ProposalStatus.PROPOSAL_STATUS_ABORTED; - case 4: - case "PROPOSAL_STATUS_WITHDRAWN": - return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_SUBMITTED: - return "PROPOSAL_STATUS_SUBMITTED"; - case ProposalStatus.PROPOSAL_STATUS_CLOSED: - return "PROPOSAL_STATUS_CLOSED"; - case ProposalStatus.PROPOSAL_STATUS_ABORTED: - return "PROPOSAL_STATUS_ABORTED"; - case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN: - return "PROPOSAL_STATUS_WITHDRAWN"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalResult defines types of proposal results. */ -export enum ProposalResult { - /** PROPOSAL_RESULT_UNSPECIFIED - An empty value is invalid and not allowed */ - PROPOSAL_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_RESULT_UNFINALIZED - Until a final tally has happened the status is unfinalized */ - PROPOSAL_RESULT_UNFINALIZED = 1, - /** PROPOSAL_RESULT_ACCEPTED - Final result of the tally */ - PROPOSAL_RESULT_ACCEPTED = 2, - /** PROPOSAL_RESULT_REJECTED - Final result of the tally */ - PROPOSAL_RESULT_REJECTED = 3, - UNRECOGNIZED = -1, -} -export const ProposalResultSDKType = ProposalResult; -export const ProposalResultAmino = ProposalResult; -export function proposalResultFromJSON(object: any): ProposalResult { - switch (object) { - case 0: - case "PROPOSAL_RESULT_UNSPECIFIED": - return ProposalResult.PROPOSAL_RESULT_UNSPECIFIED; - case 1: - case "PROPOSAL_RESULT_UNFINALIZED": - return ProposalResult.PROPOSAL_RESULT_UNFINALIZED; - case 2: - case "PROPOSAL_RESULT_ACCEPTED": - return ProposalResult.PROPOSAL_RESULT_ACCEPTED; - case 3: - case "PROPOSAL_RESULT_REJECTED": - return ProposalResult.PROPOSAL_RESULT_REJECTED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalResult.UNRECOGNIZED; - } -} -export function proposalResultToJSON(object: ProposalResult): string { - switch (object) { - case ProposalResult.PROPOSAL_RESULT_UNSPECIFIED: - return "PROPOSAL_RESULT_UNSPECIFIED"; - case ProposalResult.PROPOSAL_RESULT_UNFINALIZED: - return "PROPOSAL_RESULT_UNFINALIZED"; - case ProposalResult.PROPOSAL_RESULT_ACCEPTED: - return "PROPOSAL_RESULT_ACCEPTED"; - case ProposalResult.PROPOSAL_RESULT_REJECTED: - return "PROPOSAL_RESULT_REJECTED"; - case ProposalResult.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalExecutorResult defines types of proposal executor results. */ -export enum ProposalExecutorResult { - /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ - PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1, - /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ - PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2, - /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ - PROPOSAL_EXECUTOR_RESULT_FAILURE = 3, - UNRECOGNIZED = -1, -} -export const ProposalExecutorResultSDKType = ProposalExecutorResult; -export const ProposalExecutorResultAmino = ProposalExecutorResult; -export function proposalExecutorResultFromJSON( - object: any -): ProposalExecutorResult { - switch (object) { - case 0: - case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED; - case 1: - case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN; - case 2: - case "PROPOSAL_EXECUTOR_RESULT_SUCCESS": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS; - case 3: - case "PROPOSAL_EXECUTOR_RESULT_FAILURE": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE; - case -1: - case "UNRECOGNIZED": - default: - return ProposalExecutorResult.UNRECOGNIZED; - } -} -export function proposalExecutorResultToJSON( - object: ProposalExecutorResult -): string { - switch (object) { - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: - return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: - return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS: - return "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE: - return "PROPOSAL_EXECUTOR_RESULT_FAILURE"; - case ProposalExecutorResult.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface Member { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata to attached to the member. */ - metadata: string; - /** added_at is a timestamp specifying when a member was added. */ - addedAt: Date; -} -export interface MemberProtoMsg { - typeUrl: "/cosmos.group.v1.Member"; - value: Uint8Array; -} -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface MemberAmino { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata to attached to the member. */ - metadata: string; - /** added_at is a timestamp specifying when a member was added. */ - added_at?: Date; -} -export interface MemberAminoMsg { - type: "cosmos-sdk/Member"; - value: MemberAmino; -} -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface MemberSDKType { - address: string; - weight: string; - metadata: string; - added_at: Date; -} -/** Members defines a repeated slice of Member objects. */ -export interface Members { - /** members is the list of members. */ - members: Member[]; -} -export interface MembersProtoMsg { - typeUrl: "/cosmos.group.v1.Members"; - value: Uint8Array; -} -/** Members defines a repeated slice of Member objects. */ -export interface MembersAmino { - /** members is the list of members. */ - members: MemberAmino[]; -} -export interface MembersAminoMsg { - type: "cosmos-sdk/Members"; - value: MembersAmino; -} -/** Members defines a repeated slice of Member objects. */ -export interface MembersSDKType { - members: MemberSDKType[]; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicy { - /** threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. */ - threshold: string; - /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; -} -export interface ThresholdDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy"; - value: Uint8Array; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicyAmino { - /** threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. */ - threshold: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface ThresholdDecisionPolicyAminoMsg { - type: "cosmos-sdk/ThresholdDecisionPolicy"; - value: ThresholdDecisionPolicyAmino; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicySDKType { - threshold: string; - windows: DecisionPolicyWindowsSDKType; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicy { - /** percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. */ - percentage: string; - /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; -} -export interface PercentageDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy"; - value: Uint8Array; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicyAmino { - /** percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. */ - percentage: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface PercentageDecisionPolicyAminoMsg { - type: "cosmos-sdk/PercentageDecisionPolicy"; - value: PercentageDecisionPolicyAmino; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicySDKType { - percentage: string; - windows: DecisionPolicyWindowsSDKType; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindows { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - votingPeriod: Duration; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - minExecutionPeriod: Duration; -} -export interface DecisionPolicyWindowsProtoMsg { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows"; - value: Uint8Array; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsAmino { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - voting_period?: DurationAmino; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - min_execution_period?: DurationAmino; -} -export interface DecisionPolicyWindowsAminoMsg { - type: "cosmos-sdk/DecisionPolicyWindows"; - value: DecisionPolicyWindowsAmino; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsSDKType { - voting_period: DurationSDKType; - min_execution_period: DurationSDKType; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfo { - /** id is the unique ID of the group. */ - id: Long; - /** admin is the account address of the group's admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version: Long; - /** total_weight is the sum of the group members' weights. */ - totalWeight: string; - /** created_at is a timestamp specifying when a group was created. */ - createdAt: Date; -} -export interface GroupInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupInfo"; - value: Uint8Array; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoAmino { - /** id is the unique ID of the group. */ - id: string; - /** admin is the account address of the group's admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version: string; - /** total_weight is the sum of the group members' weights. */ - total_weight: string; - /** created_at is a timestamp specifying when a group was created. */ - created_at?: Date; -} -export interface GroupInfoAminoMsg { - type: "cosmos-sdk/GroupInfo"; - value: GroupInfoAmino; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoSDKType { - id: Long; - admin: string; - metadata: string; - version: Long; - total_weight: string; - created_at: Date; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMember { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** member is the member data. */ - member: Member; -} -export interface GroupMemberProtoMsg { - typeUrl: "/cosmos.group.v1.GroupMember"; - value: Uint8Array; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberAmino { - /** group_id is the unique ID of the group. */ - group_id: string; - /** member is the member data. */ - member?: MemberAmino; -} -export interface GroupMemberAminoMsg { - type: "cosmos-sdk/GroupMember"; - value: GroupMemberAmino; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberSDKType { - group_id: Long; - member: MemberSDKType; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfo { - /** address is the account address of group policy. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** admin is the account address of the group admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version: Long; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; - /** created_at is a timestamp specifying when a group policy was created. */ - createdAt: Date; -} -export interface GroupPolicyInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo"; - value: Uint8Array; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoAmino { - /** address is the account address of group policy. */ - address: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** admin is the account address of the group admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; - /** created_at is a timestamp specifying when a group policy was created. */ - created_at?: Date; -} -export interface GroupPolicyInfoAminoMsg { - type: "cosmos-sdk/GroupPolicyInfo"; - value: GroupPolicyInfoAmino; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoSDKType { - address: string; - group_id: Long; - admin: string; - metadata: string; - version: Long; - decision_policy: AnySDKType; - created_at: Date; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface Proposal { - /** id is the unique id of the proposal. */ - id: Long; - /** address is the account address of group policy. */ - address: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** proposers are the account addresses of the proposers. */ - proposers: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submitTime: Date; - /** - * group_version tracks the version of the group that this proposal corresponds to. - * When group membership is changed, existing proposals from previous group versions will become invalid. - */ - groupVersion: Long; - /** - * group_policy_version tracks the version of the group policy that this proposal corresponds to. - * When a decision policy is changed, existing proposals from previous policy versions will become invalid. - */ - groupPolicyVersion: Long; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; - /** - * result is the final result based on the votes and election rule. Initial value is unfinalized. - * The result is persisted so that clients can always rely on this state and not have to replicate the logic. - */ - result: ProposalResult; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option, after tallying. When querying a proposal - * via gRPC, this field is not populated until the proposal's voting period - * has ended. - */ - finalTallyResult: TallyResult; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`, as well - * as `status` and `result` fields will be accordingly updated. - */ - votingPeriodEnd: Date; - /** executor_result is the final result based on the votes and election rule. Initial value is NotRun. */ - executorResult: ProposalExecutorResult; - /** messages is a list of Msgs that will be executed if the proposal passes. */ - messages: Any[]; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.group.v1.Proposal"; - value: Uint8Array; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalAmino { - /** id is the unique id of the proposal. */ - id: string; - /** address is the account address of group policy. */ - address: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** proposers are the account addresses of the proposers. */ - proposers: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submit_time?: Date; - /** - * group_version tracks the version of the group that this proposal corresponds to. - * When group membership is changed, existing proposals from previous group versions will become invalid. - */ - group_version: string; - /** - * group_policy_version tracks the version of the group policy that this proposal corresponds to. - * When a decision policy is changed, existing proposals from previous policy versions will become invalid. - */ - group_policy_version: string; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; - /** - * result is the final result based on the votes and election rule. Initial value is unfinalized. - * The result is persisted so that clients can always rely on this state and not have to replicate the logic. - */ - result: ProposalResult; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option, after tallying. When querying a proposal - * via gRPC, this field is not populated until the proposal's voting period - * has ended. - */ - final_tally_result?: TallyResultAmino; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`, as well - * as `status` and `result` fields will be accordingly updated. - */ - voting_period_end?: Date; - /** executor_result is the final result based on the votes and election rule. Initial value is NotRun. */ - executor_result: ProposalExecutorResult; - /** messages is a list of Msgs that will be executed if the proposal passes. */ - messages: AnyAmino[]; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalSDKType { - id: Long; - address: string; - metadata: string; - proposers: string[]; - submit_time: Date; - group_version: Long; - group_policy_version: Long; - status: ProposalStatus; - result: ProposalResult; - final_tally_result: TallyResultSDKType; - voting_period_end: Date; - executor_result: ProposalExecutorResult; - messages: AnySDKType[]; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResult { - /** yes_count is the weighted sum of yes votes. */ - yesCount: string; - /** abstain_count is the weighted sum of abstainers. */ - abstainCount: string; - /** no is the weighted sum of no votes. */ - noCount: string; - /** no_with_veto_count is the weighted sum of veto. */ - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.group.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultAmino { - /** yes_count is the weighted sum of yes votes. */ - yes_count: string; - /** abstain_count is the weighted sum of abstainers. */ - abstain_count: string; - /** no is the weighted sum of no votes. */ - no_count: string; - /** no_with_veto_count is the weighted sum of veto. */ - no_with_veto_count: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** Vote represents a vote for a proposal. */ -export interface Vote { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** voter is the account address of the voter. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** submit_time is the timestamp when the vote was submitted. */ - submitTime: Date; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.group.v1.Vote"; - value: Uint8Array; -} -/** Vote represents a vote for a proposal. */ -export interface VoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; - /** voter is the account address of the voter. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** submit_time is the timestamp when the vote was submitted. */ - submit_time?: Date; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** Vote represents a vote for a proposal. */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; - submit_time: Date; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/genesis.ts deleted file mode 100644 index 86486d4f8..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/genesis.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { - Minter, - MinterAmino, - MinterSDKType, - Params, - ParamsAmino, - ParamsSDKType, -} from "./mint"; -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisState { - /** minter is a space for holding current inflation information. */ - minter: Minter; - /** params defines all the paramaters of the module. */ - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateAmino { - /** minter is a space for holding current inflation information. */ - minter?: MinterAmino; - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateSDKType { - minter: MinterSDKType; - params: ParamsSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/mint.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/mint.ts deleted file mode 100644 index 765749d6a..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/mint.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { Long } from "../../../helpers"; -/** Minter represents the minting state. */ -export interface Minter { - /** current annual inflation rate */ - inflation: string; - /** current annual expected provisions */ - annualProvisions: string; -} -export interface MinterProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Minter"; - value: Uint8Array; -} -/** Minter represents the minting state. */ -export interface MinterAmino { - /** current annual inflation rate */ - inflation: string; - /** current annual expected provisions */ - annual_provisions: string; -} -export interface MinterAminoMsg { - type: "cosmos-sdk/Minter"; - value: MinterAmino; -} -/** Minter represents the minting state. */ -export interface MinterSDKType { - inflation: string; - annual_provisions: string; -} -/** Params holds parameters for the mint module. */ -export interface Params { - /** type of coin to mint */ - mintDenom: string; - /** maximum annual change in inflation rate */ - inflationRateChange: string; - /** maximum inflation rate */ - inflationMax: string; - /** minimum inflation rate */ - inflationMin: string; - /** goal of percent bonded atoms */ - goalBonded: string; - /** expected blocks per year */ - blocksPerYear: Long; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Params"; - value: Uint8Array; -} -/** Params holds parameters for the mint module. */ -export interface ParamsAmino { - /** type of coin to mint */ - mint_denom: string; - /** maximum annual change in inflation rate */ - inflation_rate_change: string; - /** maximum inflation rate */ - inflation_max: string; - /** minimum inflation rate */ - inflation_min: string; - /** goal of percent bonded atoms */ - goal_bonded: string; - /** expected blocks per year */ - blocks_per_year: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params holds parameters for the mint module. */ -export interface ParamsSDKType { - mint_denom: string; - inflation_rate_change: string; - inflation_max: string; - inflation_min: string; - goal_bonded: string; - blocks_per_year: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/msg/v1/msg.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/msg/v1/msg.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/msg/v1/msg.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/event.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/event.ts deleted file mode 100644 index 621d1862d..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/event.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** EventSend is emitted on Msg/Send */ -export interface EventSend { - classId: string; - id: string; - sender: string; - receiver: string; -} -export interface EventSendProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventSend"; - value: Uint8Array; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendAmino { - class_id: string; - id: string; - sender: string; - receiver: string; -} -export interface EventSendAminoMsg { - type: "cosmos-sdk/EventSend"; - value: EventSendAmino; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** EventMint is emitted on Mint */ -export interface EventMint { - classId: string; - id: string; - owner: string; -} -export interface EventMintProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventMint"; - value: Uint8Array; -} -/** EventMint is emitted on Mint */ -export interface EventMintAmino { - class_id: string; - id: string; - owner: string; -} -export interface EventMintAminoMsg { - type: "cosmos-sdk/EventMint"; - value: EventMintAmino; -} -/** EventMint is emitted on Mint */ -export interface EventMintSDKType { - class_id: string; - id: string; - owner: string; -} -/** EventBurn is emitted on Burn */ -export interface EventBurn { - classId: string; - id: string; - owner: string; -} -export interface EventBurnProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventBurn"; - value: Uint8Array; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnAmino { - class_id: string; - id: string; - owner: string; -} -export interface EventBurnAminoMsg { - type: "cosmos-sdk/EventBurn"; - value: EventBurnAmino; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnSDKType { - class_id: string; - id: string; - owner: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/genesis.ts deleted file mode 100644 index e57f69bd4..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/genesis.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { - Class, - ClassAmino, - ClassSDKType, - NFT, - NFTAmino, - NFTSDKType, -} from "./nft"; -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisState { - /** class defines the class of the nft type. */ - classes: Class[]; - entries: Entry[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateAmino { - /** class defines the class of the nft type. */ - classes: ClassAmino[]; - entries: EntryAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateSDKType { - classes: ClassSDKType[]; - entries: EntrySDKType[]; -} -/** Entry Defines all nft owned by a person */ -export interface Entry { - /** owner is the owner address of the following nft */ - owner: string; - /** nfts is a group of nfts of the same owner */ - nfts: NFT[]; -} -export interface EntryProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.Entry"; - value: Uint8Array; -} -/** Entry Defines all nft owned by a person */ -export interface EntryAmino { - /** owner is the owner address of the following nft */ - owner: string; - /** nfts is a group of nfts of the same owner */ - nfts: NFTAmino[]; -} -export interface EntryAminoMsg { - type: "cosmos-sdk/Entry"; - value: EntryAmino; -} -/** Entry Defines all nft owned by a person */ -export interface EntrySDKType { - owner: string; - nfts: NFTSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/nft.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/nft.ts deleted file mode 100644 index b2fb108c6..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/nft.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** Class defines the class of the nft type. */ -export interface Class { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol: string; - /** description is a brief description of nft classification. Optional */ - description: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uriHash: string; - /** data is the app specific metadata of the NFT class. Optional */ - data: Any; -} -export interface ClassProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.Class"; - value: Uint8Array; -} -/** Class defines the class of the nft type. */ -export interface ClassAmino { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol: string; - /** description is a brief description of nft classification. Optional */ - description: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uri_hash: string; - /** data is the app specific metadata of the NFT class. Optional */ - data?: AnyAmino; -} -export interface ClassAminoMsg { - type: "cosmos-sdk/Class"; - value: ClassAmino; -} -/** Class defines the class of the nft type. */ -export interface ClassSDKType { - id: string; - name: string; - symbol: string; - description: string; - uri: string; - uri_hash: string; - data: AnySDKType; -} -/** NFT defines the NFT. */ -export interface NFT { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - classId: string; - /** id is a unique identifier of the NFT */ - id: string; - /** uri for the NFT metadata stored off chain */ - uri: string; - /** uri_hash is a hash of the document pointed by uri */ - uriHash: string; - /** data is an app specific data of the NFT. Optional */ - data: Any; -} -export interface NFTProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.NFT"; - value: Uint8Array; -} -/** NFT defines the NFT. */ -export interface NFTAmino { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - class_id: string; - /** id is a unique identifier of the NFT */ - id: string; - /** uri for the NFT metadata stored off chain */ - uri: string; - /** uri_hash is a hash of the document pointed by uri */ - uri_hash: string; - /** data is an app specific data of the NFT. Optional */ - data?: AnyAmino; -} -export interface NFTAminoMsg { - type: "cosmos-sdk/NFT"; - value: NFTAmino; -} -/** NFT defines the NFT. */ -export interface NFTSDKType { - class_id: string; - id: string; - uri: string; - uri_hash: string; - data: AnySDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/tx.ts deleted file mode 100644 index a5af7a516..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/tx.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSend { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - classId: string; - /** id defines the unique identification of nft */ - id: string; - /** sender is the address of the owner of nft */ - sender: string; - /** receiver is the receiver address of nft */ - receiver: string; -} -export interface MsgSendProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.MsgSend"; - value: Uint8Array; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendAmino { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - class_id: string; - /** id defines the unique identification of nft */ - id: string; - /** sender is the address of the owner of nft */ - sender: string; - /** receiver is the receiver address of nft */ - receiver: string; -} -export interface MsgSendAminoMsg { - type: "cosmos-sdk/MsgNFTSend"; - value: MsgSendAmino; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse {} -export interface MsgSendResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseAmino {} -export interface MsgSendResponseAminoMsg { - type: "cosmos-sdk/MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/orm/v1/orm.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/orm/v1/orm.ts deleted file mode 100644 index c29aea296..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/orm/v1/orm.ts +++ /dev/null @@ -1,227 +0,0 @@ -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptor { - /** primary_key defines the primary key for the table. */ - primaryKey: PrimaryKeyDescriptor; - /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptor[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface TableDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.TableDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorAmino { - /** primary_key defines the primary key for the table. */ - primary_key?: PrimaryKeyDescriptorAmino; - /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptorAmino[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface TableDescriptorAminoMsg { - type: "cosmos-sdk/TableDescriptor"; - value: TableDescriptorAmino; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorSDKType { - primary_key: PrimaryKeyDescriptorSDKType; - index: SecondaryIndexDescriptorSDKType[]; - id: number; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptor { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * 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. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - autoIncrement: boolean; -} -export interface PrimaryKeyDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorAmino { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * 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. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - auto_increment: boolean; -} -export interface PrimaryKeyDescriptorAminoMsg { - type: "cosmos-sdk/PrimaryKeyDescriptor"; - value: PrimaryKeyDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorSDKType { - fields: string; - auto_increment: boolean; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptor { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id: number; - /** unique specifies that this an unique index. */ - unique: boolean; -} -export interface SecondaryIndexDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorAmino { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id: number; - /** unique specifies that this an unique index. */ - unique: boolean; -} -export interface SecondaryIndexDescriptorAminoMsg { - type: "cosmos-sdk/SecondaryIndexDescriptor"; - value: SecondaryIndexDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorSDKType { - fields: string; - id: number; - unique: boolean; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptor { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface SingletonDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorAmino { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface SingletonDescriptorAminoMsg { - type: "cosmos-sdk/SingletonDescriptor"; - value: SingletonDescriptorAmino; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorSDKType { - id: number; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/orm/v1alpha1/schema.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/orm/v1alpha1/schema.ts deleted file mode 100644 index c11c75d66..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/orm/v1alpha1/schema.ts +++ /dev/null @@ -1,170 +0,0 @@ -/** StorageType */ -export enum StorageType { - /** - * STORAGE_TYPE_DEFAULT_UNSPECIFIED - 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 = 0, - /** - * STORAGE_TYPE_MEMORY - STORAGE_TYPE_MEMORY indicates in-memory storage that will be - * reloaded every time an app restarts. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_MEMORY = 1, - /** - * STORAGE_TYPE_TRANSIENT - STORAGE_TYPE_TRANSIENT indicates transient storage that is reset - * at the end of every block. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_TRANSIENT = 2, - /** - * STORAGE_TYPE_INDEX - 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. - */ - STORAGE_TYPE_INDEX = 3, - /** - * STORAGE_TYPE_COMMITMENT - 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. - */ - STORAGE_TYPE_COMMITMENT = 4, - UNRECOGNIZED = -1, -} -export const StorageTypeSDKType = StorageType; -export const StorageTypeAmino = StorageType; -export function storageTypeFromJSON(object: any): StorageType { - switch (object) { - case 0: - case "STORAGE_TYPE_DEFAULT_UNSPECIFIED": - return StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED; - case 1: - case "STORAGE_TYPE_MEMORY": - return StorageType.STORAGE_TYPE_MEMORY; - case 2: - case "STORAGE_TYPE_TRANSIENT": - return StorageType.STORAGE_TYPE_TRANSIENT; - case 3: - case "STORAGE_TYPE_INDEX": - return StorageType.STORAGE_TYPE_INDEX; - case 4: - case "STORAGE_TYPE_COMMITMENT": - return StorageType.STORAGE_TYPE_COMMITMENT; - case -1: - case "UNRECOGNIZED": - default: - return StorageType.UNRECOGNIZED; - } -} -export function storageTypeToJSON(object: StorageType): string { - switch (object) { - case StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED: - return "STORAGE_TYPE_DEFAULT_UNSPECIFIED"; - case StorageType.STORAGE_TYPE_MEMORY: - return "STORAGE_TYPE_MEMORY"; - case StorageType.STORAGE_TYPE_TRANSIENT: - return "STORAGE_TYPE_TRANSIENT"; - case StorageType.STORAGE_TYPE_INDEX: - return "STORAGE_TYPE_INDEX"; - case StorageType.STORAGE_TYPE_COMMITMENT: - return "STORAGE_TYPE_COMMITMENT"; - case StorageType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptor { - schemaFile: ModuleSchemaDescriptor_FileEntry[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix: Uint8Array; -} -export interface ModuleSchemaDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1alpha1.ModuleSchemaDescriptor"; - value: Uint8Array; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorAmino { - schema_file: ModuleSchemaDescriptor_FileEntryAmino[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix: Uint8Array; -} -export interface ModuleSchemaDescriptorAminoMsg { - type: "cosmos-sdk/ModuleSchemaDescriptor"; - value: ModuleSchemaDescriptorAmino; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorSDKType { - schema_file: ModuleSchemaDescriptor_FileEntrySDKType[]; - prefix: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntry { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - protoFileName: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storageType: StorageType; -} -export interface ModuleSchemaDescriptor_FileEntryProtoMsg { - typeUrl: "/cosmos.orm.v1alpha1.FileEntry"; - value: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntryAmino { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - proto_file_name: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storage_type: StorageType; -} -export interface ModuleSchemaDescriptor_FileEntryAminoMsg { - type: "cosmos-sdk/FileEntry"; - value: ModuleSchemaDescriptor_FileEntryAmino; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntrySDKType { - id: number; - proto_file_name: string; - storage_type: StorageType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/params/v1beta1/params.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/params/v1beta1/params.ts deleted file mode 100644 index 36a9ea41e..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/params/v1beta1/params.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposal { - title: string; - description: string; - changes: ParamChange[]; -} -export interface ParameterChangeProposalProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal"; - value: Uint8Array; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalAmino { - title: string; - description: string; - changes: ParamChangeAmino[]; -} -export interface ParameterChangeProposalAminoMsg { - type: "cosmos-sdk/ParameterChangeProposal"; - value: ParameterChangeProposalAmino; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalSDKType { - title: string; - description: string; - changes: ParamChangeSDKType[]; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChange { - subspace: string; - key: string; - value: string; -} -export interface ParamChangeProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParamChange"; - value: Uint8Array; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeAmino { - subspace: string; - key: string; - value: string; -} -export interface ParamChangeAminoMsg { - type: "cosmos-sdk/ParamChange"; - value: ParamChangeAmino; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeSDKType { - subspace: string; - key: string; - value: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/genesis.ts deleted file mode 100644 index 94d54c0b0..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/genesis.ts +++ /dev/null @@ -1,143 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - ValidatorSigningInfo, - ValidatorSigningInfoAmino, - ValidatorSigningInfoSDKType, -} from "./slashing"; -import { Long } from "../../../helpers"; -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signingInfos: SigningInfo[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missedBlocks: ValidatorMissedBlocks[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of related to deposit. */ - params?: ParamsAmino; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signing_infos: SigningInfoAmino[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missed_blocks: ValidatorMissedBlocksAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - signing_infos: SigningInfoSDKType[]; - missed_blocks: ValidatorMissedBlocksSDKType[]; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfo { - /** address is the validator address. */ - address: string; - /** validator_signing_info represents the signing info of this validator. */ - validatorSigningInfo: ValidatorSigningInfo; -} -export interface SigningInfoProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.SigningInfo"; - value: Uint8Array; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoAmino { - /** address is the validator address. */ - address: string; - /** validator_signing_info represents the signing info of this validator. */ - validator_signing_info?: ValidatorSigningInfoAmino; -} -export interface SigningInfoAminoMsg { - type: "cosmos-sdk/SigningInfo"; - value: SigningInfoAmino; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoSDKType { - address: string; - validator_signing_info: ValidatorSigningInfoSDKType; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocks { - /** address is the validator address. */ - address: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missedBlocks: MissedBlock[]; -} -export interface ValidatorMissedBlocksProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks"; - value: Uint8Array; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksAmino { - /** address is the validator address. */ - address: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missed_blocks: MissedBlockAmino[]; -} -export interface ValidatorMissedBlocksAminoMsg { - type: "cosmos-sdk/ValidatorMissedBlocks"; - value: ValidatorMissedBlocksAmino; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksSDKType { - address: string; - missed_blocks: MissedBlockSDKType[]; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlock { - /** index is the height at which the block was missed. */ - index: Long; - /** missed is the missed status. */ - missed: boolean; -} -export interface MissedBlockProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MissedBlock"; - value: Uint8Array; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockAmino { - /** index is the height at which the block was missed. */ - index: string; - /** missed is the missed status. */ - missed: boolean; -} -export interface MissedBlockAminoMsg { - type: "cosmos-sdk/MissedBlock"; - value: MissedBlockAmino; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockSDKType { - index: Long; - missed: boolean; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/msg.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/msg.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/msg.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/slashing.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/slashing.ts deleted file mode 100644 index ee0666d50..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/slashing.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Long } from "../../../helpers"; -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfo { - address: string; - /** Height at which validator was first a candidate OR was unjailed */ - startHeight: Long; - /** - * 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`. - */ - indexOffset: Long; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailedUntil: Date; - /** - * 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. - */ - tombstoned: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missedBlocksCounter: Long; -} -export interface ValidatorSigningInfoProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo"; - value: Uint8Array; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoAmino { - address: string; - /** Height at which validator was first a candidate OR was unjailed */ - start_height: string; - /** - * 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_offset: string; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailed_until?: Date; - /** - * 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. - */ - tombstoned: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missed_blocks_counter: string; -} -export interface ValidatorSigningInfoAminoMsg { - type: "cosmos-sdk/ValidatorSigningInfo"; - value: ValidatorSigningInfoAmino; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoSDKType { - address: string; - start_height: Long; - index_offset: Long; - jailed_until: Date; - tombstoned: boolean; - missed_blocks_counter: Long; -} -/** Params represents the parameters used for by the slashing module. */ -export interface Params { - signedBlocksWindow: Long; - minSignedPerWindow: Uint8Array; - downtimeJailDuration: Duration; - slashFractionDoubleSign: Uint8Array; - slashFractionDowntime: Uint8Array; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.Params"; - value: Uint8Array; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsAmino { - signed_blocks_window: string; - min_signed_per_window: Uint8Array; - downtime_jail_duration?: DurationAmino; - slash_fraction_double_sign: Uint8Array; - slash_fraction_downtime: Uint8Array; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsSDKType { - signed_blocks_window: Long; - min_signed_per_window: Uint8Array; - downtime_jail_duration: DurationSDKType; - slash_fraction_double_sign: Uint8Array; - slash_fraction_downtime: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/tx.ts deleted file mode 100644 index 759d5d338..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/tx.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjail { - validatorAddr: string; -} -export interface MsgUnjailProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail"; - value: Uint8Array; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailAmino { - validator_addr: string; -} -export interface MsgUnjailAminoMsg { - type: "cosmos-sdk/MsgUnjail"; - value: MsgUnjailAmino; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailSDKType { - validator_addr: string; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponse {} -export interface MsgUnjailResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse"; - value: Uint8Array; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseAmino {} -export interface MsgUnjailResponseAminoMsg { - type: "cosmos-sdk/MsgUnjailResponse"; - value: MsgUnjailResponseAmino; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/authz.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/authz.ts deleted file mode 100644 index 1145caa66..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/authz.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** - * AuthorizationType defines the type of staking module authorization type - * - * Since: cosmos-sdk 0.43 - */ -export enum AuthorizationType { - /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ - AUTHORIZATION_TYPE_UNSPECIFIED = 0, - /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ - AUTHORIZATION_TYPE_DELEGATE = 1, - /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ - AUTHORIZATION_TYPE_UNDELEGATE = 2, - /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ - AUTHORIZATION_TYPE_REDELEGATE = 3, - UNRECOGNIZED = -1, -} -export const AuthorizationTypeSDKType = AuthorizationType; -export const AuthorizationTypeAmino = AuthorizationType; -export function authorizationTypeFromJSON(object: any): AuthorizationType { - switch (object) { - case 0: - case "AUTHORIZATION_TYPE_UNSPECIFIED": - return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED; - case 1: - case "AUTHORIZATION_TYPE_DELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE; - case 2: - case "AUTHORIZATION_TYPE_UNDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE; - case 3: - case "AUTHORIZATION_TYPE_REDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE; - case -1: - case "UNRECOGNIZED": - default: - return AuthorizationType.UNRECOGNIZED; - } -} -export function authorizationTypeToJSON(object: AuthorizationType): string { - switch (object) { - case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED: - return "AUTHORIZATION_TYPE_UNSPECIFIED"; - case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE: - return "AUTHORIZATION_TYPE_DELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE: - return "AUTHORIZATION_TYPE_UNDELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE: - return "AUTHORIZATION_TYPE_REDELEGATE"; - case AuthorizationType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorization { - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - maxTokens: Coin; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allowList?: StakeAuthorization_Validators; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - denyList?: StakeAuthorization_Validators; - /** authorization_type defines one of AuthorizationType. */ - authorizationType: AuthorizationType; -} -export interface StakeAuthorizationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization"; - value: Uint8Array; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationAmino { - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - max_tokens?: CoinAmino; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allow_list?: StakeAuthorization_ValidatorsAmino; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - deny_list?: StakeAuthorization_ValidatorsAmino; - /** authorization_type defines one of AuthorizationType. */ - authorization_type: AuthorizationType; -} -export interface StakeAuthorizationAminoMsg { - type: "cosmos-sdk/StakeAuthorization"; - value: StakeAuthorizationAmino; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationSDKType { - max_tokens: CoinSDKType; - allow_list?: StakeAuthorization_ValidatorsSDKType; - deny_list?: StakeAuthorization_ValidatorsSDKType; - authorization_type: AuthorizationType; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_Validators { - address: string[]; -} -export interface StakeAuthorization_ValidatorsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validators"; - value: Uint8Array; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsAmino { - address: string[]; -} -export interface StakeAuthorization_ValidatorsAminoMsg { - type: "cosmos-sdk/Validators"; - value: StakeAuthorization_ValidatorsAmino; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsSDKType { - address: string[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/genesis.ts deleted file mode 100644 index 1c01ca352..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/genesis.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - Validator, - ValidatorAmino, - ValidatorSDKType, - Delegation, - DelegationAmino, - DelegationSDKType, - UnbondingDelegation, - UnbondingDelegationAmino, - UnbondingDelegationSDKType, - Redelegation, - RedelegationAmino, - RedelegationSDKType, -} from "./staking"; -import { Long } from "../../../helpers"; -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - lastTotalPower: Uint8Array; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - lastValidatorPowers: LastValidatorPower[]; - /** delegations defines the validator set at genesis. */ - validators: Validator[]; - /** delegations defines the delegations active at genesis. */ - delegations: Delegation[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbondingDelegations: UnbondingDelegation[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations: Redelegation[]; - exported: boolean; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of related to deposit. */ - params?: ParamsAmino; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - last_total_power: Uint8Array; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - last_validator_powers: LastValidatorPowerAmino[]; - /** delegations defines the validator set at genesis. */ - validators: ValidatorAmino[]; - /** delegations defines the delegations active at genesis. */ - delegations: DelegationAmino[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbonding_delegations: UnbondingDelegationAmino[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations: RedelegationAmino[]; - exported: boolean; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - last_total_power: Uint8Array; - last_validator_powers: LastValidatorPowerSDKType[]; - validators: ValidatorSDKType[]; - delegations: DelegationSDKType[]; - unbonding_delegations: UnbondingDelegationSDKType[]; - redelegations: RedelegationSDKType[]; - exported: boolean; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPower { - /** address is the address of the validator. */ - address: string; - /** power defines the power of the validator. */ - power: Long; -} -export interface LastValidatorPowerProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; - value: Uint8Array; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerAmino { - /** address is the address of the validator. */ - address: string; - /** power defines the power of the validator. */ - power: string; -} -export interface LastValidatorPowerAminoMsg { - type: "cosmos-sdk/LastValidatorPower"; - value: LastValidatorPowerAmino; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerSDKType { - address: string; - power: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/staking.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/staking.ts deleted file mode 100644 index 6ef1f2073..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/staking.ts +++ /dev/null @@ -1,831 +0,0 @@ -import { - Header, - HeaderAmino, - HeaderSDKType, -} from "../../../tendermint/types/types"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** BondStatus is the status of a validator. */ -export enum BondStatus { - /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ - BOND_STATUS_UNSPECIFIED = 0, - /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ - BOND_STATUS_UNBONDED = 1, - /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ - BOND_STATUS_UNBONDING = 2, - /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ - BOND_STATUS_BONDED = 3, - UNRECOGNIZED = -1, -} -export const BondStatusSDKType = BondStatus; -export const BondStatusAmino = BondStatus; -export function bondStatusFromJSON(object: any): BondStatus { - switch (object) { - case 0: - case "BOND_STATUS_UNSPECIFIED": - return BondStatus.BOND_STATUS_UNSPECIFIED; - case 1: - case "BOND_STATUS_UNBONDED": - return BondStatus.BOND_STATUS_UNBONDED; - case 2: - case "BOND_STATUS_UNBONDING": - return BondStatus.BOND_STATUS_UNBONDING; - case 3: - case "BOND_STATUS_BONDED": - return BondStatus.BOND_STATUS_BONDED; - case -1: - case "UNRECOGNIZED": - default: - return BondStatus.UNRECOGNIZED; - } -} -export function bondStatusToJSON(object: BondStatus): string { - switch (object) { - case BondStatus.BOND_STATUS_UNSPECIFIED: - return "BOND_STATUS_UNSPECIFIED"; - case BondStatus.BOND_STATUS_UNBONDED: - return "BOND_STATUS_UNBONDED"; - case BondStatus.BOND_STATUS_UNBONDING: - return "BOND_STATUS_UNBONDING"; - case BondStatus.BOND_STATUS_BONDED: - return "BOND_STATUS_BONDED"; - case BondStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfo { - header: Header; - valset: Validator[]; -} -export interface HistoricalInfoProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo"; - value: Uint8Array; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoAmino { - header?: HeaderAmino; - valset: ValidatorAmino[]; -} -export interface HistoricalInfoAminoMsg { - type: "cosmos-sdk/HistoricalInfo"; - value: HistoricalInfoAmino; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoSDKType { - header: HeaderSDKType; - valset: ValidatorSDKType[]; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRates { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - maxRate: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - maxChangeRate: string; -} -export interface CommissionRatesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates"; - value: Uint8Array; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesAmino { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate: string; -} -export interface CommissionRatesAminoMsg { - type: "cosmos-sdk/CommissionRates"; - value: CommissionRatesAmino; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesSDKType { - rate: string; - max_rate: string; - max_change_rate: string; -} -/** Commission defines commission parameters for a given validator. */ -export interface Commission { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commissionRates: CommissionRates; - /** update_time is the last time the commission rate was changed. */ - updateTime: Date; -} -export interface CommissionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Commission"; - value: Uint8Array; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionAmino { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: CommissionRatesAmino; - /** update_time is the last time the commission rate was changed. */ - update_time?: Date; -} -export interface CommissionAminoMsg { - type: "cosmos-sdk/Commission"; - value: CommissionAmino; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionSDKType { - commission_rates: CommissionRatesSDKType; - update_time: Date; -} -/** Description defines a validator description. */ -export interface Description { - /** moniker defines a human-readable name for the validator. */ - moniker: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity: string; - /** website defines an optional website link. */ - website: string; - /** security_contact defines an optional email for security contact. */ - securityContact: string; - /** details define other optional details. */ - details: string; -} -export interface DescriptionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Description"; - value: Uint8Array; -} -/** Description defines a validator description. */ -export interface DescriptionAmino { - /** moniker defines a human-readable name for the validator. */ - moniker: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity: string; - /** website defines an optional website link. */ - website: string; - /** security_contact defines an optional email for security contact. */ - security_contact: string; - /** details define other optional details. */ - details: string; -} -export interface DescriptionAminoMsg { - type: "cosmos-sdk/Description"; - value: DescriptionAmino; -} -/** Description defines a validator description. */ -export interface DescriptionSDKType { - moniker: string; - identity: string; - website: string; - security_contact: string; - details: string; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface Validator { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operatorAddress: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensusPubkey: Any; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegatorShares: string; - /** description defines the description terms for the validator. */ - description: Description; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbondingHeight: Long; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbondingTime: Date; - /** commission defines the commission parameters. */ - commission: Commission; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - minSelfDelegation: string; -} -export interface ValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validator"; - value: Uint8Array; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorAmino { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensus_pubkey?: AnyAmino; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares: string; - /** description defines the description terms for the validator. */ - description?: DescriptionAmino; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbonding_height: string; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbonding_time?: Date; - /** commission defines the commission parameters. */ - commission?: CommissionAmino; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation: string; -} -export interface ValidatorAminoMsg { - type: "cosmos-sdk/Validator"; - value: ValidatorAmino; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorSDKType { - operator_address: string; - consensus_pubkey: AnySDKType; - jailed: boolean; - status: BondStatus; - tokens: string; - delegator_shares: string; - description: DescriptionSDKType; - unbonding_height: Long; - unbonding_time: Date; - commission: CommissionSDKType; - min_self_delegation: string; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddresses { - addresses: string[]; -} -export interface ValAddressesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses"; - value: Uint8Array; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesAmino { - addresses: string[]; -} -export interface ValAddressesAminoMsg { - type: "cosmos-sdk/ValAddresses"; - value: ValAddressesAmino; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesSDKType { - addresses: string[]; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPair { - delegatorAddress: string; - validatorAddress: string; -} -export interface DVPairProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPair"; - value: Uint8Array; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairAmino { - delegator_address: string; - validator_address: string; -} -export interface DVPairAminoMsg { - type: "cosmos-sdk/DVPair"; - value: DVPairAmino; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairSDKType { - delegator_address: string; - validator_address: string; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairs { - pairs: DVPair[]; -} -export interface DVPairsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPairs"; - value: Uint8Array; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsAmino { - pairs: DVPairAmino[]; -} -export interface DVPairsAminoMsg { - type: "cosmos-sdk/DVPairs"; - value: DVPairsAmino; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsSDKType { - pairs: DVPairSDKType[]; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTriplet { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; -} -export interface DVVTripletProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet"; - value: Uint8Array; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletAmino { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; -} -export interface DVVTripletAminoMsg { - type: "cosmos-sdk/DVVTriplet"; - value: DVVTripletAmino; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTriplets { - triplets: DVVTriplet[]; -} -export interface DVVTripletsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets"; - value: Uint8Array; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsAmino { - triplets: DVVTripletAmino[]; -} -export interface DVVTripletsAminoMsg { - type: "cosmos-sdk/DVVTriplets"; - value: DVVTripletsAmino; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsSDKType { - triplets: DVVTripletSDKType[]; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface Delegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** shares define the delegation shares received. */ - shares: string; -} -export interface DelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Delegation"; - value: Uint8Array; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address: string; - /** shares define the delegation shares received. */ - shares: string; -} -export interface DelegationAminoMsg { - type: "cosmos-sdk/Delegation"; - value: DelegationAmino; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationSDKType { - delegator_address: string; - validator_address: string; - shares: string; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** entries are the unbonding delegation entries. */ - entries: UnbondingDelegationEntry[]; -} -export interface UnbondingDelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation"; - value: Uint8Array; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address: string; - /** entries are the unbonding delegation entries. */ - entries: UnbondingDelegationEntryAmino[]; -} -export interface UnbondingDelegationAminoMsg { - type: "cosmos-sdk/UnbondingDelegation"; - value: UnbondingDelegationAmino; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationSDKType { - delegator_address: string; - validator_address: string; - entries: UnbondingDelegationEntrySDKType[]; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntry { - /** creation_height is the height which the unbonding took place. */ - creationHeight: Long; - /** completion_time is the unix time for unbonding completion. */ - completionTime: Date; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initialBalance: string; - /** balance defines the tokens to receive at completion. */ - balance: string; -} -export interface UnbondingDelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry"; - value: Uint8Array; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntryAmino { - /** creation_height is the height which the unbonding took place. */ - creation_height: string; - /** completion_time is the unix time for unbonding completion. */ - completion_time?: Date; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance: string; - /** balance defines the tokens to receive at completion. */ - balance: string; -} -export interface UnbondingDelegationEntryAminoMsg { - type: "cosmos-sdk/UnbondingDelegationEntry"; - value: UnbondingDelegationEntryAmino; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntrySDKType { - creation_height: Long; - completion_time: Date; - initial_balance: string; - balance: string; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntry { - /** creation_height defines the height which the redelegation took place. */ - creationHeight: Long; - /** completion_time defines the unix time for redelegation completion. */ - completionTime: Date; - /** initial_balance defines the initial balance when redelegation started. */ - initialBalance: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - sharesDst: string; -} -export interface RedelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry"; - value: Uint8Array; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntryAmino { - /** creation_height defines the height which the redelegation took place. */ - creation_height: string; - /** completion_time defines the unix time for redelegation completion. */ - completion_time?: Date; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst: string; -} -export interface RedelegationEntryAminoMsg { - type: "cosmos-sdk/RedelegationEntry"; - value: RedelegationEntryAmino; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntrySDKType { - creation_height: Long; - completion_time: Date; - initial_balance: string; - shares_dst: string; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface Redelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_src_address is the validator redelegation source operator address. */ - validatorSrcAddress: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validatorDstAddress: string; - /** entries are the redelegation entries. */ - entries: RedelegationEntry[]; -} -export interface RedelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Redelegation"; - value: Uint8Array; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address: string; - /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address: string; - /** entries are the redelegation entries. */ - entries: RedelegationEntryAmino[]; -} -export interface RedelegationAminoMsg { - type: "cosmos-sdk/Redelegation"; - value: RedelegationAmino; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - entries: RedelegationEntrySDKType[]; -} -/** Params defines the parameters for the staking module. */ -export interface Params { - /** unbonding_time is the time duration of unbonding. */ - unbondingTime: Duration; - /** max_validators is the maximum number of validators. */ - maxValidators: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - maxEntries: number; - /** historical_entries is the number of historical entries to persist. */ - historicalEntries: number; - /** bond_denom defines the bondable coin denomination. */ - bondDenom: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - minCommissionRate: string; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsAmino { - /** unbonding_time is the time duration of unbonding. */ - unbonding_time?: DurationAmino; - /** max_validators is the maximum number of validators. */ - max_validators: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - max_entries: number; - /** historical_entries is the number of historical entries to persist. */ - historical_entries: number; - /** bond_denom defines the bondable coin denomination. */ - bond_denom: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - min_commission_rate: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsSDKType { - unbonding_time: DurationSDKType; - max_validators: number; - max_entries: number; - historical_entries: number; - bond_denom: string; - min_commission_rate: string; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponse { - delegation: Delegation; - balance: Coin; -} -export interface DelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse"; - value: Uint8Array; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseAmino { - delegation?: DelegationAmino; - balance?: CoinAmino; -} -export interface DelegationResponseAminoMsg { - type: "cosmos-sdk/DelegationResponse"; - value: DelegationResponseAmino; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseSDKType { - delegation: DelegationSDKType; - balance: CoinSDKType; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponse { - redelegationEntry: RedelegationEntry; - balance: string; -} -export interface RedelegationEntryResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse"; - value: Uint8Array; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseAmino { - redelegation_entry?: RedelegationEntryAmino; - balance: string; -} -export interface RedelegationEntryResponseAminoMsg { - type: "cosmos-sdk/RedelegationEntryResponse"; - value: RedelegationEntryResponseAmino; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseSDKType { - redelegation_entry: RedelegationEntrySDKType; - balance: string; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponse { - redelegation: Redelegation; - entries: RedelegationEntryResponse[]; -} -export interface RedelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse"; - value: Uint8Array; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseAmino { - redelegation?: RedelegationAmino; - entries: RedelegationEntryResponseAmino[]; -} -export interface RedelegationResponseAminoMsg { - type: "cosmos-sdk/RedelegationResponse"; - value: RedelegationResponseAmino; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseSDKType { - redelegation: RedelegationSDKType; - entries: RedelegationEntryResponseSDKType[]; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface Pool { - notBondedTokens: string; - bondedTokens: string; -} -export interface PoolProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Pool"; - value: Uint8Array; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolAmino { - not_bonded_tokens: string; - bonded_tokens: string; -} -export interface PoolAminoMsg { - type: "cosmos-sdk/Pool"; - value: PoolAmino; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolSDKType { - not_bonded_tokens: string; - bonded_tokens: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/tx.ts deleted file mode 100644 index 759275852..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/tx.ts +++ /dev/null @@ -1,279 +0,0 @@ -import { - Description, - DescriptionAmino, - DescriptionSDKType, - CommissionRates, - CommissionRatesAmino, - CommissionRatesSDKType, -} from "./staking"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidator { - description: Description; - commission: CommissionRates; - minSelfDelegation: string; - delegatorAddress: string; - validatorAddress: string; - pubkey: Any; - value: Coin; -} -export interface MsgCreateValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator"; - value: Uint8Array; -} -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorAmino { - description?: DescriptionAmino; - commission?: CommissionRatesAmino; - min_self_delegation: string; - delegator_address: string; - validator_address: string; - pubkey?: AnyAmino; - value?: CoinAmino; -} -export interface MsgCreateValidatorAminoMsg { - type: "cosmos-sdk/MsgCreateValidator"; - value: MsgCreateValidatorAmino; -} -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorSDKType { - description: DescriptionSDKType; - commission: CommissionRatesSDKType; - min_self_delegation: string; - delegator_address: string; - validator_address: string; - pubkey: AnySDKType; - value: CoinSDKType; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponse {} -export interface MsgCreateValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse"; - value: Uint8Array; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseAmino {} -export interface MsgCreateValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgCreateValidatorResponse"; - value: MsgCreateValidatorResponseAmino; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseSDKType {} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidator { - description: Description; - validatorAddress: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commissionRate: string; - minSelfDelegation: string; -} -export interface MsgEditValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator"; - value: Uint8Array; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorAmino { - description?: DescriptionAmino; - validator_address: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commission_rate: string; - min_self_delegation: string; -} -export interface MsgEditValidatorAminoMsg { - type: "cosmos-sdk/MsgEditValidator"; - value: MsgEditValidatorAmino; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorSDKType { - description: DescriptionSDKType; - validator_address: string; - commission_rate: string; - min_self_delegation: string; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponse {} -export interface MsgEditValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse"; - value: Uint8Array; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseAmino {} -export interface MsgEditValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgEditValidatorResponse"; - value: MsgEditValidatorResponseAmino; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseSDKType {} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgDelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate"; - value: Uint8Array; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateAmino { - delegator_address: string; - validator_address: string; - amount?: CoinAmino; -} -export interface MsgDelegateAminoMsg { - type: "cosmos-sdk/MsgDelegate"; - value: MsgDelegateAmino; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponse {} -export interface MsgDelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse"; - value: Uint8Array; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseAmino {} -export interface MsgDelegateResponseAminoMsg { - type: "cosmos-sdk/MsgDelegateResponse"; - value: MsgDelegateResponseAmino; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseSDKType {} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegate { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; - amount: Coin; -} -export interface MsgBeginRedelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate"; - value: Uint8Array; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateAmino { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - amount?: CoinAmino; -} -export interface MsgBeginRedelegateAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegate"; - value: MsgBeginRedelegateAmino; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - amount: CoinSDKType; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponse { - completionTime: Date; -} -export interface MsgBeginRedelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; - value: Uint8Array; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseAmino { - completion_time?: Date; -} -export interface MsgBeginRedelegateResponseAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegateResponse"; - value: MsgBeginRedelegateResponseAmino; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseSDKType { - completion_time: Date; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgUndelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate"; - value: Uint8Array; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateAmino { - delegator_address: string; - validator_address: string; - amount?: CoinAmino; -} -export interface MsgUndelegateAminoMsg { - type: "cosmos-sdk/MsgUndelegate"; - value: MsgUndelegateAmino; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponse { - completionTime: Date; -} -export interface MsgUndelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse"; - value: Uint8Array; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseAmino { - completion_time?: Date; -} -export interface MsgUndelegateResponseAminoMsg { - type: "cosmos-sdk/MsgUndelegateResponse"; - value: MsgUndelegateResponseAmino; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseSDKType { - completion_time: Date; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/tx/signing/v1beta1/signing.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/tx/signing/v1beta1/signing.ts deleted file mode 100644 index 1c5564107..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/tx/signing/v1beta1/signing.ts +++ /dev/null @@ -1,248 +0,0 @@ -import { - CompactBitArray, - CompactBitArrayAmino, - CompactBitArraySDKType, -} from "../../../crypto/multisig/v1beta1/multisig"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Long } from "../../../../helpers"; -/** - * SignMode represents a signing mode with its own security guarantees. - * - * This enum should be considered a registry of all known sign modes - * in the Cosmos ecosystem. Apps are not expected to support all known - * sign modes. Apps that would like to support custom sign modes are - * encouraged to open a small PR against this file to add a new case - * to this SignMode enum describing their sign mode so that different - * apps have a consistent version of this enum. - */ -export enum SignMode { - /** - * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected. - */ - SIGN_MODE_UNSPECIFIED = 0, - /** - * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx. - */ - SIGN_MODE_DIRECT = 1, - /** - * SIGN_MODE_TEXTUAL - 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. - */ - SIGN_MODE_TEXTUAL = 2, - /** - * SIGN_MODE_DIRECT_AUX - 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. - * - * Since: cosmos-sdk 0.46 - */ - SIGN_MODE_DIRECT_AUX = 3, - /** - * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future. - */ - SIGN_MODE_LEGACY_AMINO_JSON = 127, - UNRECOGNIZED = -1, -} -export const SignModeSDKType = SignMode; -export const SignModeAmino = SignMode; -export function signModeFromJSON(object: any): SignMode { - switch (object) { - case 0: - case "SIGN_MODE_UNSPECIFIED": - return SignMode.SIGN_MODE_UNSPECIFIED; - case 1: - case "SIGN_MODE_DIRECT": - return SignMode.SIGN_MODE_DIRECT; - case 2: - case "SIGN_MODE_TEXTUAL": - return SignMode.SIGN_MODE_TEXTUAL; - case 3: - case "SIGN_MODE_DIRECT_AUX": - return SignMode.SIGN_MODE_DIRECT_AUX; - case 127: - case "SIGN_MODE_LEGACY_AMINO_JSON": - return SignMode.SIGN_MODE_LEGACY_AMINO_JSON; - case -1: - case "UNRECOGNIZED": - default: - return SignMode.UNRECOGNIZED; - } -} -export function signModeToJSON(object: SignMode): string { - switch (object) { - case SignMode.SIGN_MODE_UNSPECIFIED: - return "SIGN_MODE_UNSPECIFIED"; - case SignMode.SIGN_MODE_DIRECT: - return "SIGN_MODE_DIRECT"; - case SignMode.SIGN_MODE_TEXTUAL: - return "SIGN_MODE_TEXTUAL"; - case SignMode.SIGN_MODE_DIRECT_AUX: - return "SIGN_MODE_DIRECT_AUX"; - case SignMode.SIGN_MODE_LEGACY_AMINO_JSON: - return "SIGN_MODE_LEGACY_AMINO_JSON"; - case SignMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptors { - /** signatures are the signature descriptors */ - signatures: SignatureDescriptor[]; -} -export interface SignatureDescriptorsProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors"; - value: Uint8Array; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsAmino { - /** signatures are the signature descriptors */ - signatures: SignatureDescriptorAmino[]; -} -export interface SignatureDescriptorsAminoMsg { - type: "cosmos-sdk/SignatureDescriptors"; - value: SignatureDescriptorsAmino; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsSDKType { - signatures: SignatureDescriptorSDKType[]; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptor { - /** public_key is the public key of the signer */ - publicKey: Any; - data: SignatureDescriptor_Data; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence: Long; -} -export interface SignatureDescriptorProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor"; - value: Uint8Array; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorAmino { - /** public_key is the public key of the signer */ - public_key?: AnyAmino; - data?: SignatureDescriptor_DataAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence: string; -} -export interface SignatureDescriptorAminoMsg { - type: "cosmos-sdk/SignatureDescriptor"; - value: SignatureDescriptorAmino; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorSDKType { - public_key: AnySDKType; - data: SignatureDescriptor_DataSDKType; - sequence: Long; -} -/** Data represents signature data */ -export interface SignatureDescriptor_Data { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_Single; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_Multi; -} -export interface SignatureDescriptor_DataProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Data"; - value: Uint8Array; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataAmino { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_SingleAmino; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_MultiAmino; -} -export interface SignatureDescriptor_DataAminoMsg { - type: "cosmos-sdk/Data"; - value: SignatureDescriptor_DataAmino; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataSDKType { - single?: SignatureDescriptor_Data_SingleSDKType; - multi?: SignatureDescriptor_Data_MultiSDKType; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** signature is the raw signature bytes */ - signature: Uint8Array; -} -export interface SignatureDescriptor_Data_SingleProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Single"; - value: Uint8Array; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleAmino { - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** signature is the raw signature bytes */ - signature: Uint8Array; -} -export interface SignatureDescriptor_Data_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: SignatureDescriptor_Data_SingleAmino; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleSDKType { - mode: SignMode; - signature: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray: CompactBitArray; - /** signatures is the signatures of the multi-signature */ - signatures: SignatureDescriptor_Data[]; -} -export interface SignatureDescriptor_Data_MultiProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** signatures is the signatures of the multi-signature */ - signatures: SignatureDescriptor_DataAmino[]; -} -export interface SignatureDescriptor_Data_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: SignatureDescriptor_Data_MultiAmino; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiSDKType { - bitarray: CompactBitArraySDKType; - signatures: SignatureDescriptor_DataSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/service.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/service.ts deleted file mode 100644 index 56bbc80af..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/service.ts +++ /dev/null @@ -1,510 +0,0 @@ -import { Tx, TxAmino, TxSDKType } from "./tx"; -import { - PageRequest, - PageRequestAmino, - PageRequestSDKType, - PageResponse, - PageResponseAmino, - PageResponseSDKType, -} from "../../base/query/v1beta1/pagination"; -import { - TxResponse, - TxResponseAmino, - TxResponseSDKType, - GasInfo, - GasInfoAmino, - GasInfoSDKType, - Result, - ResultAmino, - ResultSDKType, -} from "../../base/abci/v1beta1/abci"; -import { - BlockID, - BlockIDAmino, - BlockIDSDKType, -} from "../../../tendermint/types/types"; -import { - Block, - BlockAmino, - BlockSDKType, -} from "../../../tendermint/types/block"; -import { Long } from "../../../helpers"; -/** OrderBy defines the sorting order */ -export enum OrderBy { - /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ - ORDER_BY_UNSPECIFIED = 0, - /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ - ORDER_BY_ASC = 1, - /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ - ORDER_BY_DESC = 2, - UNRECOGNIZED = -1, -} -export const OrderBySDKType = OrderBy; -export const OrderByAmino = OrderBy; -export function orderByFromJSON(object: any): OrderBy { - switch (object) { - case 0: - case "ORDER_BY_UNSPECIFIED": - return OrderBy.ORDER_BY_UNSPECIFIED; - case 1: - case "ORDER_BY_ASC": - return OrderBy.ORDER_BY_ASC; - case 2: - case "ORDER_BY_DESC": - return OrderBy.ORDER_BY_DESC; - case -1: - case "UNRECOGNIZED": - default: - return OrderBy.UNRECOGNIZED; - } -} -export function orderByToJSON(object: OrderBy): string { - switch (object) { - case OrderBy.ORDER_BY_UNSPECIFIED: - return "ORDER_BY_UNSPECIFIED"; - case OrderBy.ORDER_BY_ASC: - return "ORDER_BY_ASC"; - case OrderBy.ORDER_BY_DESC: - return "ORDER_BY_DESC"; - case OrderBy.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ -export enum BroadcastMode { - /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ - BROADCAST_MODE_UNSPECIFIED = 0, - /** - * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - */ - BROADCAST_MODE_BLOCK = 1, - /** - * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - */ - BROADCAST_MODE_SYNC = 2, - /** - * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - */ - BROADCAST_MODE_ASYNC = 3, - UNRECOGNIZED = -1, -} -export const BroadcastModeSDKType = BroadcastMode; -export const BroadcastModeAmino = BroadcastMode; -export function broadcastModeFromJSON(object: any): BroadcastMode { - switch (object) { - case 0: - case "BROADCAST_MODE_UNSPECIFIED": - return BroadcastMode.BROADCAST_MODE_UNSPECIFIED; - case 1: - case "BROADCAST_MODE_BLOCK": - return BroadcastMode.BROADCAST_MODE_BLOCK; - case 2: - case "BROADCAST_MODE_SYNC": - return BroadcastMode.BROADCAST_MODE_SYNC; - case 3: - case "BROADCAST_MODE_ASYNC": - return BroadcastMode.BROADCAST_MODE_ASYNC; - case -1: - case "UNRECOGNIZED": - default: - return BroadcastMode.UNRECOGNIZED; - } -} -export function broadcastModeToJSON(object: BroadcastMode): string { - switch (object) { - case BroadcastMode.BROADCAST_MODE_UNSPECIFIED: - return "BROADCAST_MODE_UNSPECIFIED"; - case BroadcastMode.BROADCAST_MODE_BLOCK: - return "BROADCAST_MODE_BLOCK"; - case BroadcastMode.BROADCAST_MODE_SYNC: - return "BROADCAST_MODE_SYNC"; - case BroadcastMode.BROADCAST_MODE_ASYNC: - return "BROADCAST_MODE_ASYNC"; - case BroadcastMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequest { - /** events is the list of transaction event type. */ - events: string[]; - /** pagination defines a pagination for the request. */ - pagination: PageRequest; - orderBy: OrderBy; -} -export interface GetTxsEventRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest"; - value: Uint8Array; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestAmino { - /** events is the list of transaction event type. */ - events: string[]; - /** pagination defines a pagination for the request. */ - pagination?: PageRequestAmino; - order_by: OrderBy; -} -export interface GetTxsEventRequestAminoMsg { - type: "cosmos-sdk/GetTxsEventRequest"; - value: GetTxsEventRequestAmino; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestSDKType { - events: string[]; - pagination: PageRequestSDKType; - order_by: OrderBy; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponse { - /** txs is the list of queried transactions. */ - txs: Tx[]; - /** tx_responses is the list of queried TxResponses. */ - txResponses: TxResponse[]; - /** pagination defines a pagination for the response. */ - pagination: PageResponse; -} -export interface GetTxsEventResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse"; - value: Uint8Array; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseAmino { - /** txs is the list of queried transactions. */ - txs: TxAmino[]; - /** tx_responses is the list of queried TxResponses. */ - tx_responses: TxResponseAmino[]; - /** pagination defines a pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetTxsEventResponseAminoMsg { - type: "cosmos-sdk/GetTxsEventResponse"; - value: GetTxsEventResponseAmino; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseSDKType { - txs: TxSDKType[]; - tx_responses: TxResponseSDKType[]; - pagination: PageResponseSDKType; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequest { - /** tx_bytes is the raw transaction. */ - txBytes: Uint8Array; - mode: BroadcastMode; -} -export interface BroadcastTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest"; - value: Uint8Array; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestAmino { - /** tx_bytes is the raw transaction. */ - tx_bytes: Uint8Array; - mode: BroadcastMode; -} -export interface BroadcastTxRequestAminoMsg { - type: "cosmos-sdk/BroadcastTxRequest"; - value: BroadcastTxRequestAmino; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestSDKType { - tx_bytes: Uint8Array; - mode: BroadcastMode; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponse { - /** tx_response is the queried TxResponses. */ - txResponse: TxResponse; -} -export interface BroadcastTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse"; - value: Uint8Array; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseAmino { - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface BroadcastTxResponseAminoMsg { - type: "cosmos-sdk/BroadcastTxResponse"; - value: BroadcastTxResponseAmino; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseSDKType { - tx_response: TxResponseSDKType; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequest { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx: Tx; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - txBytes: Uint8Array; -} -export interface SimulateRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest"; - value: Uint8Array; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestAmino { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx?: TxAmino; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - tx_bytes: Uint8Array; -} -export interface SimulateRequestAminoMsg { - type: "cosmos-sdk/SimulateRequest"; - value: SimulateRequestAmino; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestSDKType { - /** @deprecated */ - tx: TxSDKType; - tx_bytes: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponse { - /** gas_info is the information about gas used in the simulation. */ - gasInfo: GasInfo; - /** result is the result of the simulation. */ - result: Result; -} -export interface SimulateResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse"; - value: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseAmino { - /** gas_info is the information about gas used in the simulation. */ - gas_info?: GasInfoAmino; - /** result is the result of the simulation. */ - result?: ResultAmino; -} -export interface SimulateResponseAminoMsg { - type: "cosmos-sdk/SimulateResponse"; - value: SimulateResponseAmino; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseSDKType { - gas_info: GasInfoSDKType; - result: ResultSDKType; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequest { - /** hash is the tx hash to query, encoded as a hex string. */ - hash: string; -} -export interface GetTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest"; - value: Uint8Array; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestAmino { - /** hash is the tx hash to query, encoded as a hex string. */ - hash: string; -} -export interface GetTxRequestAminoMsg { - type: "cosmos-sdk/GetTxRequest"; - value: GetTxRequestAmino; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestSDKType { - hash: string; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponse { - /** tx is the queried transaction. */ - tx: Tx; - /** tx_response is the queried TxResponses. */ - txResponse: TxResponse; -} -export interface GetTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse"; - value: Uint8Array; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseAmino { - /** tx is the queried transaction. */ - tx?: TxAmino; - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface GetTxResponseAminoMsg { - type: "cosmos-sdk/GetTxResponse"; - value: GetTxResponseAmino; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseSDKType { - tx: TxSDKType; - tx_response: TxResponseSDKType; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequest { - /** height is the height of the block to query. */ - height: Long; - /** pagination defines a pagination for the request. */ - pagination: PageRequest; -} -export interface GetBlockWithTxsRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest"; - value: Uint8Array; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestAmino { - /** height is the height of the block to query. */ - height: string; - /** pagination defines a pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface GetBlockWithTxsRequestAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsRequest"; - value: GetBlockWithTxsRequestAmino; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestSDKType { - height: Long; - pagination: PageRequestSDKType; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponse { - /** txs are the transactions in the block. */ - txs: Tx[]; - blockId: BlockID; - block: Block; - /** pagination defines a pagination for the response. */ - pagination: PageResponse; -} -export interface GetBlockWithTxsResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse"; - value: Uint8Array; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseAmino { - /** txs are the transactions in the block. */ - txs: TxAmino[]; - block_id?: BlockIDAmino; - block?: BlockAmino; - /** pagination defines a pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetBlockWithTxsResponseAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsResponse"; - value: GetBlockWithTxsResponseAmino; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseSDKType { - txs: TxSDKType[]; - block_id: BlockIDSDKType; - block: BlockSDKType; - pagination: PageResponseSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/tx.ts deleted file mode 100644 index fe286edcd..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/tx.ts +++ /dev/null @@ -1,762 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { SignMode } from "../signing/v1beta1/signing"; -import { - CompactBitArray, - CompactBitArrayAmino, - CompactBitArraySDKType, -} from "../../crypto/multisig/v1beta1/multisig"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** Tx is the standard type used for broadcasting transactions. */ -export interface Tx { - /** body is the processable content of the transaction */ - body: TxBody; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - authInfo: AuthInfo; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tx"; - value: Uint8Array; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxAmino { - /** body is the processable content of the transaction */ - body?: TxBodyAmino; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - auth_info?: AuthInfoAmino; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxAminoMsg { - type: "cosmos-sdk/Tx"; - value: TxAmino; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxSDKType { - body: TxBodySDKType; - auth_info: AuthInfoSDKType; - signatures: Uint8Array[]; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRaw { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - authInfoBytes: Uint8Array; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxRawProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxRaw"; - value: Uint8Array; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawAmino { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - body_bytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - auth_info_bytes: Uint8Array; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxRawAminoMsg { - type: "cosmos-sdk/TxRaw"; - value: TxRawAmino; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - signatures: Uint8Array[]; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDoc { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - authInfoBytes: Uint8Array; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chainId: string; - /** account_number is the account number of the account in state */ - accountNumber: Long; -} -export interface SignDocProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDoc"; - value: Uint8Array; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - auth_info_bytes: Uint8Array; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chain_id: string; - /** account_number is the account number of the account in state */ - account_number: string; -} -export interface SignDocAminoMsg { - type: "cosmos-sdk/SignDoc"; - value: SignDocAmino; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - chain_id: string; - account_number: Long; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAux { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** public_key is the public key of the signing account. */ - publicKey: Any; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chainId: string; - /** account_number is the account number of the account in state. */ - accountNumber: Long; - /** sequence is the sequence number of the signing account. */ - sequence: Long; - /** - * Tip is the optional tip used for meta-transactions. It should be left - * empty if the signer is not the tipper for this transaction. - */ - tip: Tip; -} -export interface SignDocDirectAuxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux"; - value: Uint8Array; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes: Uint8Array; - /** public_key is the public key of the signing account. */ - public_key?: AnyAmino; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chain_id: string; - /** account_number is the account number of the account in state. */ - account_number: string; - /** sequence is the sequence number of the signing account. */ - sequence: string; - /** - * Tip is the optional tip used for meta-transactions. It should be left - * empty if the signer is not the tipper for this transaction. - */ - tip?: TipAmino; -} -export interface SignDocDirectAuxAminoMsg { - type: "cosmos-sdk/SignDocDirectAux"; - value: SignDocDirectAuxAmino; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxSDKType { - body_bytes: Uint8Array; - public_key: AnySDKType; - chain_id: string; - account_number: Long; - sequence: Long; - tip: TipSDKType; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBody { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages: Any[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeoutHeight: Long; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extensionOptions: Any[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - nonCriticalExtensionOptions: Any[]; -} -export interface TxBodyProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxBody"; - value: Uint8Array; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodyAmino { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages: AnyAmino[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeout_height: string; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extension_options: AnyAmino[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - non_critical_extension_options: AnyAmino[]; -} -export interface TxBodyAminoMsg { - type: "cosmos-sdk/TxBody"; - value: TxBodyAmino; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodySDKType { - messages: AnySDKType[]; - memo: string; - timeout_height: Long; - extension_options: AnySDKType[]; - non_critical_extension_options: AnySDKType[]; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfo { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signerInfos: SignerInfo[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee: Fee; - /** - * Tip is the optional tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ - tip: Tip; -} -export interface AuthInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo"; - value: Uint8Array; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoAmino { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signer_infos: SignerInfoAmino[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee?: FeeAmino; - /** - * Tip is the optional tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ - tip?: TipAmino; -} -export interface AuthInfoAminoMsg { - type: "cosmos-sdk/AuthInfo"; - value: AuthInfoAmino; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoSDKType { - signer_infos: SignerInfoSDKType[]; - fee: FeeSDKType; - tip: TipSDKType; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfo { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - publicKey: Any; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - modeInfo: ModeInfo; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence: Long; -} -export interface SignerInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo"; - value: Uint8Array; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoAmino { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - public_key?: AnyAmino; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - mode_info?: ModeInfoAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence: string; -} -export interface SignerInfoAminoMsg { - type: "cosmos-sdk/SignerInfo"; - value: SignerInfoAmino; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoSDKType { - public_key: AnySDKType; - mode_info: ModeInfoSDKType; - sequence: Long; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfo { - /** single represents a single signer */ - single?: ModeInfo_Single; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_Multi; -} -export interface ModeInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo"; - value: Uint8Array; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoAmino { - /** single represents a single signer */ - single?: ModeInfo_SingleAmino; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_MultiAmino; -} -export interface ModeInfoAminoMsg { - type: "cosmos-sdk/ModeInfo"; - value: ModeInfoAmino; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoSDKType { - single?: ModeInfo_SingleSDKType; - multi?: ModeInfo_MultiSDKType; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; -} -export interface ModeInfo_SingleProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Single"; - value: Uint8Array; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleAmino { - /** mode is the signing mode of the single signer */ - mode: SignMode; -} -export interface ModeInfo_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: ModeInfo_SingleAmino; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleSDKType { - mode: SignMode; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray: CompactBitArray; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - modeInfos: ModeInfo[]; -} -export interface ModeInfo_MultiProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - mode_infos: ModeInfoAmino[]; -} -export interface ModeInfo_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: ModeInfo_MultiAmino; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiSDKType { - bitarray: CompactBitArraySDKType; - mode_infos: ModeInfoSDKType[]; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface Fee { - /** amount is the amount of coins to be paid as a fee */ - amount: Coin[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gasLimit: Long; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter: string; -} -export interface FeeProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Fee"; - value: Uint8Array; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeAmino { - /** amount is the amount of coins to be paid as a fee */ - amount: CoinAmino[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gas_limit: string; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter: string; -} -export interface FeeAminoMsg { - type: "cosmos-sdk/Fee"; - value: FeeAmino; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeSDKType { - amount: CoinSDKType[]; - gas_limit: Long; - payer: string; - granter: string; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface Tip { - /** amount is the amount of the tip */ - amount: Coin[]; - /** tipper is the address of the account paying for the tip */ - tipper: string; -} -export interface TipProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tip"; - value: Uint8Array; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipAmino { - /** amount is the amount of the tip */ - amount: CoinAmino[]; - /** tipper is the address of the account paying for the tip */ - tipper: string; -} -export interface TipAminoMsg { - type: "cosmos-sdk/Tip"; - value: TipAmino; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipSDKType { - amount: CoinSDKType[]; - tipper: string; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerData { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address: string; - /** - * sign_doc is the SIGN_MOD_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - signDoc: SignDocDirectAux; - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** sig is the signature of the sign doc. */ - sig: Uint8Array; -} -export interface AuxSignerDataProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData"; - value: Uint8Array; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataAmino { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address: string; - /** - * sign_doc is the SIGN_MOD_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - sign_doc?: SignDocDirectAuxAmino; - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** sig is the signature of the sign doc. */ - sig: Uint8Array; -} -export interface AuxSignerDataAminoMsg { - type: "cosmos-sdk/AuxSignerData"; - value: AuxSignerDataAmino; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataSDKType { - address: string; - sign_doc: SignDocDirectAuxSDKType; - mode: SignMode; - sig: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/tx.ts deleted file mode 100644 index bb21adc9b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/tx.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { Plan, PlanAmino, PlanSDKType } from "./upgrade"; -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgrade { - /** authority is the address of the governance account. */ - authority: string; - /** plan is the upgrade plan. */ - plan: Plan; -} -export interface MsgSoftwareUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeAmino { - /** authority is the address of the governance account. */ - authority: string; - /** plan is the upgrade plan. */ - plan?: PlanAmino; -} -export interface MsgSoftwareUpgradeAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgrade"; - value: MsgSoftwareUpgradeAmino; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeSDKType { - authority: string; - plan: PlanSDKType; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponse {} -export interface MsgSoftwareUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseAmino {} -export interface MsgSoftwareUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgradeResponse"; - value: MsgSoftwareUpgradeResponseAmino; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseSDKType {} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgrade { - /** authority is the address of the governance account. */ - authority: string; -} -export interface MsgCancelUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade"; - value: Uint8Array; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeAmino { - /** authority is the address of the governance account. */ - authority: string; -} -export interface MsgCancelUpgradeAminoMsg { - type: "cosmos-sdk/MsgCancelUpgrade"; - value: MsgCancelUpgradeAmino; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeSDKType { - authority: string; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponse {} -export interface MsgCancelUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseAmino {} -export interface MsgCancelUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgCancelUpgradeResponse"; - value: MsgCancelUpgradeResponseAmino; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/upgrade.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/upgrade.ts deleted file mode 100644 index 91bc928e8..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/upgrade.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface Plan { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time: Date; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height: Long; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgradedClientState: Any; -} -export interface PlanProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.Plan"; - value: Uint8Array; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanAmino { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time?: Date; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height: string; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgraded_client_state?: AnyAmino; -} -export interface PlanAminoMsg { - type: "cosmos-sdk/Plan"; - value: PlanAmino; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanSDKType { - name: string; - /** @deprecated */ - time: Date; - height: Long; - info: string; - /** @deprecated */ - upgraded_client_state: AnySDKType; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposal { - title: string; - description: string; - plan: Plan; -} -export interface SoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalAmino { - title: string; - description: string; - plan?: PlanAmino; -} -export interface SoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/SoftwareUpgradeProposal"; - value: SoftwareUpgradeProposalAmino; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalSDKType { - title: string; - description: string; - plan: PlanSDKType; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposal { - title: string; - description: string; -} -export interface CancelSoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalAmino { - title: string; - description: string; -} -export interface CancelSoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/CancelSoftwareUpgradeProposal"; - value: CancelSoftwareUpgradeProposalAmino; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalSDKType { - title: string; - description: string; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersion { - /** name of the app module */ - name: string; - /** consensus version of the app module */ - version: Long; -} -export interface ModuleVersionProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion"; - value: Uint8Array; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionAmino { - /** name of the app module */ - name: string; - /** consensus version of the app module */ - version: string; -} -export interface ModuleVersionAminoMsg { - type: "cosmos-sdk/ModuleVersion"; - value: ModuleVersionAmino; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionSDKType { - name: string; - version: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/tx.ts deleted file mode 100644 index ad4aefa70..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/tx.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Period, PeriodAmino, PeriodSDKType } from "./vesting"; -import { Long } from "../../../helpers"; -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; - endTime: Long; - delayed: boolean; -} -export interface MsgCreateVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountAmino { - from_address: string; - to_address: string; - amount: CoinAmino[]; - end_time: string; - delayed: boolean; -} -export interface MsgCreateVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccount"; - value: MsgCreateVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; - end_time: Long; - delayed: boolean; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponse {} -export interface MsgCreateVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; - value: Uint8Array; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseAmino {} -export interface MsgCreateVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccountResponse"; - value: MsgCreateVestingAccountResponseAmino; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseSDKType {} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgCreatePermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; - value: Uint8Array; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccountAmino { - from_address: string; - to_address: string; - amount: CoinAmino[]; -} -export interface MsgCreatePermanentLockedAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; - value: MsgCreatePermanentLockedAccountAmino; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponse {} -export interface MsgCreatePermanentLockedAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; - value: Uint8Array; -} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponseAmino {} -export interface MsgCreatePermanentLockedAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse"; - value: MsgCreatePermanentLockedAccountResponseAmino; -} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponseSDKType {} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccount { - fromAddress: string; - toAddress: string; - startTime: Long; - vestingPeriods: Period[]; -} -export interface MsgCreatePeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccountAmino { - from_address: string; - to_address: string; - start_time: string; - vesting_periods: PeriodAmino[]; -} -export interface MsgCreatePeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; - value: MsgCreatePeriodicVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccountSDKType { - from_address: string; - to_address: string; - start_time: Long; - vesting_periods: PeriodSDKType[]; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponse {} -export interface MsgCreatePeriodicVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponseAmino {} -export interface MsgCreatePeriodicVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse"; - value: MsgCreatePeriodicVestingAccountResponseAmino; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/vesting.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/vesting.ts deleted file mode 100644 index 715c7ac4b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/vesting.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { - BaseAccount, - BaseAccountAmino, - BaseAccountSDKType, -} from "../../auth/v1beta1/auth"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccount { - baseAccount: BaseAccount; - originalVesting: Coin[]; - delegatedFree: Coin[]; - delegatedVesting: Coin[]; - endTime: Long; -} -export interface BaseVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount"; - value: Uint8Array; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountAmino { - base_account?: BaseAccountAmino; - original_vesting: CoinAmino[]; - delegated_free: CoinAmino[]; - delegated_vesting: CoinAmino[]; - end_time: string; -} -export interface BaseVestingAccountAminoMsg { - type: "cosmos-sdk/BaseVestingAccount"; - value: BaseVestingAccountAmino; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountSDKType { - base_account: BaseAccountSDKType; - original_vesting: CoinSDKType[]; - delegated_free: CoinSDKType[]; - delegated_vesting: CoinSDKType[]; - end_time: Long; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; -} -export interface ContinuousVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount"; - value: Uint8Array; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time: string; -} -export interface ContinuousVestingAccountAminoMsg { - type: "cosmos-sdk/ContinuousVestingAccount"; - value: ContinuousVestingAccountAmino; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccount { - baseVestingAccount: BaseVestingAccount; -} -export interface DelayedVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount"; - value: Uint8Array; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface DelayedVestingAccountAminoMsg { - type: "cosmos-sdk/DelayedVestingAccount"; - value: DelayedVestingAccountAmino; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface Period { - length: Long; - amount: Coin[]; -} -export interface PeriodProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.Period"; - value: Uint8Array; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodAmino { - length: string; - amount: CoinAmino[]; -} -export interface PeriodAminoMsg { - type: "cosmos-sdk/Period"; - value: PeriodAmino; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodSDKType { - length: Long; - amount: CoinSDKType[]; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; - vestingPeriods: Period[]; -} -export interface PeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount"; - value: Uint8Array; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time: string; - vesting_periods: PeriodAmino[]; -} -export interface PeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/PeriodicVestingAccount"; - value: PeriodicVestingAccountAmino; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; - vesting_periods: PeriodSDKType[]; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccount { - baseVestingAccount: BaseVestingAccount; -} -export interface PermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount"; - value: Uint8Array; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface PermanentLockedAccountAminoMsg { - type: "cosmos-sdk/PermanentLockedAccount"; - value: PermanentLockedAccountAmino; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos_proto/bundle.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos_proto/bundle.ts deleted file mode 100644 index ff49c79e4..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos_proto/bundle.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as _12 from "./cosmos"; -export const cosmos_proto = { - ..._12, -}; diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos_proto/cosmos.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmos_proto/cosmos.ts deleted file mode 100644 index 819d020b5..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmos_proto/cosmos.ts +++ /dev/null @@ -1,174 +0,0 @@ -export enum ScalarType { - SCALAR_TYPE_UNSPECIFIED = 0, - SCALAR_TYPE_STRING = 1, - SCALAR_TYPE_BYTES = 2, - UNRECOGNIZED = -1, -} -export const ScalarTypeSDKType = ScalarType; -export const ScalarTypeAmino = ScalarType; -export function scalarTypeFromJSON(object: any): ScalarType { - switch (object) { - case 0: - case "SCALAR_TYPE_UNSPECIFIED": - return ScalarType.SCALAR_TYPE_UNSPECIFIED; - case 1: - case "SCALAR_TYPE_STRING": - return ScalarType.SCALAR_TYPE_STRING; - case 2: - case "SCALAR_TYPE_BYTES": - return ScalarType.SCALAR_TYPE_BYTES; - case -1: - case "UNRECOGNIZED": - default: - return ScalarType.UNRECOGNIZED; - } -} -export function scalarTypeToJSON(object: ScalarType): string { - switch (object) { - case ScalarType.SCALAR_TYPE_UNSPECIFIED: - return "SCALAR_TYPE_UNSPECIFIED"; - case ScalarType.SCALAR_TYPE_STRING: - return "SCALAR_TYPE_STRING"; - case ScalarType.SCALAR_TYPE_BYTES: - return "SCALAR_TYPE_BYTES"; - case ScalarType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptor { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description: string; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos_proto.InterfaceDescriptor"; - value: Uint8Array; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorAmino { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description: string; -} -export interface InterfaceDescriptorAminoMsg { - type: "/cosmos_proto.InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorSDKType { - name: string; - description: string; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptor { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - fieldType: ScalarType[]; -} -export interface ScalarDescriptorProtoMsg { - typeUrl: "/cosmos_proto.ScalarDescriptor"; - value: Uint8Array; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorAmino { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - field_type: ScalarType[]; -} -export interface ScalarDescriptorAminoMsg { - type: "/cosmos_proto.ScalarDescriptor"; - value: ScalarDescriptorAmino; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorSDKType { - name: string; - description: string; - field_type: ScalarType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/bundle.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/bundle.ts deleted file mode 100644 index b840eca9d..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/bundle.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as _89 from "./wasm/v1/authz"; -import * as _90 from "./wasm/v1/genesis"; -import * as _91 from "./wasm/v1/ibc"; -import * as _92 from "./wasm/v1/proposal"; -import * as _93 from "./wasm/v1/tx"; -import * as _94 from "./wasm/v1/types"; -export namespace cosmwasm { - export namespace wasm { - export const v1 = { - ..._89, - ..._90, - ..._91, - ..._92, - ..._93, - ..._94, - }; - } -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/authz.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/authz.ts deleted file mode 100644 index 15dfc78cf..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/authz.ts +++ /dev/null @@ -1,319 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../cosmos/base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** - * ContractExecutionAuthorization defines authorization for wasm execute. - * Since: wasmd 0.30 - */ -export interface ContractExecutionAuthorization { - /** Grants for contract executions */ - grants: ContractGrant[]; -} -export interface ContractExecutionAuthorizationProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization"; - value: Uint8Array; -} -/** - * ContractExecutionAuthorization defines authorization for wasm execute. - * Since: wasmd 0.30 - */ -export interface ContractExecutionAuthorizationAmino { - /** Grants for contract executions */ - grants: ContractGrantAmino[]; -} -export interface ContractExecutionAuthorizationAminoMsg { - type: "wasm/ContractExecutionAuthorization"; - value: ContractExecutionAuthorizationAmino; -} -/** - * ContractExecutionAuthorization defines authorization for wasm execute. - * Since: wasmd 0.30 - */ -export interface ContractExecutionAuthorizationSDKType { - grants: ContractGrantSDKType[]; -} -/** - * ContractMigrationAuthorization defines authorization for wasm contract - * migration. Since: wasmd 0.30 - */ -export interface ContractMigrationAuthorization { - /** Grants for contract migrations */ - grants: ContractGrant[]; -} -export interface ContractMigrationAuthorizationProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization"; - value: Uint8Array; -} -/** - * ContractMigrationAuthorization defines authorization for wasm contract - * migration. Since: wasmd 0.30 - */ -export interface ContractMigrationAuthorizationAmino { - /** Grants for contract migrations */ - grants: ContractGrantAmino[]; -} -export interface ContractMigrationAuthorizationAminoMsg { - type: "wasm/ContractMigrationAuthorization"; - value: ContractMigrationAuthorizationAmino; -} -/** - * ContractMigrationAuthorization defines authorization for wasm contract - * migration. Since: wasmd 0.30 - */ -export interface ContractMigrationAuthorizationSDKType { - grants: ContractGrantSDKType[]; -} -/** - * ContractGrant a granted permission for a single contract - * Since: wasmd 0.30 - */ -export interface ContractGrant { - /** Contract is the bech32 address of the smart contract */ - contract: string; - /** - * Limit defines execution limits that are enforced and updated when the grant - * is applied. When the limit lapsed the grant is removed. - */ - limit: Any; - /** - * Filter define more fine-grained control on the message payload passed - * to the contract in the operation. When no filter applies on execution, the - * operation is prohibited. - */ - filter: Any; -} -export interface ContractGrantProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractGrant"; - value: Uint8Array; -} -/** - * ContractGrant a granted permission for a single contract - * Since: wasmd 0.30 - */ -export interface ContractGrantAmino { - /** Contract is the bech32 address of the smart contract */ - contract: string; - /** - * Limit defines execution limits that are enforced and updated when the grant - * is applied. When the limit lapsed the grant is removed. - */ - limit?: AnyAmino; - /** - * Filter define more fine-grained control on the message payload passed - * to the contract in the operation. When no filter applies on execution, the - * operation is prohibited. - */ - filter?: AnyAmino; -} -export interface ContractGrantAminoMsg { - type: "wasm/ContractGrant"; - value: ContractGrantAmino; -} -/** - * ContractGrant a granted permission for a single contract - * Since: wasmd 0.30 - */ -export interface ContractGrantSDKType { - contract: string; - limit: AnySDKType; - filter: AnySDKType; -} -/** - * MaxCallsLimit limited number of calls to the contract. No funds transferable. - * Since: wasmd 0.30 - */ -export interface MaxCallsLimit { - /** Remaining number that is decremented on each execution */ - remaining: Long; -} -export interface MaxCallsLimitProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit"; - value: Uint8Array; -} -/** - * MaxCallsLimit limited number of calls to the contract. No funds transferable. - * Since: wasmd 0.30 - */ -export interface MaxCallsLimitAmino { - /** Remaining number that is decremented on each execution */ - remaining: string; -} -export interface MaxCallsLimitAminoMsg { - type: "wasm/MaxCallsLimit"; - value: MaxCallsLimitAmino; -} -/** - * MaxCallsLimit limited number of calls to the contract. No funds transferable. - * Since: wasmd 0.30 - */ -export interface MaxCallsLimitSDKType { - remaining: Long; -} -/** - * MaxFundsLimit defines the maximal amounts that can be sent to the contract. - * Since: wasmd 0.30 - */ -export interface MaxFundsLimit { - /** Amounts is the maximal amount of tokens transferable to the contract. */ - amounts: Coin[]; -} -export interface MaxFundsLimitProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit"; - value: Uint8Array; -} -/** - * MaxFundsLimit defines the maximal amounts that can be sent to the contract. - * Since: wasmd 0.30 - */ -export interface MaxFundsLimitAmino { - /** Amounts is the maximal amount of tokens transferable to the contract. */ - amounts: CoinAmino[]; -} -export interface MaxFundsLimitAminoMsg { - type: "wasm/MaxFundsLimit"; - value: MaxFundsLimitAmino; -} -/** - * MaxFundsLimit defines the maximal amounts that can be sent to the contract. - * Since: wasmd 0.30 - */ -export interface MaxFundsLimitSDKType { - amounts: CoinSDKType[]; -} -/** - * CombinedLimit defines the maximal amounts that can be sent to a contract and - * the maximal number of calls executable. Both need to remain >0 to be valid. - * Since: wasmd 0.30 - */ -export interface CombinedLimit { - /** Remaining number that is decremented on each execution */ - callsRemaining: Long; - /** Amounts is the maximal amount of tokens transferable to the contract. */ - amounts: Coin[]; -} -export interface CombinedLimitProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.CombinedLimit"; - value: Uint8Array; -} -/** - * CombinedLimit defines the maximal amounts that can be sent to a contract and - * the maximal number of calls executable. Both need to remain >0 to be valid. - * Since: wasmd 0.30 - */ -export interface CombinedLimitAmino { - /** Remaining number that is decremented on each execution */ - calls_remaining: string; - /** Amounts is the maximal amount of tokens transferable to the contract. */ - amounts: CoinAmino[]; -} -export interface CombinedLimitAminoMsg { - type: "wasm/CombinedLimit"; - value: CombinedLimitAmino; -} -/** - * CombinedLimit defines the maximal amounts that can be sent to a contract and - * the maximal number of calls executable. Both need to remain >0 to be valid. - * Since: wasmd 0.30 - */ -export interface CombinedLimitSDKType { - calls_remaining: Long; - amounts: CoinSDKType[]; -} -/** - * AllowAllMessagesFilter is a wildcard to allow any type of contract payload - * message. - * Since: wasmd 0.30 - */ -export interface AllowAllMessagesFilter {} -export interface AllowAllMessagesFilterProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter"; - value: Uint8Array; -} -/** - * AllowAllMessagesFilter is a wildcard to allow any type of contract payload - * message. - * Since: wasmd 0.30 - */ -export interface AllowAllMessagesFilterAmino {} -export interface AllowAllMessagesFilterAminoMsg { - type: "wasm/AllowAllMessagesFilter"; - value: AllowAllMessagesFilterAmino; -} -/** - * AllowAllMessagesFilter is a wildcard to allow any type of contract payload - * message. - * Since: wasmd 0.30 - */ -export interface AllowAllMessagesFilterSDKType {} -/** - * AcceptedMessageKeysFilter accept only the specific contract message keys in - * the json object to be executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessageKeysFilter { - /** Messages is the list of unique keys */ - keys: string[]; -} -export interface AcceptedMessageKeysFilterProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter"; - value: Uint8Array; -} -/** - * AcceptedMessageKeysFilter accept only the specific contract message keys in - * the json object to be executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessageKeysFilterAmino { - /** Messages is the list of unique keys */ - keys: string[]; -} -export interface AcceptedMessageKeysFilterAminoMsg { - type: "wasm/AcceptedMessageKeysFilter"; - value: AcceptedMessageKeysFilterAmino; -} -/** - * AcceptedMessageKeysFilter accept only the specific contract message keys in - * the json object to be executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessageKeysFilterSDKType { - keys: string[]; -} -/** - * AcceptedMessagesFilter accept only the specific raw contract messages to be - * executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessagesFilter { - /** Messages is the list of raw contract messages */ - messages: Uint8Array[]; -} -export interface AcceptedMessagesFilterProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter"; - value: Uint8Array; -} -/** - * AcceptedMessagesFilter accept only the specific raw contract messages to be - * executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessagesFilterAmino { - /** Messages is the list of raw contract messages */ - messages: Uint8Array[]; -} -export interface AcceptedMessagesFilterAminoMsg { - type: "wasm/AcceptedMessagesFilter"; - value: AcceptedMessagesFilterAmino; -} -/** - * AcceptedMessagesFilter accept only the specific raw contract messages to be - * executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessagesFilterSDKType { - messages: Uint8Array[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/genesis.ts deleted file mode 100644 index b8f94039b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/genesis.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - CodeInfo, - CodeInfoAmino, - CodeInfoSDKType, - ContractInfo, - ContractInfoAmino, - ContractInfoSDKType, - Model, - ModelAmino, - ModelSDKType, - ContractCodeHistoryEntry, - ContractCodeHistoryEntryAmino, - ContractCodeHistoryEntrySDKType, -} from "./types"; -import { Long } from "../../../helpers"; -/** GenesisState - genesis state of x/wasm */ -export interface GenesisState { - params: Params; - codes: Code[]; - contracts: Contract[]; - sequences: Sequence[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState - genesis state of x/wasm */ -export interface GenesisStateAmino { - params?: ParamsAmino; - codes: CodeAmino[]; - contracts: ContractAmino[]; - sequences: SequenceAmino[]; -} -export interface GenesisStateAminoMsg { - type: "wasm/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState - genesis state of x/wasm */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - codes: CodeSDKType[]; - contracts: ContractSDKType[]; - sequences: SequenceSDKType[]; -} -/** Code struct encompasses CodeInfo and CodeBytes */ -export interface Code { - codeId: Long; - codeInfo: CodeInfo; - codeBytes: Uint8Array; - /** Pinned to wasmvm cache */ - pinned: boolean; -} -export interface CodeProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Code"; - value: Uint8Array; -} -/** Code struct encompasses CodeInfo and CodeBytes */ -export interface CodeAmino { - code_id: string; - code_info?: CodeInfoAmino; - code_bytes: Uint8Array; - /** Pinned to wasmvm cache */ - pinned: boolean; -} -export interface CodeAminoMsg { - type: "wasm/Code"; - value: CodeAmino; -} -/** Code struct encompasses CodeInfo and CodeBytes */ -export interface CodeSDKType { - code_id: Long; - code_info: CodeInfoSDKType; - code_bytes: Uint8Array; - pinned: boolean; -} -/** Contract struct encompasses ContractAddress, ContractInfo, and ContractState */ -export interface Contract { - contractAddress: string; - contractInfo: ContractInfo; - contractState: Model[]; - contractCodeHistory: ContractCodeHistoryEntry[]; -} -export interface ContractProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Contract"; - value: Uint8Array; -} -/** Contract struct encompasses ContractAddress, ContractInfo, and ContractState */ -export interface ContractAmino { - contract_address: string; - contract_info?: ContractInfoAmino; - contract_state: ModelAmino[]; - contract_code_history: ContractCodeHistoryEntryAmino[]; -} -export interface ContractAminoMsg { - type: "wasm/Contract"; - value: ContractAmino; -} -/** Contract struct encompasses ContractAddress, ContractInfo, and ContractState */ -export interface ContractSDKType { - contract_address: string; - contract_info: ContractInfoSDKType; - contract_state: ModelSDKType[]; - contract_code_history: ContractCodeHistoryEntrySDKType[]; -} -/** Sequence key and value of an id generation counter */ -export interface Sequence { - idKey: Uint8Array; - value: Long; -} -export interface SequenceProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Sequence"; - value: Uint8Array; -} -/** Sequence key and value of an id generation counter */ -export interface SequenceAmino { - id_key: Uint8Array; - value: string; -} -export interface SequenceAminoMsg { - type: "wasm/Sequence"; - value: SequenceAmino; -} -/** Sequence key and value of an id generation counter */ -export interface SequenceSDKType { - id_key: Uint8Array; - value: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/ibc.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/ibc.ts deleted file mode 100644 index d8b7c7859..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/ibc.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { Long } from "../../../helpers"; -/** MsgIBCSend */ -export interface MsgIBCSend { - /** the channel by which the packet will be sent */ - channel: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeoutHeight: Long; - /** - * Timeout timestamp (in nanoseconds) relative to the current block timestamp. - * The timeout is disabled when set to 0. - */ - timeoutTimestamp: Long; - /** - * Data is the payload to transfer. We must not make assumption what format or - * content is in here. - */ - data: Uint8Array; -} -export interface MsgIBCSendProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgIBCSend"; - value: Uint8Array; -} -/** MsgIBCSend */ -export interface MsgIBCSendAmino { - /** the channel by which the packet will be sent */ - channel: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeout_height: string; - /** - * Timeout timestamp (in nanoseconds) relative to the current block timestamp. - * The timeout is disabled when set to 0. - */ - timeout_timestamp: string; - /** - * Data is the payload to transfer. We must not make assumption what format or - * content is in here. - */ - data: Uint8Array; -} -export interface MsgIBCSendAminoMsg { - type: "wasm/MsgIBCSend"; - value: MsgIBCSendAmino; -} -/** MsgIBCSend */ -export interface MsgIBCSendSDKType { - channel: string; - timeout_height: Long; - timeout_timestamp: Long; - data: Uint8Array; -} -/** MsgIBCCloseChannel port and channel need to be owned by the contract */ -export interface MsgIBCCloseChannel { - channel: string; -} -export interface MsgIBCCloseChannelProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgIBCCloseChannel"; - value: Uint8Array; -} -/** MsgIBCCloseChannel port and channel need to be owned by the contract */ -export interface MsgIBCCloseChannelAmino { - channel: string; -} -export interface MsgIBCCloseChannelAminoMsg { - type: "wasm/MsgIBCCloseChannel"; - value: MsgIBCCloseChannelAmino; -} -/** MsgIBCCloseChannel port and channel need to be owned by the contract */ -export interface MsgIBCCloseChannelSDKType { - channel: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/proposal.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/proposal.ts deleted file mode 100644 index fca36e014..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/proposal.ts +++ /dev/null @@ -1,710 +0,0 @@ -import { AccessConfig, AccessConfigAmino, AccessConfigSDKType } from "./types"; -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../cosmos/base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** StoreCodeProposal gov proposal content type to submit WASM code to the system */ -export interface StoreCodeProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - runAs: string; - /** WASMByteCode can be raw or gzip compressed */ - wasmByteCode: Uint8Array; - /** InstantiatePermission to apply on contract creation, optional */ - instantiatePermission: AccessConfig; - /** UnpinCode code on upload, optional */ - unpinCode: boolean; - /** Source is the URL where the code is hosted */ - source: string; - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - */ - builder: string; - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - */ - codeHash: Uint8Array; -} -export interface StoreCodeProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal"; - value: Uint8Array; -} -/** StoreCodeProposal gov proposal content type to submit WASM code to the system */ -export interface StoreCodeProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - run_as: string; - /** WASMByteCode can be raw or gzip compressed */ - wasm_byte_code: string; - /** InstantiatePermission to apply on contract creation, optional */ - instantiate_permission?: AccessConfigAmino; - /** UnpinCode code on upload, optional */ - unpin_code: boolean; - /** Source is the URL where the code is hosted */ - source: string; - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - */ - builder: string; - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - */ - code_hash: Uint8Array; -} -export interface StoreCodeProposalAminoMsg { - type: "wasm/StoreCodeProposal"; - value: StoreCodeProposalAmino; -} -/** StoreCodeProposal gov proposal content type to submit WASM code to the system */ -export interface StoreCodeProposalSDKType { - title: string; - description: string; - run_as: string; - wasm_byte_code: Uint8Array; - instantiate_permission: AccessConfigSDKType; - unpin_code: boolean; - source: string; - builder: string; - code_hash: Uint8Array; -} -/** - * InstantiateContractProposal gov proposal content type to instantiate a - * contract. - */ -export interface InstantiateContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - runAs: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; -} -export interface InstantiateContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal"; - value: Uint8Array; -} -/** - * InstantiateContractProposal gov proposal content type to instantiate a - * contract. - */ -export interface InstantiateContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - run_as: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; -} -export interface InstantiateContractProposalAminoMsg { - type: "wasm/InstantiateContractProposal"; - value: InstantiateContractProposalAmino; -} -/** - * InstantiateContractProposal gov proposal content type to instantiate a - * contract. - */ -export interface InstantiateContractProposalSDKType { - title: string; - description: string; - run_as: string; - admin: string; - code_id: Long; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; -} -/** - * InstantiateContract2Proposal gov proposal content type to instantiate - * contract 2 - */ -export interface InstantiateContract2Proposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's enviroment as sender */ - runAs: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encode message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; - /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */ - salt: Uint8Array; - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - */ - fixMsg: boolean; -} -export interface InstantiateContract2ProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal"; - value: Uint8Array; -} -/** - * InstantiateContract2Proposal gov proposal content type to instantiate - * contract 2 - */ -export interface InstantiateContract2ProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's enviroment as sender */ - run_as: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encode message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; - /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */ - salt: Uint8Array; - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - */ - fix_msg: boolean; -} -export interface InstantiateContract2ProposalAminoMsg { - type: "wasm/InstantiateContract2Proposal"; - value: InstantiateContract2ProposalAmino; -} -/** - * InstantiateContract2Proposal gov proposal content type to instantiate - * contract 2 - */ -export interface InstantiateContract2ProposalSDKType { - title: string; - description: string; - run_as: string; - admin: string; - code_id: Long; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; - salt: Uint8Array; - fix_msg: boolean; -} -/** MigrateContractProposal gov proposal content type to migrate a contract. */ -export interface MigrateContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; - /** CodeID references the new WASM code */ - codeId: Long; - /** Msg json encoded message to be passed to the contract on migration */ - msg: Uint8Array; -} -export interface MigrateContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal"; - value: Uint8Array; -} -/** MigrateContractProposal gov proposal content type to migrate a contract. */ -export interface MigrateContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; - /** CodeID references the new WASM code */ - code_id: string; - /** Msg json encoded message to be passed to the contract on migration */ - msg: Uint8Array; -} -export interface MigrateContractProposalAminoMsg { - type: "wasm/MigrateContractProposal"; - value: MigrateContractProposalAmino; -} -/** MigrateContractProposal gov proposal content type to migrate a contract. */ -export interface MigrateContractProposalSDKType { - title: string; - description: string; - contract: string; - code_id: Long; - msg: Uint8Array; -} -/** SudoContractProposal gov proposal content type to call sudo on a contract. */ -export interface SudoContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract as sudo */ - msg: Uint8Array; -} -export interface SudoContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal"; - value: Uint8Array; -} -/** SudoContractProposal gov proposal content type to call sudo on a contract. */ -export interface SudoContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract as sudo */ - msg: Uint8Array; -} -export interface SudoContractProposalAminoMsg { - type: "wasm/SudoContractProposal"; - value: SudoContractProposalAmino; -} -/** SudoContractProposal gov proposal content type to call sudo on a contract. */ -export interface SudoContractProposalSDKType { - title: string; - description: string; - contract: string; - msg: Uint8Array; -} -/** - * ExecuteContractProposal gov proposal content type to call execute on a - * contract. - */ -export interface ExecuteContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - runAs: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract as execute */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; -} -export interface ExecuteContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal"; - value: Uint8Array; -} -/** - * ExecuteContractProposal gov proposal content type to call execute on a - * contract. - */ -export interface ExecuteContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - run_as: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract as execute */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; -} -export interface ExecuteContractProposalAminoMsg { - type: "wasm/ExecuteContractProposal"; - value: ExecuteContractProposalAmino; -} -/** - * ExecuteContractProposal gov proposal content type to call execute on a - * contract. - */ -export interface ExecuteContractProposalSDKType { - title: string; - description: string; - run_as: string; - contract: string; - msg: Uint8Array; - funds: CoinSDKType[]; -} -/** UpdateAdminProposal gov proposal content type to set an admin for a contract. */ -export interface UpdateAdminProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** NewAdmin address to be set */ - newAdmin: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface UpdateAdminProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal"; - value: Uint8Array; -} -/** UpdateAdminProposal gov proposal content type to set an admin for a contract. */ -export interface UpdateAdminProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** NewAdmin address to be set */ - new_admin: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface UpdateAdminProposalAminoMsg { - type: "wasm/UpdateAdminProposal"; - value: UpdateAdminProposalAmino; -} -/** UpdateAdminProposal gov proposal content type to set an admin for a contract. */ -export interface UpdateAdminProposalSDKType { - title: string; - description: string; - new_admin: string; - contract: string; -} -/** - * ClearAdminProposal gov proposal content type to clear the admin of a - * contract. - */ -export interface ClearAdminProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface ClearAdminProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal"; - value: Uint8Array; -} -/** - * ClearAdminProposal gov proposal content type to clear the admin of a - * contract. - */ -export interface ClearAdminProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface ClearAdminProposalAminoMsg { - type: "wasm/ClearAdminProposal"; - value: ClearAdminProposalAmino; -} -/** - * ClearAdminProposal gov proposal content type to clear the admin of a - * contract. - */ -export interface ClearAdminProposalSDKType { - title: string; - description: string; - contract: string; -} -/** - * PinCodesProposal gov proposal content type to pin a set of code ids in the - * wasmvm cache. - */ -export interface PinCodesProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** CodeIDs references the new WASM codes */ - codeIds: Long[]; -} -export interface PinCodesProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal"; - value: Uint8Array; -} -/** - * PinCodesProposal gov proposal content type to pin a set of code ids in the - * wasmvm cache. - */ -export interface PinCodesProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** CodeIDs references the new WASM codes */ - code_ids: string[]; -} -export interface PinCodesProposalAminoMsg { - type: "wasm/PinCodesProposal"; - value: PinCodesProposalAmino; -} -/** - * PinCodesProposal gov proposal content type to pin a set of code ids in the - * wasmvm cache. - */ -export interface PinCodesProposalSDKType { - title: string; - description: string; - code_ids: Long[]; -} -/** - * UnpinCodesProposal gov proposal content type to unpin a set of code ids in - * the wasmvm cache. - */ -export interface UnpinCodesProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** CodeIDs references the WASM codes */ - codeIds: Long[]; -} -export interface UnpinCodesProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal"; - value: Uint8Array; -} -/** - * UnpinCodesProposal gov proposal content type to unpin a set of code ids in - * the wasmvm cache. - */ -export interface UnpinCodesProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** CodeIDs references the WASM codes */ - code_ids: string[]; -} -export interface UnpinCodesProposalAminoMsg { - type: "wasm/UnpinCodesProposal"; - value: UnpinCodesProposalAmino; -} -/** - * UnpinCodesProposal gov proposal content type to unpin a set of code ids in - * the wasmvm cache. - */ -export interface UnpinCodesProposalSDKType { - title: string; - description: string; - code_ids: Long[]; -} -/** - * AccessConfigUpdate contains the code id and the access config to be - * applied. - */ -export interface AccessConfigUpdate { - /** CodeID is the reference to the stored WASM code to be updated */ - codeId: Long; - /** InstantiatePermission to apply to the set of code ids */ - instantiatePermission: AccessConfig; -} -export interface AccessConfigUpdateProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate"; - value: Uint8Array; -} -/** - * AccessConfigUpdate contains the code id and the access config to be - * applied. - */ -export interface AccessConfigUpdateAmino { - /** CodeID is the reference to the stored WASM code to be updated */ - code_id: string; - /** InstantiatePermission to apply to the set of code ids */ - instantiate_permission?: AccessConfigAmino; -} -export interface AccessConfigUpdateAminoMsg { - type: "wasm/AccessConfigUpdate"; - value: AccessConfigUpdateAmino; -} -/** - * AccessConfigUpdate contains the code id and the access config to be - * applied. - */ -export interface AccessConfigUpdateSDKType { - code_id: Long; - instantiate_permission: AccessConfigSDKType; -} -/** - * UpdateInstantiateConfigProposal gov proposal content type to update - * instantiate config to a set of code ids. - */ -export interface UpdateInstantiateConfigProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** - * AccessConfigUpdate contains the list of code ids and the access config - * to be applied. - */ - accessConfigUpdates: AccessConfigUpdate[]; -} -export interface UpdateInstantiateConfigProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal"; - value: Uint8Array; -} -/** - * UpdateInstantiateConfigProposal gov proposal content type to update - * instantiate config to a set of code ids. - */ -export interface UpdateInstantiateConfigProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** - * AccessConfigUpdate contains the list of code ids and the access config - * to be applied. - */ - access_config_updates: AccessConfigUpdateAmino[]; -} -export interface UpdateInstantiateConfigProposalAminoMsg { - type: "wasm/UpdateInstantiateConfigProposal"; - value: UpdateInstantiateConfigProposalAmino; -} -/** - * UpdateInstantiateConfigProposal gov proposal content type to update - * instantiate config to a set of code ids. - */ -export interface UpdateInstantiateConfigProposalSDKType { - title: string; - description: string; - access_config_updates: AccessConfigUpdateSDKType[]; -} -/** - * StoreAndInstantiateContractProposal gov proposal content type to store - * and instantiate the contract. - */ -export interface StoreAndInstantiateContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - runAs: string; - /** WASMByteCode can be raw or gzip compressed */ - wasmByteCode: Uint8Array; - /** InstantiatePermission to apply on contract creation, optional */ - instantiatePermission: AccessConfig; - /** UnpinCode code on upload, optional */ - unpinCode: boolean; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; - /** Source is the URL where the code is hosted */ - source: string; - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - */ - builder: string; - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - */ - codeHash: Uint8Array; -} -export interface StoreAndInstantiateContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal"; - value: Uint8Array; -} -/** - * StoreAndInstantiateContractProposal gov proposal content type to store - * and instantiate the contract. - */ -export interface StoreAndInstantiateContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - run_as: string; - /** WASMByteCode can be raw or gzip compressed */ - wasm_byte_code: string; - /** InstantiatePermission to apply on contract creation, optional */ - instantiate_permission?: AccessConfigAmino; - /** UnpinCode code on upload, optional */ - unpin_code: boolean; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; - /** Source is the URL where the code is hosted */ - source: string; - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - */ - builder: string; - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - */ - code_hash: Uint8Array; -} -export interface StoreAndInstantiateContractProposalAminoMsg { - type: "wasm/StoreAndInstantiateContractProposal"; - value: StoreAndInstantiateContractProposalAmino; -} -/** - * StoreAndInstantiateContractProposal gov proposal content type to store - * and instantiate the contract. - */ -export interface StoreAndInstantiateContractProposalSDKType { - title: string; - description: string; - run_as: string; - wasm_byte_code: Uint8Array; - instantiate_permission: AccessConfigSDKType; - unpin_code: boolean; - admin: string; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; - source: string; - builder: string; - code_hash: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/tx.ts deleted file mode 100644 index 3a5ce955c..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/tx.ts +++ /dev/null @@ -1,465 +0,0 @@ -import { AccessConfig, AccessConfigAmino, AccessConfigSDKType } from "./types"; -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../cosmos/base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** MsgStoreCode submit Wasm code to the system */ -export interface MsgStoreCode { - /** Sender is the that actor that signed the messages */ - sender: string; - /** WASMByteCode can be raw or gzip compressed */ - wasmByteCode: Uint8Array; - /** - * InstantiatePermission access control to apply on contract creation, - * optional - */ - instantiatePermission: AccessConfig; -} -export interface MsgStoreCodeProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode"; - value: Uint8Array; -} -/** MsgStoreCode submit Wasm code to the system */ -export interface MsgStoreCodeAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** WASMByteCode can be raw or gzip compressed */ - wasm_byte_code: string; - /** - * InstantiatePermission access control to apply on contract creation, - * optional - */ - instantiate_permission?: AccessConfigAmino; -} -export interface MsgStoreCodeAminoMsg { - type: "wasm/MsgStoreCode"; - value: MsgStoreCodeAmino; -} -/** MsgStoreCode submit Wasm code to the system */ -export interface MsgStoreCodeSDKType { - sender: string; - wasm_byte_code: Uint8Array; - instantiate_permission: AccessConfigSDKType; -} -/** MsgStoreCodeResponse returns store result data. */ -export interface MsgStoreCodeResponse { - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Checksum is the sha256 hash of the stored code */ - checksum: Uint8Array; -} -export interface MsgStoreCodeResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse"; - value: Uint8Array; -} -/** MsgStoreCodeResponse returns store result data. */ -export interface MsgStoreCodeResponseAmino { - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Checksum is the sha256 hash of the stored code */ - checksum: Uint8Array; -} -export interface MsgStoreCodeResponseAminoMsg { - type: "wasm/MsgStoreCodeResponse"; - value: MsgStoreCodeResponseAmino; -} -/** MsgStoreCodeResponse returns store result data. */ -export interface MsgStoreCodeResponseSDKType { - code_id: Long; - checksum: Uint8Array; -} -/** - * MsgInstantiateContract create a new smart contract instance for the given - * code id. - */ -export interface MsgInstantiateContract { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; -} -export interface MsgInstantiateContractProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract"; - value: Uint8Array; -} -/** - * MsgInstantiateContract create a new smart contract instance for the given - * code id. - */ -export interface MsgInstantiateContractAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; -} -export interface MsgInstantiateContractAminoMsg { - type: "wasm/MsgInstantiateContract"; - value: MsgInstantiateContractAmino; -} -/** - * MsgInstantiateContract create a new smart contract instance for the given - * code id. - */ -export interface MsgInstantiateContractSDKType { - sender: string; - admin: string; - code_id: Long; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; -} -/** - * MsgInstantiateContract2 create a new smart contract instance for the given - * code id with a predicable address. - */ -export interface MsgInstantiateContract2 { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; - /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */ - salt: Uint8Array; - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - */ - fixMsg: boolean; -} -export interface MsgInstantiateContract2ProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2"; - value: Uint8Array; -} -/** - * MsgInstantiateContract2 create a new smart contract instance for the given - * code id with a predicable address. - */ -export interface MsgInstantiateContract2Amino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; - /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */ - salt: Uint8Array; - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - */ - fix_msg: boolean; -} -export interface MsgInstantiateContract2AminoMsg { - type: "wasm/MsgInstantiateContract2"; - value: MsgInstantiateContract2Amino; -} -/** - * MsgInstantiateContract2 create a new smart contract instance for the given - * code id with a predicable address. - */ -export interface MsgInstantiateContract2SDKType { - sender: string; - admin: string; - code_id: Long; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; - salt: Uint8Array; - fix_msg: boolean; -} -/** MsgInstantiateContractResponse return instantiation result data */ -export interface MsgInstantiateContractResponse { - /** Address is the bech32 address of the new contract instance. */ - address: string; - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgInstantiateContractResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse"; - value: Uint8Array; -} -/** MsgInstantiateContractResponse return instantiation result data */ -export interface MsgInstantiateContractResponseAmino { - /** Address is the bech32 address of the new contract instance. */ - address: string; - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgInstantiateContractResponseAminoMsg { - type: "wasm/MsgInstantiateContractResponse"; - value: MsgInstantiateContractResponseAmino; -} -/** MsgInstantiateContractResponse return instantiation result data */ -export interface MsgInstantiateContractResponseSDKType { - address: string; - data: Uint8Array; -} -/** MsgInstantiateContract2Response return instantiation result data */ -export interface MsgInstantiateContract2Response { - /** Address is the bech32 address of the new contract instance. */ - address: string; - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgInstantiateContract2ResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response"; - value: Uint8Array; -} -/** MsgInstantiateContract2Response return instantiation result data */ -export interface MsgInstantiateContract2ResponseAmino { - /** Address is the bech32 address of the new contract instance. */ - address: string; - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgInstantiateContract2ResponseAminoMsg { - type: "wasm/MsgInstantiateContract2Response"; - value: MsgInstantiateContract2ResponseAmino; -} -/** MsgInstantiateContract2Response return instantiation result data */ -export interface MsgInstantiateContract2ResponseSDKType { - address: string; - data: Uint8Array; -} -/** MsgExecuteContract submits the given message data to a smart contract */ -export interface MsgExecuteContract { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on execution */ - funds: Coin[]; -} -export interface MsgExecuteContractProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract"; - value: Uint8Array; -} -/** MsgExecuteContract submits the given message data to a smart contract */ -export interface MsgExecuteContractAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on execution */ - funds: CoinAmino[]; -} -export interface MsgExecuteContractAminoMsg { - type: "wasm/MsgExecuteContract"; - value: MsgExecuteContractAmino; -} -/** MsgExecuteContract submits the given message data to a smart contract */ -export interface MsgExecuteContractSDKType { - sender: string; - contract: string; - msg: Uint8Array; - funds: CoinSDKType[]; -} -/** MsgExecuteContractResponse returns execution result data. */ -export interface MsgExecuteContractResponse { - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgExecuteContractResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse"; - value: Uint8Array; -} -/** MsgExecuteContractResponse returns execution result data. */ -export interface MsgExecuteContractResponseAmino { - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgExecuteContractResponseAminoMsg { - type: "wasm/MsgExecuteContractResponse"; - value: MsgExecuteContractResponseAmino; -} -/** MsgExecuteContractResponse returns execution result data. */ -export interface MsgExecuteContractResponseSDKType { - data: Uint8Array; -} -/** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */ -export interface MsgMigrateContract { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; - /** CodeID references the new WASM code */ - codeId: Long; - /** Msg json encoded message to be passed to the contract on migration */ - msg: Uint8Array; -} -export interface MsgMigrateContractProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract"; - value: Uint8Array; -} -/** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */ -export interface MsgMigrateContractAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; - /** CodeID references the new WASM code */ - code_id: string; - /** Msg json encoded message to be passed to the contract on migration */ - msg: Uint8Array; -} -export interface MsgMigrateContractAminoMsg { - type: "wasm/MsgMigrateContract"; - value: MsgMigrateContractAmino; -} -/** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */ -export interface MsgMigrateContractSDKType { - sender: string; - contract: string; - code_id: Long; - msg: Uint8Array; -} -/** MsgMigrateContractResponse returns contract migration result data. */ -export interface MsgMigrateContractResponse { - /** - * Data contains same raw bytes returned as data from the wasm contract. - * (May be empty) - */ - data: Uint8Array; -} -export interface MsgMigrateContractResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse"; - value: Uint8Array; -} -/** MsgMigrateContractResponse returns contract migration result data. */ -export interface MsgMigrateContractResponseAmino { - /** - * Data contains same raw bytes returned as data from the wasm contract. - * (May be empty) - */ - data: Uint8Array; -} -export interface MsgMigrateContractResponseAminoMsg { - type: "wasm/MsgMigrateContractResponse"; - value: MsgMigrateContractResponseAmino; -} -/** MsgMigrateContractResponse returns contract migration result data. */ -export interface MsgMigrateContractResponseSDKType { - data: Uint8Array; -} -/** MsgUpdateAdmin sets a new admin for a smart contract */ -export interface MsgUpdateAdmin { - /** Sender is the that actor that signed the messages */ - sender: string; - /** NewAdmin address to be set */ - newAdmin: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface MsgUpdateAdminProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin"; - value: Uint8Array; -} -/** MsgUpdateAdmin sets a new admin for a smart contract */ -export interface MsgUpdateAdminAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** NewAdmin address to be set */ - new_admin: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface MsgUpdateAdminAminoMsg { - type: "wasm/MsgUpdateAdmin"; - value: MsgUpdateAdminAmino; -} -/** MsgUpdateAdmin sets a new admin for a smart contract */ -export interface MsgUpdateAdminSDKType { - sender: string; - new_admin: string; - contract: string; -} -/** MsgUpdateAdminResponse returns empty data */ -export interface MsgUpdateAdminResponse {} -export interface MsgUpdateAdminResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateAdminResponse returns empty data */ -export interface MsgUpdateAdminResponseAmino {} -export interface MsgUpdateAdminResponseAminoMsg { - type: "wasm/MsgUpdateAdminResponse"; - value: MsgUpdateAdminResponseAmino; -} -/** MsgUpdateAdminResponse returns empty data */ -export interface MsgUpdateAdminResponseSDKType {} -/** MsgClearAdmin removes any admin stored for a smart contract */ -export interface MsgClearAdmin { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface MsgClearAdminProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin"; - value: Uint8Array; -} -/** MsgClearAdmin removes any admin stored for a smart contract */ -export interface MsgClearAdminAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface MsgClearAdminAminoMsg { - type: "wasm/MsgClearAdmin"; - value: MsgClearAdminAmino; -} -/** MsgClearAdmin removes any admin stored for a smart contract */ -export interface MsgClearAdminSDKType { - sender: string; - contract: string; -} -/** MsgClearAdminResponse returns empty data */ -export interface MsgClearAdminResponse {} -export interface MsgClearAdminResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse"; - value: Uint8Array; -} -/** MsgClearAdminResponse returns empty data */ -export interface MsgClearAdminResponseAmino {} -export interface MsgClearAdminResponseAminoMsg { - type: "wasm/MsgClearAdminResponse"; - value: MsgClearAdminResponseAmino; -} -/** MsgClearAdminResponse returns empty data */ -export interface MsgClearAdminResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/types.ts b/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/types.ts deleted file mode 100644 index 80d75fa5d..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/types.ts +++ /dev/null @@ -1,383 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** AccessType permission types */ -export enum AccessType { - /** ACCESS_TYPE_UNSPECIFIED - AccessTypeUnspecified placeholder for empty value */ - ACCESS_TYPE_UNSPECIFIED = 0, - /** ACCESS_TYPE_NOBODY - AccessTypeNobody forbidden */ - ACCESS_TYPE_NOBODY = 1, - /** - * ACCESS_TYPE_ONLY_ADDRESS - AccessTypeOnlyAddress restricted to a single address - * Deprecated: use AccessTypeAnyOfAddresses instead - */ - ACCESS_TYPE_ONLY_ADDRESS = 2, - /** ACCESS_TYPE_EVERYBODY - AccessTypeEverybody unrestricted */ - ACCESS_TYPE_EVERYBODY = 3, - /** ACCESS_TYPE_ANY_OF_ADDRESSES - AccessTypeAnyOfAddresses allow any of the addresses */ - ACCESS_TYPE_ANY_OF_ADDRESSES = 4, - UNRECOGNIZED = -1, -} -export const AccessTypeSDKType = AccessType; -export const AccessTypeAmino = AccessType; -export function accessTypeFromJSON(object: any): AccessType { - switch (object) { - case 0: - case "ACCESS_TYPE_UNSPECIFIED": - return AccessType.ACCESS_TYPE_UNSPECIFIED; - case 1: - case "ACCESS_TYPE_NOBODY": - return AccessType.ACCESS_TYPE_NOBODY; - case 2: - case "ACCESS_TYPE_ONLY_ADDRESS": - return AccessType.ACCESS_TYPE_ONLY_ADDRESS; - case 3: - case "ACCESS_TYPE_EVERYBODY": - return AccessType.ACCESS_TYPE_EVERYBODY; - case 4: - case "ACCESS_TYPE_ANY_OF_ADDRESSES": - return AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES; - case -1: - case "UNRECOGNIZED": - default: - return AccessType.UNRECOGNIZED; - } -} -export function accessTypeToJSON(object: AccessType): string { - switch (object) { - case AccessType.ACCESS_TYPE_UNSPECIFIED: - return "ACCESS_TYPE_UNSPECIFIED"; - case AccessType.ACCESS_TYPE_NOBODY: - return "ACCESS_TYPE_NOBODY"; - case AccessType.ACCESS_TYPE_ONLY_ADDRESS: - return "ACCESS_TYPE_ONLY_ADDRESS"; - case AccessType.ACCESS_TYPE_EVERYBODY: - return "ACCESS_TYPE_EVERYBODY"; - case AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES: - return "ACCESS_TYPE_ANY_OF_ADDRESSES"; - case AccessType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ContractCodeHistoryOperationType actions that caused a code change */ -export enum ContractCodeHistoryOperationType { - /** CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - ContractCodeHistoryOperationTypeUnspecified placeholder for empty value */ - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0, - /** CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - ContractCodeHistoryOperationTypeInit on chain contract instantiation */ - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1, - /** CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - ContractCodeHistoryOperationTypeMigrate code migration */ - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2, - /** CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - ContractCodeHistoryOperationTypeGenesis based on genesis data */ - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3, - UNRECOGNIZED = -1, -} -export const ContractCodeHistoryOperationTypeSDKType = - ContractCodeHistoryOperationType; -export const ContractCodeHistoryOperationTypeAmino = - ContractCodeHistoryOperationType; -export function contractCodeHistoryOperationTypeFromJSON( - object: any -): ContractCodeHistoryOperationType { - switch (object) { - case 0: - case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED": - return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED; - case 1: - case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT": - return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT; - case 2: - case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE": - return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE; - case 3: - case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS": - return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS; - case -1: - case "UNRECOGNIZED": - default: - return ContractCodeHistoryOperationType.UNRECOGNIZED; - } -} -export function contractCodeHistoryOperationTypeToJSON( - object: ContractCodeHistoryOperationType -): string { - switch (object) { - case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: - return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED"; - case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: - return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT"; - case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: - return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE"; - case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: - return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS"; - case ContractCodeHistoryOperationType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** AccessTypeParam */ -export interface AccessTypeParam { - value: AccessType; -} -export interface AccessTypeParamProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AccessTypeParam"; - value: Uint8Array; -} -/** AccessTypeParam */ -export interface AccessTypeParamAmino { - value: AccessType; -} -export interface AccessTypeParamAminoMsg { - type: "wasm/AccessTypeParam"; - value: AccessTypeParamAmino; -} -/** AccessTypeParam */ -export interface AccessTypeParamSDKType { - value: AccessType; -} -/** AccessConfig access control type. */ -export interface AccessConfig { - permission: AccessType; - /** - * Address - * Deprecated: replaced by addresses - */ - address: string; - addresses: string[]; -} -export interface AccessConfigProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AccessConfig"; - value: Uint8Array; -} -/** AccessConfig access control type. */ -export interface AccessConfigAmino { - permission: AccessType; - /** - * Address - * Deprecated: replaced by addresses - */ - address: string; - addresses: string[]; -} -export interface AccessConfigAminoMsg { - type: "wasm/AccessConfig"; - value: AccessConfigAmino; -} -/** AccessConfig access control type. */ -export interface AccessConfigSDKType { - permission: AccessType; - address: string; - addresses: string[]; -} -/** Params defines the set of wasm parameters. */ -export interface Params { - codeUploadAccess: AccessConfig; - instantiateDefaultPermission: AccessType; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Params"; - value: Uint8Array; -} -/** Params defines the set of wasm parameters. */ -export interface ParamsAmino { - code_upload_access?: AccessConfigAmino; - instantiate_default_permission: AccessType; -} -export interface ParamsAminoMsg { - type: "wasm/Params"; - value: ParamsAmino; -} -/** Params defines the set of wasm parameters. */ -export interface ParamsSDKType { - code_upload_access: AccessConfigSDKType; - instantiate_default_permission: AccessType; -} -/** CodeInfo is data for the uploaded contract WASM code */ -export interface CodeInfo { - /** CodeHash is the unique identifier created by wasmvm */ - codeHash: Uint8Array; - /** Creator address who initially stored the code */ - creator: string; - /** InstantiateConfig access control to apply on contract creation, optional */ - instantiateConfig: AccessConfig; -} -export interface CodeInfoProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.CodeInfo"; - value: Uint8Array; -} -/** CodeInfo is data for the uploaded contract WASM code */ -export interface CodeInfoAmino { - /** CodeHash is the unique identifier created by wasmvm */ - code_hash: Uint8Array; - /** Creator address who initially stored the code */ - creator: string; - /** InstantiateConfig access control to apply on contract creation, optional */ - instantiate_config?: AccessConfigAmino; -} -export interface CodeInfoAminoMsg { - type: "wasm/CodeInfo"; - value: CodeInfoAmino; -} -/** CodeInfo is data for the uploaded contract WASM code */ -export interface CodeInfoSDKType { - code_hash: Uint8Array; - creator: string; - instantiate_config: AccessConfigSDKType; -} -/** ContractInfo stores a WASM contract instance */ -export interface ContractInfo { - /** CodeID is the reference to the stored Wasm code */ - codeId: Long; - /** Creator address who initially instantiated the contract */ - creator: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Created Tx position when the contract was instantiated. */ - created: AbsoluteTxPosition; - ibcPortId: string; - /** - * Extension is an extension point to store custom metadata within the - * persistence model. - */ - extension: Any; -} -export interface ContractInfoProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractInfo"; - value: Uint8Array; -} -/** ContractInfo stores a WASM contract instance */ -export interface ContractInfoAmino { - /** CodeID is the reference to the stored Wasm code */ - code_id: string; - /** Creator address who initially instantiated the contract */ - creator: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Created Tx position when the contract was instantiated. */ - created?: AbsoluteTxPositionAmino; - ibc_port_id: string; - /** - * Extension is an extension point to store custom metadata within the - * persistence model. - */ - extension?: AnyAmino; -} -export interface ContractInfoAminoMsg { - type: "wasm/ContractInfo"; - value: ContractInfoAmino; -} -/** ContractInfo stores a WASM contract instance */ -export interface ContractInfoSDKType { - code_id: Long; - creator: string; - admin: string; - label: string; - created: AbsoluteTxPositionSDKType; - ibc_port_id: string; - extension: AnySDKType; -} -/** ContractCodeHistoryEntry metadata to a contract. */ -export interface ContractCodeHistoryEntry { - operation: ContractCodeHistoryOperationType; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Updated Tx position when the operation was executed. */ - updated: AbsoluteTxPosition; - msg: Uint8Array; -} -export interface ContractCodeHistoryEntryProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractCodeHistoryEntry"; - value: Uint8Array; -} -/** ContractCodeHistoryEntry metadata to a contract. */ -export interface ContractCodeHistoryEntryAmino { - operation: ContractCodeHistoryOperationType; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Updated Tx position when the operation was executed. */ - updated?: AbsoluteTxPositionAmino; - msg: Uint8Array; -} -export interface ContractCodeHistoryEntryAminoMsg { - type: "wasm/ContractCodeHistoryEntry"; - value: ContractCodeHistoryEntryAmino; -} -/** ContractCodeHistoryEntry metadata to a contract. */ -export interface ContractCodeHistoryEntrySDKType { - operation: ContractCodeHistoryOperationType; - code_id: Long; - updated: AbsoluteTxPositionSDKType; - msg: Uint8Array; -} -/** - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ -export interface AbsoluteTxPosition { - /** BlockHeight is the block the contract was created at */ - blockHeight: Long; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - */ - txIndex: Long; -} -export interface AbsoluteTxPositionProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AbsoluteTxPosition"; - value: Uint8Array; -} -/** - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ -export interface AbsoluteTxPositionAmino { - /** BlockHeight is the block the contract was created at */ - block_height: string; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - */ - tx_index: string; -} -export interface AbsoluteTxPositionAminoMsg { - type: "wasm/AbsoluteTxPosition"; - value: AbsoluteTxPositionAmino; -} -/** - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ -export interface AbsoluteTxPositionSDKType { - block_height: Long; - tx_index: Long; -} -/** Model is a struct that holds a KV pair */ -export interface Model { - /** hex-encode key to read it better (this is often ascii) */ - key: Uint8Array; - /** base64-encode raw value */ - value: Uint8Array; -} -export interface ModelProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Model"; - value: Uint8Array; -} -/** Model is a struct that holds a KV pair */ -export interface ModelAmino { - /** hex-encode key to read it better (this is often ascii) */ - key: Uint8Array; - /** base64-encode raw value */ - value: Uint8Array; -} -export interface ModelAminoMsg { - type: "wasm/Model"; - value: ModelAmino; -} -/** Model is a struct that holds a KV pair */ -export interface ModelSDKType { - key: Uint8Array; - value: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/google/api/annotations.ts b/Agoric/agoric-starter/src/types/proto-interfaces/google/api/annotations.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/google/api/annotations.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/google/api/http.ts b/Agoric/agoric-starter/src/types/proto-interfaces/google/api/http.ts deleted file mode 100644 index bf9446bbe..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/google/api/http.ts +++ /dev/null @@ -1,1025 +0,0 @@ -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface Http { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules: HttpRule[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fullyDecodeReservedExpansion: boolean; -} -export interface HttpProtoMsg { - typeUrl: "/google.api.Http"; - value: Uint8Array; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpAmino { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules: HttpRuleAmino[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fully_decode_reserved_expansion: boolean; -} -export interface HttpAminoMsg { - type: "/google.api.Http"; - value: HttpAmino; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpSDKType { - rules: HttpRuleSDKType[]; - fully_decode_reserved_expansion: boolean; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRule { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. - */ - selector: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPattern; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - responseBody: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additionalBindings: HttpRule[]; -} -export interface HttpRuleProtoMsg { - typeUrl: "/google.api.HttpRule"; - value: Uint8Array; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleAmino { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. - */ - selector: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPatternAmino; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - response_body: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additional_bindings: HttpRuleAmino[]; -} -export interface HttpRuleAminoMsg { - type: "/google.api.HttpRule"; - value: HttpRuleAmino; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleSDKType { - selector: string; - get?: string; - put?: string; - post?: string; - delete?: string; - patch?: string; - custom?: CustomHttpPatternSDKType; - body: string; - response_body: string; - additional_bindings: HttpRuleSDKType[]; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPattern { - /** The name of this custom HTTP verb. */ - kind: string; - /** The path matched by this custom verb. */ - path: string; -} -export interface CustomHttpPatternProtoMsg { - typeUrl: "/google.api.CustomHttpPattern"; - value: Uint8Array; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternAmino { - /** The name of this custom HTTP verb. */ - kind: string; - /** The path matched by this custom verb. */ - path: string; -} -export interface CustomHttpPatternAminoMsg { - type: "/google.api.CustomHttpPattern"; - value: CustomHttpPatternAmino; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternSDKType { - kind: string; - path: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/google/bundle.ts b/Agoric/agoric-starter/src/types/proto-interfaces/google/bundle.ts deleted file mode 100644 index 759f402bf..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/google/bundle.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as _95 from "./api/annotations"; -import * as _96 from "./api/http"; -import * as _97 from "./protobuf/any"; -import * as _98 from "./protobuf/descriptor"; -import * as _99 from "./protobuf/duration"; -import * as _100 from "./protobuf/empty"; -import * as _101 from "./protobuf/timestamp"; -export namespace google { - export const api = { - ..._95, - ..._96, - }; - export const protobuf = { - ..._97, - ..._98, - ..._99, - ..._100, - ..._101, - }; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/any.ts b/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/any.ts deleted file mode 100644 index e19166eff..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/any.ts +++ /dev/null @@ -1,325 +0,0 @@ -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface Any { - $typeUrl?: string; - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - typeUrl: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: Uint8Array; -} -export interface AnyProtoMsg { - typeUrl: "/google.protobuf.Any"; - value: Uint8Array; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnyAmino { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: any; -} -export interface AnyAminoMsg { - type: string; - value: AnyAmino; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnySDKType { - $typeUrl?: string; - type_url: string; - value: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/descriptor.ts b/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/descriptor.ts deleted file mode 100644 index e7c103054..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/descriptor.ts +++ /dev/null @@ -1,2215 +0,0 @@ -import { Long } from "../../helpers"; -export enum FieldDescriptorProto_Type { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - /** TYPE_BYTES - New in version 2. */ - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - /** TYPE_SINT32 - Uses ZigZag encoding. */ - TYPE_SINT32 = 17, - /** TYPE_SINT64 - Uses ZigZag encoding. */ - TYPE_SINT64 = 18, - UNRECOGNIZED = -1, -} -export const FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type; -export const FieldDescriptorProto_TypeAmino = FieldDescriptorProto_Type; -export function fieldDescriptorProto_TypeFromJSON( - object: any -): FieldDescriptorProto_Type { - switch (object) { - case 1: - case "TYPE_DOUBLE": - return FieldDescriptorProto_Type.TYPE_DOUBLE; - case 2: - case "TYPE_FLOAT": - return FieldDescriptorProto_Type.TYPE_FLOAT; - case 3: - case "TYPE_INT64": - return FieldDescriptorProto_Type.TYPE_INT64; - case 4: - case "TYPE_UINT64": - return FieldDescriptorProto_Type.TYPE_UINT64; - case 5: - case "TYPE_INT32": - return FieldDescriptorProto_Type.TYPE_INT32; - case 6: - case "TYPE_FIXED64": - return FieldDescriptorProto_Type.TYPE_FIXED64; - case 7: - case "TYPE_FIXED32": - return FieldDescriptorProto_Type.TYPE_FIXED32; - case 8: - case "TYPE_BOOL": - return FieldDescriptorProto_Type.TYPE_BOOL; - case 9: - case "TYPE_STRING": - return FieldDescriptorProto_Type.TYPE_STRING; - case 10: - case "TYPE_GROUP": - return FieldDescriptorProto_Type.TYPE_GROUP; - case 11: - case "TYPE_MESSAGE": - return FieldDescriptorProto_Type.TYPE_MESSAGE; - case 12: - case "TYPE_BYTES": - return FieldDescriptorProto_Type.TYPE_BYTES; - case 13: - case "TYPE_UINT32": - return FieldDescriptorProto_Type.TYPE_UINT32; - case 14: - case "TYPE_ENUM": - return FieldDescriptorProto_Type.TYPE_ENUM; - case 15: - case "TYPE_SFIXED32": - return FieldDescriptorProto_Type.TYPE_SFIXED32; - case 16: - case "TYPE_SFIXED64": - return FieldDescriptorProto_Type.TYPE_SFIXED64; - case 17: - case "TYPE_SINT32": - return FieldDescriptorProto_Type.TYPE_SINT32; - case 18: - case "TYPE_SINT64": - return FieldDescriptorProto_Type.TYPE_SINT64; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Type.UNRECOGNIZED; - } -} -export function fieldDescriptorProto_TypeToJSON( - object: FieldDescriptorProto_Type -): string { - switch (object) { - case FieldDescriptorProto_Type.TYPE_DOUBLE: - return "TYPE_DOUBLE"; - case FieldDescriptorProto_Type.TYPE_FLOAT: - return "TYPE_FLOAT"; - case FieldDescriptorProto_Type.TYPE_INT64: - return "TYPE_INT64"; - case FieldDescriptorProto_Type.TYPE_UINT64: - return "TYPE_UINT64"; - case FieldDescriptorProto_Type.TYPE_INT32: - return "TYPE_INT32"; - case FieldDescriptorProto_Type.TYPE_FIXED64: - return "TYPE_FIXED64"; - case FieldDescriptorProto_Type.TYPE_FIXED32: - return "TYPE_FIXED32"; - case FieldDescriptorProto_Type.TYPE_BOOL: - return "TYPE_BOOL"; - case FieldDescriptorProto_Type.TYPE_STRING: - return "TYPE_STRING"; - case FieldDescriptorProto_Type.TYPE_GROUP: - return "TYPE_GROUP"; - case FieldDescriptorProto_Type.TYPE_MESSAGE: - return "TYPE_MESSAGE"; - case FieldDescriptorProto_Type.TYPE_BYTES: - return "TYPE_BYTES"; - case FieldDescriptorProto_Type.TYPE_UINT32: - return "TYPE_UINT32"; - case FieldDescriptorProto_Type.TYPE_ENUM: - return "TYPE_ENUM"; - case FieldDescriptorProto_Type.TYPE_SFIXED32: - return "TYPE_SFIXED32"; - case FieldDescriptorProto_Type.TYPE_SFIXED64: - return "TYPE_SFIXED64"; - case FieldDescriptorProto_Type.TYPE_SINT32: - return "TYPE_SINT32"; - case FieldDescriptorProto_Type.TYPE_SINT64: - return "TYPE_SINT64"; - case FieldDescriptorProto_Type.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum FieldDescriptorProto_Label { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3, - UNRECOGNIZED = -1, -} -export const FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label; -export const FieldDescriptorProto_LabelAmino = FieldDescriptorProto_Label; -export function fieldDescriptorProto_LabelFromJSON( - object: any -): FieldDescriptorProto_Label { - switch (object) { - case 1: - case "LABEL_OPTIONAL": - return FieldDescriptorProto_Label.LABEL_OPTIONAL; - case 2: - case "LABEL_REQUIRED": - return FieldDescriptorProto_Label.LABEL_REQUIRED; - case 3: - case "LABEL_REPEATED": - return FieldDescriptorProto_Label.LABEL_REPEATED; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Label.UNRECOGNIZED; - } -} -export function fieldDescriptorProto_LabelToJSON( - object: FieldDescriptorProto_Label -): string { - switch (object) { - case FieldDescriptorProto_Label.LABEL_OPTIONAL: - return "LABEL_OPTIONAL"; - case FieldDescriptorProto_Label.LABEL_REQUIRED: - return "LABEL_REQUIRED"; - case FieldDescriptorProto_Label.LABEL_REPEATED: - return "LABEL_REPEATED"; - case FieldDescriptorProto_Label.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** Generated classes can be optimized for speed or code size. */ -export enum FileOptions_OptimizeMode { - /** - * SPEED - Generate complete code for parsing, serialization, - * etc. - */ - SPEED = 1, - /** CODE_SIZE - Use ReflectionOps to implement these methods. */ - CODE_SIZE = 2, - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - LITE_RUNTIME = 3, - UNRECOGNIZED = -1, -} -export const FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode; -export const FileOptions_OptimizeModeAmino = FileOptions_OptimizeMode; -export function fileOptions_OptimizeModeFromJSON( - object: any -): FileOptions_OptimizeMode { - switch (object) { - case 1: - case "SPEED": - return FileOptions_OptimizeMode.SPEED; - case 2: - case "CODE_SIZE": - return FileOptions_OptimizeMode.CODE_SIZE; - case 3: - case "LITE_RUNTIME": - return FileOptions_OptimizeMode.LITE_RUNTIME; - case -1: - case "UNRECOGNIZED": - default: - return FileOptions_OptimizeMode.UNRECOGNIZED; - } -} -export function fileOptions_OptimizeModeToJSON( - object: FileOptions_OptimizeMode -): string { - switch (object) { - case FileOptions_OptimizeMode.SPEED: - return "SPEED"; - case FileOptions_OptimizeMode.CODE_SIZE: - return "CODE_SIZE"; - case FileOptions_OptimizeMode.LITE_RUNTIME: - return "LITE_RUNTIME"; - case FileOptions_OptimizeMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum FieldOptions_CType { - /** STRING - Default mode. */ - STRING = 0, - CORD = 1, - STRING_PIECE = 2, - UNRECOGNIZED = -1, -} -export const FieldOptions_CTypeSDKType = FieldOptions_CType; -export const FieldOptions_CTypeAmino = FieldOptions_CType; -export function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType { - switch (object) { - case 0: - case "STRING": - return FieldOptions_CType.STRING; - case 1: - case "CORD": - return FieldOptions_CType.CORD; - case 2: - case "STRING_PIECE": - return FieldOptions_CType.STRING_PIECE; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_CType.UNRECOGNIZED; - } -} -export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string { - switch (object) { - case FieldOptions_CType.STRING: - return "STRING"; - case FieldOptions_CType.CORD: - return "CORD"; - case FieldOptions_CType.STRING_PIECE: - return "STRING_PIECE"; - case FieldOptions_CType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum FieldOptions_JSType { - /** JS_NORMAL - Use the default type. */ - JS_NORMAL = 0, - /** JS_STRING - Use JavaScript strings. */ - JS_STRING = 1, - /** JS_NUMBER - Use JavaScript numbers. */ - JS_NUMBER = 2, - UNRECOGNIZED = -1, -} -export const FieldOptions_JSTypeSDKType = FieldOptions_JSType; -export const FieldOptions_JSTypeAmino = FieldOptions_JSType; -export function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType { - switch (object) { - case 0: - case "JS_NORMAL": - return FieldOptions_JSType.JS_NORMAL; - case 1: - case "JS_STRING": - return FieldOptions_JSType.JS_STRING; - case 2: - case "JS_NUMBER": - return FieldOptions_JSType.JS_NUMBER; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_JSType.UNRECOGNIZED; - } -} -export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string { - switch (object) { - case FieldOptions_JSType.JS_NORMAL: - return "JS_NORMAL"; - case FieldOptions_JSType.JS_STRING: - return "JS_STRING"; - case FieldOptions_JSType.JS_NUMBER: - return "JS_NUMBER"; - case FieldOptions_JSType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -export enum MethodOptions_IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - /** NO_SIDE_EFFECTS - implies idempotent */ - NO_SIDE_EFFECTS = 1, - /** IDEMPOTENT - idempotent, but may have side effects */ - IDEMPOTENT = 2, - UNRECOGNIZED = -1, -} -export const MethodOptions_IdempotencyLevelSDKType = - MethodOptions_IdempotencyLevel; -export const MethodOptions_IdempotencyLevelAmino = - MethodOptions_IdempotencyLevel; -export function methodOptions_IdempotencyLevelFromJSON( - object: any -): MethodOptions_IdempotencyLevel { - switch (object) { - case 0: - case "IDEMPOTENCY_UNKNOWN": - return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; - case 1: - case "NO_SIDE_EFFECTS": - return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; - case 2: - case "IDEMPOTENT": - return MethodOptions_IdempotencyLevel.IDEMPOTENT; - case -1: - case "UNRECOGNIZED": - default: - return MethodOptions_IdempotencyLevel.UNRECOGNIZED; - } -} -export function methodOptions_IdempotencyLevelToJSON( - object: MethodOptions_IdempotencyLevel -): string { - switch (object) { - case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: - return "IDEMPOTENCY_UNKNOWN"; - case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: - return "NO_SIDE_EFFECTS"; - case MethodOptions_IdempotencyLevel.IDEMPOTENT: - return "IDEMPOTENT"; - case MethodOptions_IdempotencyLevel.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSet { - file: FileDescriptorProto[]; -} -export interface FileDescriptorSetProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorSet"; - value: Uint8Array; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetAmino { - file: FileDescriptorProtoAmino[]; -} -export interface FileDescriptorSetAminoMsg { - type: "/google.protobuf.FileDescriptorSet"; - value: FileDescriptorSetAmino; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetSDKType { - file: FileDescriptorProtoSDKType[]; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProto { - /** file name, relative to root of source tree */ - name: string; - package: string; - /** Names of files imported by this file. */ - dependency: string[]; - /** Indexes of the public imported files in the dependency list above. */ - publicDependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weakDependency: number[]; - /** All top-level definitions in this file. */ - messageType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - service: ServiceDescriptorProto[]; - extension: FieldDescriptorProto[]; - options: FileOptions; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - sourceCodeInfo: SourceCodeInfo; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax: string; -} -export interface FileDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorProto"; - value: Uint8Array; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoAmino { - /** file name, relative to root of source tree */ - name: string; - package: string; - /** Names of files imported by this file. */ - dependency: string[]; - /** Indexes of the public imported files in the dependency list above. */ - public_dependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weak_dependency: number[]; - /** All top-level definitions in this file. */ - message_type: DescriptorProtoAmino[]; - enum_type: EnumDescriptorProtoAmino[]; - service: ServiceDescriptorProtoAmino[]; - extension: FieldDescriptorProtoAmino[]; - options?: FileOptionsAmino; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - source_code_info?: SourceCodeInfoAmino; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax: string; -} -export interface FileDescriptorProtoAminoMsg { - type: "/google.protobuf.FileDescriptorProto"; - value: FileDescriptorProtoAmino; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoSDKType { - name: string; - package: string; - dependency: string[]; - public_dependency: number[]; - weak_dependency: number[]; - message_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - service: ServiceDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - options: FileOptionsSDKType; - source_code_info: SourceCodeInfoSDKType; - syntax: string; -} -/** Describes a message type. */ -export interface DescriptorProto { - name: string; - field: FieldDescriptorProto[]; - extension: FieldDescriptorProto[]; - nestedType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - extensionRange: DescriptorProto_ExtensionRange[]; - oneofDecl: OneofDescriptorProto[]; - options: MessageOptions; - reservedRange: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reservedName: string[]; -} -export interface DescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.DescriptorProto"; - value: Uint8Array; -} -/** Describes a message type. */ -export interface DescriptorProtoAmino { - name: string; - field: FieldDescriptorProtoAmino[]; - extension: FieldDescriptorProtoAmino[]; - nested_type: DescriptorProtoAmino[]; - enum_type: EnumDescriptorProtoAmino[]; - extension_range: DescriptorProto_ExtensionRangeAmino[]; - oneof_decl: OneofDescriptorProtoAmino[]; - options?: MessageOptionsAmino; - reserved_range: DescriptorProto_ReservedRangeAmino[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reserved_name: string[]; -} -export interface DescriptorProtoAminoMsg { - type: "/google.protobuf.DescriptorProto"; - value: DescriptorProtoAmino; -} -/** Describes a message type. */ -export interface DescriptorProtoSDKType { - name: string; - field: FieldDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - nested_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - extension_range: DescriptorProto_ExtensionRangeSDKType[]; - oneof_decl: OneofDescriptorProtoSDKType[]; - options: MessageOptionsSDKType; - reserved_range: DescriptorProto_ReservedRangeSDKType[]; - reserved_name: string[]; -} -export interface DescriptorProto_ExtensionRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; - options: ExtensionRangeOptions; -} -export interface DescriptorProto_ExtensionRangeProtoMsg { - typeUrl: "/google.protobuf.ExtensionRange"; - value: Uint8Array; -} -export interface DescriptorProto_ExtensionRangeAmino { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; - options?: ExtensionRangeOptionsAmino; -} -export interface DescriptorProto_ExtensionRangeAminoMsg { - type: "/google.protobuf.ExtensionRange"; - value: DescriptorProto_ExtensionRangeAmino; -} -export interface DescriptorProto_ExtensionRangeSDKType { - start: number; - end: number; - options: ExtensionRangeOptionsSDKType; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; -} -export interface DescriptorProto_ReservedRangeProtoMsg { - typeUrl: "/google.protobuf.ReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeAmino { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; -} -export interface DescriptorProto_ReservedRangeAminoMsg { - type: "/google.protobuf.ReservedRange"; - value: DescriptorProto_ReservedRangeAmino; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeSDKType { - start: number; - end: number; -} -export interface ExtensionRangeOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ExtensionRangeOptionsProtoMsg { - typeUrl: "/google.protobuf.ExtensionRangeOptions"; - value: Uint8Array; -} -export interface ExtensionRangeOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface ExtensionRangeOptionsAminoMsg { - type: "/google.protobuf.ExtensionRangeOptions"; - value: ExtensionRangeOptionsAmino; -} -export interface ExtensionRangeOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProto { - name: string; - number: number; - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - typeName: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - defaultValue: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneofIndex: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - jsonName: string; - options: FieldOptions; -} -export interface FieldDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FieldDescriptorProto"; - value: Uint8Array; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoAmino { - name: string; - number: number; - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - type_name: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - default_value: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneof_index: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - json_name: string; - options?: FieldOptionsAmino; -} -export interface FieldDescriptorProtoAminoMsg { - type: "/google.protobuf.FieldDescriptorProto"; - value: FieldDescriptorProtoAmino; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoSDKType { - name: string; - number: number; - label: FieldDescriptorProto_Label; - type: FieldDescriptorProto_Type; - type_name: string; - extendee: string; - default_value: string; - oneof_index: number; - json_name: string; - options: FieldOptionsSDKType; -} -/** Describes a oneof. */ -export interface OneofDescriptorProto { - name: string; - options: OneofOptions; -} -export interface OneofDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.OneofDescriptorProto"; - value: Uint8Array; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoAmino { - name: string; - options?: OneofOptionsAmino; -} -export interface OneofDescriptorProtoAminoMsg { - type: "/google.protobuf.OneofDescriptorProto"; - value: OneofDescriptorProtoAmino; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoSDKType { - name: string; - options: OneofOptionsSDKType; -} -/** Describes an enum type. */ -export interface EnumDescriptorProto { - name: string; - value: EnumValueDescriptorProto[]; - options: EnumOptions; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reservedRange: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reservedName: string[]; -} -export interface EnumDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumDescriptorProto"; - value: Uint8Array; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoAmino { - name: string; - value: EnumValueDescriptorProtoAmino[]; - options?: EnumOptionsAmino; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reserved_range: EnumDescriptorProto_EnumReservedRangeAmino[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reserved_name: string[]; -} -export interface EnumDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumDescriptorProto"; - value: EnumDescriptorProtoAmino; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoSDKType { - name: string; - value: EnumValueDescriptorProtoSDKType[]; - options: EnumOptionsSDKType; - reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[]; - reserved_name: string[]; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRange { - /** Inclusive. */ - start: number; - /** Inclusive. */ - end: number; -} -export interface EnumDescriptorProto_EnumReservedRangeProtoMsg { - typeUrl: "/google.protobuf.EnumReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeAmino { - /** Inclusive. */ - start: number; - /** Inclusive. */ - end: number; -} -export interface EnumDescriptorProto_EnumReservedRangeAminoMsg { - type: "/google.protobuf.EnumReservedRange"; - value: EnumDescriptorProto_EnumReservedRangeAmino; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeSDKType { - start: number; - end: number; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProto { - name: string; - number: number; - options: EnumValueOptions; -} -export interface EnumValueDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumValueDescriptorProto"; - value: Uint8Array; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoAmino { - name: string; - number: number; - options?: EnumValueOptionsAmino; -} -export interface EnumValueDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumValueDescriptorProto"; - value: EnumValueDescriptorProtoAmino; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoSDKType { - name: string; - number: number; - options: EnumValueOptionsSDKType; -} -/** Describes a service. */ -export interface ServiceDescriptorProto { - name: string; - method: MethodDescriptorProto[]; - options: ServiceOptions; -} -export interface ServiceDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.ServiceDescriptorProto"; - value: Uint8Array; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoAmino { - name: string; - method: MethodDescriptorProtoAmino[]; - options?: ServiceOptionsAmino; -} -export interface ServiceDescriptorProtoAminoMsg { - type: "/google.protobuf.ServiceDescriptorProto"; - value: ServiceDescriptorProtoAmino; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoSDKType { - name: string; - method: MethodDescriptorProtoSDKType[]; - options: ServiceOptionsSDKType; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProto { - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - inputType: string; - outputType: string; - options: MethodOptions; - /** Identifies if client streams multiple client messages */ - clientStreaming: boolean; - /** Identifies if server streams multiple server messages */ - serverStreaming: boolean; -} -export interface MethodDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.MethodDescriptorProto"; - value: Uint8Array; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoAmino { - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - input_type: string; - output_type: string; - options?: MethodOptionsAmino; - /** Identifies if client streams multiple client messages */ - client_streaming: boolean; - /** Identifies if server streams multiple server messages */ - server_streaming: boolean; -} -export interface MethodDescriptorProtoAminoMsg { - type: "/google.protobuf.MethodDescriptorProto"; - value: MethodDescriptorProtoAmino; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoSDKType { - name: string; - input_type: string; - output_type: string; - options: MethodOptionsSDKType; - client_streaming: boolean; - server_streaming: boolean; -} -export interface FileOptions { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - javaPackage: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - javaOuterClassname: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - javaMultipleFiles: boolean; - /** This option does nothing. */ - /** @deprecated */ - javaGenerateEqualsAndHash: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - javaStringCheckUtf8: boolean; - optimizeFor: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - goPackage: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - ccGenericServices: boolean; - javaGenericServices: boolean; - pyGenericServices: boolean; - phpGenericServices: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - ccEnableArenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objcClassPrefix: string; - /** Namespace for generated classes; defaults to the package. */ - csharpNamespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swiftPrefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - phpClassPrefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - phpNamespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - phpMetadataNamespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - rubyPackage: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FileOptionsProtoMsg { - typeUrl: "/google.protobuf.FileOptions"; - value: Uint8Array; -} -export interface FileOptionsAmino { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - java_package: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - java_outer_classname: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - java_multiple_files: boolean; - /** This option does nothing. */ - /** @deprecated */ - java_generate_equals_and_hash: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - java_string_check_utf8: boolean; - optimize_for: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - go_package: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - cc_generic_services: boolean; - java_generic_services: boolean; - py_generic_services: boolean; - php_generic_services: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - cc_enable_arenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objc_class_prefix: string; - /** Namespace for generated classes; defaults to the package. */ - csharp_namespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swift_prefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - php_class_prefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - php_namespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - php_metadata_namespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - ruby_package: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface FileOptionsAminoMsg { - type: "/google.protobuf.FileOptions"; - value: FileOptionsAmino; -} -export interface FileOptionsSDKType { - java_package: string; - java_outer_classname: string; - java_multiple_files: boolean; - /** @deprecated */ - java_generate_equals_and_hash: boolean; - java_string_check_utf8: boolean; - optimize_for: FileOptions_OptimizeMode; - go_package: string; - cc_generic_services: boolean; - java_generic_services: boolean; - py_generic_services: boolean; - php_generic_services: boolean; - deprecated: boolean; - cc_enable_arenas: boolean; - objc_class_prefix: string; - csharp_namespace: string; - swift_prefix: string; - php_class_prefix: string; - php_namespace: string; - php_metadata_namespace: string; - ruby_package: string; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MessageOptions { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - messageSetWireFormat: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - noStandardDescriptorAccessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - mapEntry: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MessageOptionsProtoMsg { - typeUrl: "/google.protobuf.MessageOptions"; - value: Uint8Array; -} -export interface MessageOptionsAmino { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - message_set_wire_format: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - no_standard_descriptor_accessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - map_entry: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface MessageOptionsAminoMsg { - type: "/google.protobuf.MessageOptions"; - value: MessageOptionsAmino; -} -export interface MessageOptionsSDKType { - message_set_wire_format: boolean; - no_standard_descriptor_accessor: boolean; - deprecated: boolean; - map_entry: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface FieldOptions { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated: boolean; - /** For Google-internal migration only. Do not use. */ - weak: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FieldOptionsProtoMsg { - typeUrl: "/google.protobuf.FieldOptions"; - value: Uint8Array; -} -export interface FieldOptionsAmino { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated: boolean; - /** For Google-internal migration only. Do not use. */ - weak: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface FieldOptionsAminoMsg { - type: "/google.protobuf.FieldOptions"; - value: FieldOptionsAmino; -} -export interface FieldOptionsSDKType { - ctype: FieldOptions_CType; - packed: boolean; - jstype: FieldOptions_JSType; - lazy: boolean; - deprecated: boolean; - weak: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface OneofOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface OneofOptionsProtoMsg { - typeUrl: "/google.protobuf.OneofOptions"; - value: Uint8Array; -} -export interface OneofOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface OneofOptionsAminoMsg { - type: "/google.protobuf.OneofOptions"; - value: OneofOptionsAmino; -} -export interface OneofOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumOptions { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allowAlias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumOptions"; - value: Uint8Array; -} -export interface EnumOptionsAmino { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allow_alias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface EnumOptionsAminoMsg { - type: "/google.protobuf.EnumOptions"; - value: EnumOptionsAmino; -} -export interface EnumOptionsSDKType { - allow_alias: boolean; - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumValueOptions { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumValueOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumValueOptions"; - value: Uint8Array; -} -export interface EnumValueOptionsAmino { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface EnumValueOptionsAminoMsg { - type: "/google.protobuf.EnumValueOptions"; - value: EnumValueOptionsAmino; -} -export interface EnumValueOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface ServiceOptions { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ServiceOptionsProtoMsg { - typeUrl: "/google.protobuf.ServiceOptions"; - value: Uint8Array; -} -export interface ServiceOptionsAmino { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface ServiceOptionsAminoMsg { - type: "/google.protobuf.ServiceOptions"; - value: ServiceOptionsAmino; -} -export interface ServiceOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MethodOptions { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated: boolean; - idempotencyLevel: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MethodOptionsProtoMsg { - typeUrl: "/google.protobuf.MethodOptions"; - value: Uint8Array; -} -export interface MethodOptionsAmino { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated: boolean; - idempotency_level: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface MethodOptionsAminoMsg { - type: "/google.protobuf.MethodOptions"; - value: MethodOptionsAmino; -} -export interface MethodOptionsSDKType { - deprecated: boolean; - idempotency_level: MethodOptions_IdempotencyLevel; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOption { - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifierValue: string; - positiveIntValue: Long; - negativeIntValue: Long; - doubleValue: number; - stringValue: Uint8Array; - aggregateValue: string; -} -export interface UninterpretedOptionProtoMsg { - typeUrl: "/google.protobuf.UninterpretedOption"; - value: Uint8Array; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionAmino { - name: UninterpretedOption_NamePartAmino[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifier_value: string; - positive_int_value: string; - negative_int_value: string; - double_value: number; - string_value: Uint8Array; - aggregate_value: string; -} -export interface UninterpretedOptionAminoMsg { - type: "/google.protobuf.UninterpretedOption"; - value: UninterpretedOptionAmino; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionSDKType { - name: UninterpretedOption_NamePartSDKType[]; - identifier_value: string; - positive_int_value: Long; - negative_int_value: Long; - double_value: number; - string_value: Uint8Array; - aggregate_value: string; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePart { - namePart: string; - isExtension: boolean; -} -export interface UninterpretedOption_NamePartProtoMsg { - typeUrl: "/google.protobuf.NamePart"; - value: Uint8Array; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartAmino { - name_part: string; - is_extension: boolean; -} -export interface UninterpretedOption_NamePartAminoMsg { - type: "/google.protobuf.NamePart"; - value: UninterpretedOption_NamePartAmino; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartSDKType { - name_part: string; - is_extension: boolean; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfo { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location: SourceCodeInfo_Location[]; -} -export interface SourceCodeInfoProtoMsg { - typeUrl: "/google.protobuf.SourceCodeInfo"; - value: Uint8Array; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoAmino { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location: SourceCodeInfo_LocationAmino[]; -} -export interface SourceCodeInfoAminoMsg { - type: "/google.protobuf.SourceCodeInfo"; - value: SourceCodeInfoAmino; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoSDKType { - location: SourceCodeInfo_LocationSDKType[]; -} -export interface SourceCodeInfo_Location { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leadingComments: string; - trailingComments: string; - leadingDetachedComments: string[]; -} -export interface SourceCodeInfo_LocationProtoMsg { - typeUrl: "/google.protobuf.Location"; - value: Uint8Array; -} -export interface SourceCodeInfo_LocationAmino { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leading_comments: string; - trailing_comments: string; - leading_detached_comments: string[]; -} -export interface SourceCodeInfo_LocationAminoMsg { - type: "/google.protobuf.Location"; - value: SourceCodeInfo_LocationAmino; -} -export interface SourceCodeInfo_LocationSDKType { - path: number[]; - span: number[]; - leading_comments: string; - trailing_comments: string; - leading_detached_comments: string[]; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfo { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation: GeneratedCodeInfo_Annotation[]; -} -export interface GeneratedCodeInfoProtoMsg { - typeUrl: "/google.protobuf.GeneratedCodeInfo"; - value: Uint8Array; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoAmino { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation: GeneratedCodeInfo_AnnotationAmino[]; -} -export interface GeneratedCodeInfoAminoMsg { - type: "/google.protobuf.GeneratedCodeInfo"; - value: GeneratedCodeInfoAmino; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoSDKType { - annotation: GeneratedCodeInfo_AnnotationSDKType[]; -} -export interface GeneratedCodeInfo_Annotation { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path: number[]; - /** Identifies the filesystem path to the original source .proto. */ - sourceFile: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end: number; -} -export interface GeneratedCodeInfo_AnnotationProtoMsg { - typeUrl: "/google.protobuf.Annotation"; - value: Uint8Array; -} -export interface GeneratedCodeInfo_AnnotationAmino { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path: number[]; - /** Identifies the filesystem path to the original source .proto. */ - source_file: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end: number; -} -export interface GeneratedCodeInfo_AnnotationAminoMsg { - type: "/google.protobuf.Annotation"; - value: GeneratedCodeInfo_AnnotationAmino; -} -export interface GeneratedCodeInfo_AnnotationSDKType { - path: number[]; - source_file: string; - begin: number; - end: number; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/duration.ts b/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/duration.ts deleted file mode 100644 index 1d9242e7b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/duration.ts +++ /dev/null @@ -1,211 +0,0 @@ -import { Long } from "../../helpers"; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: Long; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - nanos: number; -} -export interface DurationProtoMsg { - typeUrl: "/google.protobuf.Duration"; - value: Uint8Array; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export type DurationAmino = string; -export interface DurationAminoMsg { - type: "/google.protobuf.Duration"; - value: DurationAmino; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface DurationSDKType { - seconds: Long; - nanos: number; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/empty.ts b/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/empty.ts deleted file mode 100644 index 6db2c7d8e..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/empty.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * The JSON representation for `Empty` is empty JSON object `{}`. - */ -export interface Empty {} -export interface EmptyProtoMsg { - typeUrl: "/google.protobuf.Empty"; - value: Uint8Array; -} -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * The JSON representation for `Empty` is empty JSON object `{}`. - */ -export interface EmptyAmino {} -export interface EmptyAminoMsg { - type: "/google.protobuf.Empty"; - value: EmptyAmino; -} -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * The JSON representation for `Empty` is empty JSON object `{}`. - */ -export interface EmptySDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/timestamp.ts b/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/timestamp.ts deleted file mode 100644 index 5724a8f41..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/google/protobuf/timestamp.ts +++ /dev/null @@ -1,281 +0,0 @@ -import { Long } from "../../helpers"; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: Long; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} -export interface TimestampProtoMsg { - typeUrl: "/google.protobuf.Timestamp"; - value: Uint8Array; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export type TimestampAmino = string; -export interface TimestampAminoMsg { - type: "/google.protobuf.Timestamp"; - value: TimestampAmino; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface TimestampSDKType { - seconds: Long; - nanos: number; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/helpers.ts b/Agoric/agoric-starter/src/types/proto-interfaces/helpers.ts deleted file mode 100644 index ad780b62b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/helpers.ts +++ /dev/null @@ -1,269 +0,0 @@ -/** - * This file and any referenced files were automatically generated by @cosmology/telescope@0.104.0 - * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain - * and run the transpile command or yarn proto command to regenerate this bundle. - */ - -import * as _m0 from "protobufjs/minimal"; -import Long from "long"; - -// @ts-ignore -if (_m0.util.Long !== Long) { - _m0.util.Long = Long as any; - - _m0.configure(); -} - -export { Long }; - -declare var self: any | undefined; -declare var window: any | undefined; -declare var global: any | undefined; -var globalThis: any = (() => { - if (typeof globalThis !== "undefined") return globalThis; - if (typeof self !== "undefined") return self; - if (typeof window !== "undefined") return window; - if (typeof global !== "undefined") return global; - throw "Unable to locate global object"; -})(); - -const atob: (b64: string) => string = - globalThis.atob || - ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary")); - -export function bytesFromBase64(b64: string): Uint8Array { - const bin = atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; -} - -const btoa: (bin: string) => string = - globalThis.btoa || - ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64")); - -export function base64FromBytes(arr: Uint8Array): string { - const bin: string[] = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return btoa(bin.join("")); -} - -export interface AminoHeight { - readonly revision_number?: string; - readonly revision_height?: string; -} - -export function omitDefault( - input: T -): T | undefined { - if (typeof input === "string") { - return input === "" ? undefined : input; - } - - if (typeof input === "number") { - return input === 0 ? undefined : input; - } - - if (Long.isLong(input)) { - return input.isZero() ? undefined : input; - } - - throw new Error(`Got unsupported type ${typeof input}`); -} - -interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: Long; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - - nanos: number; -} - -export function toDuration(duration: string): Duration { - return { - seconds: Long.fromNumber(Math.floor(parseInt(duration) / 1000000000)), - nanos: parseInt(duration) % 1000000000, - }; -} - -export function fromDuration(duration: Duration): string { - return ( - parseInt(duration.seconds.toString()) * 1000000000 + - duration.nanos - ).toString(); -} - -export function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -export interface PageRequest { - key: Uint8Array; - offset: Long; - limit: Long; - countTotal: boolean; - reverse: boolean; -} - -export interface PageRequestParams { - "pagination.key"?: string; - "pagination.offset"?: string; - "pagination.limit"?: string; - "pagination.count_total"?: boolean; - "pagination.reverse"?: boolean; -} - -export interface Params { - params: PageRequestParams; -} - -export const setPaginationParams = ( - options: Params, - pagination?: PageRequest -) => { - if (!pagination) { - return options; - } - - if (typeof pagination?.countTotal !== "undefined") { - options.params["pagination.count_total"] = pagination.countTotal; - } - if (typeof pagination?.key !== "undefined") { - // String to Uint8Array - // let uint8arr = new Uint8Array(Buffer.from(data,'base64')); - - // Uint8Array to String - options.params["pagination.key"] = Buffer.from(pagination.key).toString( - "base64" - ); - } - if (typeof pagination?.limit !== "undefined") { - options.params["pagination.limit"] = pagination.limit.toString(); - } - if (typeof pagination?.offset !== "undefined") { - options.params["pagination.offset"] = pagination.offset.toString(); - } - if (typeof pagination?.reverse !== "undefined") { - options.params["pagination.reverse"] = pagination.reverse; - } - - return options; -}; - -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; - -export type DeepPartial = T extends Builtin - ? T - : T extends Long - ? string | number | Long - : T extends Array - ? Array> - : T extends ReadonlyArray - ? ReadonlyArray> - : T extends {} - ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin - ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; - -export interface Rpc { - request( - service: string, - method: string, - data: Uint8Array - ): Promise; -} - -interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: Long; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - - nanos: number; -} - -export function toTimestamp(date: Date): Timestamp { - const seconds = numberToLong(date.getTime() / 1_000); - const nanos = (date.getTime() % 1000) * 1000000; - return { - seconds, - nanos, - }; -} - -export function fromTimestamp(t: Timestamp): Date { - let millis = t.seconds.toNumber() * 1000; - millis += t.nanos / 1000000; - return new Date(millis); -} - -const fromJSON = (object: any): Timestamp => { - return { - seconds: isSet(object.seconds) - ? Long.fromString(object.seconds) - : Long.ZERO, - nanos: isSet(object.nanos) ? Number(object.nanos) : 0, - }; -}; - -const timestampFromJSON = (object: any): Timestamp => { - return { - seconds: isSet(object.seconds) ? Long.fromValue(object.seconds) : Long.ZERO, - nanos: isSet(object.nanos) ? Number(object.nanos) : 0, - }; -}; - -export function fromJsonTimestamp(o: any): Timestamp { - if (o instanceof Date) { - return toTimestamp(o); - } else if (typeof o === "string") { - return toTimestamp(new Date(o)); - } else { - return timestampFromJSON(o); - } -} - -function numberToLong(number: number) { - return Long.fromNumber(number); -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/genesis.ts deleted file mode 100644 index 2695096f4..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/genesis.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { - DenomTrace, - DenomTraceAmino, - DenomTraceSDKType, - Params, - ParamsAmino, - ParamsSDKType, -} from "./transfer"; -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisState { - portId: string; - denomTraces: DenomTrace[]; - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateAmino { - port_id: string; - denom_traces: DenomTraceAmino[]; - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateSDKType { - port_id: string; - denom_traces: DenomTraceSDKType[]; - params: ParamsSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/transfer.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/transfer.ts deleted file mode 100644 index 466f381fe..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/transfer.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTrace { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path: string; - /** base denomination of the relayed fungible token. */ - baseDenom: string; -} -export interface DenomTraceProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace"; - value: Uint8Array; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceAmino { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path: string; - /** base denomination of the relayed fungible token. */ - base_denom: string; -} -export interface DenomTraceAminoMsg { - type: "cosmos-sdk/DenomTrace"; - value: DenomTraceAmino; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceSDKType { - path: string; - base_denom: string; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface Params { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - sendEnabled: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receiveEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.Params"; - value: Uint8Array; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsAmino { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - send_enabled: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receive_enabled: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsSDKType { - send_enabled: boolean; - receive_enabled: boolean; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/tx.ts deleted file mode 100644 index 46a759003..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/tx.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../../cosmos/base/v1beta1/coin"; -import { - Height, - HeightAmino, - HeightSDKType, -} from "../../../core/client/v1/client"; -import { Long } from "../../../../helpers"; -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransfer { - /** the port on which the packet will be sent */ - sourcePort: string; - /** the channel by which the packet will be sent */ - sourceChannel: string; - /** the tokens to be transferred */ - token: Coin; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeoutHeight: Height; - /** - * Timeout timestamp (in nanoseconds) relative to the current block timestamp. - * The timeout is disabled when set to 0. - */ - timeoutTimestamp: Long; -} -export interface MsgTransferProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer"; - value: Uint8Array; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferAmino { - /** the port on which the packet will be sent */ - source_port: string; - /** the channel by which the packet will be sent */ - source_channel: string; - /** the tokens to be transferred */ - token?: CoinAmino; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeout_height?: HeightAmino; - /** - * Timeout timestamp (in nanoseconds) relative to the current block timestamp. - * The timeout is disabled when set to 0. - */ - timeout_timestamp: string; -} -export interface MsgTransferAminoMsg { - type: "cosmos-sdk/MsgTransfer"; - value: MsgTransferAmino; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferSDKType { - source_port: string; - source_channel: string; - token: CoinSDKType; - sender: string; - receiver: string; - timeout_height: HeightSDKType; - timeout_timestamp: Long; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponse {} -export interface MsgTransferResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse"; - value: Uint8Array; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseAmino {} -export interface MsgTransferResponseAminoMsg { - type: "cosmos-sdk/MsgTransferResponse"; - value: MsgTransferResponseAmino; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v2/packet.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v2/packet.ts deleted file mode 100644 index d8b9e71da..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/applications/transfer/v2/packet.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * FungibleTokenPacketData defines a struct for the packet payload - * See FungibleTokenPacketData spec: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface FungibleTokenPacketData { - /** the token denomination to be transferred */ - denom: string; - /** the token amount to be transferred */ - amount: string; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; -} -export interface FungibleTokenPacketDataProtoMsg { - typeUrl: "/ibc.applications.transfer.v2.FungibleTokenPacketData"; - value: Uint8Array; -} -/** - * FungibleTokenPacketData defines a struct for the packet payload - * See FungibleTokenPacketData spec: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface FungibleTokenPacketDataAmino { - /** the token denomination to be transferred */ - denom: string; - /** the token amount to be transferred */ - amount: string; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; -} -export interface FungibleTokenPacketDataAminoMsg { - type: "cosmos-sdk/FungibleTokenPacketData"; - value: FungibleTokenPacketDataAmino; -} -/** - * FungibleTokenPacketData defines a struct for the packet payload - * See FungibleTokenPacketData spec: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface FungibleTokenPacketDataSDKType { - denom: string; - amount: string; - sender: string; - receiver: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/bundle.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/bundle.ts deleted file mode 100644 index 05c90d911..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/bundle.ts +++ /dev/null @@ -1,86 +0,0 @@ -import * as _102 from "./applications/transfer/v1/genesis"; -import * as _103 from "./applications/transfer/v1/transfer"; -import * as _104 from "./applications/transfer/v1/tx"; -import * as _105 from "./applications/transfer/v2/packet"; -import * as _106 from "./core/channel/v1/channel"; -import * as _107 from "./core/channel/v1/genesis"; -import * as _108 from "./core/channel/v1/tx"; -import * as _109 from "./core/client/v1/client"; -import * as _110 from "./core/client/v1/genesis"; -import * as _111 from "./core/client/v1/tx"; -import * as _112 from "./core/commitment/v1/commitment"; -import * as _113 from "./core/connection/v1/connection"; -import * as _114 from "./core/connection/v1/genesis"; -import * as _115 from "./core/connection/v1/tx"; -import * as _116 from "./core/types/v1/genesis"; -import * as _117 from "./lightclients/localhost/v1/localhost"; -import * as _118 from "./lightclients/solomachine/v1/solomachine"; -import * as _119 from "./lightclients/solomachine/v2/solomachine"; -import * as _120 from "./lightclients/tendermint/v1/tendermint"; -export namespace ibc { - export namespace applications { - export namespace transfer { - export const v1 = { - ..._102, - ..._103, - ..._104, - }; - export const v2 = { - ..._105, - }; - } - } - export namespace core { - export namespace channel { - export const v1 = { - ..._106, - ..._107, - ..._108, - }; - } - export namespace client { - export const v1 = { - ..._109, - ..._110, - ..._111, - }; - } - export namespace commitment { - export const v1 = { - ..._112, - }; - } - export namespace connection { - export const v1 = { - ..._113, - ..._114, - ..._115, - }; - } - export namespace types { - export const v1 = { - ..._116, - }; - } - } - export namespace lightclients { - export namespace localhost { - export const v1 = { - ..._117, - }; - } - export namespace solomachine { - export const v1 = { - ..._118, - }; - export const v2 = { - ..._119, - }; - } - export namespace tendermint { - export const v1 = { - ..._120, - }; - } - } -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/channel/v1/channel.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/channel/v1/channel.ts deleted file mode 100644 index 566d5cb94..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/channel/v1/channel.ts +++ /dev/null @@ -1,430 +0,0 @@ -import { Height, HeightAmino, HeightSDKType } from "../../client/v1/client"; -import { Long } from "../../../../helpers"; -/** - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - */ -export enum State { - /** STATE_UNINITIALIZED_UNSPECIFIED - Default State */ - STATE_UNINITIALIZED_UNSPECIFIED = 0, - /** STATE_INIT - A channel has just started the opening handshake. */ - STATE_INIT = 1, - /** STATE_TRYOPEN - A channel has acknowledged the handshake step on the counterparty chain. */ - STATE_TRYOPEN = 2, - /** - * STATE_OPEN - A channel has completed the handshake. Open channels are - * ready to send and receive packets. - */ - STATE_OPEN = 3, - /** - * STATE_CLOSED - A channel has been closed and can no longer be used to send or receive - * packets. - */ - STATE_CLOSED = 4, - UNRECOGNIZED = -1, -} -export const StateSDKType = State; -export const StateAmino = State; -export function stateFromJSON(object: any): State { - switch (object) { - case 0: - case "STATE_UNINITIALIZED_UNSPECIFIED": - return State.STATE_UNINITIALIZED_UNSPECIFIED; - case 1: - case "STATE_INIT": - return State.STATE_INIT; - case 2: - case "STATE_TRYOPEN": - return State.STATE_TRYOPEN; - case 3: - case "STATE_OPEN": - return State.STATE_OPEN; - case 4: - case "STATE_CLOSED": - return State.STATE_CLOSED; - case -1: - case "UNRECOGNIZED": - default: - return State.UNRECOGNIZED; - } -} -export function stateToJSON(object: State): string { - switch (object) { - case State.STATE_UNINITIALIZED_UNSPECIFIED: - return "STATE_UNINITIALIZED_UNSPECIFIED"; - case State.STATE_INIT: - return "STATE_INIT"; - case State.STATE_TRYOPEN: - return "STATE_TRYOPEN"; - case State.STATE_OPEN: - return "STATE_OPEN"; - case State.STATE_CLOSED: - return "STATE_CLOSED"; - case State.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** Order defines if a channel is ORDERED or UNORDERED */ -export enum Order { - /** ORDER_NONE_UNSPECIFIED - zero-value for channel ordering */ - ORDER_NONE_UNSPECIFIED = 0, - /** - * ORDER_UNORDERED - packets can be delivered in any order, which may differ from the order in - * which they were sent. - */ - ORDER_UNORDERED = 1, - /** ORDER_ORDERED - packets are delivered exactly in the order which they were sent */ - ORDER_ORDERED = 2, - UNRECOGNIZED = -1, -} -export const OrderSDKType = Order; -export const OrderAmino = Order; -export function orderFromJSON(object: any): Order { - switch (object) { - case 0: - case "ORDER_NONE_UNSPECIFIED": - return Order.ORDER_NONE_UNSPECIFIED; - case 1: - case "ORDER_UNORDERED": - return Order.ORDER_UNORDERED; - case 2: - case "ORDER_ORDERED": - return Order.ORDER_ORDERED; - case -1: - case "UNRECOGNIZED": - default: - return Order.UNRECOGNIZED; - } -} -export function orderToJSON(object: Order): string { - switch (object) { - case Order.ORDER_NONE_UNSPECIFIED: - return "ORDER_NONE_UNSPECIFIED"; - case Order.ORDER_UNORDERED: - return "ORDER_UNORDERED"; - case Order.ORDER_ORDERED: - return "ORDER_ORDERED"; - case Order.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - */ -export interface Channel { - /** current state of the channel end */ - state: State; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty: Counterparty; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connectionHops: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version: string; -} -export interface ChannelProtoMsg { - typeUrl: "/ibc.core.channel.v1.Channel"; - value: Uint8Array; -} -/** - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - */ -export interface ChannelAmino { - /** current state of the channel end */ - state: State; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty?: CounterpartyAmino; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version: string; -} -export interface ChannelAminoMsg { - type: "cosmos-sdk/Channel"; - value: ChannelAmino; -} -/** - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - */ -export interface ChannelSDKType { - state: State; - ordering: Order; - counterparty: CounterpartySDKType; - connection_hops: string[]; - version: string; -} -/** - * IdentifiedChannel defines a channel with additional port and channel - * identifier fields. - */ -export interface IdentifiedChannel { - /** current state of the channel end */ - state: State; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty: Counterparty; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connectionHops: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version: string; - /** port identifier */ - portId: string; - /** channel identifier */ - channelId: string; -} -export interface IdentifiedChannelProtoMsg { - typeUrl: "/ibc.core.channel.v1.IdentifiedChannel"; - value: Uint8Array; -} -/** - * IdentifiedChannel defines a channel with additional port and channel - * identifier fields. - */ -export interface IdentifiedChannelAmino { - /** current state of the channel end */ - state: State; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty?: CounterpartyAmino; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version: string; - /** port identifier */ - port_id: string; - /** channel identifier */ - channel_id: string; -} -export interface IdentifiedChannelAminoMsg { - type: "cosmos-sdk/IdentifiedChannel"; - value: IdentifiedChannelAmino; -} -/** - * IdentifiedChannel defines a channel with additional port and channel - * identifier fields. - */ -export interface IdentifiedChannelSDKType { - state: State; - ordering: Order; - counterparty: CounterpartySDKType; - connection_hops: string[]; - version: string; - port_id: string; - channel_id: string; -} -/** Counterparty defines a channel end counterparty */ -export interface Counterparty { - /** port on the counterparty chain which owns the other end of the channel. */ - portId: string; - /** channel end on the counterparty chain */ - channelId: string; -} -export interface CounterpartyProtoMsg { - typeUrl: "/ibc.core.channel.v1.Counterparty"; - value: Uint8Array; -} -/** Counterparty defines a channel end counterparty */ -export interface CounterpartyAmino { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id: string; - /** channel end on the counterparty chain */ - channel_id: string; -} -export interface CounterpartyAminoMsg { - type: "cosmos-sdk/Counterparty"; - value: CounterpartyAmino; -} -/** Counterparty defines a channel end counterparty */ -export interface CounterpartySDKType { - port_id: string; - channel_id: string; -} -/** Packet defines a type that carries data across different chains through IBC */ -export interface Packet { - /** - * number corresponds to the order of sends and receives, where a Packet - * with an earlier sequence number must be sent and received before a Packet - * with a later sequence number. - */ - sequence: Long; - /** identifies the port on the sending chain. */ - sourcePort: string; - /** identifies the channel end on the sending chain. */ - sourceChannel: string; - /** identifies the port on the receiving chain. */ - destinationPort: string; - /** identifies the channel end on the receiving chain. */ - destinationChannel: string; - /** actual opaque bytes transferred directly to the application module */ - data: Uint8Array; - /** block height after which the packet times out */ - timeoutHeight: Height; - /** block timestamp (in nanoseconds) after which the packet times out */ - timeoutTimestamp: Long; -} -export interface PacketProtoMsg { - typeUrl: "/ibc.core.channel.v1.Packet"; - value: Uint8Array; -} -/** Packet defines a type that carries data across different chains through IBC */ -export interface PacketAmino { - /** - * number corresponds to the order of sends and receives, where a Packet - * with an earlier sequence number must be sent and received before a Packet - * with a later sequence number. - */ - sequence: string; - /** identifies the port on the sending chain. */ - source_port: string; - /** identifies the channel end on the sending chain. */ - source_channel: string; - /** identifies the port on the receiving chain. */ - destination_port: string; - /** identifies the channel end on the receiving chain. */ - destination_channel: string; - /** actual opaque bytes transferred directly to the application module */ - data: Uint8Array; - /** block height after which the packet times out */ - timeout_height?: HeightAmino; - /** block timestamp (in nanoseconds) after which the packet times out */ - timeout_timestamp: string; -} -export interface PacketAminoMsg { - type: "cosmos-sdk/Packet"; - value: PacketAmino; -} -/** Packet defines a type that carries data across different chains through IBC */ -export interface PacketSDKType { - sequence: Long; - source_port: string; - source_channel: string; - destination_port: string; - destination_channel: string; - data: Uint8Array; - timeout_height: HeightSDKType; - timeout_timestamp: Long; -} -/** - * PacketState defines the generic type necessary to retrieve and store - * packet commitments, acknowledgements, and receipts. - * Caller is responsible for knowing the context necessary to interpret this - * state as a commitment, acknowledgement, or a receipt. - */ -export interface PacketState { - /** channel port identifier. */ - portId: string; - /** channel unique identifier. */ - channelId: string; - /** packet sequence. */ - sequence: Long; - /** embedded data that represents packet state. */ - data: Uint8Array; -} -export interface PacketStateProtoMsg { - typeUrl: "/ibc.core.channel.v1.PacketState"; - value: Uint8Array; -} -/** - * PacketState defines the generic type necessary to retrieve and store - * packet commitments, acknowledgements, and receipts. - * Caller is responsible for knowing the context necessary to interpret this - * state as a commitment, acknowledgement, or a receipt. - */ -export interface PacketStateAmino { - /** channel port identifier. */ - port_id: string; - /** channel unique identifier. */ - channel_id: string; - /** packet sequence. */ - sequence: string; - /** embedded data that represents packet state. */ - data: Uint8Array; -} -export interface PacketStateAminoMsg { - type: "cosmos-sdk/PacketState"; - value: PacketStateAmino; -} -/** - * PacketState defines the generic type necessary to retrieve and store - * packet commitments, acknowledgements, and receipts. - * Caller is responsible for knowing the context necessary to interpret this - * state as a commitment, acknowledgement, or a receipt. - */ -export interface PacketStateSDKType { - port_id: string; - channel_id: string; - sequence: Long; - data: Uint8Array; -} -/** - * Acknowledgement is the recommended acknowledgement format to be used by - * app-specific protocols. - * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental - * conflicts with other protobuf message formats used for acknowledgements. - * The first byte of any message with this format will be the non-ASCII values - * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: - * https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope - */ -export interface Acknowledgement { - result?: Uint8Array; - error?: string; -} -export interface AcknowledgementProtoMsg { - typeUrl: "/ibc.core.channel.v1.Acknowledgement"; - value: Uint8Array; -} -/** - * Acknowledgement is the recommended acknowledgement format to be used by - * app-specific protocols. - * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental - * conflicts with other protobuf message formats used for acknowledgements. - * The first byte of any message with this format will be the non-ASCII values - * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: - * https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope - */ -export interface AcknowledgementAmino { - result?: Uint8Array; - error?: string; -} -export interface AcknowledgementAminoMsg { - type: "cosmos-sdk/Acknowledgement"; - value: AcknowledgementAmino; -} -/** - * Acknowledgement is the recommended acknowledgement format to be used by - * app-specific protocols. - * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental - * conflicts with other protobuf message formats used for acknowledgements. - * The first byte of any message with this format will be the non-ASCII values - * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: - * https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope - */ -export interface AcknowledgementSDKType { - result?: Uint8Array; - error?: string; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/channel/v1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/channel/v1/genesis.ts deleted file mode 100644 index b75654ca4..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/channel/v1/genesis.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { - IdentifiedChannel, - IdentifiedChannelAmino, - IdentifiedChannelSDKType, - PacketState, - PacketStateAmino, - PacketStateSDKType, -} from "./channel"; -import { Long } from "../../../../helpers"; -/** GenesisState defines the ibc channel submodule's genesis state. */ -export interface GenesisState { - channels: IdentifiedChannel[]; - acknowledgements: PacketState[]; - commitments: PacketState[]; - receipts: PacketState[]; - sendSequences: PacketSequence[]; - recvSequences: PacketSequence[]; - ackSequences: PacketSequence[]; - /** the sequence for the next generated channel identifier */ - nextChannelSequence: Long; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.channel.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc channel submodule's genesis state. */ -export interface GenesisStateAmino { - channels: IdentifiedChannelAmino[]; - acknowledgements: PacketStateAmino[]; - commitments: PacketStateAmino[]; - receipts: PacketStateAmino[]; - send_sequences: PacketSequenceAmino[]; - recv_sequences: PacketSequenceAmino[]; - ack_sequences: PacketSequenceAmino[]; - /** the sequence for the next generated channel identifier */ - next_channel_sequence: string; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc channel submodule's genesis state. */ -export interface GenesisStateSDKType { - channels: IdentifiedChannelSDKType[]; - acknowledgements: PacketStateSDKType[]; - commitments: PacketStateSDKType[]; - receipts: PacketStateSDKType[]; - send_sequences: PacketSequenceSDKType[]; - recv_sequences: PacketSequenceSDKType[]; - ack_sequences: PacketSequenceSDKType[]; - next_channel_sequence: Long; -} -/** - * PacketSequence defines the genesis type necessary to retrieve and store - * next send and receive sequences. - */ -export interface PacketSequence { - portId: string; - channelId: string; - sequence: Long; -} -export interface PacketSequenceProtoMsg { - typeUrl: "/ibc.core.channel.v1.PacketSequence"; - value: Uint8Array; -} -/** - * PacketSequence defines the genesis type necessary to retrieve and store - * next send and receive sequences. - */ -export interface PacketSequenceAmino { - port_id: string; - channel_id: string; - sequence: string; -} -export interface PacketSequenceAminoMsg { - type: "cosmos-sdk/PacketSequence"; - value: PacketSequenceAmino; -} -/** - * PacketSequence defines the genesis type necessary to retrieve and store - * next send and receive sequences. - */ -export interface PacketSequenceSDKType { - port_id: string; - channel_id: string; - sequence: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/channel/v1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/channel/v1/tx.ts deleted file mode 100644 index bc36227ef..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/channel/v1/tx.ts +++ /dev/null @@ -1,550 +0,0 @@ -import { - Channel, - ChannelAmino, - ChannelSDKType, - Packet, - PacketAmino, - PacketSDKType, -} from "./channel"; -import { Height, HeightAmino, HeightSDKType } from "../../client/v1/client"; -import { Long } from "../../../../helpers"; -/** - * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It - * is called by a relayer on Chain A. - */ -export interface MsgChannelOpenInit { - portId: string; - channel: Channel; - signer: string; -} -export interface MsgChannelOpenInitProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit"; - value: Uint8Array; -} -/** - * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It - * is called by a relayer on Chain A. - */ -export interface MsgChannelOpenInitAmino { - port_id: string; - channel?: ChannelAmino; - signer: string; -} -export interface MsgChannelOpenInitAminoMsg { - type: "cosmos-sdk/MsgChannelOpenInit"; - value: MsgChannelOpenInitAmino; -} -/** - * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It - * is called by a relayer on Chain A. - */ -export interface MsgChannelOpenInitSDKType { - port_id: string; - channel: ChannelSDKType; - signer: string; -} -/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ -export interface MsgChannelOpenInitResponse {} -export interface MsgChannelOpenInitResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInitResponse"; - value: Uint8Array; -} -/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ -export interface MsgChannelOpenInitResponseAmino {} -export interface MsgChannelOpenInitResponseAminoMsg { - type: "cosmos-sdk/MsgChannelOpenInitResponse"; - value: MsgChannelOpenInitResponseAmino; -} -/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ -export interface MsgChannelOpenInitResponseSDKType {} -/** - * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel - * on Chain B. - */ -export interface MsgChannelOpenTry { - portId: string; - /** - * in the case of crossing hello's, when both chains call OpenInit, we need - * the channel identifier of the previous channel in state INIT - */ - previousChannelId: string; - channel: Channel; - counterpartyVersion: string; - proofInit: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgChannelOpenTryProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry"; - value: Uint8Array; -} -/** - * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel - * on Chain B. - */ -export interface MsgChannelOpenTryAmino { - port_id: string; - /** - * in the case of crossing hello's, when both chains call OpenInit, we need - * the channel identifier of the previous channel in state INIT - */ - previous_channel_id: string; - channel?: ChannelAmino; - counterparty_version: string; - proof_init: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgChannelOpenTryAminoMsg { - type: "cosmos-sdk/MsgChannelOpenTry"; - value: MsgChannelOpenTryAmino; -} -/** - * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel - * on Chain B. - */ -export interface MsgChannelOpenTrySDKType { - port_id: string; - previous_channel_id: string; - channel: ChannelSDKType; - counterparty_version: string; - proof_init: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ -export interface MsgChannelOpenTryResponse {} -export interface MsgChannelOpenTryResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTryResponse"; - value: Uint8Array; -} -/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ -export interface MsgChannelOpenTryResponseAmino {} -export interface MsgChannelOpenTryResponseAminoMsg { - type: "cosmos-sdk/MsgChannelOpenTryResponse"; - value: MsgChannelOpenTryResponseAmino; -} -/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ -export interface MsgChannelOpenTryResponseSDKType {} -/** - * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge - * the change of channel state to TRYOPEN on Chain B. - */ -export interface MsgChannelOpenAck { - portId: string; - channelId: string; - counterpartyChannelId: string; - counterpartyVersion: string; - proofTry: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgChannelOpenAckProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck"; - value: Uint8Array; -} -/** - * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge - * the change of channel state to TRYOPEN on Chain B. - */ -export interface MsgChannelOpenAckAmino { - port_id: string; - channel_id: string; - counterparty_channel_id: string; - counterparty_version: string; - proof_try: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgChannelOpenAckAminoMsg { - type: "cosmos-sdk/MsgChannelOpenAck"; - value: MsgChannelOpenAckAmino; -} -/** - * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge - * the change of channel state to TRYOPEN on Chain B. - */ -export interface MsgChannelOpenAckSDKType { - port_id: string; - channel_id: string; - counterparty_channel_id: string; - counterparty_version: string; - proof_try: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ -export interface MsgChannelOpenAckResponse {} -export interface MsgChannelOpenAckResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAckResponse"; - value: Uint8Array; -} -/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ -export interface MsgChannelOpenAckResponseAmino {} -export interface MsgChannelOpenAckResponseAminoMsg { - type: "cosmos-sdk/MsgChannelOpenAckResponse"; - value: MsgChannelOpenAckResponseAmino; -} -/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ -export interface MsgChannelOpenAckResponseSDKType {} -/** - * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of channel state to OPEN on Chain A. - */ -export interface MsgChannelOpenConfirm { - portId: string; - channelId: string; - proofAck: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgChannelOpenConfirmProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm"; - value: Uint8Array; -} -/** - * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of channel state to OPEN on Chain A. - */ -export interface MsgChannelOpenConfirmAmino { - port_id: string; - channel_id: string; - proof_ack: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgChannelOpenConfirmAminoMsg { - type: "cosmos-sdk/MsgChannelOpenConfirm"; - value: MsgChannelOpenConfirmAmino; -} -/** - * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of channel state to OPEN on Chain A. - */ -export interface MsgChannelOpenConfirmSDKType { - port_id: string; - channel_id: string; - proof_ack: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** - * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response - * type. - */ -export interface MsgChannelOpenConfirmResponse {} -export interface MsgChannelOpenConfirmResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse"; - value: Uint8Array; -} -/** - * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response - * type. - */ -export interface MsgChannelOpenConfirmResponseAmino {} -export interface MsgChannelOpenConfirmResponseAminoMsg { - type: "cosmos-sdk/MsgChannelOpenConfirmResponse"; - value: MsgChannelOpenConfirmResponseAmino; -} -/** - * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response - * type. - */ -export interface MsgChannelOpenConfirmResponseSDKType {} -/** - * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - * to close a channel with Chain B. - */ -export interface MsgChannelCloseInit { - portId: string; - channelId: string; - signer: string; -} -export interface MsgChannelCloseInitProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit"; - value: Uint8Array; -} -/** - * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - * to close a channel with Chain B. - */ -export interface MsgChannelCloseInitAmino { - port_id: string; - channel_id: string; - signer: string; -} -export interface MsgChannelCloseInitAminoMsg { - type: "cosmos-sdk/MsgChannelCloseInit"; - value: MsgChannelCloseInitAmino; -} -/** - * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - * to close a channel with Chain B. - */ -export interface MsgChannelCloseInitSDKType { - port_id: string; - channel_id: string; - signer: string; -} -/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ -export interface MsgChannelCloseInitResponse {} -export interface MsgChannelCloseInitResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInitResponse"; - value: Uint8Array; -} -/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ -export interface MsgChannelCloseInitResponseAmino {} -export interface MsgChannelCloseInitResponseAminoMsg { - type: "cosmos-sdk/MsgChannelCloseInitResponse"; - value: MsgChannelCloseInitResponseAmino; -} -/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ -export interface MsgChannelCloseInitResponseSDKType {} -/** - * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - * to acknowledge the change of channel state to CLOSED on Chain A. - */ -export interface MsgChannelCloseConfirm { - portId: string; - channelId: string; - proofInit: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgChannelCloseConfirmProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm"; - value: Uint8Array; -} -/** - * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - * to acknowledge the change of channel state to CLOSED on Chain A. - */ -export interface MsgChannelCloseConfirmAmino { - port_id: string; - channel_id: string; - proof_init: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgChannelCloseConfirmAminoMsg { - type: "cosmos-sdk/MsgChannelCloseConfirm"; - value: MsgChannelCloseConfirmAmino; -} -/** - * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - * to acknowledge the change of channel state to CLOSED on Chain A. - */ -export interface MsgChannelCloseConfirmSDKType { - port_id: string; - channel_id: string; - proof_init: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** - * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response - * type. - */ -export interface MsgChannelCloseConfirmResponse {} -export interface MsgChannelCloseConfirmResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse"; - value: Uint8Array; -} -/** - * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response - * type. - */ -export interface MsgChannelCloseConfirmResponseAmino {} -export interface MsgChannelCloseConfirmResponseAminoMsg { - type: "cosmos-sdk/MsgChannelCloseConfirmResponse"; - value: MsgChannelCloseConfirmResponseAmino; -} -/** - * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response - * type. - */ -export interface MsgChannelCloseConfirmResponseSDKType {} -/** MsgRecvPacket receives incoming IBC packet */ -export interface MsgRecvPacket { - packet: Packet; - proofCommitment: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgRecvPacketProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgRecvPacket"; - value: Uint8Array; -} -/** MsgRecvPacket receives incoming IBC packet */ -export interface MsgRecvPacketAmino { - packet?: PacketAmino; - proof_commitment: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgRecvPacketAminoMsg { - type: "cosmos-sdk/MsgRecvPacket"; - value: MsgRecvPacketAmino; -} -/** MsgRecvPacket receives incoming IBC packet */ -export interface MsgRecvPacketSDKType { - packet: PacketSDKType; - proof_commitment: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ -export interface MsgRecvPacketResponse {} -export interface MsgRecvPacketResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgRecvPacketResponse"; - value: Uint8Array; -} -/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ -export interface MsgRecvPacketResponseAmino {} -export interface MsgRecvPacketResponseAminoMsg { - type: "cosmos-sdk/MsgRecvPacketResponse"; - value: MsgRecvPacketResponseAmino; -} -/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ -export interface MsgRecvPacketResponseSDKType {} -/** MsgTimeout receives timed-out packet */ -export interface MsgTimeout { - packet: Packet; - proofUnreceived: Uint8Array; - proofHeight: Height; - nextSequenceRecv: Long; - signer: string; -} -export interface MsgTimeoutProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgTimeout"; - value: Uint8Array; -} -/** MsgTimeout receives timed-out packet */ -export interface MsgTimeoutAmino { - packet?: PacketAmino; - proof_unreceived: Uint8Array; - proof_height?: HeightAmino; - next_sequence_recv: string; - signer: string; -} -export interface MsgTimeoutAminoMsg { - type: "cosmos-sdk/MsgTimeout"; - value: MsgTimeoutAmino; -} -/** MsgTimeout receives timed-out packet */ -export interface MsgTimeoutSDKType { - packet: PacketSDKType; - proof_unreceived: Uint8Array; - proof_height: HeightSDKType; - next_sequence_recv: Long; - signer: string; -} -/** MsgTimeoutResponse defines the Msg/Timeout response type. */ -export interface MsgTimeoutResponse {} -export interface MsgTimeoutResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgTimeoutResponse"; - value: Uint8Array; -} -/** MsgTimeoutResponse defines the Msg/Timeout response type. */ -export interface MsgTimeoutResponseAmino {} -export interface MsgTimeoutResponseAminoMsg { - type: "cosmos-sdk/MsgTimeoutResponse"; - value: MsgTimeoutResponseAmino; -} -/** MsgTimeoutResponse defines the Msg/Timeout response type. */ -export interface MsgTimeoutResponseSDKType {} -/** MsgTimeoutOnClose timed-out packet upon counterparty channel closure. */ -export interface MsgTimeoutOnClose { - packet: Packet; - proofUnreceived: Uint8Array; - proofClose: Uint8Array; - proofHeight: Height; - nextSequenceRecv: Long; - signer: string; -} -export interface MsgTimeoutOnCloseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose"; - value: Uint8Array; -} -/** MsgTimeoutOnClose timed-out packet upon counterparty channel closure. */ -export interface MsgTimeoutOnCloseAmino { - packet?: PacketAmino; - proof_unreceived: Uint8Array; - proof_close: Uint8Array; - proof_height?: HeightAmino; - next_sequence_recv: string; - signer: string; -} -export interface MsgTimeoutOnCloseAminoMsg { - type: "cosmos-sdk/MsgTimeoutOnClose"; - value: MsgTimeoutOnCloseAmino; -} -/** MsgTimeoutOnClose timed-out packet upon counterparty channel closure. */ -export interface MsgTimeoutOnCloseSDKType { - packet: PacketSDKType; - proof_unreceived: Uint8Array; - proof_close: Uint8Array; - proof_height: HeightSDKType; - next_sequence_recv: Long; - signer: string; -} -/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ -export interface MsgTimeoutOnCloseResponse {} -export interface MsgTimeoutOnCloseResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse"; - value: Uint8Array; -} -/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ -export interface MsgTimeoutOnCloseResponseAmino {} -export interface MsgTimeoutOnCloseResponseAminoMsg { - type: "cosmos-sdk/MsgTimeoutOnCloseResponse"; - value: MsgTimeoutOnCloseResponseAmino; -} -/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ -export interface MsgTimeoutOnCloseResponseSDKType {} -/** MsgAcknowledgement receives incoming IBC acknowledgement */ -export interface MsgAcknowledgement { - packet: Packet; - acknowledgement: Uint8Array; - proofAcked: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgAcknowledgementProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement"; - value: Uint8Array; -} -/** MsgAcknowledgement receives incoming IBC acknowledgement */ -export interface MsgAcknowledgementAmino { - packet?: PacketAmino; - acknowledgement: Uint8Array; - proof_acked: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgAcknowledgementAminoMsg { - type: "cosmos-sdk/MsgAcknowledgement"; - value: MsgAcknowledgementAmino; -} -/** MsgAcknowledgement receives incoming IBC acknowledgement */ -export interface MsgAcknowledgementSDKType { - packet: PacketSDKType; - acknowledgement: Uint8Array; - proof_acked: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ -export interface MsgAcknowledgementResponse {} -export interface MsgAcknowledgementResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgAcknowledgementResponse"; - value: Uint8Array; -} -/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ -export interface MsgAcknowledgementResponseAmino {} -export interface MsgAcknowledgementResponseAminoMsg { - type: "cosmos-sdk/MsgAcknowledgementResponse"; - value: MsgAcknowledgementResponseAmino; -} -/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ -export interface MsgAcknowledgementResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/client/v1/client.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/client/v1/client.ts deleted file mode 100644 index a07af4ceb..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/client/v1/client.ts +++ /dev/null @@ -1,309 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - Plan, - PlanAmino, - PlanSDKType, -} from "../../../../cosmos/upgrade/v1beta1/upgrade"; -import { Long } from "../../../../helpers"; -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientState { - /** client identifier */ - clientId: string; - /** client state */ - clientState: Any; -} -export interface IdentifiedClientStateProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState"; - value: Uint8Array; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateAmino { - /** client identifier */ - client_id: string; - /** client state */ - client_state?: AnyAmino; -} -export interface IdentifiedClientStateAminoMsg { - type: "cosmos-sdk/IdentifiedClientState"; - value: IdentifiedClientStateAmino; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateSDKType { - client_id: string; - client_state: AnySDKType; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeight { - /** consensus state height */ - height: Height; - /** consensus state */ - consensusState: Any; -} -export interface ConsensusStateWithHeightProtoMsg { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight"; - value: Uint8Array; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightAmino { - /** consensus state height */ - height?: HeightAmino; - /** consensus state */ - consensus_state?: AnyAmino; -} -export interface ConsensusStateWithHeightAminoMsg { - type: "cosmos-sdk/ConsensusStateWithHeight"; - value: ConsensusStateWithHeightAmino; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightSDKType { - height: HeightSDKType; - consensus_state: AnySDKType; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStates { - /** client identifier */ - clientId: string; - /** consensus states and their heights associated with the client */ - consensusStates: ConsensusStateWithHeight[]; -} -export interface ClientConsensusStatesProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates"; - value: Uint8Array; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesAmino { - /** client identifier */ - client_id: string; - /** consensus states and their heights associated with the client */ - consensus_states: ConsensusStateWithHeightAmino[]; -} -export interface ClientConsensusStatesAminoMsg { - type: "cosmos-sdk/ClientConsensusStates"; - value: ClientConsensusStatesAmino; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesSDKType { - client_id: string; - consensus_states: ConsensusStateWithHeightSDKType[]; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposal { - /** the title of the update proposal */ - title: string; - /** the description of the proposal */ - description: string; - /** the client identifier for the client to be updated if the proposal passes */ - subjectClientId: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substituteClientId: string; -} -export interface ClientUpdateProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal"; - value: Uint8Array; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalAmino { - /** the title of the update proposal */ - title: string; - /** the description of the proposal */ - description: string; - /** the client identifier for the client to be updated if the proposal passes */ - subject_client_id: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substitute_client_id: string; -} -export interface ClientUpdateProposalAminoMsg { - type: "cosmos-sdk/ClientUpdateProposal"; - value: ClientUpdateProposalAmino; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalSDKType { - title: string; - description: string; - subject_client_id: string; - substitute_client_id: string; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposal { - title: string; - description: string; - plan: Plan; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgradedClientState: Any; -} -export interface UpgradeProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.UpgradeProposal"; - value: Uint8Array; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalAmino { - title: string; - description: string; - plan?: PlanAmino; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgraded_client_state?: AnyAmino; -} -export interface UpgradeProposalAminoMsg { - type: "cosmos-sdk/UpgradeProposal"; - value: UpgradeProposalAmino; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalSDKType { - title: string; - description: string; - plan: PlanSDKType; - upgraded_client_state: AnySDKType; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface Height { - /** the revision that the client is currently on */ - revisionNumber: Long; - /** the height within the given revision */ - revisionHeight: Long; -} -export interface HeightProtoMsg { - typeUrl: "/ibc.core.client.v1.Height"; - value: Uint8Array; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightAmino { - /** the revision that the client is currently on */ - revision_number: string; - /** the height within the given revision */ - revision_height: string; -} -export interface HeightAminoMsg { - type: "cosmos-sdk/Height"; - value: HeightAmino; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightSDKType { - revision_number: Long; - revision_height: Long; -} -/** Params defines the set of IBC light client parameters. */ -export interface Params { - /** allowed_clients defines the list of allowed client state types. */ - allowedClients: string[]; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.core.client.v1.Params"; - value: Uint8Array; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsAmino { - /** allowed_clients defines the list of allowed client state types. */ - allowed_clients: string[]; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsSDKType { - allowed_clients: string[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/client/v1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/client/v1/genesis.ts deleted file mode 100644 index 7ba45c9e9..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/client/v1/genesis.ts +++ /dev/null @@ -1,125 +0,0 @@ -import { - IdentifiedClientState, - IdentifiedClientStateAmino, - IdentifiedClientStateSDKType, - ClientConsensusStates, - ClientConsensusStatesAmino, - ClientConsensusStatesSDKType, - Params, - ParamsAmino, - ParamsSDKType, -} from "./client"; -import { Long } from "../../../../helpers"; -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisState { - /** client states with their corresponding identifiers */ - clients: IdentifiedClientState[]; - /** consensus states from each client */ - clientsConsensus: ClientConsensusStates[]; - /** metadata from each client */ - clientsMetadata: IdentifiedGenesisMetadata[]; - params: Params; - /** create localhost on initialization */ - createLocalhost: boolean; - /** the sequence for the next generated client identifier */ - nextClientSequence: Long; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateAmino { - /** client states with their corresponding identifiers */ - clients: IdentifiedClientStateAmino[]; - /** consensus states from each client */ - clients_consensus: ClientConsensusStatesAmino[]; - /** metadata from each client */ - clients_metadata: IdentifiedGenesisMetadataAmino[]; - params?: ParamsAmino; - /** create localhost on initialization */ - create_localhost: boolean; - /** the sequence for the next generated client identifier */ - next_client_sequence: string; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateSDKType { - clients: IdentifiedClientStateSDKType[]; - clients_consensus: ClientConsensusStatesSDKType[]; - clients_metadata: IdentifiedGenesisMetadataSDKType[]; - params: ParamsSDKType; - create_localhost: boolean; - next_client_sequence: Long; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadata { - /** store key of metadata without clientID-prefix */ - key: Uint8Array; - /** metadata value */ - value: Uint8Array; -} -export interface GenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisMetadata"; - value: Uint8Array; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataAmino { - /** store key of metadata without clientID-prefix */ - key: Uint8Array; - /** metadata value */ - value: Uint8Array; -} -export interface GenesisMetadataAminoMsg { - type: "cosmos-sdk/GenesisMetadata"; - value: GenesisMetadataAmino; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadata { - clientId: string; - clientMetadata: GenesisMetadata[]; -} -export interface IdentifiedGenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata"; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataAmino { - client_id: string; - client_metadata: GenesisMetadataAmino[]; -} -export interface IdentifiedGenesisMetadataAminoMsg { - type: "cosmos-sdk/IdentifiedGenesisMetadata"; - value: IdentifiedGenesisMetadataAmino; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataSDKType { - client_id: string; - client_metadata: GenesisMetadataSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/client/v1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/client/v1/tx.ts deleted file mode 100644 index 72513a258..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/client/v1/tx.ts +++ /dev/null @@ -1,248 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClient { - /** light client state */ - clientState: Any; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensusState: Any; - /** signer address */ - signer: string; -} -export interface MsgCreateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClient"; - value: Uint8Array; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientAmino { - /** light client state */ - client_state?: AnyAmino; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensus_state?: AnyAmino; - /** signer address */ - signer: string; -} -export interface MsgCreateClientAminoMsg { - type: "cosmos-sdk/MsgCreateClient"; - value: MsgCreateClientAmino; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientSDKType { - client_state: AnySDKType; - consensus_state: AnySDKType; - signer: string; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponse {} -export interface MsgCreateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse"; - value: Uint8Array; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseAmino {} -export interface MsgCreateClientResponseAminoMsg { - type: "cosmos-sdk/MsgCreateClientResponse"; - value: MsgCreateClientResponseAmino; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseSDKType {} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given header. - */ -export interface MsgUpdateClient { - /** client unique identifier */ - clientId: string; - /** header to update the light client */ - header: Any; - /** signer address */ - signer: string; -} -export interface MsgUpdateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient"; - value: Uint8Array; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given header. - */ -export interface MsgUpdateClientAmino { - /** client unique identifier */ - client_id: string; - /** header to update the light client */ - header?: AnyAmino; - /** signer address */ - signer: string; -} -export interface MsgUpdateClientAminoMsg { - type: "cosmos-sdk/MsgUpdateClient"; - value: MsgUpdateClientAmino; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given header. - */ -export interface MsgUpdateClientSDKType { - client_id: string; - header: AnySDKType; - signer: string; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponse {} -export interface MsgUpdateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse"; - value: Uint8Array; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseAmino {} -export interface MsgUpdateClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateClientResponse"; - value: MsgUpdateClientResponseAmino; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseSDKType {} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClient { - /** client unique identifier */ - clientId: string; - /** upgraded client state */ - clientState: Any; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensusState: Any; - /** proof that old chain committed to new client */ - proofUpgradeClient: Uint8Array; - /** proof that old chain committed to new consensus state */ - proofUpgradeConsensusState: Uint8Array; - /** signer address */ - signer: string; -} -export interface MsgUpgradeClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient"; - value: Uint8Array; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientAmino { - /** client unique identifier */ - client_id: string; - /** upgraded client state */ - client_state?: AnyAmino; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensus_state?: AnyAmino; - /** proof that old chain committed to new client */ - proof_upgrade_client: Uint8Array; - /** proof that old chain committed to new consensus state */ - proof_upgrade_consensus_state: Uint8Array; - /** signer address */ - signer: string; -} -export interface MsgUpgradeClientAminoMsg { - type: "cosmos-sdk/MsgUpgradeClient"; - value: MsgUpgradeClientAmino; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientSDKType { - client_id: string; - client_state: AnySDKType; - consensus_state: AnySDKType; - proof_upgrade_client: Uint8Array; - proof_upgrade_consensus_state: Uint8Array; - signer: string; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponse {} -export interface MsgUpgradeClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse"; - value: Uint8Array; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseAmino {} -export interface MsgUpgradeClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpgradeClientResponse"; - value: MsgUpgradeClientResponseAmino; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseSDKType {} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - */ -export interface MsgSubmitMisbehaviour { - /** client unique identifier */ - clientId: string; - /** misbehaviour used for freezing the light client */ - misbehaviour: Any; - /** signer address */ - signer: string; -} -export interface MsgSubmitMisbehaviourProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - */ -export interface MsgSubmitMisbehaviourAmino { - /** client unique identifier */ - client_id: string; - /** misbehaviour used for freezing the light client */ - misbehaviour?: AnyAmino; - /** signer address */ - signer: string; -} -export interface MsgSubmitMisbehaviourAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviour"; - value: MsgSubmitMisbehaviourAmino; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - */ -export interface MsgSubmitMisbehaviourSDKType { - client_id: string; - misbehaviour: AnySDKType; - signer: string; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponse {} -export interface MsgSubmitMisbehaviourResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseAmino {} -export interface MsgSubmitMisbehaviourResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviourResponse"; - value: MsgSubmitMisbehaviourResponseAmino; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/commitment/v1/commitment.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/commitment/v1/commitment.ts deleted file mode 100644 index cc0c433b1..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/commitment/v1/commitment.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { - CommitmentProof, - CommitmentProofAmino, - CommitmentProofSDKType, -} from "../../../../confio/proofs"; -/** - * MerkleRoot defines a merkle root hash. - * In the Cosmos SDK, the AppHash of a block header becomes the root. - */ -export interface MerkleRoot { - hash: Uint8Array; -} -export interface MerkleRootProtoMsg { - typeUrl: "/ibc.core.commitment.v1.MerkleRoot"; - value: Uint8Array; -} -/** - * MerkleRoot defines a merkle root hash. - * In the Cosmos SDK, the AppHash of a block header becomes the root. - */ -export interface MerkleRootAmino { - hash: Uint8Array; -} -export interface MerkleRootAminoMsg { - type: "cosmos-sdk/MerkleRoot"; - value: MerkleRootAmino; -} -/** - * MerkleRoot defines a merkle root hash. - * In the Cosmos SDK, the AppHash of a block header becomes the root. - */ -export interface MerkleRootSDKType { - hash: Uint8Array; -} -/** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - */ -export interface MerklePrefix { - keyPrefix: Uint8Array; -} -export interface MerklePrefixProtoMsg { - typeUrl: "/ibc.core.commitment.v1.MerklePrefix"; - value: Uint8Array; -} -/** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - */ -export interface MerklePrefixAmino { - key_prefix: Uint8Array; -} -export interface MerklePrefixAminoMsg { - type: "cosmos-sdk/MerklePrefix"; - value: MerklePrefixAmino; -} -/** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - */ -export interface MerklePrefixSDKType { - key_prefix: Uint8Array; -} -/** - * MerklePath is the path used to verify commitment proofs, which can be an - * arbitrary structured object (defined by a commitment type). - * MerklePath is represented from root-to-leaf - */ -export interface MerklePath { - keyPath: string[]; -} -export interface MerklePathProtoMsg { - typeUrl: "/ibc.core.commitment.v1.MerklePath"; - value: Uint8Array; -} -/** - * MerklePath is the path used to verify commitment proofs, which can be an - * arbitrary structured object (defined by a commitment type). - * MerklePath is represented from root-to-leaf - */ -export interface MerklePathAmino { - key_path: string[]; -} -export interface MerklePathAminoMsg { - type: "cosmos-sdk/MerklePath"; - value: MerklePathAmino; -} -/** - * MerklePath is the path used to verify commitment proofs, which can be an - * arbitrary structured object (defined by a commitment type). - * MerklePath is represented from root-to-leaf - */ -export interface MerklePathSDKType { - key_path: string[]; -} -/** - * MerkleProof is a wrapper type over a chain of CommitmentProofs. - * It demonstrates membership or non-membership for an element or set of - * elements, verifiable in conjunction with a known commitment root. Proofs - * should be succinct. - * MerkleProofs are ordered from leaf-to-root - */ -export interface MerkleProof { - proofs: CommitmentProof[]; -} -export interface MerkleProofProtoMsg { - typeUrl: "/ibc.core.commitment.v1.MerkleProof"; - value: Uint8Array; -} -/** - * MerkleProof is a wrapper type over a chain of CommitmentProofs. - * It demonstrates membership or non-membership for an element or set of - * elements, verifiable in conjunction with a known commitment root. Proofs - * should be succinct. - * MerkleProofs are ordered from leaf-to-root - */ -export interface MerkleProofAmino { - proofs: CommitmentProofAmino[]; -} -export interface MerkleProofAminoMsg { - type: "cosmos-sdk/MerkleProof"; - value: MerkleProofAmino; -} -/** - * MerkleProof is a wrapper type over a chain of CommitmentProofs. - * It demonstrates membership or non-membership for an element or set of - * elements, verifiable in conjunction with a known commitment root. Proofs - * should be succinct. - * MerkleProofs are ordered from leaf-to-root - */ -export interface MerkleProofSDKType { - proofs: CommitmentProofSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/connection/v1/connection.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/connection/v1/connection.ts deleted file mode 100644 index b6e59993b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/connection/v1/connection.ts +++ /dev/null @@ -1,353 +0,0 @@ -import { - MerklePrefix, - MerklePrefixAmino, - MerklePrefixSDKType, -} from "../../commitment/v1/commitment"; -import { Long } from "../../../../helpers"; -/** - * State defines if a connection is in one of the following states: - * INIT, TRYOPEN, OPEN or UNINITIALIZED. - */ -export enum State { - /** STATE_UNINITIALIZED_UNSPECIFIED - Default State */ - STATE_UNINITIALIZED_UNSPECIFIED = 0, - /** STATE_INIT - A connection end has just started the opening handshake. */ - STATE_INIT = 1, - /** - * STATE_TRYOPEN - A connection end has acknowledged the handshake step on the counterparty - * chain. - */ - STATE_TRYOPEN = 2, - /** STATE_OPEN - A connection end has completed the handshake. */ - STATE_OPEN = 3, - UNRECOGNIZED = -1, -} -export const StateSDKType = State; -export const StateAmino = State; -export function stateFromJSON(object: any): State { - switch (object) { - case 0: - case "STATE_UNINITIALIZED_UNSPECIFIED": - return State.STATE_UNINITIALIZED_UNSPECIFIED; - case 1: - case "STATE_INIT": - return State.STATE_INIT; - case 2: - case "STATE_TRYOPEN": - return State.STATE_TRYOPEN; - case 3: - case "STATE_OPEN": - return State.STATE_OPEN; - case -1: - case "UNRECOGNIZED": - default: - return State.UNRECOGNIZED; - } -} -export function stateToJSON(object: State): string { - switch (object) { - case State.STATE_UNINITIALIZED_UNSPECIFIED: - return "STATE_UNINITIALIZED_UNSPECIFIED"; - case State.STATE_INIT: - return "STATE_INIT"; - case State.STATE_TRYOPEN: - return "STATE_TRYOPEN"; - case State.STATE_OPEN: - return "STATE_OPEN"; - case State.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - */ -export interface ConnectionEnd { - /** client associated with this connection. */ - clientId: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection. - */ - versions: Version[]; - /** current state of the connection end. */ - state: State; - /** counterparty chain associated with this connection. */ - counterparty: Counterparty; - /** - * delay period that must pass before a consensus state can be used for - * packet-verification NOTE: delay period logic is only implemented by some - * clients. - */ - delayPeriod: Long; -} -export interface ConnectionEndProtoMsg { - typeUrl: "/ibc.core.connection.v1.ConnectionEnd"; - value: Uint8Array; -} -/** - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - */ -export interface ConnectionEndAmino { - /** client associated with this connection. */ - client_id: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection. - */ - versions: VersionAmino[]; - /** current state of the connection end. */ - state: State; - /** counterparty chain associated with this connection. */ - counterparty?: CounterpartyAmino; - /** - * delay period that must pass before a consensus state can be used for - * packet-verification NOTE: delay period logic is only implemented by some - * clients. - */ - delay_period: string; -} -export interface ConnectionEndAminoMsg { - type: "cosmos-sdk/ConnectionEnd"; - value: ConnectionEndAmino; -} -/** - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - */ -export interface ConnectionEndSDKType { - client_id: string; - versions: VersionSDKType[]; - state: State; - counterparty: CounterpartySDKType; - delay_period: Long; -} -/** - * IdentifiedConnection defines a connection with additional connection - * identifier field. - */ -export interface IdentifiedConnection { - /** connection identifier. */ - id: string; - /** client associated with this connection. */ - clientId: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection - */ - versions: Version[]; - /** current state of the connection end. */ - state: State; - /** counterparty chain associated with this connection. */ - counterparty: Counterparty; - /** delay period associated with this connection. */ - delayPeriod: Long; -} -export interface IdentifiedConnectionProtoMsg { - typeUrl: "/ibc.core.connection.v1.IdentifiedConnection"; - value: Uint8Array; -} -/** - * IdentifiedConnection defines a connection with additional connection - * identifier field. - */ -export interface IdentifiedConnectionAmino { - /** connection identifier. */ - id: string; - /** client associated with this connection. */ - client_id: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection - */ - versions: VersionAmino[]; - /** current state of the connection end. */ - state: State; - /** counterparty chain associated with this connection. */ - counterparty?: CounterpartyAmino; - /** delay period associated with this connection. */ - delay_period: string; -} -export interface IdentifiedConnectionAminoMsg { - type: "cosmos-sdk/IdentifiedConnection"; - value: IdentifiedConnectionAmino; -} -/** - * IdentifiedConnection defines a connection with additional connection - * identifier field. - */ -export interface IdentifiedConnectionSDKType { - id: string; - client_id: string; - versions: VersionSDKType[]; - state: State; - counterparty: CounterpartySDKType; - delay_period: Long; -} -/** Counterparty defines the counterparty chain associated with a connection end. */ -export interface Counterparty { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - clientId: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connectionId: string; - /** commitment merkle prefix of the counterparty chain. */ - prefix: MerklePrefix; -} -export interface CounterpartyProtoMsg { - typeUrl: "/ibc.core.connection.v1.Counterparty"; - value: Uint8Array; -} -/** Counterparty defines the counterparty chain associated with a connection end. */ -export interface CounterpartyAmino { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - client_id: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connection_id: string; - /** commitment merkle prefix of the counterparty chain. */ - prefix?: MerklePrefixAmino; -} -export interface CounterpartyAminoMsg { - type: "cosmos-sdk/Counterparty"; - value: CounterpartyAmino; -} -/** Counterparty defines the counterparty chain associated with a connection end. */ -export interface CounterpartySDKType { - client_id: string; - connection_id: string; - prefix: MerklePrefixSDKType; -} -/** ClientPaths define all the connection paths for a client state. */ -export interface ClientPaths { - /** list of connection paths */ - paths: string[]; -} -export interface ClientPathsProtoMsg { - typeUrl: "/ibc.core.connection.v1.ClientPaths"; - value: Uint8Array; -} -/** ClientPaths define all the connection paths for a client state. */ -export interface ClientPathsAmino { - /** list of connection paths */ - paths: string[]; -} -export interface ClientPathsAminoMsg { - type: "cosmos-sdk/ClientPaths"; - value: ClientPathsAmino; -} -/** ClientPaths define all the connection paths for a client state. */ -export interface ClientPathsSDKType { - paths: string[]; -} -/** ConnectionPaths define all the connection paths for a given client state. */ -export interface ConnectionPaths { - /** client state unique identifier */ - clientId: string; - /** list of connection paths */ - paths: string[]; -} -export interface ConnectionPathsProtoMsg { - typeUrl: "/ibc.core.connection.v1.ConnectionPaths"; - value: Uint8Array; -} -/** ConnectionPaths define all the connection paths for a given client state. */ -export interface ConnectionPathsAmino { - /** client state unique identifier */ - client_id: string; - /** list of connection paths */ - paths: string[]; -} -export interface ConnectionPathsAminoMsg { - type: "cosmos-sdk/ConnectionPaths"; - value: ConnectionPathsAmino; -} -/** ConnectionPaths define all the connection paths for a given client state. */ -export interface ConnectionPathsSDKType { - client_id: string; - paths: string[]; -} -/** - * Version defines the versioning scheme used to negotiate the IBC verison in - * the connection handshake. - */ -export interface Version { - /** unique version identifier */ - identifier: string; - /** list of features compatible with the specified identifier */ - features: string[]; -} -export interface VersionProtoMsg { - typeUrl: "/ibc.core.connection.v1.Version"; - value: Uint8Array; -} -/** - * Version defines the versioning scheme used to negotiate the IBC verison in - * the connection handshake. - */ -export interface VersionAmino { - /** unique version identifier */ - identifier: string; - /** list of features compatible with the specified identifier */ - features: string[]; -} -export interface VersionAminoMsg { - type: "cosmos-sdk/Version"; - value: VersionAmino; -} -/** - * Version defines the versioning scheme used to negotiate the IBC verison in - * the connection handshake. - */ -export interface VersionSDKType { - identifier: string; - features: string[]; -} -/** Params defines the set of Connection parameters. */ -export interface Params { - /** - * maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the - * largest amount of time that the chain might reasonably take to produce the next block under normal operating - * conditions. A safe choice is 3-5x the expected time per block. - */ - maxExpectedTimePerBlock: Long; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.core.connection.v1.Params"; - value: Uint8Array; -} -/** Params defines the set of Connection parameters. */ -export interface ParamsAmino { - /** - * maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the - * largest amount of time that the chain might reasonably take to produce the next block under normal operating - * conditions. A safe choice is 3-5x the expected time per block. - */ - max_expected_time_per_block: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of Connection parameters. */ -export interface ParamsSDKType { - max_expected_time_per_block: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/connection/v1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/connection/v1/genesis.ts deleted file mode 100644 index 2feda8826..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/connection/v1/genesis.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { - IdentifiedConnection, - IdentifiedConnectionAmino, - IdentifiedConnectionSDKType, - ConnectionPaths, - ConnectionPathsAmino, - ConnectionPathsSDKType, - Params, - ParamsAmino, - ParamsSDKType, -} from "./connection"; -import { Long } from "../../../../helpers"; -/** GenesisState defines the ibc connection submodule's genesis state. */ -export interface GenesisState { - connections: IdentifiedConnection[]; - clientConnectionPaths: ConnectionPaths[]; - /** the sequence for the next generated connection identifier */ - nextConnectionSequence: Long; - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.connection.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc connection submodule's genesis state. */ -export interface GenesisStateAmino { - connections: IdentifiedConnectionAmino[]; - client_connection_paths: ConnectionPathsAmino[]; - /** the sequence for the next generated connection identifier */ - next_connection_sequence: string; - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc connection submodule's genesis state. */ -export interface GenesisStateSDKType { - connections: IdentifiedConnectionSDKType[]; - client_connection_paths: ConnectionPathsSDKType[]; - next_connection_sequence: Long; - params: ParamsSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/connection/v1/tx.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/connection/v1/tx.ts deleted file mode 100644 index 63b0d8e8f..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/connection/v1/tx.ts +++ /dev/null @@ -1,316 +0,0 @@ -import { - Counterparty, - CounterpartyAmino, - CounterpartySDKType, - Version, - VersionAmino, - VersionSDKType, -} from "./connection"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Height, HeightAmino, HeightSDKType } from "../../client/v1/client"; -import { Long } from "../../../../helpers"; -/** - * MsgConnectionOpenInit defines the msg sent by an account on Chain A to - * initialize a connection with Chain B. - */ -export interface MsgConnectionOpenInit { - clientId: string; - counterparty: Counterparty; - version: Version; - delayPeriod: Long; - signer: string; -} -export interface MsgConnectionOpenInitProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit"; - value: Uint8Array; -} -/** - * MsgConnectionOpenInit defines the msg sent by an account on Chain A to - * initialize a connection with Chain B. - */ -export interface MsgConnectionOpenInitAmino { - client_id: string; - counterparty?: CounterpartyAmino; - version?: VersionAmino; - delay_period: string; - signer: string; -} -export interface MsgConnectionOpenInitAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenInit"; - value: MsgConnectionOpenInitAmino; -} -/** - * MsgConnectionOpenInit defines the msg sent by an account on Chain A to - * initialize a connection with Chain B. - */ -export interface MsgConnectionOpenInitSDKType { - client_id: string; - counterparty: CounterpartySDKType; - version: VersionSDKType; - delay_period: Long; - signer: string; -} -/** - * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response - * type. - */ -export interface MsgConnectionOpenInitResponse {} -export interface MsgConnectionOpenInitResponseProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse"; - value: Uint8Array; -} -/** - * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response - * type. - */ -export interface MsgConnectionOpenInitResponseAmino {} -export interface MsgConnectionOpenInitResponseAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenInitResponse"; - value: MsgConnectionOpenInitResponseAmino; -} -/** - * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response - * type. - */ -export interface MsgConnectionOpenInitResponseSDKType {} -/** - * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a - * connection on Chain B. - */ -export interface MsgConnectionOpenTry { - clientId: string; - /** - * in the case of crossing hello's, when both chains call OpenInit, we need - * the connection identifier of the previous connection in state INIT - */ - previousConnectionId: string; - clientState: Any; - counterparty: Counterparty; - delayPeriod: Long; - counterpartyVersions: Version[]; - proofHeight: Height; - /** - * proof of the initialization the connection on Chain A: `UNITIALIZED -> - * INIT` - */ - proofInit: Uint8Array; - /** proof of client state included in message */ - proofClient: Uint8Array; - /** proof of client consensus state */ - proofConsensus: Uint8Array; - consensusHeight: Height; - signer: string; -} -export interface MsgConnectionOpenTryProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry"; - value: Uint8Array; -} -/** - * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a - * connection on Chain B. - */ -export interface MsgConnectionOpenTryAmino { - client_id: string; - /** - * in the case of crossing hello's, when both chains call OpenInit, we need - * the connection identifier of the previous connection in state INIT - */ - previous_connection_id: string; - client_state?: AnyAmino; - counterparty?: CounterpartyAmino; - delay_period: string; - counterparty_versions: VersionAmino[]; - proof_height?: HeightAmino; - /** - * proof of the initialization the connection on Chain A: `UNITIALIZED -> - * INIT` - */ - proof_init: Uint8Array; - /** proof of client state included in message */ - proof_client: Uint8Array; - /** proof of client consensus state */ - proof_consensus: Uint8Array; - consensus_height?: HeightAmino; - signer: string; -} -export interface MsgConnectionOpenTryAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenTry"; - value: MsgConnectionOpenTryAmino; -} -/** - * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a - * connection on Chain B. - */ -export interface MsgConnectionOpenTrySDKType { - client_id: string; - previous_connection_id: string; - client_state: AnySDKType; - counterparty: CounterpartySDKType; - delay_period: Long; - counterparty_versions: VersionSDKType[]; - proof_height: HeightSDKType; - proof_init: Uint8Array; - proof_client: Uint8Array; - proof_consensus: Uint8Array; - consensus_height: HeightSDKType; - signer: string; -} -/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ -export interface MsgConnectionOpenTryResponse {} -export interface MsgConnectionOpenTryResponseProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse"; - value: Uint8Array; -} -/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ -export interface MsgConnectionOpenTryResponseAmino {} -export interface MsgConnectionOpenTryResponseAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenTryResponse"; - value: MsgConnectionOpenTryResponseAmino; -} -/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ -export interface MsgConnectionOpenTryResponseSDKType {} -/** - * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - * acknowledge the change of connection state to TRYOPEN on Chain B. - */ -export interface MsgConnectionOpenAck { - connectionId: string; - counterpartyConnectionId: string; - version: Version; - clientState: Any; - proofHeight: Height; - /** - * proof of the initialization the connection on Chain B: `UNITIALIZED -> - * TRYOPEN` - */ - proofTry: Uint8Array; - /** proof of client state included in message */ - proofClient: Uint8Array; - /** proof of client consensus state */ - proofConsensus: Uint8Array; - consensusHeight: Height; - signer: string; -} -export interface MsgConnectionOpenAckProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck"; - value: Uint8Array; -} -/** - * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - * acknowledge the change of connection state to TRYOPEN on Chain B. - */ -export interface MsgConnectionOpenAckAmino { - connection_id: string; - counterparty_connection_id: string; - version?: VersionAmino; - client_state?: AnyAmino; - proof_height?: HeightAmino; - /** - * proof of the initialization the connection on Chain B: `UNITIALIZED -> - * TRYOPEN` - */ - proof_try: Uint8Array; - /** proof of client state included in message */ - proof_client: Uint8Array; - /** proof of client consensus state */ - proof_consensus: Uint8Array; - consensus_height?: HeightAmino; - signer: string; -} -export interface MsgConnectionOpenAckAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenAck"; - value: MsgConnectionOpenAckAmino; -} -/** - * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - * acknowledge the change of connection state to TRYOPEN on Chain B. - */ -export interface MsgConnectionOpenAckSDKType { - connection_id: string; - counterparty_connection_id: string; - version: VersionSDKType; - client_state: AnySDKType; - proof_height: HeightSDKType; - proof_try: Uint8Array; - proof_client: Uint8Array; - proof_consensus: Uint8Array; - consensus_height: HeightSDKType; - signer: string; -} -/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ -export interface MsgConnectionOpenAckResponse {} -export interface MsgConnectionOpenAckResponseProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse"; - value: Uint8Array; -} -/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ -export interface MsgConnectionOpenAckResponseAmino {} -export interface MsgConnectionOpenAckResponseAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenAckResponse"; - value: MsgConnectionOpenAckResponseAmino; -} -/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ -export interface MsgConnectionOpenAckResponseSDKType {} -/** - * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of connection state to OPEN on Chain A. - */ -export interface MsgConnectionOpenConfirm { - connectionId: string; - /** proof for the change of the connection state on Chain A: `INIT -> OPEN` */ - proofAck: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgConnectionOpenConfirmProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm"; - value: Uint8Array; -} -/** - * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of connection state to OPEN on Chain A. - */ -export interface MsgConnectionOpenConfirmAmino { - connection_id: string; - /** proof for the change of the connection state on Chain A: `INIT -> OPEN` */ - proof_ack: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgConnectionOpenConfirmAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenConfirm"; - value: MsgConnectionOpenConfirmAmino; -} -/** - * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of connection state to OPEN on Chain A. - */ -export interface MsgConnectionOpenConfirmSDKType { - connection_id: string; - proof_ack: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** - * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm - * response type. - */ -export interface MsgConnectionOpenConfirmResponse {} -export interface MsgConnectionOpenConfirmResponseProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse"; - value: Uint8Array; -} -/** - * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm - * response type. - */ -export interface MsgConnectionOpenConfirmResponseAmino {} -export interface MsgConnectionOpenConfirmResponseAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenConfirmResponse"; - value: MsgConnectionOpenConfirmResponseAmino; -} -/** - * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm - * response type. - */ -export interface MsgConnectionOpenConfirmResponseSDKType {} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/types/v1/genesis.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/types/v1/genesis.ts deleted file mode 100644 index 72ca9826b..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/core/types/v1/genesis.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { GenesisState as GenesisState1 } from "../../client/v1/genesis"; -import { GenesisStateAmino as GenesisState1Amino } from "../../client/v1/genesis"; -import { GenesisStateSDKType as GenesisState1SDKType } from "../../client/v1/genesis"; -import { GenesisState as GenesisState2 } from "../../connection/v1/genesis"; -import { GenesisStateAmino as GenesisState2Amino } from "../../connection/v1/genesis"; -import { GenesisStateSDKType as GenesisState2SDKType } from "../../connection/v1/genesis"; -import { GenesisState as GenesisState3 } from "../../channel/v1/genesis"; -import { GenesisStateAmino as GenesisState3Amino } from "../../channel/v1/genesis"; -import { GenesisStateSDKType as GenesisState3SDKType } from "../../channel/v1/genesis"; -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisState { - /** ICS002 - Clients genesis state */ - clientGenesis: GenesisState1; - /** ICS003 - Connections genesis state */ - connectionGenesis: GenesisState2; - /** ICS004 - Channel genesis state */ - channelGenesis: GenesisState3; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.types.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisStateAmino { - /** ICS002 - Clients genesis state */ - client_genesis?: GenesisState1Amino; - /** ICS003 - Connections genesis state */ - connection_genesis?: GenesisState2Amino; - /** ICS004 - Channel genesis state */ - channel_genesis?: GenesisState3Amino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisStateSDKType { - client_genesis: GenesisState1SDKType; - connection_genesis: GenesisState2SDKType; - channel_genesis: GenesisState3SDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/localhost/v1/localhost.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/localhost/v1/localhost.ts deleted file mode 100644 index 5213a6cee..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/localhost/v1/localhost.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { - Height, - HeightAmino, - HeightSDKType, -} from "../../../core/client/v1/client"; -/** - * ClientState defines a loopback (localhost) client. It requires (read-only) - * access to keys outside the client prefix. - */ -export interface ClientState { - /** self chain ID */ - chainId: string; - /** self latest block height */ - height: Height; -} -export interface ClientStateProtoMsg { - typeUrl: "/ibc.lightclients.localhost.v1.ClientState"; - value: Uint8Array; -} -/** - * ClientState defines a loopback (localhost) client. It requires (read-only) - * access to keys outside the client prefix. - */ -export interface ClientStateAmino { - /** self chain ID */ - chain_id: string; - /** self latest block height */ - height?: HeightAmino; -} -export interface ClientStateAminoMsg { - type: "cosmos-sdk/ClientState"; - value: ClientStateAmino; -} -/** - * ClientState defines a loopback (localhost) client. It requires (read-only) - * access to keys outside the client prefix. - */ -export interface ClientStateSDKType { - chain_id: string; - height: HeightSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v1/solomachine.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v1/solomachine.ts deleted file mode 100644 index 064a54a40..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v1/solomachine.ts +++ /dev/null @@ -1,655 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - ConnectionEnd, - ConnectionEndAmino, - ConnectionEndSDKType, -} from "../../../core/connection/v1/connection"; -import { - Channel, - ChannelAmino, - ChannelSDKType, -} from "../../../core/channel/v1/channel"; -import { Long } from "../../../../helpers"; -/** - * DataType defines the type of solo machine proof being created. This is done - * to preserve uniqueness of different data sign byte encodings. - */ -export enum DataType { - /** DATA_TYPE_UNINITIALIZED_UNSPECIFIED - Default State */ - DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0, - /** DATA_TYPE_CLIENT_STATE - Data type for client state verification */ - DATA_TYPE_CLIENT_STATE = 1, - /** DATA_TYPE_CONSENSUS_STATE - Data type for consensus state verification */ - DATA_TYPE_CONSENSUS_STATE = 2, - /** DATA_TYPE_CONNECTION_STATE - Data type for connection state verification */ - DATA_TYPE_CONNECTION_STATE = 3, - /** DATA_TYPE_CHANNEL_STATE - Data type for channel state verification */ - DATA_TYPE_CHANNEL_STATE = 4, - /** DATA_TYPE_PACKET_COMMITMENT - Data type for packet commitment verification */ - DATA_TYPE_PACKET_COMMITMENT = 5, - /** DATA_TYPE_PACKET_ACKNOWLEDGEMENT - Data type for packet acknowledgement verification */ - DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6, - /** DATA_TYPE_PACKET_RECEIPT_ABSENCE - Data type for packet receipt absence verification */ - DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7, - /** DATA_TYPE_NEXT_SEQUENCE_RECV - Data type for next sequence recv verification */ - DATA_TYPE_NEXT_SEQUENCE_RECV = 8, - /** DATA_TYPE_HEADER - Data type for header verification */ - DATA_TYPE_HEADER = 9, - UNRECOGNIZED = -1, -} -export const DataTypeSDKType = DataType; -export const DataTypeAmino = DataType; -export function dataTypeFromJSON(object: any): DataType { - switch (object) { - case 0: - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - return DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED; - case 1: - case "DATA_TYPE_CLIENT_STATE": - return DataType.DATA_TYPE_CLIENT_STATE; - case 2: - case "DATA_TYPE_CONSENSUS_STATE": - return DataType.DATA_TYPE_CONSENSUS_STATE; - case 3: - case "DATA_TYPE_CONNECTION_STATE": - return DataType.DATA_TYPE_CONNECTION_STATE; - case 4: - case "DATA_TYPE_CHANNEL_STATE": - return DataType.DATA_TYPE_CHANNEL_STATE; - case 5: - case "DATA_TYPE_PACKET_COMMITMENT": - return DataType.DATA_TYPE_PACKET_COMMITMENT; - case 6: - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - return DataType.DATA_TYPE_PACKET_ACKNOWLEDGEMENT; - case 7: - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - return DataType.DATA_TYPE_PACKET_RECEIPT_ABSENCE; - case 8: - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - return DataType.DATA_TYPE_NEXT_SEQUENCE_RECV; - case 9: - case "DATA_TYPE_HEADER": - return DataType.DATA_TYPE_HEADER; - case -1: - case "UNRECOGNIZED": - default: - return DataType.UNRECOGNIZED; - } -} -export function dataTypeToJSON(object: DataType): string { - switch (object) { - case DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED: - return "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"; - case DataType.DATA_TYPE_CLIENT_STATE: - return "DATA_TYPE_CLIENT_STATE"; - case DataType.DATA_TYPE_CONSENSUS_STATE: - return "DATA_TYPE_CONSENSUS_STATE"; - case DataType.DATA_TYPE_CONNECTION_STATE: - return "DATA_TYPE_CONNECTION_STATE"; - case DataType.DATA_TYPE_CHANNEL_STATE: - return "DATA_TYPE_CHANNEL_STATE"; - case DataType.DATA_TYPE_PACKET_COMMITMENT: - return "DATA_TYPE_PACKET_COMMITMENT"; - case DataType.DATA_TYPE_PACKET_ACKNOWLEDGEMENT: - return "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"; - case DataType.DATA_TYPE_PACKET_RECEIPT_ABSENCE: - return "DATA_TYPE_PACKET_RECEIPT_ABSENCE"; - case DataType.DATA_TYPE_NEXT_SEQUENCE_RECV: - return "DATA_TYPE_NEXT_SEQUENCE_RECV"; - case DataType.DATA_TYPE_HEADER: - return "DATA_TYPE_HEADER"; - case DataType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientState { - /** latest sequence of the client state */ - sequence: Long; - /** frozen sequence of the solo machine */ - frozenSequence: Long; - consensusState: ConsensusState; - /** - * when set to true, will allow governance to update a solo machine client. - * The client will be unfrozen if it is frozen. - */ - allowUpdateAfterProposal: boolean; -} -export interface ClientStateProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ClientState"; - value: Uint8Array; -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientStateAmino { - /** latest sequence of the client state */ - sequence: string; - /** frozen sequence of the solo machine */ - frozen_sequence: string; - consensus_state?: ConsensusStateAmino; - /** - * when set to true, will allow governance to update a solo machine client. - * The client will be unfrozen if it is frozen. - */ - allow_update_after_proposal: boolean; -} -export interface ClientStateAminoMsg { - type: "cosmos-sdk/ClientState"; - value: ClientStateAmino; -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientStateSDKType { - sequence: Long; - frozen_sequence: Long; - consensus_state: ConsensusStateSDKType; - allow_update_after_proposal: boolean; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusState { - /** public key of the solo machine */ - publicKey: Any; - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - */ - diversifier: string; - timestamp: Long; -} -export interface ConsensusStateProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ConsensusState"; - value: Uint8Array; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusStateAmino { - /** public key of the solo machine */ - public_key?: AnyAmino; - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - */ - diversifier: string; - timestamp: string; -} -export interface ConsensusStateAminoMsg { - type: "cosmos-sdk/ConsensusState"; - value: ConsensusStateAmino; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusStateSDKType { - public_key: AnySDKType; - diversifier: string; - timestamp: Long; -} -/** Header defines a solo machine consensus header */ -export interface Header { - /** sequence to update solo machine public key at */ - sequence: Long; - timestamp: Long; - signature: Uint8Array; - newPublicKey: Any; - newDiversifier: string; -} -export interface HeaderProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.Header"; - value: Uint8Array; -} -/** Header defines a solo machine consensus header */ -export interface HeaderAmino { - /** sequence to update solo machine public key at */ - sequence: string; - timestamp: string; - signature: Uint8Array; - new_public_key?: AnyAmino; - new_diversifier: string; -} -export interface HeaderAminoMsg { - type: "cosmos-sdk/Header"; - value: HeaderAmino; -} -/** Header defines a solo machine consensus header */ -export interface HeaderSDKType { - sequence: Long; - timestamp: Long; - signature: Uint8Array; - new_public_key: AnySDKType; - new_diversifier: string; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface Misbehaviour { - clientId: string; - sequence: Long; - signatureOne: SignatureAndData; - signatureTwo: SignatureAndData; -} -export interface MisbehaviourProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.Misbehaviour"; - value: Uint8Array; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface MisbehaviourAmino { - client_id: string; - sequence: string; - signature_one?: SignatureAndDataAmino; - signature_two?: SignatureAndDataAmino; -} -export interface MisbehaviourAminoMsg { - type: "cosmos-sdk/Misbehaviour"; - value: MisbehaviourAmino; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface MisbehaviourSDKType { - client_id: string; - sequence: Long; - signature_one: SignatureAndDataSDKType; - signature_two: SignatureAndDataSDKType; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndData { - signature: Uint8Array; - dataType: DataType; - data: Uint8Array; - timestamp: Long; -} -export interface SignatureAndDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.SignatureAndData"; - value: Uint8Array; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndDataAmino { - signature: Uint8Array; - data_type: DataType; - data: Uint8Array; - timestamp: string; -} -export interface SignatureAndDataAminoMsg { - type: "cosmos-sdk/SignatureAndData"; - value: SignatureAndDataAmino; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndDataSDKType { - signature: Uint8Array; - data_type: DataType; - data: Uint8Array; - timestamp: Long; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureData { - signatureData: Uint8Array; - timestamp: Long; -} -export interface TimestampedSignatureDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.TimestampedSignatureData"; - value: Uint8Array; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureDataAmino { - signature_data: Uint8Array; - timestamp: string; -} -export interface TimestampedSignatureDataAminoMsg { - type: "cosmos-sdk/TimestampedSignatureData"; - value: TimestampedSignatureDataAmino; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureDataSDKType { - signature_data: Uint8Array; - timestamp: Long; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytes { - sequence: Long; - timestamp: Long; - diversifier: string; - /** type of the data used */ - dataType: DataType; - /** marshaled data */ - data: Uint8Array; -} -export interface SignBytesProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.SignBytes"; - value: Uint8Array; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytesAmino { - sequence: string; - timestamp: string; - diversifier: string; - /** type of the data used */ - data_type: DataType; - /** marshaled data */ - data: Uint8Array; -} -export interface SignBytesAminoMsg { - type: "cosmos-sdk/SignBytes"; - value: SignBytesAmino; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytesSDKType { - sequence: Long; - timestamp: Long; - diversifier: string; - data_type: DataType; - data: Uint8Array; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderData { - /** header public key */ - newPubKey: Any; - /** header diversifier */ - newDiversifier: string; -} -export interface HeaderDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.HeaderData"; - value: Uint8Array; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderDataAmino { - /** header public key */ - new_pub_key?: AnyAmino; - /** header diversifier */ - new_diversifier: string; -} -export interface HeaderDataAminoMsg { - type: "cosmos-sdk/HeaderData"; - value: HeaderDataAmino; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderDataSDKType { - new_pub_key: AnySDKType; - new_diversifier: string; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateData { - path: Uint8Array; - clientState: Any; -} -export interface ClientStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ClientStateData"; - value: Uint8Array; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateDataAmino { - path: Uint8Array; - client_state?: AnyAmino; -} -export interface ClientStateDataAminoMsg { - type: "cosmos-sdk/ClientStateData"; - value: ClientStateDataAmino; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateDataSDKType { - path: Uint8Array; - client_state: AnySDKType; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateData { - path: Uint8Array; - consensusState: Any; -} -export interface ConsensusStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ConsensusStateData"; - value: Uint8Array; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateDataAmino { - path: Uint8Array; - consensus_state?: AnyAmino; -} -export interface ConsensusStateDataAminoMsg { - type: "cosmos-sdk/ConsensusStateData"; - value: ConsensusStateDataAmino; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateDataSDKType { - path: Uint8Array; - consensus_state: AnySDKType; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateData { - path: Uint8Array; - connection: ConnectionEnd; -} -export interface ConnectionStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ConnectionStateData"; - value: Uint8Array; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateDataAmino { - path: Uint8Array; - connection?: ConnectionEndAmino; -} -export interface ConnectionStateDataAminoMsg { - type: "cosmos-sdk/ConnectionStateData"; - value: ConnectionStateDataAmino; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateDataSDKType { - path: Uint8Array; - connection: ConnectionEndSDKType; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateData { - path: Uint8Array; - channel: Channel; -} -export interface ChannelStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ChannelStateData"; - value: Uint8Array; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateDataAmino { - path: Uint8Array; - channel?: ChannelAmino; -} -export interface ChannelStateDataAminoMsg { - type: "cosmos-sdk/ChannelStateData"; - value: ChannelStateDataAmino; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateDataSDKType { - path: Uint8Array; - channel: ChannelSDKType; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentData { - path: Uint8Array; - commitment: Uint8Array; -} -export interface PacketCommitmentDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.PacketCommitmentData"; - value: Uint8Array; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentDataAmino { - path: Uint8Array; - commitment: Uint8Array; -} -export interface PacketCommitmentDataAminoMsg { - type: "cosmos-sdk/PacketCommitmentData"; - value: PacketCommitmentDataAmino; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentDataSDKType { - path: Uint8Array; - commitment: Uint8Array; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementData { - path: Uint8Array; - acknowledgement: Uint8Array; -} -export interface PacketAcknowledgementDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.PacketAcknowledgementData"; - value: Uint8Array; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementDataAmino { - path: Uint8Array; - acknowledgement: Uint8Array; -} -export interface PacketAcknowledgementDataAminoMsg { - type: "cosmos-sdk/PacketAcknowledgementData"; - value: PacketAcknowledgementDataAmino; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementDataSDKType { - path: Uint8Array; - acknowledgement: Uint8Array; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceData { - path: Uint8Array; -} -export interface PacketReceiptAbsenceDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData"; - value: Uint8Array; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceDataAmino { - path: Uint8Array; -} -export interface PacketReceiptAbsenceDataAminoMsg { - type: "cosmos-sdk/PacketReceiptAbsenceData"; - value: PacketReceiptAbsenceDataAmino; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceDataSDKType { - path: Uint8Array; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvData { - path: Uint8Array; - nextSeqRecv: Long; -} -export interface NextSequenceRecvDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.NextSequenceRecvData"; - value: Uint8Array; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvDataAmino { - path: Uint8Array; - next_seq_recv: string; -} -export interface NextSequenceRecvDataAminoMsg { - type: "cosmos-sdk/NextSequenceRecvData"; - value: NextSequenceRecvDataAmino; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvDataSDKType { - path: Uint8Array; - next_seq_recv: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v2/solomachine.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v2/solomachine.ts deleted file mode 100644 index b884f6bad..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v2/solomachine.ts +++ /dev/null @@ -1,655 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - ConnectionEnd, - ConnectionEndAmino, - ConnectionEndSDKType, -} from "../../../core/connection/v1/connection"; -import { - Channel, - ChannelAmino, - ChannelSDKType, -} from "../../../core/channel/v1/channel"; -import { Long } from "../../../../helpers"; -/** - * DataType defines the type of solo machine proof being created. This is done - * to preserve uniqueness of different data sign byte encodings. - */ -export enum DataType { - /** DATA_TYPE_UNINITIALIZED_UNSPECIFIED - Default State */ - DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0, - /** DATA_TYPE_CLIENT_STATE - Data type for client state verification */ - DATA_TYPE_CLIENT_STATE = 1, - /** DATA_TYPE_CONSENSUS_STATE - Data type for consensus state verification */ - DATA_TYPE_CONSENSUS_STATE = 2, - /** DATA_TYPE_CONNECTION_STATE - Data type for connection state verification */ - DATA_TYPE_CONNECTION_STATE = 3, - /** DATA_TYPE_CHANNEL_STATE - Data type for channel state verification */ - DATA_TYPE_CHANNEL_STATE = 4, - /** DATA_TYPE_PACKET_COMMITMENT - Data type for packet commitment verification */ - DATA_TYPE_PACKET_COMMITMENT = 5, - /** DATA_TYPE_PACKET_ACKNOWLEDGEMENT - Data type for packet acknowledgement verification */ - DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6, - /** DATA_TYPE_PACKET_RECEIPT_ABSENCE - Data type for packet receipt absence verification */ - DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7, - /** DATA_TYPE_NEXT_SEQUENCE_RECV - Data type for next sequence recv verification */ - DATA_TYPE_NEXT_SEQUENCE_RECV = 8, - /** DATA_TYPE_HEADER - Data type for header verification */ - DATA_TYPE_HEADER = 9, - UNRECOGNIZED = -1, -} -export const DataTypeSDKType = DataType; -export const DataTypeAmino = DataType; -export function dataTypeFromJSON(object: any): DataType { - switch (object) { - case 0: - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - return DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED; - case 1: - case "DATA_TYPE_CLIENT_STATE": - return DataType.DATA_TYPE_CLIENT_STATE; - case 2: - case "DATA_TYPE_CONSENSUS_STATE": - return DataType.DATA_TYPE_CONSENSUS_STATE; - case 3: - case "DATA_TYPE_CONNECTION_STATE": - return DataType.DATA_TYPE_CONNECTION_STATE; - case 4: - case "DATA_TYPE_CHANNEL_STATE": - return DataType.DATA_TYPE_CHANNEL_STATE; - case 5: - case "DATA_TYPE_PACKET_COMMITMENT": - return DataType.DATA_TYPE_PACKET_COMMITMENT; - case 6: - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - return DataType.DATA_TYPE_PACKET_ACKNOWLEDGEMENT; - case 7: - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - return DataType.DATA_TYPE_PACKET_RECEIPT_ABSENCE; - case 8: - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - return DataType.DATA_TYPE_NEXT_SEQUENCE_RECV; - case 9: - case "DATA_TYPE_HEADER": - return DataType.DATA_TYPE_HEADER; - case -1: - case "UNRECOGNIZED": - default: - return DataType.UNRECOGNIZED; - } -} -export function dataTypeToJSON(object: DataType): string { - switch (object) { - case DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED: - return "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"; - case DataType.DATA_TYPE_CLIENT_STATE: - return "DATA_TYPE_CLIENT_STATE"; - case DataType.DATA_TYPE_CONSENSUS_STATE: - return "DATA_TYPE_CONSENSUS_STATE"; - case DataType.DATA_TYPE_CONNECTION_STATE: - return "DATA_TYPE_CONNECTION_STATE"; - case DataType.DATA_TYPE_CHANNEL_STATE: - return "DATA_TYPE_CHANNEL_STATE"; - case DataType.DATA_TYPE_PACKET_COMMITMENT: - return "DATA_TYPE_PACKET_COMMITMENT"; - case DataType.DATA_TYPE_PACKET_ACKNOWLEDGEMENT: - return "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"; - case DataType.DATA_TYPE_PACKET_RECEIPT_ABSENCE: - return "DATA_TYPE_PACKET_RECEIPT_ABSENCE"; - case DataType.DATA_TYPE_NEXT_SEQUENCE_RECV: - return "DATA_TYPE_NEXT_SEQUENCE_RECV"; - case DataType.DATA_TYPE_HEADER: - return "DATA_TYPE_HEADER"; - case DataType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientState { - /** latest sequence of the client state */ - sequence: Long; - /** frozen sequence of the solo machine */ - isFrozen: boolean; - consensusState: ConsensusState; - /** - * when set to true, will allow governance to update a solo machine client. - * The client will be unfrozen if it is frozen. - */ - allowUpdateAfterProposal: boolean; -} -export interface ClientStateProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ClientState"; - value: Uint8Array; -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientStateAmino { - /** latest sequence of the client state */ - sequence: string; - /** frozen sequence of the solo machine */ - is_frozen: boolean; - consensus_state?: ConsensusStateAmino; - /** - * when set to true, will allow governance to update a solo machine client. - * The client will be unfrozen if it is frozen. - */ - allow_update_after_proposal: boolean; -} -export interface ClientStateAminoMsg { - type: "cosmos-sdk/ClientState"; - value: ClientStateAmino; -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientStateSDKType { - sequence: Long; - is_frozen: boolean; - consensus_state: ConsensusStateSDKType; - allow_update_after_proposal: boolean; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusState { - /** public key of the solo machine */ - publicKey: Any; - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - */ - diversifier: string; - timestamp: Long; -} -export interface ConsensusStateProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ConsensusState"; - value: Uint8Array; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusStateAmino { - /** public key of the solo machine */ - public_key?: AnyAmino; - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - */ - diversifier: string; - timestamp: string; -} -export interface ConsensusStateAminoMsg { - type: "cosmos-sdk/ConsensusState"; - value: ConsensusStateAmino; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusStateSDKType { - public_key: AnySDKType; - diversifier: string; - timestamp: Long; -} -/** Header defines a solo machine consensus header */ -export interface Header { - /** sequence to update solo machine public key at */ - sequence: Long; - timestamp: Long; - signature: Uint8Array; - newPublicKey: Any; - newDiversifier: string; -} -export interface HeaderProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.Header"; - value: Uint8Array; -} -/** Header defines a solo machine consensus header */ -export interface HeaderAmino { - /** sequence to update solo machine public key at */ - sequence: string; - timestamp: string; - signature: Uint8Array; - new_public_key?: AnyAmino; - new_diversifier: string; -} -export interface HeaderAminoMsg { - type: "cosmos-sdk/Header"; - value: HeaderAmino; -} -/** Header defines a solo machine consensus header */ -export interface HeaderSDKType { - sequence: Long; - timestamp: Long; - signature: Uint8Array; - new_public_key: AnySDKType; - new_diversifier: string; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface Misbehaviour { - clientId: string; - sequence: Long; - signatureOne: SignatureAndData; - signatureTwo: SignatureAndData; -} -export interface MisbehaviourProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.Misbehaviour"; - value: Uint8Array; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface MisbehaviourAmino { - client_id: string; - sequence: string; - signature_one?: SignatureAndDataAmino; - signature_two?: SignatureAndDataAmino; -} -export interface MisbehaviourAminoMsg { - type: "cosmos-sdk/Misbehaviour"; - value: MisbehaviourAmino; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface MisbehaviourSDKType { - client_id: string; - sequence: Long; - signature_one: SignatureAndDataSDKType; - signature_two: SignatureAndDataSDKType; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndData { - signature: Uint8Array; - dataType: DataType; - data: Uint8Array; - timestamp: Long; -} -export interface SignatureAndDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.SignatureAndData"; - value: Uint8Array; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndDataAmino { - signature: Uint8Array; - data_type: DataType; - data: Uint8Array; - timestamp: string; -} -export interface SignatureAndDataAminoMsg { - type: "cosmos-sdk/SignatureAndData"; - value: SignatureAndDataAmino; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndDataSDKType { - signature: Uint8Array; - data_type: DataType; - data: Uint8Array; - timestamp: Long; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureData { - signatureData: Uint8Array; - timestamp: Long; -} -export interface TimestampedSignatureDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.TimestampedSignatureData"; - value: Uint8Array; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureDataAmino { - signature_data: Uint8Array; - timestamp: string; -} -export interface TimestampedSignatureDataAminoMsg { - type: "cosmos-sdk/TimestampedSignatureData"; - value: TimestampedSignatureDataAmino; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureDataSDKType { - signature_data: Uint8Array; - timestamp: Long; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytes { - sequence: Long; - timestamp: Long; - diversifier: string; - /** type of the data used */ - dataType: DataType; - /** marshaled data */ - data: Uint8Array; -} -export interface SignBytesProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.SignBytes"; - value: Uint8Array; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytesAmino { - sequence: string; - timestamp: string; - diversifier: string; - /** type of the data used */ - data_type: DataType; - /** marshaled data */ - data: Uint8Array; -} -export interface SignBytesAminoMsg { - type: "cosmos-sdk/SignBytes"; - value: SignBytesAmino; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytesSDKType { - sequence: Long; - timestamp: Long; - diversifier: string; - data_type: DataType; - data: Uint8Array; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderData { - /** header public key */ - newPubKey: Any; - /** header diversifier */ - newDiversifier: string; -} -export interface HeaderDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.HeaderData"; - value: Uint8Array; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderDataAmino { - /** header public key */ - new_pub_key?: AnyAmino; - /** header diversifier */ - new_diversifier: string; -} -export interface HeaderDataAminoMsg { - type: "cosmos-sdk/HeaderData"; - value: HeaderDataAmino; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderDataSDKType { - new_pub_key: AnySDKType; - new_diversifier: string; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateData { - path: Uint8Array; - clientState: Any; -} -export interface ClientStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ClientStateData"; - value: Uint8Array; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateDataAmino { - path: Uint8Array; - client_state?: AnyAmino; -} -export interface ClientStateDataAminoMsg { - type: "cosmos-sdk/ClientStateData"; - value: ClientStateDataAmino; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateDataSDKType { - path: Uint8Array; - client_state: AnySDKType; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateData { - path: Uint8Array; - consensusState: Any; -} -export interface ConsensusStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ConsensusStateData"; - value: Uint8Array; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateDataAmino { - path: Uint8Array; - consensus_state?: AnyAmino; -} -export interface ConsensusStateDataAminoMsg { - type: "cosmos-sdk/ConsensusStateData"; - value: ConsensusStateDataAmino; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateDataSDKType { - path: Uint8Array; - consensus_state: AnySDKType; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateData { - path: Uint8Array; - connection: ConnectionEnd; -} -export interface ConnectionStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ConnectionStateData"; - value: Uint8Array; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateDataAmino { - path: Uint8Array; - connection?: ConnectionEndAmino; -} -export interface ConnectionStateDataAminoMsg { - type: "cosmos-sdk/ConnectionStateData"; - value: ConnectionStateDataAmino; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateDataSDKType { - path: Uint8Array; - connection: ConnectionEndSDKType; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateData { - path: Uint8Array; - channel: Channel; -} -export interface ChannelStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ChannelStateData"; - value: Uint8Array; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateDataAmino { - path: Uint8Array; - channel?: ChannelAmino; -} -export interface ChannelStateDataAminoMsg { - type: "cosmos-sdk/ChannelStateData"; - value: ChannelStateDataAmino; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateDataSDKType { - path: Uint8Array; - channel: ChannelSDKType; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentData { - path: Uint8Array; - commitment: Uint8Array; -} -export interface PacketCommitmentDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.PacketCommitmentData"; - value: Uint8Array; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentDataAmino { - path: Uint8Array; - commitment: Uint8Array; -} -export interface PacketCommitmentDataAminoMsg { - type: "cosmos-sdk/PacketCommitmentData"; - value: PacketCommitmentDataAmino; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentDataSDKType { - path: Uint8Array; - commitment: Uint8Array; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementData { - path: Uint8Array; - acknowledgement: Uint8Array; -} -export interface PacketAcknowledgementDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.PacketAcknowledgementData"; - value: Uint8Array; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementDataAmino { - path: Uint8Array; - acknowledgement: Uint8Array; -} -export interface PacketAcknowledgementDataAminoMsg { - type: "cosmos-sdk/PacketAcknowledgementData"; - value: PacketAcknowledgementDataAmino; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementDataSDKType { - path: Uint8Array; - acknowledgement: Uint8Array; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceData { - path: Uint8Array; -} -export interface PacketReceiptAbsenceDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData"; - value: Uint8Array; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceDataAmino { - path: Uint8Array; -} -export interface PacketReceiptAbsenceDataAminoMsg { - type: "cosmos-sdk/PacketReceiptAbsenceData"; - value: PacketReceiptAbsenceDataAmino; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceDataSDKType { - path: Uint8Array; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvData { - path: Uint8Array; - nextSeqRecv: Long; -} -export interface NextSequenceRecvDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.NextSequenceRecvData"; - value: Uint8Array; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvDataAmino { - path: Uint8Array; - next_seq_recv: string; -} -export interface NextSequenceRecvDataAminoMsg { - type: "cosmos-sdk/NextSequenceRecvData"; - value: NextSequenceRecvDataAmino; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvDataSDKType { - path: Uint8Array; - next_seq_recv: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/tendermint/v1/tendermint.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/tendermint/v1/tendermint.ts deleted file mode 100644 index 0e69158f9..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ibc/lightclients/tendermint/v1/tendermint.ts +++ /dev/null @@ -1,313 +0,0 @@ -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../../google/protobuf/duration"; -import { - Height, - HeightAmino, - HeightSDKType, -} from "../../../core/client/v1/client"; -import { - ProofSpec, - ProofSpecAmino, - ProofSpecSDKType, -} from "../../../../confio/proofs"; -import { - MerkleRoot, - MerkleRootAmino, - MerkleRootSDKType, -} from "../../../core/commitment/v1/commitment"; -import { - SignedHeader, - SignedHeaderAmino, - SignedHeaderSDKType, -} from "../../../../tendermint/types/types"; -import { - ValidatorSet, - ValidatorSetAmino, - ValidatorSetSDKType, -} from "../../../../tendermint/types/validator"; -import { Long } from "../../../../helpers"; -/** - * ClientState from Tendermint tracks the current validator set, latest height, - * and a possible frozen height. - */ -export interface ClientState { - chainId: string; - trustLevel: Fraction; - /** - * duration of the period since the LastestTimestamp during which the - * submitted headers are valid for upgrade - */ - trustingPeriod: Duration; - /** duration of the staking unbonding period */ - unbondingPeriod: Duration; - /** defines how much new (untrusted) header's Time can drift into the future. */ - maxClockDrift: Duration; - /** Block height when the client was frozen due to a misbehaviour */ - frozenHeight: Height; - /** Latest height the client was updated to */ - latestHeight: Height; - /** Proof specifications used in verifying counterparty state */ - proofSpecs: ProofSpec[]; - /** - * Path at which next upgraded client will be committed. - * Each element corresponds to the key for a single CommitmentProof in the - * chained proof. NOTE: ClientState must stored under - * `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored - * under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using - * the default upgrade module, upgrade_path should be []string{"upgrade", - * "upgradedIBCState"}` - */ - upgradePath: string[]; - /** - * This flag, when set to true, will allow governance to recover a client - * which has expired - */ - allowUpdateAfterExpiry: boolean; - /** - * This flag, when set to true, will allow governance to unfreeze a client - * whose chain has experienced a misbehaviour event - */ - allowUpdateAfterMisbehaviour: boolean; -} -export interface ClientStateProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.ClientState"; - value: Uint8Array; -} -/** - * ClientState from Tendermint tracks the current validator set, latest height, - * and a possible frozen height. - */ -export interface ClientStateAmino { - chain_id: string; - trust_level?: FractionAmino; - /** - * duration of the period since the LastestTimestamp during which the - * submitted headers are valid for upgrade - */ - trusting_period?: DurationAmino; - /** duration of the staking unbonding period */ - unbonding_period?: DurationAmino; - /** defines how much new (untrusted) header's Time can drift into the future. */ - max_clock_drift?: DurationAmino; - /** Block height when the client was frozen due to a misbehaviour */ - frozen_height?: HeightAmino; - /** Latest height the client was updated to */ - latest_height?: HeightAmino; - /** Proof specifications used in verifying counterparty state */ - proof_specs: ProofSpecAmino[]; - /** - * Path at which next upgraded client will be committed. - * Each element corresponds to the key for a single CommitmentProof in the - * chained proof. NOTE: ClientState must stored under - * `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored - * under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using - * the default upgrade module, upgrade_path should be []string{"upgrade", - * "upgradedIBCState"}` - */ - upgrade_path: string[]; - /** - * This flag, when set to true, will allow governance to recover a client - * which has expired - */ - allow_update_after_expiry: boolean; - /** - * This flag, when set to true, will allow governance to unfreeze a client - * whose chain has experienced a misbehaviour event - */ - allow_update_after_misbehaviour: boolean; -} -export interface ClientStateAminoMsg { - type: "cosmos-sdk/ClientState"; - value: ClientStateAmino; -} -/** - * ClientState from Tendermint tracks the current validator set, latest height, - * and a possible frozen height. - */ -export interface ClientStateSDKType { - chain_id: string; - trust_level: FractionSDKType; - trusting_period: DurationSDKType; - unbonding_period: DurationSDKType; - max_clock_drift: DurationSDKType; - frozen_height: HeightSDKType; - latest_height: HeightSDKType; - proof_specs: ProofSpecSDKType[]; - upgrade_path: string[]; - allow_update_after_expiry: boolean; - allow_update_after_misbehaviour: boolean; -} -/** ConsensusState defines the consensus state from Tendermint. */ -export interface ConsensusState { - /** - * timestamp that corresponds to the block height in which the ConsensusState - * was stored. - */ - timestamp: Date; - /** commitment root (i.e app hash) */ - root: MerkleRoot; - nextValidatorsHash: Uint8Array; -} -export interface ConsensusStateProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.ConsensusState"; - value: Uint8Array; -} -/** ConsensusState defines the consensus state from Tendermint. */ -export interface ConsensusStateAmino { - /** - * timestamp that corresponds to the block height in which the ConsensusState - * was stored. - */ - timestamp?: Date; - /** commitment root (i.e app hash) */ - root?: MerkleRootAmino; - next_validators_hash: Uint8Array; -} -export interface ConsensusStateAminoMsg { - type: "cosmos-sdk/ConsensusState"; - value: ConsensusStateAmino; -} -/** ConsensusState defines the consensus state from Tendermint. */ -export interface ConsensusStateSDKType { - timestamp: Date; - root: MerkleRootSDKType; - next_validators_hash: Uint8Array; -} -/** - * Misbehaviour is a wrapper over two conflicting Headers - * that implements Misbehaviour interface expected by ICS-02 - */ -export interface Misbehaviour { - clientId: string; - header1: Header; - header2: Header; -} -export interface MisbehaviourProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.Misbehaviour"; - value: Uint8Array; -} -/** - * Misbehaviour is a wrapper over two conflicting Headers - * that implements Misbehaviour interface expected by ICS-02 - */ -export interface MisbehaviourAmino { - client_id: string; - header_1?: HeaderAmino; - header_2?: HeaderAmino; -} -export interface MisbehaviourAminoMsg { - type: "cosmos-sdk/Misbehaviour"; - value: MisbehaviourAmino; -} -/** - * Misbehaviour is a wrapper over two conflicting Headers - * that implements Misbehaviour interface expected by ICS-02 - */ -export interface MisbehaviourSDKType { - client_id: string; - header_1: HeaderSDKType; - header_2: HeaderSDKType; -} -/** - * Header defines the Tendermint client consensus Header. - * It encapsulates all the information necessary to update from a trusted - * Tendermint ConsensusState. The inclusion of TrustedHeight and - * TrustedValidators allows this update to process correctly, so long as the - * ConsensusState for the TrustedHeight exists, this removes race conditions - * among relayers The SignedHeader and ValidatorSet are the new untrusted update - * fields for the client. The TrustedHeight is the height of a stored - * ConsensusState on the client that will be used to verify the new untrusted - * header. The Trusted ConsensusState must be within the unbonding period of - * current time in order to correctly verify, and the TrustedValidators must - * hash to TrustedConsensusState.NextValidatorsHash since that is the last - * trusted validator set at the TrustedHeight. - */ -export interface Header { - signedHeader: SignedHeader; - validatorSet: ValidatorSet; - trustedHeight: Height; - trustedValidators: ValidatorSet; -} -export interface HeaderProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.Header"; - value: Uint8Array; -} -/** - * Header defines the Tendermint client consensus Header. - * It encapsulates all the information necessary to update from a trusted - * Tendermint ConsensusState. The inclusion of TrustedHeight and - * TrustedValidators allows this update to process correctly, so long as the - * ConsensusState for the TrustedHeight exists, this removes race conditions - * among relayers The SignedHeader and ValidatorSet are the new untrusted update - * fields for the client. The TrustedHeight is the height of a stored - * ConsensusState on the client that will be used to verify the new untrusted - * header. The Trusted ConsensusState must be within the unbonding period of - * current time in order to correctly verify, and the TrustedValidators must - * hash to TrustedConsensusState.NextValidatorsHash since that is the last - * trusted validator set at the TrustedHeight. - */ -export interface HeaderAmino { - signed_header?: SignedHeaderAmino; - validator_set?: ValidatorSetAmino; - trusted_height?: HeightAmino; - trusted_validators?: ValidatorSetAmino; -} -export interface HeaderAminoMsg { - type: "cosmos-sdk/Header"; - value: HeaderAmino; -} -/** - * Header defines the Tendermint client consensus Header. - * It encapsulates all the information necessary to update from a trusted - * Tendermint ConsensusState. The inclusion of TrustedHeight and - * TrustedValidators allows this update to process correctly, so long as the - * ConsensusState for the TrustedHeight exists, this removes race conditions - * among relayers The SignedHeader and ValidatorSet are the new untrusted update - * fields for the client. The TrustedHeight is the height of a stored - * ConsensusState on the client that will be used to verify the new untrusted - * header. The Trusted ConsensusState must be within the unbonding period of - * current time in order to correctly verify, and the TrustedValidators must - * hash to TrustedConsensusState.NextValidatorsHash since that is the last - * trusted validator set at the TrustedHeight. - */ -export interface HeaderSDKType { - signed_header: SignedHeaderSDKType; - validator_set: ValidatorSetSDKType; - trusted_height: HeightSDKType; - trusted_validators: ValidatorSetSDKType; -} -/** - * Fraction defines the protobuf message type for tmmath.Fraction that only - * supports positive values. - */ -export interface Fraction { - numerator: Long; - denominator: Long; -} -export interface FractionProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.Fraction"; - value: Uint8Array; -} -/** - * Fraction defines the protobuf message type for tmmath.Fraction that only - * supports positive values. - */ -export interface FractionAmino { - numerator: string; - denominator: string; -} -export interface FractionAminoMsg { - type: "cosmos-sdk/Fraction"; - value: FractionAmino; -} -/** - * Fraction defines the protobuf message type for tmmath.Fraction that only - * supports positive values. - */ -export interface FractionSDKType { - numerator: Long; - denominator: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/ics23/bundle.ts b/Agoric/agoric-starter/src/types/proto-interfaces/ics23/bundle.ts deleted file mode 100644 index 5a86afc9d..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/ics23/bundle.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as _11 from "../confio/proofs"; -export const ics23 = { - ..._11, -}; diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/index.ts b/Agoric/agoric-starter/src/types/proto-interfaces/index.ts deleted file mode 100644 index 0de83ad21..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file and any referenced files were automatically generated by @cosmology/telescope@0.104.0 - * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain - * and run the transpile command or yarn proto command to regenerate this bundle. - */ - -export * from "./agoric/bundle"; -export * from "./ics23/bundle"; -export * from "./cosmos_proto/bundle"; -export * from "./cosmos/bundle"; -export * from "./cosmwasm/bundle"; -export * from "./google/bundle"; -export * from "./ibc/bundle"; -export * from "./tendermint/bundle"; diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/abci/types.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/abci/types.ts deleted file mode 100644 index 436d6f257..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/abci/types.ts +++ /dev/null @@ -1,1405 +0,0 @@ -import { Header, HeaderAmino, HeaderSDKType } from "../types/types"; -import { ProofOps, ProofOpsAmino, ProofOpsSDKType } from "../crypto/proof"; -import { - EvidenceParams, - EvidenceParamsAmino, - EvidenceParamsSDKType, - ValidatorParams, - ValidatorParamsAmino, - ValidatorParamsSDKType, - VersionParams, - VersionParamsAmino, - VersionParamsSDKType, -} from "../types/params"; -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { Long } from "../../helpers"; -export enum CheckTxType { - NEW = 0, - RECHECK = 1, - UNRECOGNIZED = -1, -} -export const CheckTxTypeSDKType = CheckTxType; -export const CheckTxTypeAmino = CheckTxType; -export function checkTxTypeFromJSON(object: any): CheckTxType { - switch (object) { - case 0: - case "NEW": - return CheckTxType.NEW; - case 1: - case "RECHECK": - return CheckTxType.RECHECK; - case -1: - case "UNRECOGNIZED": - default: - return CheckTxType.UNRECOGNIZED; - } -} -export function checkTxTypeToJSON(object: CheckTxType): string { - switch (object) { - case CheckTxType.NEW: - return "NEW"; - case CheckTxType.RECHECK: - return "RECHECK"; - case CheckTxType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum ResponseOfferSnapshot_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Snapshot accepted, apply chunks */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** REJECT - Reject this specific snapshot, try others */ - REJECT = 3, - /** REJECT_FORMAT - Reject all snapshots of this format, try others */ - REJECT_FORMAT = 4, - /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ - REJECT_SENDER = 5, - UNRECOGNIZED = -1, -} -export const ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result; -export const ResponseOfferSnapshot_ResultAmino = ResponseOfferSnapshot_Result; -export function responseOfferSnapshot_ResultFromJSON( - object: any -): ResponseOfferSnapshot_Result { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseOfferSnapshot_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseOfferSnapshot_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseOfferSnapshot_Result.ABORT; - case 3: - case "REJECT": - return ResponseOfferSnapshot_Result.REJECT; - case 4: - case "REJECT_FORMAT": - return ResponseOfferSnapshot_Result.REJECT_FORMAT; - case 5: - case "REJECT_SENDER": - return ResponseOfferSnapshot_Result.REJECT_SENDER; - case -1: - case "UNRECOGNIZED": - default: - return ResponseOfferSnapshot_Result.UNRECOGNIZED; - } -} -export function responseOfferSnapshot_ResultToJSON( - object: ResponseOfferSnapshot_Result -): string { - switch (object) { - case ResponseOfferSnapshot_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseOfferSnapshot_Result.ACCEPT: - return "ACCEPT"; - case ResponseOfferSnapshot_Result.ABORT: - return "ABORT"; - case ResponseOfferSnapshot_Result.REJECT: - return "REJECT"; - case ResponseOfferSnapshot_Result.REJECT_FORMAT: - return "REJECT_FORMAT"; - case ResponseOfferSnapshot_Result.REJECT_SENDER: - return "REJECT_SENDER"; - case ResponseOfferSnapshot_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum ResponseApplySnapshotChunk_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Chunk successfully accepted */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** RETRY - Retry chunk (combine with refetch and reject) */ - RETRY = 3, - /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ - RETRY_SNAPSHOT = 4, - /** REJECT_SNAPSHOT - Reject this snapshot, try others */ - REJECT_SNAPSHOT = 5, - UNRECOGNIZED = -1, -} -export const ResponseApplySnapshotChunk_ResultSDKType = - ResponseApplySnapshotChunk_Result; -export const ResponseApplySnapshotChunk_ResultAmino = - ResponseApplySnapshotChunk_Result; -export function responseApplySnapshotChunk_ResultFromJSON( - object: any -): ResponseApplySnapshotChunk_Result { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseApplySnapshotChunk_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseApplySnapshotChunk_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseApplySnapshotChunk_Result.ABORT; - case 3: - case "RETRY": - return ResponseApplySnapshotChunk_Result.RETRY; - case 4: - case "RETRY_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT; - case 5: - case "REJECT_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT; - case -1: - case "UNRECOGNIZED": - default: - return ResponseApplySnapshotChunk_Result.UNRECOGNIZED; - } -} -export function responseApplySnapshotChunk_ResultToJSON( - object: ResponseApplySnapshotChunk_Result -): string { - switch (object) { - case ResponseApplySnapshotChunk_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseApplySnapshotChunk_Result.ACCEPT: - return "ACCEPT"; - case ResponseApplySnapshotChunk_Result.ABORT: - return "ABORT"; - case ResponseApplySnapshotChunk_Result.RETRY: - return "RETRY"; - case ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT: - return "RETRY_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT: - return "REJECT_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum EvidenceType { - UNKNOWN = 0, - DUPLICATE_VOTE = 1, - LIGHT_CLIENT_ATTACK = 2, - UNRECOGNIZED = -1, -} -export const EvidenceTypeSDKType = EvidenceType; -export const EvidenceTypeAmino = EvidenceType; -export function evidenceTypeFromJSON(object: any): EvidenceType { - switch (object) { - case 0: - case "UNKNOWN": - return EvidenceType.UNKNOWN; - case 1: - case "DUPLICATE_VOTE": - return EvidenceType.DUPLICATE_VOTE; - case 2: - case "LIGHT_CLIENT_ATTACK": - return EvidenceType.LIGHT_CLIENT_ATTACK; - case -1: - case "UNRECOGNIZED": - default: - return EvidenceType.UNRECOGNIZED; - } -} -export function evidenceTypeToJSON(object: EvidenceType): string { - switch (object) { - case EvidenceType.UNKNOWN: - return "UNKNOWN"; - case EvidenceType.DUPLICATE_VOTE: - return "DUPLICATE_VOTE"; - case EvidenceType.LIGHT_CLIENT_ATTACK: - return "LIGHT_CLIENT_ATTACK"; - case EvidenceType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export interface Request { - echo?: RequestEcho; - flush?: RequestFlush; - info?: RequestInfo; - setOption?: RequestSetOption; - initChain?: RequestInitChain; - query?: RequestQuery; - beginBlock?: RequestBeginBlock; - checkTx?: RequestCheckTx; - deliverTx?: RequestDeliverTx; - endBlock?: RequestEndBlock; - commit?: RequestCommit; - listSnapshots?: RequestListSnapshots; - offerSnapshot?: RequestOfferSnapshot; - loadSnapshotChunk?: RequestLoadSnapshotChunk; - applySnapshotChunk?: RequestApplySnapshotChunk; -} -export interface RequestProtoMsg { - typeUrl: "/tendermint.abci.Request"; - value: Uint8Array; -} -export interface RequestAmino { - echo?: RequestEchoAmino; - flush?: RequestFlushAmino; - info?: RequestInfoAmino; - set_option?: RequestSetOptionAmino; - init_chain?: RequestInitChainAmino; - query?: RequestQueryAmino; - begin_block?: RequestBeginBlockAmino; - check_tx?: RequestCheckTxAmino; - deliver_tx?: RequestDeliverTxAmino; - end_block?: RequestEndBlockAmino; - commit?: RequestCommitAmino; - list_snapshots?: RequestListSnapshotsAmino; - offer_snapshot?: RequestOfferSnapshotAmino; - load_snapshot_chunk?: RequestLoadSnapshotChunkAmino; - apply_snapshot_chunk?: RequestApplySnapshotChunkAmino; -} -export interface RequestAminoMsg { - type: "/tendermint.abci.Request"; - value: RequestAmino; -} -export interface RequestSDKType { - echo?: RequestEchoSDKType; - flush?: RequestFlushSDKType; - info?: RequestInfoSDKType; - set_option?: RequestSetOptionSDKType; - init_chain?: RequestInitChainSDKType; - query?: RequestQuerySDKType; - begin_block?: RequestBeginBlockSDKType; - check_tx?: RequestCheckTxSDKType; - deliver_tx?: RequestDeliverTxSDKType; - end_block?: RequestEndBlockSDKType; - commit?: RequestCommitSDKType; - list_snapshots?: RequestListSnapshotsSDKType; - offer_snapshot?: RequestOfferSnapshotSDKType; - load_snapshot_chunk?: RequestLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: RequestApplySnapshotChunkSDKType; -} -export interface RequestEcho { - message: string; -} -export interface RequestEchoProtoMsg { - typeUrl: "/tendermint.abci.RequestEcho"; - value: Uint8Array; -} -export interface RequestEchoAmino { - message: string; -} -export interface RequestEchoAminoMsg { - type: "/tendermint.abci.RequestEcho"; - value: RequestEchoAmino; -} -export interface RequestEchoSDKType { - message: string; -} -export interface RequestFlush {} -export interface RequestFlushProtoMsg { - typeUrl: "/tendermint.abci.RequestFlush"; - value: Uint8Array; -} -export interface RequestFlushAmino {} -export interface RequestFlushAminoMsg { - type: "/tendermint.abci.RequestFlush"; - value: RequestFlushAmino; -} -export interface RequestFlushSDKType {} -export interface RequestInfo { - version: string; - blockVersion: Long; - p2pVersion: Long; -} -export interface RequestInfoProtoMsg { - typeUrl: "/tendermint.abci.RequestInfo"; - value: Uint8Array; -} -export interface RequestInfoAmino { - version: string; - block_version: string; - p2p_version: string; -} -export interface RequestInfoAminoMsg { - type: "/tendermint.abci.RequestInfo"; - value: RequestInfoAmino; -} -export interface RequestInfoSDKType { - version: string; - block_version: Long; - p2p_version: Long; -} -/** nondeterministic */ -export interface RequestSetOption { - key: string; - value: string; -} -export interface RequestSetOptionProtoMsg { - typeUrl: "/tendermint.abci.RequestSetOption"; - value: Uint8Array; -} -/** nondeterministic */ -export interface RequestSetOptionAmino { - key: string; - value: string; -} -export interface RequestSetOptionAminoMsg { - type: "/tendermint.abci.RequestSetOption"; - value: RequestSetOptionAmino; -} -/** nondeterministic */ -export interface RequestSetOptionSDKType { - key: string; - value: string; -} -export interface RequestInitChain { - time: Date; - chainId: string; - consensusParams: ConsensusParams; - validators: ValidatorUpdate[]; - appStateBytes: Uint8Array; - initialHeight: Long; -} -export interface RequestInitChainProtoMsg { - typeUrl: "/tendermint.abci.RequestInitChain"; - value: Uint8Array; -} -export interface RequestInitChainAmino { - time?: Date; - chain_id: string; - consensus_params?: ConsensusParamsAmino; - validators: ValidatorUpdateAmino[]; - app_state_bytes: Uint8Array; - initial_height: string; -} -export interface RequestInitChainAminoMsg { - type: "/tendermint.abci.RequestInitChain"; - value: RequestInitChainAmino; -} -export interface RequestInitChainSDKType { - time: Date; - chain_id: string; - consensus_params: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_state_bytes: Uint8Array; - initial_height: Long; -} -export interface RequestQuery { - data: Uint8Array; - path: string; - height: Long; - prove: boolean; -} -export interface RequestQueryProtoMsg { - typeUrl: "/tendermint.abci.RequestQuery"; - value: Uint8Array; -} -export interface RequestQueryAmino { - data: Uint8Array; - path: string; - height: string; - prove: boolean; -} -export interface RequestQueryAminoMsg { - type: "/tendermint.abci.RequestQuery"; - value: RequestQueryAmino; -} -export interface RequestQuerySDKType { - data: Uint8Array; - path: string; - height: Long; - prove: boolean; -} -export interface RequestBeginBlock { - hash: Uint8Array; - header: Header; - lastCommitInfo: LastCommitInfo; - byzantineValidators: Evidence[]; -} -export interface RequestBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestBeginBlock"; - value: Uint8Array; -} -export interface RequestBeginBlockAmino { - hash: Uint8Array; - header?: HeaderAmino; - last_commit_info?: LastCommitInfoAmino; - byzantine_validators: EvidenceAmino[]; -} -export interface RequestBeginBlockAminoMsg { - type: "/tendermint.abci.RequestBeginBlock"; - value: RequestBeginBlockAmino; -} -export interface RequestBeginBlockSDKType { - hash: Uint8Array; - header: HeaderSDKType; - last_commit_info: LastCommitInfoSDKType; - byzantine_validators: EvidenceSDKType[]; -} -export interface RequestCheckTx { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestCheckTxProtoMsg { - typeUrl: "/tendermint.abci.RequestCheckTx"; - value: Uint8Array; -} -export interface RequestCheckTxAmino { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestCheckTxAminoMsg { - type: "/tendermint.abci.RequestCheckTx"; - value: RequestCheckTxAmino; -} -export interface RequestCheckTxSDKType { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestDeliverTx { - tx: Uint8Array; -} -export interface RequestDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.RequestDeliverTx"; - value: Uint8Array; -} -export interface RequestDeliverTxAmino { - tx: Uint8Array; -} -export interface RequestDeliverTxAminoMsg { - type: "/tendermint.abci.RequestDeliverTx"; - value: RequestDeliverTxAmino; -} -export interface RequestDeliverTxSDKType { - tx: Uint8Array; -} -export interface RequestEndBlock { - height: Long; -} -export interface RequestEndBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestEndBlock"; - value: Uint8Array; -} -export interface RequestEndBlockAmino { - height: string; -} -export interface RequestEndBlockAminoMsg { - type: "/tendermint.abci.RequestEndBlock"; - value: RequestEndBlockAmino; -} -export interface RequestEndBlockSDKType { - height: Long; -} -export interface RequestCommit {} -export interface RequestCommitProtoMsg { - typeUrl: "/tendermint.abci.RequestCommit"; - value: Uint8Array; -} -export interface RequestCommitAmino {} -export interface RequestCommitAminoMsg { - type: "/tendermint.abci.RequestCommit"; - value: RequestCommitAmino; -} -export interface RequestCommitSDKType {} -/** lists available snapshots */ -export interface RequestListSnapshots {} -export interface RequestListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.RequestListSnapshots"; - value: Uint8Array; -} -/** lists available snapshots */ -export interface RequestListSnapshotsAmino {} -export interface RequestListSnapshotsAminoMsg { - type: "/tendermint.abci.RequestListSnapshots"; - value: RequestListSnapshotsAmino; -} -/** lists available snapshots */ -export interface RequestListSnapshotsSDKType {} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshot { - /** snapshot offered by peers */ - snapshot: Snapshot; - /** light client-verified app hash for snapshot height */ - appHash: Uint8Array; -} -export interface RequestOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.RequestOfferSnapshot"; - value: Uint8Array; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotAmino { - /** snapshot offered by peers */ - snapshot?: SnapshotAmino; - /** light client-verified app hash for snapshot height */ - app_hash: Uint8Array; -} -export interface RequestOfferSnapshotAminoMsg { - type: "/tendermint.abci.RequestOfferSnapshot"; - value: RequestOfferSnapshotAmino; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotSDKType { - snapshot: SnapshotSDKType; - app_hash: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunk { - height: Long; - format: number; - chunk: number; -} -export interface RequestLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkAmino { - height: string; - format: number; - chunk: number; -} -export interface RequestLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: RequestLoadSnapshotChunkAmino; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkSDKType { - height: Long; - format: number; - chunk: number; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunk { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk"; - value: Uint8Array; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkAmino { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestApplySnapshotChunk"; - value: RequestApplySnapshotChunkAmino; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkSDKType { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface Response { - exception?: ResponseException; - echo?: ResponseEcho; - flush?: ResponseFlush; - info?: ResponseInfo; - setOption?: ResponseSetOption; - initChain?: ResponseInitChain; - query?: ResponseQuery; - beginBlock?: ResponseBeginBlock; - checkTx?: ResponseCheckTx; - deliverTx?: ResponseDeliverTx; - endBlock?: ResponseEndBlock; - commit?: ResponseCommit; - listSnapshots?: ResponseListSnapshots; - offerSnapshot?: ResponseOfferSnapshot; - loadSnapshotChunk?: ResponseLoadSnapshotChunk; - applySnapshotChunk?: ResponseApplySnapshotChunk; -} -export interface ResponseProtoMsg { - typeUrl: "/tendermint.abci.Response"; - value: Uint8Array; -} -export interface ResponseAmino { - exception?: ResponseExceptionAmino; - echo?: ResponseEchoAmino; - flush?: ResponseFlushAmino; - info?: ResponseInfoAmino; - set_option?: ResponseSetOptionAmino; - init_chain?: ResponseInitChainAmino; - query?: ResponseQueryAmino; - begin_block?: ResponseBeginBlockAmino; - check_tx?: ResponseCheckTxAmino; - deliver_tx?: ResponseDeliverTxAmino; - end_block?: ResponseEndBlockAmino; - commit?: ResponseCommitAmino; - list_snapshots?: ResponseListSnapshotsAmino; - offer_snapshot?: ResponseOfferSnapshotAmino; - load_snapshot_chunk?: ResponseLoadSnapshotChunkAmino; - apply_snapshot_chunk?: ResponseApplySnapshotChunkAmino; -} -export interface ResponseAminoMsg { - type: "/tendermint.abci.Response"; - value: ResponseAmino; -} -export interface ResponseSDKType { - exception?: ResponseExceptionSDKType; - echo?: ResponseEchoSDKType; - flush?: ResponseFlushSDKType; - info?: ResponseInfoSDKType; - set_option?: ResponseSetOptionSDKType; - init_chain?: ResponseInitChainSDKType; - query?: ResponseQuerySDKType; - begin_block?: ResponseBeginBlockSDKType; - check_tx?: ResponseCheckTxSDKType; - deliver_tx?: ResponseDeliverTxSDKType; - end_block?: ResponseEndBlockSDKType; - commit?: ResponseCommitSDKType; - list_snapshots?: ResponseListSnapshotsSDKType; - offer_snapshot?: ResponseOfferSnapshotSDKType; - load_snapshot_chunk?: ResponseLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: ResponseApplySnapshotChunkSDKType; -} -/** nondeterministic */ -export interface ResponseException { - error: string; -} -export interface ResponseExceptionProtoMsg { - typeUrl: "/tendermint.abci.ResponseException"; - value: Uint8Array; -} -/** nondeterministic */ -export interface ResponseExceptionAmino { - error: string; -} -export interface ResponseExceptionAminoMsg { - type: "/tendermint.abci.ResponseException"; - value: ResponseExceptionAmino; -} -/** nondeterministic */ -export interface ResponseExceptionSDKType { - error: string; -} -export interface ResponseEcho { - message: string; -} -export interface ResponseEchoProtoMsg { - typeUrl: "/tendermint.abci.ResponseEcho"; - value: Uint8Array; -} -export interface ResponseEchoAmino { - message: string; -} -export interface ResponseEchoAminoMsg { - type: "/tendermint.abci.ResponseEcho"; - value: ResponseEchoAmino; -} -export interface ResponseEchoSDKType { - message: string; -} -export interface ResponseFlush {} -export interface ResponseFlushProtoMsg { - typeUrl: "/tendermint.abci.ResponseFlush"; - value: Uint8Array; -} -export interface ResponseFlushAmino {} -export interface ResponseFlushAminoMsg { - type: "/tendermint.abci.ResponseFlush"; - value: ResponseFlushAmino; -} -export interface ResponseFlushSDKType {} -export interface ResponseInfo { - data: string; - version: string; - appVersion: Long; - lastBlockHeight: Long; - lastBlockAppHash: Uint8Array; -} -export interface ResponseInfoProtoMsg { - typeUrl: "/tendermint.abci.ResponseInfo"; - value: Uint8Array; -} -export interface ResponseInfoAmino { - data: string; - version: string; - app_version: string; - last_block_height: string; - last_block_app_hash: Uint8Array; -} -export interface ResponseInfoAminoMsg { - type: "/tendermint.abci.ResponseInfo"; - value: ResponseInfoAmino; -} -export interface ResponseInfoSDKType { - data: string; - version: string; - app_version: Long; - last_block_height: Long; - last_block_app_hash: Uint8Array; -} -/** nondeterministic */ -export interface ResponseSetOption { - code: number; - /** bytes data = 2; */ - log: string; - info: string; -} -export interface ResponseSetOptionProtoMsg { - typeUrl: "/tendermint.abci.ResponseSetOption"; - value: Uint8Array; -} -/** nondeterministic */ -export interface ResponseSetOptionAmino { - code: number; - /** bytes data = 2; */ - log: string; - info: string; -} -export interface ResponseSetOptionAminoMsg { - type: "/tendermint.abci.ResponseSetOption"; - value: ResponseSetOptionAmino; -} -/** nondeterministic */ -export interface ResponseSetOptionSDKType { - code: number; - log: string; - info: string; -} -export interface ResponseInitChain { - consensusParams: ConsensusParams; - validators: ValidatorUpdate[]; - appHash: Uint8Array; -} -export interface ResponseInitChainProtoMsg { - typeUrl: "/tendermint.abci.ResponseInitChain"; - value: Uint8Array; -} -export interface ResponseInitChainAmino { - consensus_params?: ConsensusParamsAmino; - validators: ValidatorUpdateAmino[]; - app_hash: Uint8Array; -} -export interface ResponseInitChainAminoMsg { - type: "/tendermint.abci.ResponseInitChain"; - value: ResponseInitChainAmino; -} -export interface ResponseInitChainSDKType { - consensus_params: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_hash: Uint8Array; -} -export interface ResponseQuery { - code: number; - /** bytes data = 2; // use "value" instead. */ - log: string; - /** nondeterministic */ - info: string; - index: Long; - key: Uint8Array; - value: Uint8Array; - proofOps: ProofOps; - height: Long; - codespace: string; -} -export interface ResponseQueryProtoMsg { - typeUrl: "/tendermint.abci.ResponseQuery"; - value: Uint8Array; -} -export interface ResponseQueryAmino { - code: number; - /** bytes data = 2; // use "value" instead. */ - log: string; - /** nondeterministic */ - info: string; - index: string; - key: Uint8Array; - value: Uint8Array; - proof_ops?: ProofOpsAmino; - height: string; - codespace: string; -} -export interface ResponseQueryAminoMsg { - type: "/tendermint.abci.ResponseQuery"; - value: ResponseQueryAmino; -} -export interface ResponseQuerySDKType { - code: number; - log: string; - info: string; - index: Long; - key: Uint8Array; - value: Uint8Array; - proof_ops: ProofOpsSDKType; - height: Long; - codespace: string; -} -export interface ResponseBeginBlock { - events: Event[]; -} -export interface ResponseBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseBeginBlock"; - value: Uint8Array; -} -export interface ResponseBeginBlockAmino { - events: EventAmino[]; -} -export interface ResponseBeginBlockAminoMsg { - type: "/tendermint.abci.ResponseBeginBlock"; - value: ResponseBeginBlockAmino; -} -export interface ResponseBeginBlockSDKType { - events: EventSDKType[]; -} -export interface ResponseCheckTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: Long; - gasUsed: Long; - events: Event[]; - codespace: string; -} -export interface ResponseCheckTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseCheckTx"; - value: Uint8Array; -} -export interface ResponseCheckTxAmino { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gas_wanted: string; - gas_used: string; - events: EventAmino[]; - codespace: string; -} -export interface ResponseCheckTxAminoMsg { - type: "/tendermint.abci.ResponseCheckTx"; - value: ResponseCheckTxAmino; -} -export interface ResponseCheckTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: Long; - gas_used: Long; - events: EventSDKType[]; - codespace: string; -} -export interface ResponseDeliverTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: Long; - gasUsed: Long; - events: Event[]; - codespace: string; -} -export interface ResponseDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseDeliverTx"; - value: Uint8Array; -} -export interface ResponseDeliverTxAmino { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gas_wanted: string; - gas_used: string; - events: EventAmino[]; - codespace: string; -} -export interface ResponseDeliverTxAminoMsg { - type: "/tendermint.abci.ResponseDeliverTx"; - value: ResponseDeliverTxAmino; -} -export interface ResponseDeliverTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: Long; - gas_used: Long; - events: EventSDKType[]; - codespace: string; -} -export interface ResponseEndBlock { - validatorUpdates: ValidatorUpdate[]; - consensusParamUpdates: ConsensusParams; - events: Event[]; -} -export interface ResponseEndBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseEndBlock"; - value: Uint8Array; -} -export interface ResponseEndBlockAmino { - validator_updates: ValidatorUpdateAmino[]; - consensus_param_updates?: ConsensusParamsAmino; - events: EventAmino[]; -} -export interface ResponseEndBlockAminoMsg { - type: "/tendermint.abci.ResponseEndBlock"; - value: ResponseEndBlockAmino; -} -export interface ResponseEndBlockSDKType { - validator_updates: ValidatorUpdateSDKType[]; - consensus_param_updates: ConsensusParamsSDKType; - events: EventSDKType[]; -} -export interface ResponseCommit { - /** reserve 1 */ - data: Uint8Array; - retainHeight: Long; -} -export interface ResponseCommitProtoMsg { - typeUrl: "/tendermint.abci.ResponseCommit"; - value: Uint8Array; -} -export interface ResponseCommitAmino { - /** reserve 1 */ - data: Uint8Array; - retain_height: string; -} -export interface ResponseCommitAminoMsg { - type: "/tendermint.abci.ResponseCommit"; - value: ResponseCommitAmino; -} -export interface ResponseCommitSDKType { - data: Uint8Array; - retain_height: Long; -} -export interface ResponseListSnapshots { - snapshots: Snapshot[]; -} -export interface ResponseListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.ResponseListSnapshots"; - value: Uint8Array; -} -export interface ResponseListSnapshotsAmino { - snapshots: SnapshotAmino[]; -} -export interface ResponseListSnapshotsAminoMsg { - type: "/tendermint.abci.ResponseListSnapshots"; - value: ResponseListSnapshotsAmino; -} -export interface ResponseListSnapshotsSDKType { - snapshots: SnapshotSDKType[]; -} -export interface ResponseOfferSnapshot { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot"; - value: Uint8Array; -} -export interface ResponseOfferSnapshotAmino { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotAminoMsg { - type: "/tendermint.abci.ResponseOfferSnapshot"; - value: ResponseOfferSnapshotAmino; -} -export interface ResponseOfferSnapshotSDKType { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseLoadSnapshotChunk { - chunk: Uint8Array; -} -export interface ResponseLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: Uint8Array; -} -export interface ResponseLoadSnapshotChunkAmino { - chunk: Uint8Array; -} -export interface ResponseLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: ResponseLoadSnapshotChunkAmino; -} -export interface ResponseLoadSnapshotChunkSDKType { - chunk: Uint8Array; -} -export interface ResponseApplySnapshotChunk { - result: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetchChunks: number[]; - /** Chunk senders to reject and ban */ - rejectSenders: string[]; -} -export interface ResponseApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: Uint8Array; -} -export interface ResponseApplySnapshotChunkAmino { - result: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetch_chunks: number[]; - /** Chunk senders to reject and ban */ - reject_senders: string[]; -} -export interface ResponseApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: ResponseApplySnapshotChunkAmino; -} -export interface ResponseApplySnapshotChunkSDKType { - result: ResponseApplySnapshotChunk_Result; - refetch_chunks: number[]; - reject_senders: string[]; -} -/** - * ConsensusParams contains all consensus-relevant parameters - * that can be adjusted by the abci app - */ -export interface ConsensusParams { - block: BlockParams; - evidence: EvidenceParams; - validator: ValidatorParams; - version: VersionParams; -} -export interface ConsensusParamsProtoMsg { - typeUrl: "/tendermint.abci.ConsensusParams"; - value: Uint8Array; -} -/** - * ConsensusParams contains all consensus-relevant parameters - * that can be adjusted by the abci app - */ -export interface ConsensusParamsAmino { - block?: BlockParamsAmino; - evidence?: EvidenceParamsAmino; - validator?: ValidatorParamsAmino; - version?: VersionParamsAmino; -} -export interface ConsensusParamsAminoMsg { - type: "/tendermint.abci.ConsensusParams"; - value: ConsensusParamsAmino; -} -/** - * ConsensusParams contains all consensus-relevant parameters - * that can be adjusted by the abci app - */ -export interface ConsensusParamsSDKType { - block: BlockParamsSDKType; - evidence: EvidenceParamsSDKType; - validator: ValidatorParamsSDKType; - version: VersionParamsSDKType; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParams { - /** Note: must be greater than 0 */ - maxBytes: Long; - /** Note: must be greater or equal to -1 */ - maxGas: Long; -} -export interface BlockParamsProtoMsg { - typeUrl: "/tendermint.abci.BlockParams"; - value: Uint8Array; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsAmino { - /** Note: must be greater than 0 */ - max_bytes: string; - /** Note: must be greater or equal to -1 */ - max_gas: string; -} -export interface BlockParamsAminoMsg { - type: "/tendermint.abci.BlockParams"; - value: BlockParamsAmino; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsSDKType { - max_bytes: Long; - max_gas: Long; -} -export interface LastCommitInfo { - round: number; - votes: VoteInfo[]; -} -export interface LastCommitInfoProtoMsg { - typeUrl: "/tendermint.abci.LastCommitInfo"; - value: Uint8Array; -} -export interface LastCommitInfoAmino { - round: number; - votes: VoteInfoAmino[]; -} -export interface LastCommitInfoAminoMsg { - type: "/tendermint.abci.LastCommitInfo"; - value: LastCommitInfoAmino; -} -export interface LastCommitInfoSDKType { - round: number; - votes: VoteInfoSDKType[]; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface Event { - type: string; - attributes: EventAttribute[]; -} -export interface EventProtoMsg { - typeUrl: "/tendermint.abci.Event"; - value: Uint8Array; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventAmino { - type: string; - attributes: EventAttributeAmino[]; -} -export interface EventAminoMsg { - type: "/tendermint.abci.Event"; - value: EventAmino; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventSDKType { - type: string; - attributes: EventAttributeSDKType[]; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttribute { - key: Uint8Array; - value: Uint8Array; - /** nondeterministic */ - index: boolean; -} -export interface EventAttributeProtoMsg { - typeUrl: "/tendermint.abci.EventAttribute"; - value: Uint8Array; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeAmino { - key: Uint8Array; - value: Uint8Array; - /** nondeterministic */ - index: boolean; -} -export interface EventAttributeAminoMsg { - type: "/tendermint.abci.EventAttribute"; - value: EventAttributeAmino; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeSDKType { - key: Uint8Array; - value: Uint8Array; - index: boolean; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResult { - height: Long; - index: number; - tx: Uint8Array; - result: ResponseDeliverTx; -} -export interface TxResultProtoMsg { - typeUrl: "/tendermint.abci.TxResult"; - value: Uint8Array; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultAmino { - height: string; - index: number; - tx: Uint8Array; - result?: ResponseDeliverTxAmino; -} -export interface TxResultAminoMsg { - type: "/tendermint.abci.TxResult"; - value: TxResultAmino; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultSDKType { - height: Long; - index: number; - tx: Uint8Array; - result: ResponseDeliverTxSDKType; -} -/** Validator */ -export interface Validator { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address: Uint8Array; - /** The voting power */ - power: Long; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.abci.Validator"; - value: Uint8Array; -} -/** Validator */ -export interface ValidatorAmino { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address: Uint8Array; - /** The voting power */ - power: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.abci.Validator"; - value: ValidatorAmino; -} -/** Validator */ -export interface ValidatorSDKType { - address: Uint8Array; - power: Long; -} -/** ValidatorUpdate */ -export interface ValidatorUpdate { - pubKey: PublicKey; - power: Long; -} -export interface ValidatorUpdateProtoMsg { - typeUrl: "/tendermint.abci.ValidatorUpdate"; - value: Uint8Array; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateAmino { - pub_key?: PublicKeyAmino; - power: string; -} -export interface ValidatorUpdateAminoMsg { - type: "/tendermint.abci.ValidatorUpdate"; - value: ValidatorUpdateAmino; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateSDKType { - pub_key: PublicKeySDKType; - power: Long; -} -/** VoteInfo */ -export interface VoteInfo { - validator: Validator; - signedLastBlock: boolean; -} -export interface VoteInfoProtoMsg { - typeUrl: "/tendermint.abci.VoteInfo"; - value: Uint8Array; -} -/** VoteInfo */ -export interface VoteInfoAmino { - validator?: ValidatorAmino; - signed_last_block: boolean; -} -export interface VoteInfoAminoMsg { - type: "/tendermint.abci.VoteInfo"; - value: VoteInfoAmino; -} -/** VoteInfo */ -export interface VoteInfoSDKType { - validator: ValidatorSDKType; - signed_last_block: boolean; -} -export interface Evidence { - type: EvidenceType; - /** The offending validator */ - validator: Validator; - /** The height when the offense occurred */ - height: Long; - /** The corresponding time where the offense occurred */ - time: Date; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - totalVotingPower: Long; -} -export interface EvidenceProtoMsg { - typeUrl: "/tendermint.abci.Evidence"; - value: Uint8Array; -} -export interface EvidenceAmino { - type: EvidenceType; - /** The offending validator */ - validator?: ValidatorAmino; - /** The height when the offense occurred */ - height: string; - /** The corresponding time where the offense occurred */ - time?: Date; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - total_voting_power: string; -} -export interface EvidenceAminoMsg { - type: "/tendermint.abci.Evidence"; - value: EvidenceAmino; -} -export interface EvidenceSDKType { - type: EvidenceType; - validator: ValidatorSDKType; - height: Long; - time: Date; - total_voting_power: Long; -} -export interface Snapshot { - /** The height at which the snapshot was taken */ - height: Long; - /** The application-specific snapshot format */ - format: number; - /** Number of chunks in the snapshot */ - chunks: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash: Uint8Array; - /** Arbitrary application metadata */ - metadata: Uint8Array; -} -export interface SnapshotProtoMsg { - typeUrl: "/tendermint.abci.Snapshot"; - value: Uint8Array; -} -export interface SnapshotAmino { - /** The height at which the snapshot was taken */ - height: string; - /** The application-specific snapshot format */ - format: number; - /** Number of chunks in the snapshot */ - chunks: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash: Uint8Array; - /** Arbitrary application metadata */ - metadata: Uint8Array; -} -export interface SnapshotAminoMsg { - type: "/tendermint.abci.Snapshot"; - value: SnapshotAmino; -} -export interface SnapshotSDKType { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/bundle.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/bundle.ts deleted file mode 100644 index 43b3f0d96..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/bundle.ts +++ /dev/null @@ -1,38 +0,0 @@ -import * as _121 from "./abci/types"; -import * as _122 from "./crypto/keys"; -import * as _123 from "./crypto/proof"; -import * as _124 from "./libs/bits/types"; -import * as _125 from "./p2p/types"; -import * as _126 from "./types/block"; -import * as _127 from "./types/evidence"; -import * as _128 from "./types/params"; -import * as _129 from "./types/types"; -import * as _130 from "./types/validator"; -import * as _131 from "./version/types"; -export namespace tendermint { - export const abci = { - ..._121, - }; - export const crypto = { - ..._122, - ..._123, - }; - export namespace libs { - export const bits = { - ..._124, - }; - } - export const p2p = { - ..._125, - }; - export const types = { - ..._126, - ..._127, - ..._128, - ..._129, - ..._130, - }; - export const version = { - ..._131, - }; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/crypto/keys.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/crypto/keys.ts deleted file mode 100644 index a30588508..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/crypto/keys.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** PublicKey defines the keys available for use with Tendermint Validators */ -export interface PublicKey { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -export interface PublicKeyProtoMsg { - typeUrl: "/tendermint.crypto.PublicKey"; - value: Uint8Array; -} -/** PublicKey defines the keys available for use with Tendermint Validators */ -export interface PublicKeyAmino { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -export interface PublicKeyAminoMsg { - type: "/tendermint.crypto.PublicKey"; - value: PublicKeyAmino; -} -/** PublicKey defines the keys available for use with Tendermint Validators */ -export interface PublicKeySDKType { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/crypto/proof.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/crypto/proof.ts deleted file mode 100644 index ea60a0b57..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/crypto/proof.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { Long } from "../../helpers"; -export interface Proof { - total: Long; - index: Long; - leafHash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ProofProtoMsg { - typeUrl: "/tendermint.crypto.Proof"; - value: Uint8Array; -} -export interface ProofAmino { - total: string; - index: string; - leaf_hash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ProofAminoMsg { - type: "/tendermint.crypto.Proof"; - value: ProofAmino; -} -export interface ProofSDKType { - total: Long; - index: Long; - leaf_hash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ValueOp { - /** Encoded in ProofOp.Key. */ - key: Uint8Array; - /** To encode in ProofOp.Data */ - proof: Proof; -} -export interface ValueOpProtoMsg { - typeUrl: "/tendermint.crypto.ValueOp"; - value: Uint8Array; -} -export interface ValueOpAmino { - /** Encoded in ProofOp.Key. */ - key: Uint8Array; - /** To encode in ProofOp.Data */ - proof?: ProofAmino; -} -export interface ValueOpAminoMsg { - type: "/tendermint.crypto.ValueOp"; - value: ValueOpAmino; -} -export interface ValueOpSDKType { - key: Uint8Array; - proof: ProofSDKType; -} -export interface DominoOp { - key: string; - input: string; - output: string; -} -export interface DominoOpProtoMsg { - typeUrl: "/tendermint.crypto.DominoOp"; - value: Uint8Array; -} -export interface DominoOpAmino { - key: string; - input: string; - output: string; -} -export interface DominoOpAminoMsg { - type: "/tendermint.crypto.DominoOp"; - value: DominoOpAmino; -} -export interface DominoOpSDKType { - key: string; - input: string; - output: string; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOp { - type: string; - key: Uint8Array; - data: Uint8Array; -} -export interface ProofOpProtoMsg { - typeUrl: "/tendermint.crypto.ProofOp"; - value: Uint8Array; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpAmino { - type: string; - key: Uint8Array; - data: Uint8Array; -} -export interface ProofOpAminoMsg { - type: "/tendermint.crypto.ProofOp"; - value: ProofOpAmino; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpSDKType { - type: string; - key: Uint8Array; - data: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOps { - ops: ProofOp[]; -} -export interface ProofOpsProtoMsg { - typeUrl: "/tendermint.crypto.ProofOps"; - value: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsAmino { - ops: ProofOpAmino[]; -} -export interface ProofOpsAminoMsg { - type: "/tendermint.crypto.ProofOps"; - value: ProofOpsAmino; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsSDKType { - ops: ProofOpSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/libs/bits/types.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/libs/bits/types.ts deleted file mode 100644 index 8b8c42208..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/libs/bits/types.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Long } from "../../../helpers"; -export interface BitArray { - bits: Long; - elems: Long[]; -} -export interface BitArrayProtoMsg { - typeUrl: "/tendermint.libs.bits.BitArray"; - value: Uint8Array; -} -export interface BitArrayAmino { - bits: string; - elems: string[]; -} -export interface BitArrayAminoMsg { - type: "/tendermint.libs.bits.BitArray"; - value: BitArrayAmino; -} -export interface BitArraySDKType { - bits: Long; - elems: Long[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/p2p/types.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/p2p/types.ts deleted file mode 100644 index e38b45ae5..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/p2p/types.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { Long } from "../../helpers"; -export interface ProtocolVersion { - p2p: Long; - block: Long; - app: Long; -} -export interface ProtocolVersionProtoMsg { - typeUrl: "/tendermint.p2p.ProtocolVersion"; - value: Uint8Array; -} -export interface ProtocolVersionAmino { - p2p: string; - block: string; - app: string; -} -export interface ProtocolVersionAminoMsg { - type: "/tendermint.p2p.ProtocolVersion"; - value: ProtocolVersionAmino; -} -export interface ProtocolVersionSDKType { - p2p: Long; - block: Long; - app: Long; -} -export interface NodeInfo { - protocolVersion: ProtocolVersion; - nodeId: string; - listenAddr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: NodeInfoOther; -} -export interface NodeInfoProtoMsg { - typeUrl: "/tendermint.p2p.NodeInfo"; - value: Uint8Array; -} -export interface NodeInfoAmino { - protocol_version?: ProtocolVersionAmino; - node_id: string; - listen_addr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other?: NodeInfoOtherAmino; -} -export interface NodeInfoAminoMsg { - type: "/tendermint.p2p.NodeInfo"; - value: NodeInfoAmino; -} -export interface NodeInfoSDKType { - protocol_version: ProtocolVersionSDKType; - node_id: string; - listen_addr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: NodeInfoOtherSDKType; -} -export interface NodeInfoOther { - txIndex: string; - rpcAddress: string; -} -export interface NodeInfoOtherProtoMsg { - typeUrl: "/tendermint.p2p.NodeInfoOther"; - value: Uint8Array; -} -export interface NodeInfoOtherAmino { - tx_index: string; - rpc_address: string; -} -export interface NodeInfoOtherAminoMsg { - type: "/tendermint.p2p.NodeInfoOther"; - value: NodeInfoOtherAmino; -} -export interface NodeInfoOtherSDKType { - tx_index: string; - rpc_address: string; -} -export interface PeerInfo { - id: string; - addressInfo: PeerAddressInfo[]; - lastConnected: Date; -} -export interface PeerInfoProtoMsg { - typeUrl: "/tendermint.p2p.PeerInfo"; - value: Uint8Array; -} -export interface PeerInfoAmino { - id: string; - address_info: PeerAddressInfoAmino[]; - last_connected?: Date; -} -export interface PeerInfoAminoMsg { - type: "/tendermint.p2p.PeerInfo"; - value: PeerInfoAmino; -} -export interface PeerInfoSDKType { - id: string; - address_info: PeerAddressInfoSDKType[]; - last_connected: Date; -} -export interface PeerAddressInfo { - address: string; - lastDialSuccess: Date; - lastDialFailure: Date; - dialFailures: number; -} -export interface PeerAddressInfoProtoMsg { - typeUrl: "/tendermint.p2p.PeerAddressInfo"; - value: Uint8Array; -} -export interface PeerAddressInfoAmino { - address: string; - last_dial_success?: Date; - last_dial_failure?: Date; - dial_failures: number; -} -export interface PeerAddressInfoAminoMsg { - type: "/tendermint.p2p.PeerAddressInfo"; - value: PeerAddressInfoAmino; -} -export interface PeerAddressInfoSDKType { - address: string; - last_dial_success: Date; - last_dial_failure: Date; - dial_failures: number; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/block.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/block.ts deleted file mode 100644 index ca154f194..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/block.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { - Header, - HeaderAmino, - HeaderSDKType, - Data, - DataAmino, - DataSDKType, - Commit, - CommitAmino, - CommitSDKType, -} from "./types"; -import { - EvidenceList, - EvidenceListAmino, - EvidenceListSDKType, -} from "./evidence"; -export interface Block { - header: Header; - data: Data; - evidence: EvidenceList; - lastCommit: Commit; -} -export interface BlockProtoMsg { - typeUrl: "/tendermint.types.Block"; - value: Uint8Array; -} -export interface BlockAmino { - header?: HeaderAmino; - data?: DataAmino; - evidence?: EvidenceListAmino; - last_commit?: CommitAmino; -} -export interface BlockAminoMsg { - type: "/tendermint.types.Block"; - value: BlockAmino; -} -export interface BlockSDKType { - header: HeaderSDKType; - data: DataSDKType; - evidence: EvidenceListSDKType; - last_commit: CommitSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/evidence.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/evidence.ts deleted file mode 100644 index 7e027c29c..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/evidence.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { - Vote, - VoteAmino, - VoteSDKType, - LightBlock, - LightBlockAmino, - LightBlockSDKType, -} from "./types"; -import { Validator, ValidatorAmino, ValidatorSDKType } from "./validator"; -import { Long } from "../../helpers"; -export interface Evidence { - duplicateVoteEvidence?: DuplicateVoteEvidence; - lightClientAttackEvidence?: LightClientAttackEvidence; -} -export interface EvidenceProtoMsg { - typeUrl: "/tendermint.types.Evidence"; - value: Uint8Array; -} -export interface EvidenceAmino { - duplicate_vote_evidence?: DuplicateVoteEvidenceAmino; - light_client_attack_evidence?: LightClientAttackEvidenceAmino; -} -export interface EvidenceAminoMsg { - type: "/tendermint.types.Evidence"; - value: EvidenceAmino; -} -export interface EvidenceSDKType { - duplicate_vote_evidence?: DuplicateVoteEvidenceSDKType; - light_client_attack_evidence?: LightClientAttackEvidenceSDKType; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidence { - voteA: Vote; - voteB: Vote; - totalVotingPower: Long; - validatorPower: Long; - timestamp: Date; -} -export interface DuplicateVoteEvidenceProtoMsg { - typeUrl: "/tendermint.types.DuplicateVoteEvidence"; - value: Uint8Array; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceAmino { - vote_a?: VoteAmino; - vote_b?: VoteAmino; - total_voting_power: string; - validator_power: string; - timestamp?: Date; -} -export interface DuplicateVoteEvidenceAminoMsg { - type: "/tendermint.types.DuplicateVoteEvidence"; - value: DuplicateVoteEvidenceAmino; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceSDKType { - vote_a: VoteSDKType; - vote_b: VoteSDKType; - total_voting_power: Long; - validator_power: Long; - timestamp: Date; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidence { - conflictingBlock: LightBlock; - commonHeight: Long; - byzantineValidators: Validator[]; - totalVotingPower: Long; - timestamp: Date; -} -export interface LightClientAttackEvidenceProtoMsg { - typeUrl: "/tendermint.types.LightClientAttackEvidence"; - value: Uint8Array; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceAmino { - conflicting_block?: LightBlockAmino; - common_height: string; - byzantine_validators: ValidatorAmino[]; - total_voting_power: string; - timestamp?: Date; -} -export interface LightClientAttackEvidenceAminoMsg { - type: "/tendermint.types.LightClientAttackEvidence"; - value: LightClientAttackEvidenceAmino; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceSDKType { - conflicting_block: LightBlockSDKType; - common_height: Long; - byzantine_validators: ValidatorSDKType[]; - total_voting_power: Long; - timestamp: Date; -} -export interface EvidenceList { - evidence: Evidence[]; -} -export interface EvidenceListProtoMsg { - typeUrl: "/tendermint.types.EvidenceList"; - value: Uint8Array; -} -export interface EvidenceListAmino { - evidence: EvidenceAmino[]; -} -export interface EvidenceListAminoMsg { - type: "/tendermint.types.EvidenceList"; - value: EvidenceListAmino; -} -export interface EvidenceListSDKType { - evidence: EvidenceSDKType[]; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/params.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/params.ts deleted file mode 100644 index d5d105e0c..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/params.ts +++ /dev/null @@ -1,244 +0,0 @@ -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../google/protobuf/duration"; -import { Long } from "../../helpers"; -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParams { - block: BlockParams; - evidence: EvidenceParams; - validator: ValidatorParams; - version: VersionParams; -} -export interface ConsensusParamsProtoMsg { - typeUrl: "/tendermint.types.ConsensusParams"; - value: Uint8Array; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsAmino { - block?: BlockParamsAmino; - evidence?: EvidenceParamsAmino; - validator?: ValidatorParamsAmino; - version?: VersionParamsAmino; -} -export interface ConsensusParamsAminoMsg { - type: "/tendermint.types.ConsensusParams"; - value: ConsensusParamsAmino; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsSDKType { - block: BlockParamsSDKType; - evidence: EvidenceParamsSDKType; - validator: ValidatorParamsSDKType; - version: VersionParamsSDKType; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParams { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - maxBytes: Long; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - maxGas: Long; - /** - * Minimum time increment between consecutive blocks (in milliseconds) If the - * block header timestamp is ahead of the system clock, decrease this value. - * - * Not exposed to the application. - */ - timeIotaMs: Long; -} -export interface BlockParamsProtoMsg { - typeUrl: "/tendermint.types.BlockParams"; - value: Uint8Array; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsAmino { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - max_bytes: string; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - max_gas: string; - /** - * Minimum time increment between consecutive blocks (in milliseconds) If the - * block header timestamp is ahead of the system clock, decrease this value. - * - * Not exposed to the application. - */ - time_iota_ms: string; -} -export interface BlockParamsAminoMsg { - type: "/tendermint.types.BlockParams"; - value: BlockParamsAmino; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsSDKType { - max_bytes: Long; - max_gas: Long; - time_iota_ms: Long; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParams { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - maxAgeNumBlocks: Long; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - maxAgeDuration: Duration; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - maxBytes: Long; -} -export interface EvidenceParamsProtoMsg { - typeUrl: "/tendermint.types.EvidenceParams"; - value: Uint8Array; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsAmino { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - max_age_num_blocks: string; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - max_age_duration?: DurationAmino; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - max_bytes: string; -} -export interface EvidenceParamsAminoMsg { - type: "/tendermint.types.EvidenceParams"; - value: EvidenceParamsAmino; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsSDKType { - max_age_num_blocks: Long; - max_age_duration: DurationSDKType; - max_bytes: Long; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParams { - pubKeyTypes: string[]; -} -export interface ValidatorParamsProtoMsg { - typeUrl: "/tendermint.types.ValidatorParams"; - value: Uint8Array; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsAmino { - pub_key_types: string[]; -} -export interface ValidatorParamsAminoMsg { - type: "/tendermint.types.ValidatorParams"; - value: ValidatorParamsAmino; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsSDKType { - pub_key_types: string[]; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParams { - appVersion: Long; -} -export interface VersionParamsProtoMsg { - typeUrl: "/tendermint.types.VersionParams"; - value: Uint8Array; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsAmino { - app_version: string; -} -export interface VersionParamsAminoMsg { - type: "/tendermint.types.VersionParams"; - value: VersionParamsAmino; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsSDKType { - app_version: Long; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParams { - blockMaxBytes: Long; - blockMaxGas: Long; -} -export interface HashedParamsProtoMsg { - typeUrl: "/tendermint.types.HashedParams"; - value: Uint8Array; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsAmino { - block_max_bytes: string; - block_max_gas: string; -} -export interface HashedParamsAminoMsg { - type: "/tendermint.types.HashedParams"; - value: HashedParamsAmino; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsSDKType { - block_max_bytes: Long; - block_max_gas: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/types.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/types.ts deleted file mode 100644 index f335e21d8..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/types.ts +++ /dev/null @@ -1,513 +0,0 @@ -import { Proof, ProofAmino, ProofSDKType } from "../crypto/proof"; -import { Consensus, ConsensusAmino, ConsensusSDKType } from "../version/types"; -import { - ValidatorSet, - ValidatorSetAmino, - ValidatorSetSDKType, -} from "./validator"; -import { Long } from "../../helpers"; -/** BlockIdFlag indicates which BlcokID the signature is for */ -export enum BlockIDFlag { - BLOCK_ID_FLAG_UNKNOWN = 0, - BLOCK_ID_FLAG_ABSENT = 1, - BLOCK_ID_FLAG_COMMIT = 2, - BLOCK_ID_FLAG_NIL = 3, - UNRECOGNIZED = -1, -} -export const BlockIDFlagSDKType = BlockIDFlag; -export const BlockIDFlagAmino = BlockIDFlag; -export function blockIDFlagFromJSON(object: any): BlockIDFlag { - switch (object) { - case 0: - case "BLOCK_ID_FLAG_UNKNOWN": - return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; - case 1: - case "BLOCK_ID_FLAG_ABSENT": - return BlockIDFlag.BLOCK_ID_FLAG_ABSENT; - case 2: - case "BLOCK_ID_FLAG_COMMIT": - return BlockIDFlag.BLOCK_ID_FLAG_COMMIT; - case 3: - case "BLOCK_ID_FLAG_NIL": - return BlockIDFlag.BLOCK_ID_FLAG_NIL; - case -1: - case "UNRECOGNIZED": - default: - return BlockIDFlag.UNRECOGNIZED; - } -} -export function blockIDFlagToJSON(object: BlockIDFlag): string { - switch (object) { - case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN: - return "BLOCK_ID_FLAG_UNKNOWN"; - case BlockIDFlag.BLOCK_ID_FLAG_ABSENT: - return "BLOCK_ID_FLAG_ABSENT"; - case BlockIDFlag.BLOCK_ID_FLAG_COMMIT: - return "BLOCK_ID_FLAG_COMMIT"; - case BlockIDFlag.BLOCK_ID_FLAG_NIL: - return "BLOCK_ID_FLAG_NIL"; - case BlockIDFlag.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** SignedMsgType is a type of signed message in the consensus. */ -export enum SignedMsgType { - SIGNED_MSG_TYPE_UNKNOWN = 0, - /** SIGNED_MSG_TYPE_PREVOTE - Votes */ - SIGNED_MSG_TYPE_PREVOTE = 1, - SIGNED_MSG_TYPE_PRECOMMIT = 2, - /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ - SIGNED_MSG_TYPE_PROPOSAL = 32, - UNRECOGNIZED = -1, -} -export const SignedMsgTypeSDKType = SignedMsgType; -export const SignedMsgTypeAmino = SignedMsgType; -export function signedMsgTypeFromJSON(object: any): SignedMsgType { - switch (object) { - case 0: - case "SIGNED_MSG_TYPE_UNKNOWN": - return SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN; - case 1: - case "SIGNED_MSG_TYPE_PREVOTE": - return SignedMsgType.SIGNED_MSG_TYPE_PREVOTE; - case 2: - case "SIGNED_MSG_TYPE_PRECOMMIT": - return SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT; - case 32: - case "SIGNED_MSG_TYPE_PROPOSAL": - return SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL; - case -1: - case "UNRECOGNIZED": - default: - return SignedMsgType.UNRECOGNIZED; - } -} -export function signedMsgTypeToJSON(object: SignedMsgType): string { - switch (object) { - case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN: - return "SIGNED_MSG_TYPE_UNKNOWN"; - case SignedMsgType.SIGNED_MSG_TYPE_PREVOTE: - return "SIGNED_MSG_TYPE_PREVOTE"; - case SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT: - return "SIGNED_MSG_TYPE_PRECOMMIT"; - case SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL: - return "SIGNED_MSG_TYPE_PROPOSAL"; - case SignedMsgType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** PartsetHeader */ -export interface PartSetHeader { - total: number; - hash: Uint8Array; -} -export interface PartSetHeaderProtoMsg { - typeUrl: "/tendermint.types.PartSetHeader"; - value: Uint8Array; -} -/** PartsetHeader */ -export interface PartSetHeaderAmino { - total: number; - hash: Uint8Array; -} -export interface PartSetHeaderAminoMsg { - type: "/tendermint.types.PartSetHeader"; - value: PartSetHeaderAmino; -} -/** PartsetHeader */ -export interface PartSetHeaderSDKType { - total: number; - hash: Uint8Array; -} -export interface Part { - index: number; - bytes: Uint8Array; - proof: Proof; -} -export interface PartProtoMsg { - typeUrl: "/tendermint.types.Part"; - value: Uint8Array; -} -export interface PartAmino { - index: number; - bytes: Uint8Array; - proof?: ProofAmino; -} -export interface PartAminoMsg { - type: "/tendermint.types.Part"; - value: PartAmino; -} -export interface PartSDKType { - index: number; - bytes: Uint8Array; - proof: ProofSDKType; -} -/** BlockID */ -export interface BlockID { - hash: Uint8Array; - partSetHeader: PartSetHeader; -} -export interface BlockIDProtoMsg { - typeUrl: "/tendermint.types.BlockID"; - value: Uint8Array; -} -/** BlockID */ -export interface BlockIDAmino { - hash: Uint8Array; - part_set_header?: PartSetHeaderAmino; -} -export interface BlockIDAminoMsg { - type: "/tendermint.types.BlockID"; - value: BlockIDAmino; -} -/** BlockID */ -export interface BlockIDSDKType { - hash: Uint8Array; - part_set_header: PartSetHeaderSDKType; -} -/** Header defines the structure of a Tendermint block header. */ -export interface Header { - /** basic block info */ - version: Consensus; - chainId: string; - height: Long; - time: Date; - /** prev block info */ - lastBlockId: BlockID; - /** hashes of block data */ - lastCommitHash: Uint8Array; - dataHash: Uint8Array; - /** hashes from the app output from the prev block */ - validatorsHash: Uint8Array; - /** validators for the next block */ - nextValidatorsHash: Uint8Array; - /** consensus params for current block */ - consensusHash: Uint8Array; - /** state after txs from the previous block */ - appHash: Uint8Array; - lastResultsHash: Uint8Array; - /** consensus info */ - evidenceHash: Uint8Array; - /** original proposer of the block */ - proposerAddress: Uint8Array; -} -export interface HeaderProtoMsg { - typeUrl: "/tendermint.types.Header"; - value: Uint8Array; -} -/** Header defines the structure of a Tendermint block header. */ -export interface HeaderAmino { - /** basic block info */ - version?: ConsensusAmino; - chain_id: string; - height: string; - time?: Date; - /** prev block info */ - last_block_id?: BlockIDAmino; - /** hashes of block data */ - last_commit_hash: Uint8Array; - data_hash: Uint8Array; - /** hashes from the app output from the prev block */ - validators_hash: Uint8Array; - /** validators for the next block */ - next_validators_hash: Uint8Array; - /** consensus params for current block */ - consensus_hash: Uint8Array; - /** state after txs from the previous block */ - app_hash: Uint8Array; - last_results_hash: Uint8Array; - /** consensus info */ - evidence_hash: Uint8Array; - /** original proposer of the block */ - proposer_address: Uint8Array; -} -export interface HeaderAminoMsg { - type: "/tendermint.types.Header"; - value: HeaderAmino; -} -/** Header defines the structure of a Tendermint block header. */ -export interface HeaderSDKType { - version: ConsensusSDKType; - chain_id: string; - height: Long; - time: Date; - last_block_id: BlockIDSDKType; - last_commit_hash: Uint8Array; - data_hash: Uint8Array; - validators_hash: Uint8Array; - next_validators_hash: Uint8Array; - consensus_hash: Uint8Array; - app_hash: Uint8Array; - last_results_hash: Uint8Array; - evidence_hash: Uint8Array; - proposer_address: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface Data { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs: Uint8Array[]; -} -export interface DataProtoMsg { - typeUrl: "/tendermint.types.Data"; - value: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface DataAmino { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs: Uint8Array[]; -} -export interface DataAminoMsg { - type: "/tendermint.types.Data"; - value: DataAmino; -} -/** Data contains the set of transactions included in the block */ -export interface DataSDKType { - txs: Uint8Array[]; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface Vote { - type: SignedMsgType; - height: Long; - round: number; - /** zero if vote is nil. */ - blockId: BlockID; - timestamp: Date; - validatorAddress: Uint8Array; - validatorIndex: number; - signature: Uint8Array; -} -export interface VoteProtoMsg { - typeUrl: "/tendermint.types.Vote"; - value: Uint8Array; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteAmino { - type: SignedMsgType; - height: string; - round: number; - /** zero if vote is nil. */ - block_id?: BlockIDAmino; - timestamp?: Date; - validator_address: Uint8Array; - validator_index: number; - signature: Uint8Array; -} -export interface VoteAminoMsg { - type: "/tendermint.types.Vote"; - value: VoteAmino; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteSDKType { - type: SignedMsgType; - height: Long; - round: number; - block_id: BlockIDSDKType; - timestamp: Date; - validator_address: Uint8Array; - validator_index: number; - signature: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface Commit { - height: Long; - round: number; - blockId: BlockID; - signatures: CommitSig[]; -} -export interface CommitProtoMsg { - typeUrl: "/tendermint.types.Commit"; - value: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitAmino { - height: string; - round: number; - block_id?: BlockIDAmino; - signatures: CommitSigAmino[]; -} -export interface CommitAminoMsg { - type: "/tendermint.types.Commit"; - value: CommitAmino; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitSDKType { - height: Long; - round: number; - block_id: BlockIDSDKType; - signatures: CommitSigSDKType[]; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSig { - blockIdFlag: BlockIDFlag; - validatorAddress: Uint8Array; - timestamp: Date; - signature: Uint8Array; -} -export interface CommitSigProtoMsg { - typeUrl: "/tendermint.types.CommitSig"; - value: Uint8Array; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigAmino { - block_id_flag: BlockIDFlag; - validator_address: Uint8Array; - timestamp?: Date; - signature: Uint8Array; -} -export interface CommitSigAminoMsg { - type: "/tendermint.types.CommitSig"; - value: CommitSigAmino; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigSDKType { - block_id_flag: BlockIDFlag; - validator_address: Uint8Array; - timestamp: Date; - signature: Uint8Array; -} -export interface Proposal { - type: SignedMsgType; - height: Long; - round: number; - polRound: number; - blockId: BlockID; - timestamp: Date; - signature: Uint8Array; -} -export interface ProposalProtoMsg { - typeUrl: "/tendermint.types.Proposal"; - value: Uint8Array; -} -export interface ProposalAmino { - type: SignedMsgType; - height: string; - round: number; - pol_round: number; - block_id?: BlockIDAmino; - timestamp?: Date; - signature: Uint8Array; -} -export interface ProposalAminoMsg { - type: "/tendermint.types.Proposal"; - value: ProposalAmino; -} -export interface ProposalSDKType { - type: SignedMsgType; - height: Long; - round: number; - pol_round: number; - block_id: BlockIDSDKType; - timestamp: Date; - signature: Uint8Array; -} -export interface SignedHeader { - header: Header; - commit: Commit; -} -export interface SignedHeaderProtoMsg { - typeUrl: "/tendermint.types.SignedHeader"; - value: Uint8Array; -} -export interface SignedHeaderAmino { - header?: HeaderAmino; - commit?: CommitAmino; -} -export interface SignedHeaderAminoMsg { - type: "/tendermint.types.SignedHeader"; - value: SignedHeaderAmino; -} -export interface SignedHeaderSDKType { - header: HeaderSDKType; - commit: CommitSDKType; -} -export interface LightBlock { - signedHeader: SignedHeader; - validatorSet: ValidatorSet; -} -export interface LightBlockProtoMsg { - typeUrl: "/tendermint.types.LightBlock"; - value: Uint8Array; -} -export interface LightBlockAmino { - signed_header?: SignedHeaderAmino; - validator_set?: ValidatorSetAmino; -} -export interface LightBlockAminoMsg { - type: "/tendermint.types.LightBlock"; - value: LightBlockAmino; -} -export interface LightBlockSDKType { - signed_header: SignedHeaderSDKType; - validator_set: ValidatorSetSDKType; -} -export interface BlockMeta { - blockId: BlockID; - blockSize: Long; - header: Header; - numTxs: Long; -} -export interface BlockMetaProtoMsg { - typeUrl: "/tendermint.types.BlockMeta"; - value: Uint8Array; -} -export interface BlockMetaAmino { - block_id?: BlockIDAmino; - block_size: string; - header?: HeaderAmino; - num_txs: string; -} -export interface BlockMetaAminoMsg { - type: "/tendermint.types.BlockMeta"; - value: BlockMetaAmino; -} -export interface BlockMetaSDKType { - block_id: BlockIDSDKType; - block_size: Long; - header: HeaderSDKType; - num_txs: Long; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProof { - rootHash: Uint8Array; - data: Uint8Array; - proof: Proof; -} -export interface TxProofProtoMsg { - typeUrl: "/tendermint.types.TxProof"; - value: Uint8Array; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofAmino { - root_hash: Uint8Array; - data: Uint8Array; - proof?: ProofAmino; -} -export interface TxProofAminoMsg { - type: "/tendermint.types.TxProof"; - value: TxProofAmino; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofSDKType { - root_hash: Uint8Array; - data: Uint8Array; - proof: ProofSDKType; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/validator.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/validator.ts deleted file mode 100644 index 226fae745..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/types/validator.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { Long } from "../../helpers"; -export interface ValidatorSet { - validators: Validator[]; - proposer: Validator; - totalVotingPower: Long; -} -export interface ValidatorSetProtoMsg { - typeUrl: "/tendermint.types.ValidatorSet"; - value: Uint8Array; -} -export interface ValidatorSetAmino { - validators: ValidatorAmino[]; - proposer?: ValidatorAmino; - total_voting_power: string; -} -export interface ValidatorSetAminoMsg { - type: "/tendermint.types.ValidatorSet"; - value: ValidatorSetAmino; -} -export interface ValidatorSetSDKType { - validators: ValidatorSDKType[]; - proposer: ValidatorSDKType; - total_voting_power: Long; -} -export interface Validator { - address: Uint8Array; - pubKey: PublicKey; - votingPower: Long; - proposerPriority: Long; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.types.Validator"; - value: Uint8Array; -} -export interface ValidatorAmino { - address: Uint8Array; - pub_key?: PublicKeyAmino; - voting_power: string; - proposer_priority: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.types.Validator"; - value: ValidatorAmino; -} -export interface ValidatorSDKType { - address: Uint8Array; - pub_key: PublicKeySDKType; - voting_power: Long; - proposer_priority: Long; -} -export interface SimpleValidator { - pubKey: PublicKey; - votingPower: Long; -} -export interface SimpleValidatorProtoMsg { - typeUrl: "/tendermint.types.SimpleValidator"; - value: Uint8Array; -} -export interface SimpleValidatorAmino { - pub_key?: PublicKeyAmino; - voting_power: string; -} -export interface SimpleValidatorAminoMsg { - type: "/tendermint.types.SimpleValidator"; - value: SimpleValidatorAmino; -} -export interface SimpleValidatorSDKType { - pub_key: PublicKeySDKType; - voting_power: Long; -} diff --git a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/version/types.ts b/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/version/types.ts deleted file mode 100644 index 312e351c4..000000000 --- a/Agoric/agoric-starter/src/types/proto-interfaces/tendermint/version/types.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { Long } from "../../helpers"; -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface App { - protocol: Long; - software: string; -} -export interface AppProtoMsg { - typeUrl: "/tendermint.version.App"; - value: Uint8Array; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppAmino { - protocol: string; - software: string; -} -export interface AppAminoMsg { - type: "/tendermint.version.App"; - value: AppAmino; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppSDKType { - protocol: Long; - software: string; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface Consensus { - block: Long; - app: Long; -} -export interface ConsensusProtoMsg { - typeUrl: "/tendermint.version.Consensus"; - value: Uint8Array; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusAmino { - block: string; - app: string; -} -export interface ConsensusAminoMsg { - type: "/tendermint.version.Consensus"; - value: ConsensusAmino; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusSDKType { - block: Long; - app: Long; -} diff --git a/Agoric/agoric-starter/string.ts b/Agoric/agoric-starter/string.ts new file mode 100644 index 000000000..ca2e9a9df --- /dev/null +++ b/Agoric/agoric-starter/string.ts @@ -0,0 +1,6 @@ +const {toJsonObject} = require('@subql/common'); + const {writeFileSync} = require('fs'); + const yaml = require('js-yaml'); + const project = toJsonObject((require('${scriptPath}')).default); + const yamlOutput = yaml.dump(project); + writeFileSync('/Users/ben/subql-workspace/starters/cosmos-subql-starter/Agoric/agoric-starter', `# // Auto-generated , DO NOT EDIT${yamlOutput}\`) \ No newline at end of file diff --git a/Agoric/agoric-starter/tsconfig.json b/Agoric/agoric-starter/tsconfig.json index bf13cef77..f3019d720 100644 --- a/Agoric/agoric-starter/tsconfig.json +++ b/Agoric/agoric-starter/tsconfig.json @@ -12,5 +12,9 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": [ + "src/**/*", + "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts" + ] } diff --git a/Akash/akash-starter/.gitignore b/Akash/akash-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Akash/akash-starter/.gitignore +++ b/Akash/akash-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Akash/akash-starter/package.json b/Akash/akash-starter/package.json index f558ebe82..3d13a5df7 100644 --- a/Akash/akash-starter/package.json +++ b/Akash/akash-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/node-cosmos": "latest", "@subql/testing": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Akash/akash-starter/project.ts b/Akash/akash-starter/project.ts new file mode 100644 index 000000000..66b87bc1f --- /dev/null +++ b/Akash/akash-starter/project.ts @@ -0,0 +1,83 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "akash-starter", + description: + "This project can be use as a starting point for developing your Cosmos Akash based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "akashnet-2", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "https://rpc-akash.ecostake.com:443", + "https://rpc.akashnet.net:443" + ], + // dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary", + chaintypes: new Map([ + [ + "akash.staking.v1beta3", { + file: "./proto/akash/staking/v1beta3/params.proto", + messages: [ + "Params" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 11364001, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleReward', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'withdraw_rewards', + messageFilter: { + type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward" + } + /* + contractCall field can be specified here too + values: # A set of key/value pairs that are present in the message data + contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" + */ + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Akash/akash-starter/project.yaml b/Akash/akash-starter/project.yaml deleted file mode 100644 index f5fc5774a..000000000 --- a/Akash/akash-starter/project.yaml +++ /dev/null @@ -1,69 +0,0 @@ -specVersion: 1.0.0 -name: akash-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Akash - based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - #chainId: sei-devnet-3 - chainId: akashnet-2 - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: - - https://rpc-akash.ecostake.com:443 - - https://rpc.akashnet.net:443 - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary" - chainTypes: - # This feature allows support for any Cosmos chain by importing the correct protobuf messages - akash.staking.v1beta3: - file: ./proto/akash/staking/v1beta3/params.proto - messages: - - Params -dataSources: - - kind: cosmos/Runtime - startBlock: 11364001 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # kind: cosmos/TransactionHandler - - handler: handleReward - kind: cosmos/EventHandler - # https://sei.explorers.guru/transaction/9A5D1FB99CDFB03282459355E4C7221D93D9971160AE79E201FA2B2895952878 - filter: - type: withdraw_rewards - messageFilter: - type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward" - # contractCall field can be specified here too - #values: # A set of key/value pairs that are present in the message data - #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" - #- handler: handleSpotPriceEvent - # kind: cosmos/EventHandler - # filter: - # type: wasm-spot-price - # messageFilter: - # type: "/cosmwasm.wasm.v1.MsgExecuteContract" - # - handler: handleMessage - # kind: cosmos/MessageHandler - # filter: - # type: "/cosmwasm.wasm.v1.MsgExecuteContract" - # Filter to only messages with the provide_liquidity function call - #contractCall: "provide_liquidity" # The name of the contract function that was called - #values: # A set of key/value pairs that are present in the message data - #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" diff --git a/Akash/akash-starter/tsconfig.json b/Akash/akash-starter/tsconfig.json index bf13cef77..f3019d720 100644 --- a/Akash/akash-starter/tsconfig.json +++ b/Akash/akash-starter/tsconfig.json @@ -12,5 +12,9 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": [ + "src/**/*", + "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts" + ] } diff --git a/Archway/archway-starter/.gitignore b/Archway/archway-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Archway/archway-starter/.gitignore +++ b/Archway/archway-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Archway/archway-starter/package.json b/Archway/archway-starter/package.json index 6edf6cab7..6b6bb2543 100644 --- a/Archway/archway-starter/package.json +++ b/Archway/archway-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/node-cosmos": "latest", "@subql/testing": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Archway/archway-starter/project.ts b/Archway/archway-starter/project.ts new file mode 100644 index 000000000..b09ef73d4 --- /dev/null +++ b/Archway/archway-starter/project.ts @@ -0,0 +1,104 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "archway-starter", + description: + " This project can be use as a starting point for developing your Cosmos (Archway) based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "archway-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "https://rpc.mainnet.archway.io:443", + // "https://rpc-archway.cosmos-spaces.cloud", + // "https://rpc-1.archway.nodes.guru", + ], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/cosmos-archway-dictionary" + chaintypes: new Map([ + [ + "cosmwasm.wasm.v1.MsgSetContractMetadata", { + file: "./proto/archway/rewards/v1/tx.proto", + messages: [ + "MsgSetContractMetadata" + ] + } + ], + [ + "cosmwasm.wasm.v1.ContractMetadata", { + file: "./proto/archway/rewards/v1/rewards.proto", + messages: [ + "ContractMetadata" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 1338, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleRewardsWithdrawEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: "archway.rewards.v1.RewardsWithdrawEvent", + messageFilter: { + type: "/archway.rewards.v1.MsgWithdrawRewards" + } + /* + contractCall field can be specified here too + values: # A set of key/value pairs that are present in the message data + contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" + */ + } + }, + { + handler: 'handleSetContractMetadata', + kind: SubqlCosmosHandlerKind.Message, + filter: { + /* + Filter to only messages with the MsgSetContractMetadata function call + e.g. https://archway.explorers.guru/transaction/EBEE24728FCDA79EF167625D66F438236ED17579CAA7229A562C5AB84608B5A4 + */ + type: "/archway.rewards.v1.MsgSetContractMetadata" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Archway/archway-starter/tsconfig.json b/Archway/archway-starter/tsconfig.json index bf13cef77..f3019d720 100644 --- a/Archway/archway-starter/tsconfig.json +++ b/Archway/archway-starter/tsconfig.json @@ -12,5 +12,9 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": [ + "src/**/*", + "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts" + ] } diff --git a/Axelar/axelar-starter/.gitignore b/Axelar/axelar-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Axelar/axelar-starter/.gitignore +++ b/Axelar/axelar-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Axelar/axelar-starter/docker-compose.yml b/Axelar/axelar-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Axelar/axelar-starter/docker-compose.yml +++ b/Axelar/axelar-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Axelar/axelar-starter/package.json b/Axelar/axelar-starter/package.json index ebeced524..4a08952dd 100644 --- a/Axelar/axelar-starter/package.json +++ b/Axelar/axelar-starter/package.json @@ -26,7 +26,7 @@ "@subql/node-cosmos": "latest", "@subql/testing": "latest", "@types/google-protobuf": "^3.15.6", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Axelar/axelar-starter/project.ts b/Axelar/axelar-starter/project.ts new file mode 100644 index 000000000..f28a8b6d9 --- /dev/null +++ b/Axelar/axelar-starter/project.ts @@ -0,0 +1,63 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "axelar-starter", + description: + " This project can be use as a starting point for developing your Cosmos Axelar based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "axelar-dojo-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://axelar-archrpc.chainode.tech/"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + // dictionary: "https://api.subquery.network/sq/subquery/axelar-hub-dictionary" + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 5262, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: "depositConfirmation", + } + }, + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Axelar/axelar-starter/project.yaml b/Axelar/axelar-starter/project.yaml deleted file mode 100644 index c8125bb64..000000000 --- a/Axelar/axelar-starter/project.yaml +++ /dev/null @@ -1,43 +0,0 @@ -specVersion: 1.0.0 -name: axelar-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Axelar) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: axelar-dojo-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://axelar-archrpc.chainode.tech/"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/axelar-hub-dictionary" -dataSources: - - kind: cosmos/Runtime - startBlock: 5262 # The first deposit event occurs on this block - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: "depositConfirmation" - # - handler: handleMessage - # kind: cosmos/MessageHandler - # filter: - # type: /cosmos.bank.v1beta1.MsgSend diff --git a/Axelar/axelar-starter/src/types/index.ts b/Axelar/axelar-starter/src/types/index.ts index 86842696a..f660b992a 100644 --- a/Axelar/axelar-starter/src/types/index.ts +++ b/Axelar/axelar-starter/src/types/index.ts @@ -1,4 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 // Auto-generated , DO NOT EDIT -export * from "./models"; +export * from "./models"; + + + diff --git a/Axelar/axelar-starter/src/types/models/index.ts b/Axelar/axelar-starter/src/types/models/index.ts index 131e13130..0221c6b75 100644 --- a/Axelar/axelar-starter/src/types/models/index.ts +++ b/Axelar/axelar-starter/src/types/models/index.ts @@ -2,4 +2,5 @@ // Auto-generated , DO NOT EDIT -export { DepositConfirmation } from "./DepositConfirmation"; +export {DepositConfirmation} from "./DepositConfirmation" + diff --git a/Axelar/axelar-starter/tsconfig.json b/Axelar/axelar-starter/tsconfig.json index bf13cef77..f3019d720 100644 --- a/Axelar/axelar-starter/tsconfig.json +++ b/Axelar/axelar-starter/tsconfig.json @@ -12,5 +12,9 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": [ + "src/**/*", + "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts" + ] } diff --git a/Cheqd/cheqd-starter/.gitignore b/Cheqd/cheqd-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Cheqd/cheqd-starter/.gitignore +++ b/Cheqd/cheqd-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Cheqd/cheqd-starter/docker-compose.yml b/Cheqd/cheqd-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Cheqd/cheqd-starter/docker-compose.yml +++ b/Cheqd/cheqd-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Cheqd/cheqd-starter/package.json b/Cheqd/cheqd-starter/package.json index dc510880c..4d076864d 100644 --- a/Cheqd/cheqd-starter/package.json +++ b/Cheqd/cheqd-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Cheqd/cheqd-starter/project.ts b/Cheqd/cheqd-starter/project.ts new file mode 100644 index 000000000..00371c2d3 --- /dev/null +++ b/Cheqd/cheqd-starter/project.ts @@ -0,0 +1,99 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "cheqd-starter", + description: + " This project can be use as a starting point for developing your Cosmos cheqd based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "cheqd-mainnet-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc.cheqd.nodestake.top"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cheqd-dictionary", + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], + [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 9758950, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: "transfer", + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Cheqd/cheqd-starter/project.yaml b/Cheqd/cheqd-starter/project.yaml deleted file mode 100644 index 2463c38d0..000000000 --- a/Cheqd/cheqd-starter/project.yaml +++ /dev/null @@ -1,58 +0,0 @@ -specVersion: 1.0.0 -name: cheqd-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Cheqd) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: cheqd-mainnet-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://rpc.cheqd.nodestake.top"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cheqd-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 9758950 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Cheqd/cheqd-starter/src/types/CosmosMessageTypes.ts b/Cheqd/cheqd-starter/src/types/CosmosMessageTypes.ts deleted file mode 100644 index 9703fd259..000000000 --- a/Cheqd/cheqd-starter/src/types/CosmosMessageTypes.ts +++ /dev/null @@ -1,16 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -// Auto-generated , DO NOT EDIT -import { CosmosMessage } from "@subql/types-cosmos"; - -import { MsgUnjail } from "./proto-interfaces/cosmos/slashing/v1beta1/tx"; - -import { MsgVoteWeighted } from "./proto-interfaces/cosmos/gov/v1beta1/tx"; - -import { WeightedVoteOption } from "./proto-interfaces/cosmos/gov/v1beta1/gov"; - -export type MsgUnjailMessage = CosmosMessage; - -export type MsgVoteWeightedMessage = CosmosMessage; - -export type WeightedVoteOptionMessage = CosmosMessage; diff --git a/Cheqd/cheqd-starter/src/types/index.ts b/Cheqd/cheqd-starter/src/types/index.ts deleted file mode 100644 index 86842696a..000000000 --- a/Cheqd/cheqd-starter/src/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -// Auto-generated , DO NOT EDIT -export * from "./models"; diff --git a/Cheqd/cheqd-starter/src/types/models/Message.ts b/Cheqd/cheqd-starter/src/types/models/Message.ts deleted file mode 100644 index 6c0d41e83..000000000 --- a/Cheqd/cheqd-starter/src/types/models/Message.ts +++ /dev/null @@ -1,94 +0,0 @@ -// Auto-generated , DO NOT EDIT -import { Entity, FunctionPropertyNames } from "@subql/types"; -import assert from "assert"; - -export type MessageProps = Omit< - Message, - NonNullable> | "_name" ->; - -export class Message implements Entity { - constructor( - id: string, - - blockHeight: bigint, - - txHash: string, - - from: string, - - to: string, - - amount: string - ) { - this.id = id; - - this.blockHeight = blockHeight; - - this.txHash = txHash; - - this.from = from; - - this.to = to; - - this.amount = amount; - } - - public id: string; - - public blockHeight: bigint; - - public txHash: string; - - public from: string; - - public to: string; - - public amount: string; - - get _name(): string { - return "Message"; - } - - async save(): Promise { - let id = this.id; - assert(id !== null, "Cannot save Message entity without an ID"); - await store.set("Message", id.toString(), this); - } - static async remove(id: string): Promise { - assert(id !== null, "Cannot remove Message entity without an ID"); - await store.remove("Message", id.toString()); - } - - static async get(id: string): Promise { - assert( - id !== null && id !== undefined, - "Cannot get Message entity without an ID" - ); - const record = await store.get("Message", id.toString()); - if (record) { - return this.create(record as MessageProps); - } else { - return; - } - } - - static create(record: MessageProps): Message { - assert(typeof record.id === "string", "id must be provided"); - let entity = new this( - record.id, - - record.blockHeight, - - record.txHash, - - record.from, - - record.to, - - record.amount - ); - Object.assign(entity, record); - return entity; - } -} diff --git a/Cheqd/cheqd-starter/src/types/models/TransferEvent.ts b/Cheqd/cheqd-starter/src/types/models/TransferEvent.ts deleted file mode 100644 index e0f4a1eab..000000000 --- a/Cheqd/cheqd-starter/src/types/models/TransferEvent.ts +++ /dev/null @@ -1,94 +0,0 @@ -// Auto-generated , DO NOT EDIT -import { Entity, FunctionPropertyNames } from "@subql/types"; -import assert from "assert"; - -export type TransferEventProps = Omit< - TransferEvent, - NonNullable> | "_name" ->; - -export class TransferEvent implements Entity { - constructor( - id: string, - - blockHeight: bigint, - - txHash: string, - - recipient: string, - - sender: string, - - amount: string - ) { - this.id = id; - - this.blockHeight = blockHeight; - - this.txHash = txHash; - - this.recipient = recipient; - - this.sender = sender; - - this.amount = amount; - } - - public id: string; - - public blockHeight: bigint; - - public txHash: string; - - public recipient: string; - - public sender: string; - - public amount: string; - - get _name(): string { - return "TransferEvent"; - } - - async save(): Promise { - let id = this.id; - assert(id !== null, "Cannot save TransferEvent entity without an ID"); - await store.set("TransferEvent", id.toString(), this); - } - static async remove(id: string): Promise { - assert(id !== null, "Cannot remove TransferEvent entity without an ID"); - await store.remove("TransferEvent", id.toString()); - } - - static async get(id: string): Promise { - assert( - id !== null && id !== undefined, - "Cannot get TransferEvent entity without an ID" - ); - const record = await store.get("TransferEvent", id.toString()); - if (record) { - return this.create(record as TransferEventProps); - } else { - return; - } - } - - static create(record: TransferEventProps): TransferEvent { - assert(typeof record.id === "string", "id must be provided"); - let entity = new this( - record.id, - - record.blockHeight, - - record.txHash, - - record.recipient, - - record.sender, - - record.amount - ); - Object.assign(entity, record); - return entity; - } -} diff --git a/Cheqd/cheqd-starter/src/types/models/index.ts b/Cheqd/cheqd-starter/src/types/models/index.ts deleted file mode 100644 index 2983e773c..000000000 --- a/Cheqd/cheqd-starter/src/types/models/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -// Auto-generated , DO NOT EDIT - -export { TransferEvent } from "./TransferEvent"; - -export { Message } from "./Message"; diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/bundle.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/bundle.ts deleted file mode 100644 index 08929f550..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/bundle.ts +++ /dev/null @@ -1,26 +0,0 @@ -import * as _8 from "./did/v2/diddoc"; -import * as _9 from "./did/v2/fee"; -import * as _10 from "./did/v2/genesis"; -import * as _11 from "./did/v2/tx"; -import * as _12 from "./resource/v2/fee"; -import * as _13 from "./resource/v2/genesis"; -import * as _14 from "./resource/v2/resource"; -import * as _15 from "./resource/v2/tx"; -export namespace cheqd { - export namespace did { - export const v2 = { - ..._8, - ..._9, - ..._10, - ..._11, - }; - } - export namespace resource { - export const v2 = { - ..._12, - ..._13, - ..._14, - ..._15, - }; - } -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/common.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/common.ts deleted file mode 100644 index 0352c2313..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/common.ts +++ /dev/null @@ -1,20 +0,0 @@ -export interface KeyValuePair { - key: string; - value: string; -} -export interface KeyValuePairProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.KeyValuePair"; - value: Uint8Array; -} -export interface KeyValuePairAmino { - key: string; - value: string; -} -export interface KeyValuePairAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.KeyValuePair"; - value: KeyValuePairAmino; -} -export interface KeyValuePairSDKType { - key: string; - value: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/did.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/did.ts deleted file mode 100644 index 304ab1294..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/did.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { KeyValuePair, KeyValuePairAmino, KeyValuePairSDKType } from "./common"; -export interface Did { - /** optional */ - context: string[]; - id: string; - /** optional */ - controller: string[]; - /** optional */ - verificationMethod: VerificationMethod[]; - /** optional */ - authentication: string[]; - /** optional */ - assertionMethod: string[]; - /** optional */ - capabilityInvocation: string[]; - /** optional */ - capabilityDelegation: string[]; - /** optional */ - keyAgreement: string[]; - /** optional */ - service: Service[]; - /** optional */ - alsoKnownAs: string[]; -} -export interface DidProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.Did"; - value: Uint8Array; -} -export interface DidAmino { - /** optional */ - context: string[]; - id: string; - /** optional */ - controller: string[]; - /** optional */ - verification_method: VerificationMethodAmino[]; - /** optional */ - authentication: string[]; - /** optional */ - assertion_method: string[]; - /** optional */ - capability_invocation: string[]; - /** optional */ - capability_delegation: string[]; - /** optional */ - key_agreement: string[]; - /** optional */ - service: ServiceAmino[]; - /** optional */ - also_known_as: string[]; -} -export interface DidAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.Did"; - value: DidAmino; -} -export interface DidSDKType { - context: string[]; - id: string; - controller: string[]; - verification_method: VerificationMethodSDKType[]; - authentication: string[]; - assertion_method: string[]; - capability_invocation: string[]; - capability_delegation: string[]; - key_agreement: string[]; - service: ServiceSDKType[]; - also_known_as: string[]; -} -export interface VerificationMethod { - id: string; - type: string; - controller: string; - /** optional */ - publicKeyJwk: KeyValuePair[]; - /** optional */ - publicKeyMultibase: string; -} -export interface VerificationMethodProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.VerificationMethod"; - value: Uint8Array; -} -export interface VerificationMethodAmino { - id: string; - type: string; - controller: string; - /** optional */ - public_key_jwk: KeyValuePairAmino[]; - /** optional */ - public_key_multibase: string; -} -export interface VerificationMethodAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.VerificationMethod"; - value: VerificationMethodAmino; -} -export interface VerificationMethodSDKType { - id: string; - type: string; - controller: string; - public_key_jwk: KeyValuePairSDKType[]; - public_key_multibase: string; -} -export interface Service { - id: string; - type: string; - serviceEndpoint: string; -} -export interface ServiceProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.Service"; - value: Uint8Array; -} -export interface ServiceAmino { - id: string; - type: string; - service_endpoint: string; -} -export interface ServiceAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.Service"; - value: ServiceAmino; -} -export interface ServiceSDKType { - id: string; - type: string; - service_endpoint: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/genesis.ts deleted file mode 100644 index 575d911e5..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/genesis.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { StateValue, StateValueAmino, StateValueSDKType } from "./stateValue"; -/** GenesisState defines the cheqd module's genesis state. */ -export interface GenesisState { - didNamespace: string; - didList: StateValue[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the cheqd module's genesis state. */ -export interface GenesisStateAmino { - did_namespace: string; - didList: StateValueAmino[]; -} -export interface GenesisStateAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the cheqd module's genesis state. */ -export interface GenesisStateSDKType { - did_namespace: string; - didList: StateValueSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/stateValue.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/stateValue.ts deleted file mode 100644 index e1807fc09..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/stateValue.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -export interface StateValue { - data: Any; - /** optional */ - metadata: Metadata; -} -export interface StateValueProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.StateValue"; - value: Uint8Array; -} -export interface StateValueAmino { - data?: AnyAmino; - /** optional */ - metadata?: MetadataAmino; -} -export interface StateValueAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.StateValue"; - value: StateValueAmino; -} -export interface StateValueSDKType { - data: AnySDKType; - metadata: MetadataSDKType; -} -/** metadata */ -export interface Metadata { - created: string; - updated: string; - deactivated: boolean; - versionId: string; - resources: string[]; -} -export interface MetadataProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.Metadata"; - value: Uint8Array; -} -/** metadata */ -export interface MetadataAmino { - created: string; - updated: string; - deactivated: boolean; - version_id: string; - resources: string[]; -} -export interface MetadataAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.Metadata"; - value: MetadataAmino; -} -/** metadata */ -export interface MetadataSDKType { - created: string; - updated: string; - deactivated: boolean; - version_id: string; - resources: string[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/tx.ts deleted file mode 100644 index 1b1806f0e..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v1/tx.ts +++ /dev/null @@ -1,267 +0,0 @@ -import { - Did, - DidAmino, - DidSDKType, - VerificationMethod, - VerificationMethodAmino, - VerificationMethodSDKType, - Service, - ServiceAmino, - ServiceSDKType, -} from "./did"; -import { Metadata, MetadataAmino, MetadataSDKType } from "./stateValue"; -/** this line is used by starport scaffolding # proto/tx/message */ -export interface MsgCreateDid { - payload: MsgCreateDidPayload; - signatures: SignInfo[]; -} -export interface MsgCreateDidProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.MsgCreateDid"; - value: Uint8Array; -} -/** this line is used by starport scaffolding # proto/tx/message */ -export interface MsgCreateDidAmino { - payload?: MsgCreateDidPayloadAmino; - signatures: SignInfoAmino[]; -} -export interface MsgCreateDidAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.MsgCreateDid"; - value: MsgCreateDidAmino; -} -/** this line is used by starport scaffolding # proto/tx/message */ -export interface MsgCreateDidSDKType { - payload: MsgCreateDidPayloadSDKType; - signatures: SignInfoSDKType[]; -} -export interface MsgUpdateDid { - payload: MsgUpdateDidPayload; - signatures: SignInfo[]; -} -export interface MsgUpdateDidProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.MsgUpdateDid"; - value: Uint8Array; -} -export interface MsgUpdateDidAmino { - payload?: MsgUpdateDidPayloadAmino; - signatures: SignInfoAmino[]; -} -export interface MsgUpdateDidAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.MsgUpdateDid"; - value: MsgUpdateDidAmino; -} -export interface MsgUpdateDidSDKType { - payload: MsgUpdateDidPayloadSDKType; - signatures: SignInfoSDKType[]; -} -export interface MsgDeactivateDid { - payload: MsgDeactivateDidPayload; - signatures: SignInfo[]; -} -export interface MsgDeactivateDidProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.MsgDeactivateDid"; - value: Uint8Array; -} -export interface MsgDeactivateDidAmino { - payload?: MsgDeactivateDidPayloadAmino; - signatures: SignInfoAmino[]; -} -export interface MsgDeactivateDidAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.MsgDeactivateDid"; - value: MsgDeactivateDidAmino; -} -export interface MsgDeactivateDidSDKType { - payload: MsgDeactivateDidPayloadSDKType; - signatures: SignInfoSDKType[]; -} -export interface SignInfo { - verificationMethodId: string; - signature: string; -} -export interface SignInfoProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.SignInfo"; - value: Uint8Array; -} -export interface SignInfoAmino { - verification_method_id: string; - signature: string; -} -export interface SignInfoAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.SignInfo"; - value: SignInfoAmino; -} -export interface SignInfoSDKType { - verification_method_id: string; - signature: string; -} -export interface MsgDeactivateDidPayload { - id: string; -} -export interface MsgDeactivateDidPayloadProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.MsgDeactivateDidPayload"; - value: Uint8Array; -} -export interface MsgDeactivateDidPayloadAmino { - id: string; -} -export interface MsgDeactivateDidPayloadAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.MsgDeactivateDidPayload"; - value: MsgDeactivateDidPayloadAmino; -} -export interface MsgDeactivateDidPayloadSDKType { - id: string; -} -export interface MsgDeactivateDidResponse { - did: Did; - metadata: Metadata; -} -export interface MsgDeactivateDidResponseProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.MsgDeactivateDidResponse"; - value: Uint8Array; -} -export interface MsgDeactivateDidResponseAmino { - did?: DidAmino; - metadata?: MetadataAmino; -} -export interface MsgDeactivateDidResponseAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.MsgDeactivateDidResponse"; - value: MsgDeactivateDidResponseAmino; -} -export interface MsgDeactivateDidResponseSDKType { - did: DidSDKType; - metadata: MetadataSDKType; -} -export interface MsgCreateDidPayload { - context: string[]; - id: string; - controller: string[]; - verificationMethod: VerificationMethod[]; - authentication: string[]; - assertionMethod: string[]; - capabilityInvocation: string[]; - capabilityDelegation: string[]; - keyAgreement: string[]; - alsoKnownAs: string[]; - service: Service[]; -} -export interface MsgCreateDidPayloadProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.MsgCreateDidPayload"; - value: Uint8Array; -} -export interface MsgCreateDidPayloadAmino { - context: string[]; - id: string; - controller: string[]; - verification_method: VerificationMethodAmino[]; - authentication: string[]; - assertion_method: string[]; - capability_invocation: string[]; - capability_delegation: string[]; - key_agreement: string[]; - also_known_as: string[]; - service: ServiceAmino[]; -} -export interface MsgCreateDidPayloadAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.MsgCreateDidPayload"; - value: MsgCreateDidPayloadAmino; -} -export interface MsgCreateDidPayloadSDKType { - context: string[]; - id: string; - controller: string[]; - verification_method: VerificationMethodSDKType[]; - authentication: string[]; - assertion_method: string[]; - capability_invocation: string[]; - capability_delegation: string[]; - key_agreement: string[]; - also_known_as: string[]; - service: ServiceSDKType[]; -} -export interface MsgCreateDidResponse { - /** Not necessary */ - id: string; -} -export interface MsgCreateDidResponseProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.MsgCreateDidResponse"; - value: Uint8Array; -} -export interface MsgCreateDidResponseAmino { - /** Not necessary */ - id: string; -} -export interface MsgCreateDidResponseAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.MsgCreateDidResponse"; - value: MsgCreateDidResponseAmino; -} -export interface MsgCreateDidResponseSDKType { - id: string; -} -export interface MsgUpdateDidPayload { - context: string[]; - id: string; - controller: string[]; - verificationMethod: VerificationMethod[]; - authentication: string[]; - assertionMethod: string[]; - capabilityInvocation: string[]; - capabilityDelegation: string[]; - keyAgreement: string[]; - alsoKnownAs: string[]; - service: Service[]; - versionId: string; -} -export interface MsgUpdateDidPayloadProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.MsgUpdateDidPayload"; - value: Uint8Array; -} -export interface MsgUpdateDidPayloadAmino { - context: string[]; - id: string; - controller: string[]; - verification_method: VerificationMethodAmino[]; - authentication: string[]; - assertion_method: string[]; - capability_invocation: string[]; - capability_delegation: string[]; - key_agreement: string[]; - also_known_as: string[]; - service: ServiceAmino[]; - version_id: string; -} -export interface MsgUpdateDidPayloadAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.MsgUpdateDidPayload"; - value: MsgUpdateDidPayloadAmino; -} -export interface MsgUpdateDidPayloadSDKType { - context: string[]; - id: string; - controller: string[]; - verification_method: VerificationMethodSDKType[]; - authentication: string[]; - assertion_method: string[]; - capability_invocation: string[]; - capability_delegation: string[]; - key_agreement: string[]; - also_known_as: string[]; - service: ServiceSDKType[]; - version_id: string; -} -export interface MsgUpdateDidResponse { - /** Not necessary */ - id: string; -} -export interface MsgUpdateDidResponseProtoMsg { - typeUrl: "/cheqdid.cheqdnode.cheqd.v1.MsgUpdateDidResponse"; - value: Uint8Array; -} -export interface MsgUpdateDidResponseAmino { - /** Not necessary */ - id: string; -} -export interface MsgUpdateDidResponseAminoMsg { - type: "/cheqdid.cheqdnode.cheqd.v1.MsgUpdateDidResponse"; - value: MsgUpdateDidResponseAmino; -} -export interface MsgUpdateDidResponseSDKType { - id: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/diddoc.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/diddoc.ts deleted file mode 100644 index 212b55620..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/diddoc.ts +++ /dev/null @@ -1,396 +0,0 @@ -/** - * DidDoc defines a DID Document, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/ - */ -export interface DidDoc { - /** - * context is a list of URIs used to identify the context of the DID document. - * Default: https://www.w3.org/ns/did/v1 - */ - context: string[]; - /** - * id is the DID of the DID document. - * Format: did:cheqd:: - */ - id: string; - /** controller is a list of DIDs that are allowed to control the DID document. */ - controller: string[]; - /** - * verificationMethod is a list of verification methods that can be used to - * verify a digital signature or cryptographic proof. - */ - verificationMethod: VerificationMethod[]; - /** - * authentication is a list of verification methods that can be used to - * authenticate as the DID subject. - */ - authentication: string[]; - /** - * assertionMethod is a list of verification methods that can be used to - * assert statements as the DID subject. - */ - assertionMethod: string[]; - /** - * capabilityInvocation is a list of verification methods that can be used to - * invoke capabilities as the DID subject. - */ - capabilityInvocation: string[]; - /** - * capabilityDelegation is a list of verification methods that can be used to - * delegate capabilities as the DID subject. - */ - capabilityDelegation: string[]; - /** - * keyAgreement is a list of verification methods that can be used to perform - * key agreement as the DID subject. - */ - keyAgreement: string[]; - /** service is a list of services that can be used to interact with the DID subject. */ - service: Service[]; - /** alsoKnownAs is a list of DIDs that are known to refer to the same DID subject. */ - alsoKnownAs: string[]; -} -export interface DidDocProtoMsg { - typeUrl: "/cheqd.did.v2.DidDoc"; - value: Uint8Array; -} -/** - * DidDoc defines a DID Document, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/ - */ -export interface DidDocAmino { - /** - * context is a list of URIs used to identify the context of the DID document. - * Default: https://www.w3.org/ns/did/v1 - */ - context: string[]; - /** - * id is the DID of the DID document. - * Format: did:cheqd:: - */ - id: string; - /** controller is a list of DIDs that are allowed to control the DID document. */ - controller: string[]; - /** - * verificationMethod is a list of verification methods that can be used to - * verify a digital signature or cryptographic proof. - */ - verification_method: VerificationMethodAmino[]; - /** - * authentication is a list of verification methods that can be used to - * authenticate as the DID subject. - */ - authentication: string[]; - /** - * assertionMethod is a list of verification methods that can be used to - * assert statements as the DID subject. - */ - assertion_method: string[]; - /** - * capabilityInvocation is a list of verification methods that can be used to - * invoke capabilities as the DID subject. - */ - capability_invocation: string[]; - /** - * capabilityDelegation is a list of verification methods that can be used to - * delegate capabilities as the DID subject. - */ - capability_delegation: string[]; - /** - * keyAgreement is a list of verification methods that can be used to perform - * key agreement as the DID subject. - */ - key_agreement: string[]; - /** service is a list of services that can be used to interact with the DID subject. */ - service: ServiceAmino[]; - /** alsoKnownAs is a list of DIDs that are known to refer to the same DID subject. */ - also_known_as: string[]; -} -export interface DidDocAminoMsg { - type: "/cheqd.did.v2.DidDoc"; - value: DidDocAmino; -} -/** - * DidDoc defines a DID Document, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/ - */ -export interface DidDocSDKType { - context: string[]; - id: string; - controller: string[]; - verification_method: VerificationMethodSDKType[]; - authentication: string[]; - assertion_method: string[]; - capability_invocation: string[]; - capability_delegation: string[]; - key_agreement: string[]; - service: ServiceSDKType[]; - also_known_as: string[]; -} -/** - * VerificationMethod defines a verification method, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/#verification-methods - */ -export interface VerificationMethod { - /** - * id is the unique identifier of the verification method. - * Format: did:cheqd::# - */ - id: string; - /** - * type is the type of the verification method. - * Example: Ed25519VerificationKey2020 - */ - verificationMethodType: string; - /** - * controller is the DID of the controller of the verification method. - * Format: did:cheqd:: - */ - controller: string; - /** - * verification_material is the public key of the verification method. - * Commonly used verification material types: publicJwk, publicKeyBase58, publicKeyMultibase - */ - verificationMaterial: string; -} -export interface VerificationMethodProtoMsg { - typeUrl: "/cheqd.did.v2.VerificationMethod"; - value: Uint8Array; -} -/** - * VerificationMethod defines a verification method, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/#verification-methods - */ -export interface VerificationMethodAmino { - /** - * id is the unique identifier of the verification method. - * Format: did:cheqd::# - */ - id: string; - /** - * type is the type of the verification method. - * Example: Ed25519VerificationKey2020 - */ - verification_method_type: string; - /** - * controller is the DID of the controller of the verification method. - * Format: did:cheqd:: - */ - controller: string; - /** - * verification_material is the public key of the verification method. - * Commonly used verification material types: publicJwk, publicKeyBase58, publicKeyMultibase - */ - verification_material: string; -} -export interface VerificationMethodAminoMsg { - type: "/cheqd.did.v2.VerificationMethod"; - value: VerificationMethodAmino; -} -/** - * VerificationMethod defines a verification method, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/#verification-methods - */ -export interface VerificationMethodSDKType { - id: string; - verification_method_type: string; - controller: string; - verification_material: string; -} -/** - * Service defines a service, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/#services - */ -export interface Service { - /** - * id is the unique identifier of the service. - * Format: did:cheqd::# - */ - id: string; - /** - * type is the type of the service. - * Example: LinkedResource - */ - serviceType: string; - /** - * serviceEndpoint is the endpoint of the service. - * Example: https://example.com/endpoint - */ - serviceEndpoint: string[]; -} -export interface ServiceProtoMsg { - typeUrl: "/cheqd.did.v2.Service"; - value: Uint8Array; -} -/** - * Service defines a service, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/#services - */ -export interface ServiceAmino { - /** - * id is the unique identifier of the service. - * Format: did:cheqd::# - */ - id: string; - /** - * type is the type of the service. - * Example: LinkedResource - */ - service_type: string; - /** - * serviceEndpoint is the endpoint of the service. - * Example: https://example.com/endpoint - */ - service_endpoint: string[]; -} -export interface ServiceAminoMsg { - type: "/cheqd.did.v2.Service"; - value: ServiceAmino; -} -/** - * Service defines a service, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/#services - */ -export interface ServiceSDKType { - id: string; - service_type: string; - service_endpoint: string[]; -} -/** - * DidDocWithMetadata defines a DID Document with metadata, as defined in the DID Core specification. - * Contains the DID Document, as well as DID Document metadata. - */ -export interface DidDocWithMetadata { - /** didDocument is the DID Document. */ - didDoc: DidDoc; - /** didDocumentMetadata is the DID Document metadata. */ - metadata: Metadata; -} -export interface DidDocWithMetadataProtoMsg { - typeUrl: "/cheqd.did.v2.DidDocWithMetadata"; - value: Uint8Array; -} -/** - * DidDocWithMetadata defines a DID Document with metadata, as defined in the DID Core specification. - * Contains the DID Document, as well as DID Document metadata. - */ -export interface DidDocWithMetadataAmino { - /** didDocument is the DID Document. */ - did_doc?: DidDocAmino; - /** didDocumentMetadata is the DID Document metadata. */ - metadata?: MetadataAmino; -} -export interface DidDocWithMetadataAminoMsg { - type: "/cheqd.did.v2.DidDocWithMetadata"; - value: DidDocWithMetadataAmino; -} -/** - * DidDocWithMetadata defines a DID Document with metadata, as defined in the DID Core specification. - * Contains the DID Document, as well as DID Document metadata. - */ -export interface DidDocWithMetadataSDKType { - did_doc: DidDocSDKType; - metadata: MetadataSDKType; -} -/** - * Metadata defines DID Document metadata, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/#did-document-metadata-properties - */ -export interface Metadata { - /** - * created is the timestamp of the creation of the DID Document. - * Format: RFC3339 - * Example: 2021-03-10T15:16:17Z - */ - created: Date; - /** - * updated is the timestamp of the last update of the DID Document. - * Format: RFC3339 - * Example: 2021-03-10T15:16:17Z - */ - updated?: Date; - /** - * deactivated is a flag that indicates whether the DID Document is deactivated. - * Default: false - */ - deactivated: boolean; - /** - * version_id is the version identifier of the DID Document. - * Format: UUID - * Example: 123e4567-e89b-12d3-a456-426655440000 - */ - versionId: string; - /** - * next_version_id is the version identifier of the next version of the DID Document. - * Format: UUID - * Example: 123e4567-e89b-12d3-a456-426655440000 - */ - nextVersionId?: string; - /** - * previous_version_id is the version identifier of the previous version of the DID Document. - * Format: UUID - * Example: 123e4567-e89b-12d3-a456-426655440000 - */ - previousVersionId?: string; -} -export interface MetadataProtoMsg { - typeUrl: "/cheqd.did.v2.Metadata"; - value: Uint8Array; -} -/** - * Metadata defines DID Document metadata, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/#did-document-metadata-properties - */ -export interface MetadataAmino { - /** - * created is the timestamp of the creation of the DID Document. - * Format: RFC3339 - * Example: 2021-03-10T15:16:17Z - */ - created?: Date; - /** - * updated is the timestamp of the last update of the DID Document. - * Format: RFC3339 - * Example: 2021-03-10T15:16:17Z - */ - updated?: Date; - /** - * deactivated is a flag that indicates whether the DID Document is deactivated. - * Default: false - */ - deactivated: boolean; - /** - * version_id is the version identifier of the DID Document. - * Format: UUID - * Example: 123e4567-e89b-12d3-a456-426655440000 - */ - version_id: string; - /** - * next_version_id is the version identifier of the next version of the DID Document. - * Format: UUID - * Example: 123e4567-e89b-12d3-a456-426655440000 - */ - next_version_id: string; - /** - * previous_version_id is the version identifier of the previous version of the DID Document. - * Format: UUID - * Example: 123e4567-e89b-12d3-a456-426655440000 - */ - previous_version_id: string; -} -export interface MetadataAminoMsg { - type: "/cheqd.did.v2.Metadata"; - value: MetadataAmino; -} -/** - * Metadata defines DID Document metadata, as defined in the DID Core specification. - * Documentation: https://www.w3.org/TR/did-core/#did-document-metadata-properties - */ -export interface MetadataSDKType { - created: Date; - updated?: Date; - deactivated: boolean; - version_id: string; - next_version_id?: string; - previous_version_id?: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/fee.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/fee.ts deleted file mode 100644 index 7fbc0543b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/fee.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../cosmos/base/v1beta1/coin"; -/** FeeParams defines the parameters for the cheqd DID module fixed fee */ -export interface FeeParams { - /** - * Fixed fee for creating a DID - * - * Default: 50 CHEQ or 50000000000ncheq - */ - createDid: Coin; - /** - * Fixed fee for updating a DID - * - * Default: 25 CHEQ or 25000000000ncheq - */ - updateDid: Coin; - /** - * Fixed fee for deactivating a DID - * - * Default: 10 CHEQ or 10000000000ncheq - */ - deactivateDid: Coin; - /** - * Percentage of the fixed fee that will be burned - * - * Default: 0.5 (50%) - */ - burnFactor: string; -} -export interface FeeParamsProtoMsg { - typeUrl: "/cheqd.did.v2.FeeParams"; - value: Uint8Array; -} -/** FeeParams defines the parameters for the cheqd DID module fixed fee */ -export interface FeeParamsAmino { - /** - * Fixed fee for creating a DID - * - * Default: 50 CHEQ or 50000000000ncheq - */ - create_did?: CoinAmino; - /** - * Fixed fee for updating a DID - * - * Default: 25 CHEQ or 25000000000ncheq - */ - update_did?: CoinAmino; - /** - * Fixed fee for deactivating a DID - * - * Default: 10 CHEQ or 10000000000ncheq - */ - deactivate_did?: CoinAmino; - /** - * Percentage of the fixed fee that will be burned - * - * Default: 0.5 (50%) - */ - burn_factor: string; -} -export interface FeeParamsAminoMsg { - type: "/cheqd.did.v2.FeeParams"; - value: FeeParamsAmino; -} -/** FeeParams defines the parameters for the cheqd DID module fixed fee */ -export interface FeeParamsSDKType { - create_did: CoinSDKType; - update_did: CoinSDKType; - deactivate_did: CoinSDKType; - burn_factor: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/genesis.ts deleted file mode 100644 index e1c22076e..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/genesis.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { - DidDocWithMetadata, - DidDocWithMetadataAmino, - DidDocWithMetadataSDKType, -} from "./diddoc"; -import { FeeParams, FeeParamsAmino, FeeParamsSDKType } from "./fee"; -/** - * DidDocVersionSet contains all versions of DID Documents and their metadata for a given DID. - * The latest version of the DID Document set is stored in the latest_version field. - */ -export interface DidDocVersionSet { - /** Latest version of the DID Document set */ - latestVersion: string; - /** All versions of the DID Document set */ - didDocs: DidDocWithMetadata[]; -} -export interface DidDocVersionSetProtoMsg { - typeUrl: "/cheqd.did.v2.DidDocVersionSet"; - value: Uint8Array; -} -/** - * DidDocVersionSet contains all versions of DID Documents and their metadata for a given DID. - * The latest version of the DID Document set is stored in the latest_version field. - */ -export interface DidDocVersionSetAmino { - /** Latest version of the DID Document set */ - latest_version: string; - /** All versions of the DID Document set */ - did_docs: DidDocWithMetadataAmino[]; -} -export interface DidDocVersionSetAminoMsg { - type: "/cheqd.did.v2.DidDocVersionSet"; - value: DidDocVersionSetAmino; -} -/** - * DidDocVersionSet contains all versions of DID Documents and their metadata for a given DID. - * The latest version of the DID Document set is stored in the latest_version field. - */ -export interface DidDocVersionSetSDKType { - latest_version: string; - did_docs: DidDocWithMetadataSDKType[]; -} -/** GenesisState defines the cheqd DID module's genesis state. */ -export interface GenesisState { - /** - * Namespace for the DID module - * Example: mainnet, testnet, local - */ - didNamespace: string; - /** All DID Document version sets (contains all versions of all DID Documents) */ - versionSets: DidDocVersionSet[]; - /** - * Fee parameters for the DID module - * Defines fixed fees and burn percentage for each DID operation type (create, update, delete) - */ - feeParams: FeeParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cheqd.did.v2.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the cheqd DID module's genesis state. */ -export interface GenesisStateAmino { - /** - * Namespace for the DID module - * Example: mainnet, testnet, local - */ - did_namespace: string; - /** All DID Document version sets (contains all versions of all DID Documents) */ - version_sets: DidDocVersionSetAmino[]; - /** - * Fee parameters for the DID module - * Defines fixed fees and burn percentage for each DID operation type (create, update, delete) - */ - fee_params?: FeeParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "/cheqd.did.v2.GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the cheqd DID module's genesis state. */ -export interface GenesisStateSDKType { - did_namespace: string; - version_sets: DidDocVersionSetSDKType[]; - fee_params: FeeParamsSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/tx.ts deleted file mode 100644 index 53ed3d2ca..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/did/v2/tx.ts +++ /dev/null @@ -1,570 +0,0 @@ -import { - VerificationMethod, - VerificationMethodAmino, - VerificationMethodSDKType, - Service, - ServiceAmino, - ServiceSDKType, - DidDocWithMetadata, - DidDocWithMetadataAmino, - DidDocWithMetadataSDKType, -} from "./diddoc"; -/** - * MsgCreateDidDoc defines the Msg/CreateDidDoc request type. - * It describes the parameters of a request for creating a new DID document. - */ -export interface MsgCreateDidDoc { - /** Payload containing the DID Document to be created */ - payload: MsgCreateDidDocPayload; - /** Signatures of the DID Document's controller(s) */ - signatures: SignInfo[]; -} -export interface MsgCreateDidDocProtoMsg { - typeUrl: "/cheqd.did.v2.MsgCreateDidDoc"; - value: Uint8Array; -} -/** - * MsgCreateDidDoc defines the Msg/CreateDidDoc request type. - * It describes the parameters of a request for creating a new DID document. - */ -export interface MsgCreateDidDocAmino { - /** Payload containing the DID Document to be created */ - payload?: MsgCreateDidDocPayloadAmino; - /** Signatures of the DID Document's controller(s) */ - signatures: SignInfoAmino[]; -} -export interface MsgCreateDidDocAminoMsg { - type: "/cheqd.did.v2.MsgCreateDidDoc"; - value: MsgCreateDidDocAmino; -} -/** - * MsgCreateDidDoc defines the Msg/CreateDidDoc request type. - * It describes the parameters of a request for creating a new DID document. - */ -export interface MsgCreateDidDocSDKType { - payload: MsgCreateDidDocPayloadSDKType; - signatures: SignInfoSDKType[]; -} -/** - * MsgUpdateDidDoc defines the Msg/UpdateDidDoc request type. - * It describes the parameters of a request for updating an existing DID document. - */ -export interface MsgUpdateDidDoc { - /** Payload containing the DID Document to be updated. This should be updated the DID Document. */ - payload: MsgUpdateDidDocPayload; - /** Signatures of the DID Document's controller(s) */ - signatures: SignInfo[]; -} -export interface MsgUpdateDidDocProtoMsg { - typeUrl: "/cheqd.did.v2.MsgUpdateDidDoc"; - value: Uint8Array; -} -/** - * MsgUpdateDidDoc defines the Msg/UpdateDidDoc request type. - * It describes the parameters of a request for updating an existing DID document. - */ -export interface MsgUpdateDidDocAmino { - /** Payload containing the DID Document to be updated. This should be updated the DID Document. */ - payload?: MsgUpdateDidDocPayloadAmino; - /** Signatures of the DID Document's controller(s) */ - signatures: SignInfoAmino[]; -} -export interface MsgUpdateDidDocAminoMsg { - type: "/cheqd.did.v2.MsgUpdateDidDoc"; - value: MsgUpdateDidDocAmino; -} -/** - * MsgUpdateDidDoc defines the Msg/UpdateDidDoc request type. - * It describes the parameters of a request for updating an existing DID document. - */ -export interface MsgUpdateDidDocSDKType { - payload: MsgUpdateDidDocPayloadSDKType; - signatures: SignInfoSDKType[]; -} -/** - * MsgDeactivateDidDoc defines the Msg/DeactivateDidDoc request type. - * It describes the parameters of a request for deactivating an existing DID document. - */ -export interface MsgDeactivateDidDoc { - /** Payload containing the DID Document to be deactivated */ - payload: MsgDeactivateDidDocPayload; - /** Signatures of the DID Document's controller(s) */ - signatures: SignInfo[]; -} -export interface MsgDeactivateDidDocProtoMsg { - typeUrl: "/cheqd.did.v2.MsgDeactivateDidDoc"; - value: Uint8Array; -} -/** - * MsgDeactivateDidDoc defines the Msg/DeactivateDidDoc request type. - * It describes the parameters of a request for deactivating an existing DID document. - */ -export interface MsgDeactivateDidDocAmino { - /** Payload containing the DID Document to be deactivated */ - payload?: MsgDeactivateDidDocPayloadAmino; - /** Signatures of the DID Document's controller(s) */ - signatures: SignInfoAmino[]; -} -export interface MsgDeactivateDidDocAminoMsg { - type: "/cheqd.did.v2.MsgDeactivateDidDoc"; - value: MsgDeactivateDidDocAmino; -} -/** - * MsgDeactivateDidDoc defines the Msg/DeactivateDidDoc request type. - * It describes the parameters of a request for deactivating an existing DID document. - */ -export interface MsgDeactivateDidDocSDKType { - payload: MsgDeactivateDidDocPayloadSDKType; - signatures: SignInfoSDKType[]; -} -/** SignInfo defines the structure of a DID Document controller's signature */ -export interface SignInfo { - /** Verification method ID of the DID Controller */ - verificationMethodId: string; - /** Signature of the DID Document controller */ - signature: Uint8Array; -} -export interface SignInfoProtoMsg { - typeUrl: "/cheqd.did.v2.SignInfo"; - value: Uint8Array; -} -/** SignInfo defines the structure of a DID Document controller's signature */ -export interface SignInfoAmino { - /** Verification method ID of the DID Controller */ - verification_method_id: string; - /** Signature of the DID Document controller */ - signature: Uint8Array; -} -export interface SignInfoAminoMsg { - type: "/cheqd.did.v2.SignInfo"; - value: SignInfoAmino; -} -/** SignInfo defines the structure of a DID Document controller's signature */ -export interface SignInfoSDKType { - verification_method_id: string; - signature: Uint8Array; -} -/** MsgCreateDidDocPayload defines the structure of the payload for creating a new DID document */ -export interface MsgCreateDidDocPayload { - /** - * context is a list of URIs used to identify the context of the DID document. - * Default: https://www.w3.org/ns/did/v1 - */ - context: string[]; - /** - * id is the DID of the DID document. - * Format: did:cheqd:: - */ - id: string; - /** controller is a list of DIDs that are allowed to control the DID document. */ - controller: string[]; - /** - * verificationMethod is a list of verification methods that can be used to - * verify a digital signature or cryptographic proof. - * Documentation: https://www.w3.org/TR/did-core/#verification-methods - * - * Required fields: - * - id: A unique identifier for the verification method - * - type: A supported verification method type (supported: Ed25519VerificationKey2018, Ed25519VerificationKey2020, JsonWebKey2020) - * - controller: DID of the controller of the verification method - * - verification_material: Public key of the verification method (supported: publicJwk, publicKeyBase58, publicKeyMultibase) - */ - verificationMethod: VerificationMethod[]; - /** - * authentication is a list of verification methods that can be used to - * authenticate as the DID subject. - */ - authentication: string[]; - /** - * assertionMethod is a list of verification methods that can be used to - * assert statements as the DID subject. - */ - assertionMethod: string[]; - /** - * capabilityInvocation is a list of verification methods that can be used to - * invoke capabilities as the DID subject. - */ - capabilityInvocation: string[]; - /** - * capabilityDelegation is a list of verification methods that can be used to - * delegate capabilities as the DID subject. - */ - capabilityDelegation: string[]; - /** - * keyAgreement is a list of verification methods that can be used to perform - * key agreement as the DID subject. - */ - keyAgreement: string[]; - /** - * service is a list of services that can be used to interact with the DID subject. - * Documentation: https://www.w3.org/TR/did-core/#services - * - * Required fields: - * - id: A unique identifier for the service - * - type: A service type defined in DID Specification Registries - * - service_endpoint: Service endpoint(s), provided as a URI or set of URIs - */ - service: Service[]; - /** alsoKnownAs is a list of DIDs that are known to refer to the same DID subject. */ - alsoKnownAs: string[]; - /** - * Version ID of the DID Document to be created - * - * Format: - */ - versionId: string; -} -export interface MsgCreateDidDocPayloadProtoMsg { - typeUrl: "/cheqd.did.v2.MsgCreateDidDocPayload"; - value: Uint8Array; -} -/** MsgCreateDidDocPayload defines the structure of the payload for creating a new DID document */ -export interface MsgCreateDidDocPayloadAmino { - /** - * context is a list of URIs used to identify the context of the DID document. - * Default: https://www.w3.org/ns/did/v1 - */ - context: string[]; - /** - * id is the DID of the DID document. - * Format: did:cheqd:: - */ - id: string; - /** controller is a list of DIDs that are allowed to control the DID document. */ - controller: string[]; - /** - * verificationMethod is a list of verification methods that can be used to - * verify a digital signature or cryptographic proof. - * Documentation: https://www.w3.org/TR/did-core/#verification-methods - * - * Required fields: - * - id: A unique identifier for the verification method - * - type: A supported verification method type (supported: Ed25519VerificationKey2018, Ed25519VerificationKey2020, JsonWebKey2020) - * - controller: DID of the controller of the verification method - * - verification_material: Public key of the verification method (supported: publicJwk, publicKeyBase58, publicKeyMultibase) - */ - verification_method: VerificationMethodAmino[]; - /** - * authentication is a list of verification methods that can be used to - * authenticate as the DID subject. - */ - authentication: string[]; - /** - * assertionMethod is a list of verification methods that can be used to - * assert statements as the DID subject. - */ - assertion_method: string[]; - /** - * capabilityInvocation is a list of verification methods that can be used to - * invoke capabilities as the DID subject. - */ - capability_invocation: string[]; - /** - * capabilityDelegation is a list of verification methods that can be used to - * delegate capabilities as the DID subject. - */ - capability_delegation: string[]; - /** - * keyAgreement is a list of verification methods that can be used to perform - * key agreement as the DID subject. - */ - key_agreement: string[]; - /** - * service is a list of services that can be used to interact with the DID subject. - * Documentation: https://www.w3.org/TR/did-core/#services - * - * Required fields: - * - id: A unique identifier for the service - * - type: A service type defined in DID Specification Registries - * - service_endpoint: Service endpoint(s), provided as a URI or set of URIs - */ - service: ServiceAmino[]; - /** alsoKnownAs is a list of DIDs that are known to refer to the same DID subject. */ - also_known_as: string[]; - /** - * Version ID of the DID Document to be created - * - * Format: - */ - version_id: string; -} -export interface MsgCreateDidDocPayloadAminoMsg { - type: "/cheqd.did.v2.MsgCreateDidDocPayload"; - value: MsgCreateDidDocPayloadAmino; -} -/** MsgCreateDidDocPayload defines the structure of the payload for creating a new DID document */ -export interface MsgCreateDidDocPayloadSDKType { - context: string[]; - id: string; - controller: string[]; - verification_method: VerificationMethodSDKType[]; - authentication: string[]; - assertion_method: string[]; - capability_invocation: string[]; - capability_delegation: string[]; - key_agreement: string[]; - service: ServiceSDKType[]; - also_known_as: string[]; - version_id: string; -} -/** MsgCreateDidDocResponse defines response type for Msg/CreateDidDoc. */ -export interface MsgCreateDidDocResponse { - /** Return the created DID Document with metadata */ - value: DidDocWithMetadata; -} -export interface MsgCreateDidDocResponseProtoMsg { - typeUrl: "/cheqd.did.v2.MsgCreateDidDocResponse"; - value: Uint8Array; -} -/** MsgCreateDidDocResponse defines response type for Msg/CreateDidDoc. */ -export interface MsgCreateDidDocResponseAmino { - /** Return the created DID Document with metadata */ - value?: DidDocWithMetadataAmino; -} -export interface MsgCreateDidDocResponseAminoMsg { - type: "/cheqd.did.v2.MsgCreateDidDocResponse"; - value: MsgCreateDidDocResponseAmino; -} -/** MsgCreateDidDocResponse defines response type for Msg/CreateDidDoc. */ -export interface MsgCreateDidDocResponseSDKType { - value: DidDocWithMetadataSDKType; -} -/** MsgUpdateDidDocPayload defines the structure of the payload for updating an existing DID document */ -export interface MsgUpdateDidDocPayload { - /** - * context is a list of URIs used to identify the context of the DID document. - * Default: https://www.w3.org/ns/did/v1 - */ - context: string[]; - /** - * id is the DID of the DID document. - * Format: did:cheqd:: - */ - id: string; - /** controller is a list of DIDs that are allowed to control the DID document. */ - controller: string[]; - /** - * verificationMethod is a list of verification methods that can be used to - * verify a digital signature or cryptographic proof. - * Documentation: https://www.w3.org/TR/did-core/#verification-methods - * - * Required fields: - * - id: A unique identifier for the verification method - * - type: A supported verification method type (supported: Ed25519VerificationKey2018, Ed25519VerificationKey2020, JsonWebKey2020) - * - controller: DID of the controller of the verification method - * - verification_material: Public key of the verification method (supported: publicJwk, publicKeyBase58, publicKeyMultibase) - */ - verificationMethod: VerificationMethod[]; - /** - * authentication is a list of verification methods that can be used to - * authenticate as the DID subject. - */ - authentication: string[]; - /** - * assertionMethod is a list of verification methods that can be used to - * assert statements as the DID subject. - */ - assertionMethod: string[]; - /** - * capabilityInvocation is a list of verification methods that can be used to - * invoke capabilities as the DID subject. - */ - capabilityInvocation: string[]; - /** - * capabilityDelegation is a list of verification methods that can be used to - * delegate capabilities as the DID subject. - */ - capabilityDelegation: string[]; - /** - * keyAgreement is a list of verification methods that can be used to perform - * key agreement as the DID subject. - */ - keyAgreement: string[]; - /** - * service is a list of services that can be used to interact with the DID subject. - * Documentation: https://www.w3.org/TR/did-core/#services - * - * Required fields: - * - id: A unique identifier for the service - * - type: A service type defined in DID Specification Registries - * - service_endpoint: Service endpoint(s), provided as a URI or set of URIs - */ - service: Service[]; - /** alsoKnownAs is a list of DIDs that are known to refer to the same DID subject. */ - alsoKnownAs: string[]; - /** - * Updated version ID of the DID Document. - * Links to next/previous versions of the DID Document will be automatically updated. - * - * Format: - */ - versionId: string; -} -export interface MsgUpdateDidDocPayloadProtoMsg { - typeUrl: "/cheqd.did.v2.MsgUpdateDidDocPayload"; - value: Uint8Array; -} -/** MsgUpdateDidDocPayload defines the structure of the payload for updating an existing DID document */ -export interface MsgUpdateDidDocPayloadAmino { - /** - * context is a list of URIs used to identify the context of the DID document. - * Default: https://www.w3.org/ns/did/v1 - */ - context: string[]; - /** - * id is the DID of the DID document. - * Format: did:cheqd:: - */ - id: string; - /** controller is a list of DIDs that are allowed to control the DID document. */ - controller: string[]; - /** - * verificationMethod is a list of verification methods that can be used to - * verify a digital signature or cryptographic proof. - * Documentation: https://www.w3.org/TR/did-core/#verification-methods - * - * Required fields: - * - id: A unique identifier for the verification method - * - type: A supported verification method type (supported: Ed25519VerificationKey2018, Ed25519VerificationKey2020, JsonWebKey2020) - * - controller: DID of the controller of the verification method - * - verification_material: Public key of the verification method (supported: publicJwk, publicKeyBase58, publicKeyMultibase) - */ - verification_method: VerificationMethodAmino[]; - /** - * authentication is a list of verification methods that can be used to - * authenticate as the DID subject. - */ - authentication: string[]; - /** - * assertionMethod is a list of verification methods that can be used to - * assert statements as the DID subject. - */ - assertion_method: string[]; - /** - * capabilityInvocation is a list of verification methods that can be used to - * invoke capabilities as the DID subject. - */ - capability_invocation: string[]; - /** - * capabilityDelegation is a list of verification methods that can be used to - * delegate capabilities as the DID subject. - */ - capability_delegation: string[]; - /** - * keyAgreement is a list of verification methods that can be used to perform - * key agreement as the DID subject. - */ - key_agreement: string[]; - /** - * service is a list of services that can be used to interact with the DID subject. - * Documentation: https://www.w3.org/TR/did-core/#services - * - * Required fields: - * - id: A unique identifier for the service - * - type: A service type defined in DID Specification Registries - * - service_endpoint: Service endpoint(s), provided as a URI or set of URIs - */ - service: ServiceAmino[]; - /** alsoKnownAs is a list of DIDs that are known to refer to the same DID subject. */ - also_known_as: string[]; - /** - * Updated version ID of the DID Document. - * Links to next/previous versions of the DID Document will be automatically updated. - * - * Format: - */ - version_id: string; -} -export interface MsgUpdateDidDocPayloadAminoMsg { - type: "/cheqd.did.v2.MsgUpdateDidDocPayload"; - value: MsgUpdateDidDocPayloadAmino; -} -/** MsgUpdateDidDocPayload defines the structure of the payload for updating an existing DID document */ -export interface MsgUpdateDidDocPayloadSDKType { - context: string[]; - id: string; - controller: string[]; - verification_method: VerificationMethodSDKType[]; - authentication: string[]; - assertion_method: string[]; - capability_invocation: string[]; - capability_delegation: string[]; - key_agreement: string[]; - service: ServiceSDKType[]; - also_known_as: string[]; - version_id: string; -} -export interface MsgUpdateDidDocResponse { - /** Return the updated DID Document with metadata */ - value: DidDocWithMetadata; -} -export interface MsgUpdateDidDocResponseProtoMsg { - typeUrl: "/cheqd.did.v2.MsgUpdateDidDocResponse"; - value: Uint8Array; -} -export interface MsgUpdateDidDocResponseAmino { - /** Return the updated DID Document with metadata */ - value?: DidDocWithMetadataAmino; -} -export interface MsgUpdateDidDocResponseAminoMsg { - type: "/cheqd.did.v2.MsgUpdateDidDocResponse"; - value: MsgUpdateDidDocResponseAmino; -} -export interface MsgUpdateDidDocResponseSDKType { - value: DidDocWithMetadataSDKType; -} -/** MsgDeactivateDidDocPayload defines the structure of the payload for deactivating an existing DID document */ -export interface MsgDeactivateDidDocPayload { - /** Unique identifier of the DID Document to be deactivated */ - id: string; - /** - * Version ID of the DID Document to be deactivated - * This is primarily used as a sanity check to ensure that the correct DID Document is being deactivated. - */ - versionId: string; -} -export interface MsgDeactivateDidDocPayloadProtoMsg { - typeUrl: "/cheqd.did.v2.MsgDeactivateDidDocPayload"; - value: Uint8Array; -} -/** MsgDeactivateDidDocPayload defines the structure of the payload for deactivating an existing DID document */ -export interface MsgDeactivateDidDocPayloadAmino { - /** Unique identifier of the DID Document to be deactivated */ - id: string; - /** - * Version ID of the DID Document to be deactivated - * This is primarily used as a sanity check to ensure that the correct DID Document is being deactivated. - */ - version_id: string; -} -export interface MsgDeactivateDidDocPayloadAminoMsg { - type: "/cheqd.did.v2.MsgDeactivateDidDocPayload"; - value: MsgDeactivateDidDocPayloadAmino; -} -/** MsgDeactivateDidDocPayload defines the structure of the payload for deactivating an existing DID document */ -export interface MsgDeactivateDidDocPayloadSDKType { - id: string; - version_id: string; -} -/** MsgDeactivateDidDocResponse defines response type for Msg/DeactivateDidDoc. */ -export interface MsgDeactivateDidDocResponse { - /** Return the deactivated DID Document with metadata */ - value: DidDocWithMetadata; -} -export interface MsgDeactivateDidDocResponseProtoMsg { - typeUrl: "/cheqd.did.v2.MsgDeactivateDidDocResponse"; - value: Uint8Array; -} -/** MsgDeactivateDidDocResponse defines response type for Msg/DeactivateDidDoc. */ -export interface MsgDeactivateDidDocResponseAmino { - /** Return the deactivated DID Document with metadata */ - value?: DidDocWithMetadataAmino; -} -export interface MsgDeactivateDidDocResponseAminoMsg { - type: "/cheqd.did.v2.MsgDeactivateDidDocResponse"; - value: MsgDeactivateDidDocResponseAmino; -} -/** MsgDeactivateDidDocResponse defines response type for Msg/DeactivateDidDoc. */ -export interface MsgDeactivateDidDocResponseSDKType { - value: DidDocWithMetadataSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v1/genesis.ts deleted file mode 100644 index 6b6cdf24e..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v1/genesis.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Resource, ResourceAmino, ResourceSDKType } from "./resource"; -/** GenesisState defines the cheqd module's genesis state. */ -export interface GenesisState { - resourceList: Resource[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cheqdid.cheqdnode.resource.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the cheqd module's genesis state. */ -export interface GenesisStateAmino { - resourceList: ResourceAmino[]; -} -export interface GenesisStateAminoMsg { - type: "/cheqdid.cheqdnode.resource.v1.GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the cheqd module's genesis state. */ -export interface GenesisStateSDKType { - resourceList: ResourceSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v1/resource.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v1/resource.ts deleted file mode 100644 index 63eae69e7..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v1/resource.ts +++ /dev/null @@ -1,61 +0,0 @@ -export interface Resource { - header: ResourceHeader; - data: Uint8Array; -} -export interface ResourceProtoMsg { - typeUrl: "/cheqdid.cheqdnode.resource.v1.Resource"; - value: Uint8Array; -} -export interface ResourceAmino { - header?: ResourceHeaderAmino; - data: Uint8Array; -} -export interface ResourceAminoMsg { - type: "/cheqdid.cheqdnode.resource.v1.Resource"; - value: ResourceAmino; -} -export interface ResourceSDKType { - header: ResourceHeaderSDKType; - data: Uint8Array; -} -export interface ResourceHeader { - collectionId: string; - id: string; - name: string; - resourceType: string; - mediaType: string; - created: string; - checksum: Uint8Array; - previousVersionId: string; - nextVersionId: string; -} -export interface ResourceHeaderProtoMsg { - typeUrl: "/cheqdid.cheqdnode.resource.v1.ResourceHeader"; - value: Uint8Array; -} -export interface ResourceHeaderAmino { - collection_id: string; - id: string; - name: string; - resource_type: string; - media_type: string; - created: string; - checksum: Uint8Array; - previous_version_id: string; - next_version_id: string; -} -export interface ResourceHeaderAminoMsg { - type: "/cheqdid.cheqdnode.resource.v1.ResourceHeader"; - value: ResourceHeaderAmino; -} -export interface ResourceHeaderSDKType { - collection_id: string; - id: string; - name: string; - resource_type: string; - media_type: string; - created: string; - checksum: Uint8Array; - previous_version_id: string; - next_version_id: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v1/tx.ts deleted file mode 100644 index e18c7cd74..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v1/tx.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { SignInfo, SignInfoAmino, SignInfoSDKType } from "../../did/v1/tx"; -import { Resource, ResourceAmino, ResourceSDKType } from "./resource"; -/** this line is used by starport scaffolding # proto/tx/message */ -export interface MsgCreateResource { - payload: MsgCreateResourcePayload; - signatures: SignInfo[]; -} -export interface MsgCreateResourceProtoMsg { - typeUrl: "/cheqdid.cheqdnode.resource.v1.MsgCreateResource"; - value: Uint8Array; -} -/** this line is used by starport scaffolding # proto/tx/message */ -export interface MsgCreateResourceAmino { - payload?: MsgCreateResourcePayloadAmino; - signatures: SignInfoAmino[]; -} -export interface MsgCreateResourceAminoMsg { - type: "/cheqdid.cheqdnode.resource.v1.MsgCreateResource"; - value: MsgCreateResourceAmino; -} -/** this line is used by starport scaffolding # proto/tx/message */ -export interface MsgCreateResourceSDKType { - payload: MsgCreateResourcePayloadSDKType; - signatures: SignInfoSDKType[]; -} -export interface MsgCreateResourcePayload { - collectionId: string; - id: string; - name: string; - resourceType: string; - data: Uint8Array; -} -export interface MsgCreateResourcePayloadProtoMsg { - typeUrl: "/cheqdid.cheqdnode.resource.v1.MsgCreateResourcePayload"; - value: Uint8Array; -} -export interface MsgCreateResourcePayloadAmino { - collection_id: string; - id: string; - name: string; - resource_type: string; - data: Uint8Array; -} -export interface MsgCreateResourcePayloadAminoMsg { - type: "/cheqdid.cheqdnode.resource.v1.MsgCreateResourcePayload"; - value: MsgCreateResourcePayloadAmino; -} -export interface MsgCreateResourcePayloadSDKType { - collection_id: string; - id: string; - name: string; - resource_type: string; - data: Uint8Array; -} -export interface MsgCreateResourceResponse { - /** Not necessary */ - resource: Resource; -} -export interface MsgCreateResourceResponseProtoMsg { - typeUrl: "/cheqdid.cheqdnode.resource.v1.MsgCreateResourceResponse"; - value: Uint8Array; -} -export interface MsgCreateResourceResponseAmino { - /** Not necessary */ - resource?: ResourceAmino; -} -export interface MsgCreateResourceResponseAminoMsg { - type: "/cheqdid.cheqdnode.resource.v1.MsgCreateResourceResponse"; - value: MsgCreateResourceResponseAmino; -} -export interface MsgCreateResourceResponseSDKType { - resource: ResourceSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/fee.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/fee.ts deleted file mode 100644 index 49afaf660..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/fee.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../cosmos/base/v1beta1/coin"; -/** - * FeeParams defines the parameters for the cheqd Resource module fixed fee. - * Creation requests for different IANA media types are charged different fees. - */ -export interface FeeParams { - /** - * Fixed fee for creating a resource with media type 'image/*' - * - * Default: 10 CHEQ or 10000000000ncheq - */ - image: Coin; - /** - * Fixed fee for creating a resource with media type 'application/json' - * - * Default: 2.5 CHEQ or 2500000000ncheq - */ - json: Coin; - /** - * Fixed fee for creating a resource with all other media types - * - * Default: 5 CHEQ or 5000000000ncheq - */ - default: Coin; - /** - * Percentage of the fixed fee that will be burned - * - * Default: 0.5 (50%) - */ - burnFactor: string; -} -export interface FeeParamsProtoMsg { - typeUrl: "/cheqd.resource.v2.FeeParams"; - value: Uint8Array; -} -/** - * FeeParams defines the parameters for the cheqd Resource module fixed fee. - * Creation requests for different IANA media types are charged different fees. - */ -export interface FeeParamsAmino { - /** - * Fixed fee for creating a resource with media type 'image/*' - * - * Default: 10 CHEQ or 10000000000ncheq - */ - image?: CoinAmino; - /** - * Fixed fee for creating a resource with media type 'application/json' - * - * Default: 2.5 CHEQ or 2500000000ncheq - */ - json?: CoinAmino; - /** - * Fixed fee for creating a resource with all other media types - * - * Default: 5 CHEQ or 5000000000ncheq - */ - default?: CoinAmino; - /** - * Percentage of the fixed fee that will be burned - * - * Default: 0.5 (50%) - */ - burn_factor: string; -} -export interface FeeParamsAminoMsg { - type: "/cheqd.resource.v2.FeeParams"; - value: FeeParamsAmino; -} -/** - * FeeParams defines the parameters for the cheqd Resource module fixed fee. - * Creation requests for different IANA media types are charged different fees. - */ -export interface FeeParamsSDKType { - image: CoinSDKType; - json: CoinSDKType; - default: CoinSDKType; - burn_factor: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/genesis.ts deleted file mode 100644 index 3b98eb1df..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/genesis.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { - ResourceWithMetadata, - ResourceWithMetadataAmino, - ResourceWithMetadataSDKType, -} from "./resource"; -import { FeeParams, FeeParamsAmino, FeeParamsSDKType } from "./fee"; -/** GenesisState defines the chqed Resource module's genesis state */ -export interface GenesisState { - /** All Resources with metadata */ - resources: ResourceWithMetadata[]; - /** - * Fee parameters for the Resource module - * Defines fixed fees and burn percentage for resources - */ - feeParams: FeeParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cheqd.resource.v2.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the chqed Resource module's genesis state */ -export interface GenesisStateAmino { - /** All Resources with metadata */ - resources: ResourceWithMetadataAmino[]; - /** - * Fee parameters for the Resource module - * Defines fixed fees and burn percentage for resources - */ - fee_params?: FeeParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "/cheqd.resource.v2.GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the chqed Resource module's genesis state */ -export interface GenesisStateSDKType { - resources: ResourceWithMetadataSDKType[]; - fee_params: FeeParamsSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/resource.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/resource.ts deleted file mode 100644 index e9027a8c1..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/resource.ts +++ /dev/null @@ -1,265 +0,0 @@ -/** Resource stores the contents of a DID-Linked Resource */ -export interface Resource { - /** bytes is the raw data of the Resource */ - data: Uint8Array; -} -export interface ResourceProtoMsg { - typeUrl: "/cheqd.resource.v2.Resource"; - value: Uint8Array; -} -/** Resource stores the contents of a DID-Linked Resource */ -export interface ResourceAmino { - /** bytes is the raw data of the Resource */ - data: Uint8Array; -} -export interface ResourceAminoMsg { - type: "/cheqd.resource.v2.Resource"; - value: ResourceAmino; -} -/** Resource stores the contents of a DID-Linked Resource */ -export interface ResourceSDKType { - data: Uint8Array; -} -/** Metadata stores the metadata of a DID-Linked Resource */ -export interface Metadata { - /** - * collection_id is the ID of the collection that the Resource belongs to. Defined client-side. - * This field is the unique identifier of the DID linked to this Resource - * Format: - * - * Examples: - * - c82f2b02-bdab-4dd7-b833-3e143745d612 - * - wGHEXrZvJxR8vw5P3UWH1j - */ - collectionId: string; - /** - * id is the ID of the Resource. Defined client-side. - * This field is a unique identifier for this specific version of the Resource. - * Format: - */ - id: string; - /** - * name is a human-readable name for the Resource. Defined client-side. - * Does not change between different versions. - * Example: PassportSchema, EducationTrustRegistry - */ - name: string; - /** - * version is a human-readable semantic version for the Resource. Defined client-side. - * Stored as a string. OPTIONAL. - * Example: 1.0.0, v2.1.0 - */ - version?: string; - /** - * resource_type is a Resource type that identifies what the Resource is. Defined client-side. - * This is NOT the same as the resource's media type. - * Example: AnonCredsSchema, StatusList2021 - */ - resourceType: string; - /** List of alternative URIs for the SAME Resource. */ - alsoKnownAs?: AlternativeUri[]; - /** - * media_type is IANA media type of the Resource. Defined ledger-side. - * Example: application/json, image/png - */ - mediaType: string; - /** - * created is the time at which the Resource was created. Defined ledger-side. - * Format: RFC3339 - * Example: 2021-01-01T00:00:00Z - */ - created: Date; - /** - * checksum is a SHA-256 checksum hash of the Resource. Defined ledger-side. - * Example: d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f - */ - checksum: string; - /** - * previous_version_id is the ID of the previous version of the Resource. Defined ledger-side. - * This is based on the Resource's name and Resource type to determine whether it's the same Resource. - * Format: - */ - previousVersionId?: string; - /** - * next_version_id is the ID of the next version of the Resource. Defined ledger-side. - * This is based on the Resource's name and Resource type to determine whether it's the same Resource. - * Format: - */ - nextVersionId?: string; -} -export interface MetadataProtoMsg { - typeUrl: "/cheqd.resource.v2.Metadata"; - value: Uint8Array; -} -/** Metadata stores the metadata of a DID-Linked Resource */ -export interface MetadataAmino { - /** - * collection_id is the ID of the collection that the Resource belongs to. Defined client-side. - * This field is the unique identifier of the DID linked to this Resource - * Format: - * - * Examples: - * - c82f2b02-bdab-4dd7-b833-3e143745d612 - * - wGHEXrZvJxR8vw5P3UWH1j - */ - collection_id: string; - /** - * id is the ID of the Resource. Defined client-side. - * This field is a unique identifier for this specific version of the Resource. - * Format: - */ - id: string; - /** - * name is a human-readable name for the Resource. Defined client-side. - * Does not change between different versions. - * Example: PassportSchema, EducationTrustRegistry - */ - name: string; - /** - * version is a human-readable semantic version for the Resource. Defined client-side. - * Stored as a string. OPTIONAL. - * Example: 1.0.0, v2.1.0 - */ - version: string; - /** - * resource_type is a Resource type that identifies what the Resource is. Defined client-side. - * This is NOT the same as the resource's media type. - * Example: AnonCredsSchema, StatusList2021 - */ - resource_type: string; - /** List of alternative URIs for the SAME Resource. */ - also_known_as: AlternativeUriAmino[]; - /** - * media_type is IANA media type of the Resource. Defined ledger-side. - * Example: application/json, image/png - */ - media_type: string; - /** - * created is the time at which the Resource was created. Defined ledger-side. - * Format: RFC3339 - * Example: 2021-01-01T00:00:00Z - */ - created?: Date; - /** - * checksum is a SHA-256 checksum hash of the Resource. Defined ledger-side. - * Example: d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f - */ - checksum: string; - /** - * previous_version_id is the ID of the previous version of the Resource. Defined ledger-side. - * This is based on the Resource's name and Resource type to determine whether it's the same Resource. - * Format: - */ - previous_version_id: string; - /** - * next_version_id is the ID of the next version of the Resource. Defined ledger-side. - * This is based on the Resource's name and Resource type to determine whether it's the same Resource. - * Format: - */ - next_version_id: string; -} -export interface MetadataAminoMsg { - type: "/cheqd.resource.v2.Metadata"; - value: MetadataAmino; -} -/** Metadata stores the metadata of a DID-Linked Resource */ -export interface MetadataSDKType { - collection_id: string; - id: string; - name: string; - version?: string; - resource_type: string; - also_known_as?: AlternativeUriSDKType[]; - media_type: string; - created: Date; - checksum: string; - previous_version_id?: string; - next_version_id?: string; -} -/** - * AlternativeUri are alternative URIs that can be used to access the Resource. - * By default, at least the DID URI equivalent of the Resource is populated. - */ -export interface AlternativeUri { - /** - * uri is the URI of the Resource. - * Examples: - * - did:cheqd:testnet:MjYxNzYKMjYxNzYK/resources/4600ea35-8916-4ac4-b412-55b8f49dd94e - * - https://resolver..cheqd.net/1.0/identifiers/did:cheqd:testnet:MjYxNzYKMjYxNzYK/resources/4600ea35-8916-4ac4-b412-55b8f49dd94e - * - https://example.com/example.json - * - https://gateway.ipfs.io/ipfs/bafybeihetj2ng3d74k7t754atv2s5dk76pcqtvxls6dntef3xa6rax25xe - * - ipfs://bafybeihetj2ng3d74k7t754atv2s5dk76pcqtvxls6dntef3xa6rax25xe - */ - uri: string; - /** - * description is a human-readable description of the URI. Defined client-side. - * Examples: - * - did-uri - * - http-uri - * - ipfs-uri - */ - description: string; -} -export interface AlternativeUriProtoMsg { - typeUrl: "/cheqd.resource.v2.AlternativeUri"; - value: Uint8Array; -} -/** - * AlternativeUri are alternative URIs that can be used to access the Resource. - * By default, at least the DID URI equivalent of the Resource is populated. - */ -export interface AlternativeUriAmino { - /** - * uri is the URI of the Resource. - * Examples: - * - did:cheqd:testnet:MjYxNzYKMjYxNzYK/resources/4600ea35-8916-4ac4-b412-55b8f49dd94e - * - https://resolver..cheqd.net/1.0/identifiers/did:cheqd:testnet:MjYxNzYKMjYxNzYK/resources/4600ea35-8916-4ac4-b412-55b8f49dd94e - * - https://example.com/example.json - * - https://gateway.ipfs.io/ipfs/bafybeihetj2ng3d74k7t754atv2s5dk76pcqtvxls6dntef3xa6rax25xe - * - ipfs://bafybeihetj2ng3d74k7t754atv2s5dk76pcqtvxls6dntef3xa6rax25xe - */ - uri: string; - /** - * description is a human-readable description of the URI. Defined client-side. - * Examples: - * - did-uri - * - http-uri - * - ipfs-uri - */ - description: string; -} -export interface AlternativeUriAminoMsg { - type: "/cheqd.resource.v2.AlternativeUri"; - value: AlternativeUriAmino; -} -/** - * AlternativeUri are alternative URIs that can be used to access the Resource. - * By default, at least the DID URI equivalent of the Resource is populated. - */ -export interface AlternativeUriSDKType { - uri: string; - description: string; -} -/** ResourceWithMetadata describes the overall structure of a DID-Linked Resource */ -export interface ResourceWithMetadata { - resource: Resource; - metadata: Metadata; -} -export interface ResourceWithMetadataProtoMsg { - typeUrl: "/cheqd.resource.v2.ResourceWithMetadata"; - value: Uint8Array; -} -/** ResourceWithMetadata describes the overall structure of a DID-Linked Resource */ -export interface ResourceWithMetadataAmino { - resource?: ResourceAmino; - metadata?: MetadataAmino; -} -export interface ResourceWithMetadataAminoMsg { - type: "/cheqd.resource.v2.ResourceWithMetadata"; - value: ResourceWithMetadataAmino; -} -/** ResourceWithMetadata describes the overall structure of a DID-Linked Resource */ -export interface ResourceWithMetadataSDKType { - resource: ResourceSDKType; - metadata: MetadataSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/tx.ts deleted file mode 100644 index 6c1d552ce..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqd/resource/v2/tx.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { SignInfo, SignInfoAmino, SignInfoSDKType } from "../../did/v2/tx"; -import { - AlternativeUri, - AlternativeUriAmino, - AlternativeUriSDKType, - Metadata, - MetadataAmino, - MetadataSDKType, -} from "./resource"; -/** - * MsgCreateResource defines the Msg/CreateResource request type. - * It describes the parameters of a request for creating a resource. - */ -export interface MsgCreateResource { - /** Payload containing the resource to be created. */ - payload: MsgCreateResourcePayload; - /** Signatures of the corresponding DID Document's controller(s). */ - signatures: SignInfo[]; -} -export interface MsgCreateResourceProtoMsg { - typeUrl: "/cheqd.resource.v2.MsgCreateResource"; - value: Uint8Array; -} -/** - * MsgCreateResource defines the Msg/CreateResource request type. - * It describes the parameters of a request for creating a resource. - */ -export interface MsgCreateResourceAmino { - /** Payload containing the resource to be created. */ - payload?: MsgCreateResourcePayloadAmino; - /** Signatures of the corresponding DID Document's controller(s). */ - signatures: SignInfoAmino[]; -} -export interface MsgCreateResourceAminoMsg { - type: "/cheqd.resource.v2.MsgCreateResource"; - value: MsgCreateResourceAmino; -} -/** - * MsgCreateResource defines the Msg/CreateResource request type. - * It describes the parameters of a request for creating a resource. - */ -export interface MsgCreateResourceSDKType { - payload: MsgCreateResourcePayloadSDKType; - signatures: SignInfoSDKType[]; -} -/** - * MsgCreateResourcePayload defines the structure of the payload for creating a resource. - * - * If a resource with the given id does not exist already, - * it will be created. The resource will be created in the resource collection. - * - * If a resource with the given id, collection_id already exists, an error code 2200 will be returned. - * - * A new version of the resource in an existing collection will be created, - * if a resource in that collection with the same name, resource_type and empty next_version_id exists. - * - * An update operation is not possible, because the resource is immutable by design. - */ -export interface MsgCreateResourcePayload { - /** data is a byte-representation of the actual Data the user wants to store. */ - data: Uint8Array; - /** - * collection_id is an identifier of the DidDocument the resource belongs to. - * Format: - * - * Examples: - * - c82f2b02-bdab-4dd7-b833-3e143745d612 - * - wGHEXrZvJxR8vw5P3UWH1j - */ - collectionId: string; - /** - * id is a unique id of the resource. - * Format: - */ - id: string; - /** - * name is a human-readable name of the resource. - * Format: - * - * Does not change between different versions. - * Example: PassportSchema, EducationTrustRegistry - */ - name: string; - /** - * version is a version of the resource. - * Format: - * Stored as a string. OPTIONAL. - * - * Example: 1.0.0, v2.1.0 - */ - version?: string; - /** - * resource_type is a type of the resource. - * Format: - * - * This is NOT the same as the resource's media type. - * Example: AnonCredsSchema, StatusList2021 - */ - resourceType: string; - /** also_known_as is a list of URIs that can be used to get the resource. */ - alsoKnownAs?: AlternativeUri[]; -} -export interface MsgCreateResourcePayloadProtoMsg { - typeUrl: "/cheqd.resource.v2.MsgCreateResourcePayload"; - value: Uint8Array; -} -/** - * MsgCreateResourcePayload defines the structure of the payload for creating a resource. - * - * If a resource with the given id does not exist already, - * it will be created. The resource will be created in the resource collection. - * - * If a resource with the given id, collection_id already exists, an error code 2200 will be returned. - * - * A new version of the resource in an existing collection will be created, - * if a resource in that collection with the same name, resource_type and empty next_version_id exists. - * - * An update operation is not possible, because the resource is immutable by design. - */ -export interface MsgCreateResourcePayloadAmino { - /** data is a byte-representation of the actual Data the user wants to store. */ - data: Uint8Array; - /** - * collection_id is an identifier of the DidDocument the resource belongs to. - * Format: - * - * Examples: - * - c82f2b02-bdab-4dd7-b833-3e143745d612 - * - wGHEXrZvJxR8vw5P3UWH1j - */ - collection_id: string; - /** - * id is a unique id of the resource. - * Format: - */ - id: string; - /** - * name is a human-readable name of the resource. - * Format: - * - * Does not change between different versions. - * Example: PassportSchema, EducationTrustRegistry - */ - name: string; - /** - * version is a version of the resource. - * Format: - * Stored as a string. OPTIONAL. - * - * Example: 1.0.0, v2.1.0 - */ - version: string; - /** - * resource_type is a type of the resource. - * Format: - * - * This is NOT the same as the resource's media type. - * Example: AnonCredsSchema, StatusList2021 - */ - resource_type: string; - /** also_known_as is a list of URIs that can be used to get the resource. */ - also_known_as: AlternativeUriAmino[]; -} -export interface MsgCreateResourcePayloadAminoMsg { - type: "/cheqd.resource.v2.MsgCreateResourcePayload"; - value: MsgCreateResourcePayloadAmino; -} -/** - * MsgCreateResourcePayload defines the structure of the payload for creating a resource. - * - * If a resource with the given id does not exist already, - * it will be created. The resource will be created in the resource collection. - * - * If a resource with the given id, collection_id already exists, an error code 2200 will be returned. - * - * A new version of the resource in an existing collection will be created, - * if a resource in that collection with the same name, resource_type and empty next_version_id exists. - * - * An update operation is not possible, because the resource is immutable by design. - */ -export interface MsgCreateResourcePayloadSDKType { - data: Uint8Array; - collection_id: string; - id: string; - name: string; - version?: string; - resource_type: string; - also_known_as?: AlternativeUriSDKType[]; -} -export interface MsgCreateResourceResponse { - /** Return the created resource metadata. */ - resource: Metadata; -} -export interface MsgCreateResourceResponseProtoMsg { - typeUrl: "/cheqd.resource.v2.MsgCreateResourceResponse"; - value: Uint8Array; -} -export interface MsgCreateResourceResponseAmino { - /** Return the created resource metadata. */ - resource?: MetadataAmino; -} -export interface MsgCreateResourceResponseAminoMsg { - type: "/cheqd.resource.v2.MsgCreateResourceResponse"; - value: MsgCreateResourceResponseAmino; -} -export interface MsgCreateResourceResponseSDKType { - resource: MetadataSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqdid/bundle.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqdid/bundle.ts deleted file mode 100644 index 547108e5b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cheqdid/bundle.ts +++ /dev/null @@ -1,28 +0,0 @@ -import * as _0 from "../cheqd/did/v1/common"; -import * as _1 from "../cheqd/did/v1/did"; -import * as _2 from "../cheqd/did/v1/genesis"; -import * as _3 from "../cheqd/did/v1/stateValue"; -import * as _4 from "../cheqd/did/v1/tx"; -import * as _5 from "../cheqd/resource/v1/genesis"; -import * as _6 from "../cheqd/resource/v1/resource"; -import * as _7 from "../cheqd/resource/v1/tx"; -export namespace cheqdid { - export namespace cheqdnode { - export namespace cheqd { - export const v1 = { - ..._0, - ..._1, - ..._2, - ..._3, - ..._4, - }; - } - export namespace resource { - export const v1 = { - ..._5, - ..._6, - ..._7, - }; - } - } -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/confio/proofs.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/confio/proofs.ts deleted file mode 100644 index 09592409b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/confio/proofs.ts +++ /dev/null @@ -1,753 +0,0 @@ -export enum HashOp { - /** NO_HASH - NO_HASH is the default if no data passed. Note this is an illegal argument some places. */ - NO_HASH = 0, - SHA256 = 1, - SHA512 = 2, - KECCAK = 3, - RIPEMD160 = 4, - /** BITCOIN - ripemd160(sha256(x)) */ - BITCOIN = 5, - UNRECOGNIZED = -1, -} -export const HashOpSDKType = HashOp; -export const HashOpAmino = HashOp; -export function hashOpFromJSON(object: any): HashOp { - switch (object) { - case 0: - case "NO_HASH": - return HashOp.NO_HASH; - case 1: - case "SHA256": - return HashOp.SHA256; - case 2: - case "SHA512": - return HashOp.SHA512; - case 3: - case "KECCAK": - return HashOp.KECCAK; - case 4: - case "RIPEMD160": - return HashOp.RIPEMD160; - case 5: - case "BITCOIN": - return HashOp.BITCOIN; - case -1: - case "UNRECOGNIZED": - default: - return HashOp.UNRECOGNIZED; - } -} -export function hashOpToJSON(object: HashOp): string { - switch (object) { - case HashOp.NO_HASH: - return "NO_HASH"; - case HashOp.SHA256: - return "SHA256"; - case HashOp.SHA512: - return "SHA512"; - case HashOp.KECCAK: - return "KECCAK"; - case HashOp.RIPEMD160: - return "RIPEMD160"; - case HashOp.BITCOIN: - return "BITCOIN"; - case HashOp.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * LengthOp defines how to process the key and value of the LeafOp - * to include length information. After encoding the length with the given - * algorithm, the length will be prepended to the key and value bytes. - * (Each one with it's own encoded length) - */ -export enum LengthOp { - /** NO_PREFIX - NO_PREFIX don't include any length info */ - NO_PREFIX = 0, - /** VAR_PROTO - VAR_PROTO uses protobuf (and go-amino) varint encoding of the length */ - VAR_PROTO = 1, - /** VAR_RLP - VAR_RLP uses rlp int encoding of the length */ - VAR_RLP = 2, - /** FIXED32_BIG - FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer */ - FIXED32_BIG = 3, - /** FIXED32_LITTLE - FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer */ - FIXED32_LITTLE = 4, - /** FIXED64_BIG - FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer */ - FIXED64_BIG = 5, - /** FIXED64_LITTLE - FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer */ - FIXED64_LITTLE = 6, - /** REQUIRE_32_BYTES - REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) */ - REQUIRE_32_BYTES = 7, - /** REQUIRE_64_BYTES - REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) */ - REQUIRE_64_BYTES = 8, - UNRECOGNIZED = -1, -} -export const LengthOpSDKType = LengthOp; -export const LengthOpAmino = LengthOp; -export function lengthOpFromJSON(object: any): LengthOp { - switch (object) { - case 0: - case "NO_PREFIX": - return LengthOp.NO_PREFIX; - case 1: - case "VAR_PROTO": - return LengthOp.VAR_PROTO; - case 2: - case "VAR_RLP": - return LengthOp.VAR_RLP; - case 3: - case "FIXED32_BIG": - return LengthOp.FIXED32_BIG; - case 4: - case "FIXED32_LITTLE": - return LengthOp.FIXED32_LITTLE; - case 5: - case "FIXED64_BIG": - return LengthOp.FIXED64_BIG; - case 6: - case "FIXED64_LITTLE": - return LengthOp.FIXED64_LITTLE; - case 7: - case "REQUIRE_32_BYTES": - return LengthOp.REQUIRE_32_BYTES; - case 8: - case "REQUIRE_64_BYTES": - return LengthOp.REQUIRE_64_BYTES; - case -1: - case "UNRECOGNIZED": - default: - return LengthOp.UNRECOGNIZED; - } -} -export function lengthOpToJSON(object: LengthOp): string { - switch (object) { - case LengthOp.NO_PREFIX: - return "NO_PREFIX"; - case LengthOp.VAR_PROTO: - return "VAR_PROTO"; - case LengthOp.VAR_RLP: - return "VAR_RLP"; - case LengthOp.FIXED32_BIG: - return "FIXED32_BIG"; - case LengthOp.FIXED32_LITTLE: - return "FIXED32_LITTLE"; - case LengthOp.FIXED64_BIG: - return "FIXED64_BIG"; - case LengthOp.FIXED64_LITTLE: - return "FIXED64_LITTLE"; - case LengthOp.REQUIRE_32_BYTES: - return "REQUIRE_32_BYTES"; - case LengthOp.REQUIRE_64_BYTES: - return "REQUIRE_64_BYTES"; - case LengthOp.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - */ -export interface ExistenceProof { - key: Uint8Array; - value: Uint8Array; - leaf: LeafOp; - path: InnerOp[]; -} -export interface ExistenceProofProtoMsg { - typeUrl: "/ics23.ExistenceProof"; - value: Uint8Array; -} -/** - * ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - */ -export interface ExistenceProofAmino { - key: Uint8Array; - value: Uint8Array; - leaf?: LeafOpAmino; - path: InnerOpAmino[]; -} -export interface ExistenceProofAminoMsg { - type: "/ics23.ExistenceProof"; - value: ExistenceProofAmino; -} -/** - * ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - */ -export interface ExistenceProofSDKType { - key: Uint8Array; - value: Uint8Array; - leaf: LeafOpSDKType; - path: InnerOpSDKType[]; -} -/** - * NonExistenceProof takes a proof of two neighbors, one left of the desired key, - * one right of the desired key. If both proofs are valid AND they are neighbors, - * then there is no valid proof for the given key. - */ -export interface NonExistenceProof { - /** TODO: remove this as unnecessary??? we prove a range */ - key: Uint8Array; - left: ExistenceProof; - right: ExistenceProof; -} -export interface NonExistenceProofProtoMsg { - typeUrl: "/ics23.NonExistenceProof"; - value: Uint8Array; -} -/** - * NonExistenceProof takes a proof of two neighbors, one left of the desired key, - * one right of the desired key. If both proofs are valid AND they are neighbors, - * then there is no valid proof for the given key. - */ -export interface NonExistenceProofAmino { - /** TODO: remove this as unnecessary??? we prove a range */ - key: Uint8Array; - left?: ExistenceProofAmino; - right?: ExistenceProofAmino; -} -export interface NonExistenceProofAminoMsg { - type: "/ics23.NonExistenceProof"; - value: NonExistenceProofAmino; -} -/** - * NonExistenceProof takes a proof of two neighbors, one left of the desired key, - * one right of the desired key. If both proofs are valid AND they are neighbors, - * then there is no valid proof for the given key. - */ -export interface NonExistenceProofSDKType { - key: Uint8Array; - left: ExistenceProofSDKType; - right: ExistenceProofSDKType; -} -/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */ -export interface CommitmentProof { - exist?: ExistenceProof; - nonexist?: NonExistenceProof; - batch?: BatchProof; - compressed?: CompressedBatchProof; -} -export interface CommitmentProofProtoMsg { - typeUrl: "/ics23.CommitmentProof"; - value: Uint8Array; -} -/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */ -export interface CommitmentProofAmino { - exist?: ExistenceProofAmino; - nonexist?: NonExistenceProofAmino; - batch?: BatchProofAmino; - compressed?: CompressedBatchProofAmino; -} -export interface CommitmentProofAminoMsg { - type: "/ics23.CommitmentProof"; - value: CommitmentProofAmino; -} -/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */ -export interface CommitmentProofSDKType { - exist?: ExistenceProofSDKType; - nonexist?: NonExistenceProofSDKType; - batch?: BatchProofSDKType; - compressed?: CompressedBatchProofSDKType; -} -/** - * LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - */ -export interface LeafOp { - hash: HashOp; - prehashKey: HashOp; - prehashValue: HashOp; - length: LengthOp; - /** - * prefix is a fixed bytes that may optionally be included at the beginning to differentiate - * a leaf node from an inner node. - */ - prefix: Uint8Array; -} -export interface LeafOpProtoMsg { - typeUrl: "/ics23.LeafOp"; - value: Uint8Array; -} -/** - * LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - */ -export interface LeafOpAmino { - hash: HashOp; - prehash_key: HashOp; - prehash_value: HashOp; - length: LengthOp; - /** - * prefix is a fixed bytes that may optionally be included at the beginning to differentiate - * a leaf node from an inner node. - */ - prefix: Uint8Array; -} -export interface LeafOpAminoMsg { - type: "/ics23.LeafOp"; - value: LeafOpAmino; -} -/** - * LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - */ -export interface LeafOpSDKType { - hash: HashOp; - prehash_key: HashOp; - prehash_value: HashOp; - length: LengthOp; - prefix: Uint8Array; -} -/** - * InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - */ -export interface InnerOp { - hash: HashOp; - prefix: Uint8Array; - suffix: Uint8Array; -} -export interface InnerOpProtoMsg { - typeUrl: "/ics23.InnerOp"; - value: Uint8Array; -} -/** - * InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - */ -export interface InnerOpAmino { - hash: HashOp; - prefix: Uint8Array; - suffix: Uint8Array; -} -export interface InnerOpAminoMsg { - type: "/ics23.InnerOp"; - value: InnerOpAmino; -} -/** - * InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - */ -export interface InnerOpSDKType { - hash: HashOp; - prefix: Uint8Array; - suffix: Uint8Array; -} -/** - * ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - */ -export interface ProofSpec { - /** - * any field in the ExistenceProof must be the same as in this spec. - * except Prefix, which is just the first bytes of prefix (spec can be longer) - */ - leafSpec: LeafOp; - innerSpec: InnerSpec; - /** max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) */ - maxDepth: number; - /** min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) */ - minDepth: number; -} -export interface ProofSpecProtoMsg { - typeUrl: "/ics23.ProofSpec"; - value: Uint8Array; -} -/** - * ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - */ -export interface ProofSpecAmino { - /** - * any field in the ExistenceProof must be the same as in this spec. - * except Prefix, which is just the first bytes of prefix (spec can be longer) - */ - leaf_spec?: LeafOpAmino; - inner_spec?: InnerSpecAmino; - /** max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) */ - max_depth: number; - /** min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) */ - min_depth: number; -} -export interface ProofSpecAminoMsg { - type: "/ics23.ProofSpec"; - value: ProofSpecAmino; -} -/** - * ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - */ -export interface ProofSpecSDKType { - leaf_spec: LeafOpSDKType; - inner_spec: InnerSpecSDKType; - max_depth: number; - min_depth: number; -} -/** - * InnerSpec contains all store-specific structure info to determine if two proofs from a - * given store are neighbors. - * - * This enables: - * - * isLeftMost(spec: InnerSpec, op: InnerOp) - * isRightMost(spec: InnerSpec, op: InnerOp) - * isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) - */ -export interface InnerSpec { - /** - * Child order is the ordering of the children node, must count from 0 - * iavl tree is [0, 1] (left then right) - * merk is [0, 2, 1] (left, right, here) - */ - childOrder: number[]; - childSize: number; - minPrefixLength: number; - maxPrefixLength: number; - /** empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) */ - emptyChild: Uint8Array; - /** hash is the algorithm that must be used for each InnerOp */ - hash: HashOp; -} -export interface InnerSpecProtoMsg { - typeUrl: "/ics23.InnerSpec"; - value: Uint8Array; -} -/** - * InnerSpec contains all store-specific structure info to determine if two proofs from a - * given store are neighbors. - * - * This enables: - * - * isLeftMost(spec: InnerSpec, op: InnerOp) - * isRightMost(spec: InnerSpec, op: InnerOp) - * isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) - */ -export interface InnerSpecAmino { - /** - * Child order is the ordering of the children node, must count from 0 - * iavl tree is [0, 1] (left then right) - * merk is [0, 2, 1] (left, right, here) - */ - child_order: number[]; - child_size: number; - min_prefix_length: number; - max_prefix_length: number; - /** empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) */ - empty_child: Uint8Array; - /** hash is the algorithm that must be used for each InnerOp */ - hash: HashOp; -} -export interface InnerSpecAminoMsg { - type: "/ics23.InnerSpec"; - value: InnerSpecAmino; -} -/** - * InnerSpec contains all store-specific structure info to determine if two proofs from a - * given store are neighbors. - * - * This enables: - * - * isLeftMost(spec: InnerSpec, op: InnerOp) - * isRightMost(spec: InnerSpec, op: InnerOp) - * isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) - */ -export interface InnerSpecSDKType { - child_order: number[]; - child_size: number; - min_prefix_length: number; - max_prefix_length: number; - empty_child: Uint8Array; - hash: HashOp; -} -/** BatchProof is a group of multiple proof types than can be compressed */ -export interface BatchProof { - entries: BatchEntry[]; -} -export interface BatchProofProtoMsg { - typeUrl: "/ics23.BatchProof"; - value: Uint8Array; -} -/** BatchProof is a group of multiple proof types than can be compressed */ -export interface BatchProofAmino { - entries: BatchEntryAmino[]; -} -export interface BatchProofAminoMsg { - type: "/ics23.BatchProof"; - value: BatchProofAmino; -} -/** BatchProof is a group of multiple proof types than can be compressed */ -export interface BatchProofSDKType { - entries: BatchEntrySDKType[]; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface BatchEntry { - exist?: ExistenceProof; - nonexist?: NonExistenceProof; -} -export interface BatchEntryProtoMsg { - typeUrl: "/ics23.BatchEntry"; - value: Uint8Array; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface BatchEntryAmino { - exist?: ExistenceProofAmino; - nonexist?: NonExistenceProofAmino; -} -export interface BatchEntryAminoMsg { - type: "/ics23.BatchEntry"; - value: BatchEntryAmino; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface BatchEntrySDKType { - exist?: ExistenceProofSDKType; - nonexist?: NonExistenceProofSDKType; -} -export interface CompressedBatchProof { - entries: CompressedBatchEntry[]; - lookupInners: InnerOp[]; -} -export interface CompressedBatchProofProtoMsg { - typeUrl: "/ics23.CompressedBatchProof"; - value: Uint8Array; -} -export interface CompressedBatchProofAmino { - entries: CompressedBatchEntryAmino[]; - lookup_inners: InnerOpAmino[]; -} -export interface CompressedBatchProofAminoMsg { - type: "/ics23.CompressedBatchProof"; - value: CompressedBatchProofAmino; -} -export interface CompressedBatchProofSDKType { - entries: CompressedBatchEntrySDKType[]; - lookup_inners: InnerOpSDKType[]; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface CompressedBatchEntry { - exist?: CompressedExistenceProof; - nonexist?: CompressedNonExistenceProof; -} -export interface CompressedBatchEntryProtoMsg { - typeUrl: "/ics23.CompressedBatchEntry"; - value: Uint8Array; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface CompressedBatchEntryAmino { - exist?: CompressedExistenceProofAmino; - nonexist?: CompressedNonExistenceProofAmino; -} -export interface CompressedBatchEntryAminoMsg { - type: "/ics23.CompressedBatchEntry"; - value: CompressedBatchEntryAmino; -} -/** Use BatchEntry not CommitmentProof, to avoid recursion */ -export interface CompressedBatchEntrySDKType { - exist?: CompressedExistenceProofSDKType; - nonexist?: CompressedNonExistenceProofSDKType; -} -export interface CompressedExistenceProof { - key: Uint8Array; - value: Uint8Array; - leaf: LeafOp; - /** these are indexes into the lookup_inners table in CompressedBatchProof */ - path: number[]; -} -export interface CompressedExistenceProofProtoMsg { - typeUrl: "/ics23.CompressedExistenceProof"; - value: Uint8Array; -} -export interface CompressedExistenceProofAmino { - key: Uint8Array; - value: Uint8Array; - leaf?: LeafOpAmino; - /** these are indexes into the lookup_inners table in CompressedBatchProof */ - path: number[]; -} -export interface CompressedExistenceProofAminoMsg { - type: "/ics23.CompressedExistenceProof"; - value: CompressedExistenceProofAmino; -} -export interface CompressedExistenceProofSDKType { - key: Uint8Array; - value: Uint8Array; - leaf: LeafOpSDKType; - path: number[]; -} -export interface CompressedNonExistenceProof { - /** TODO: remove this as unnecessary??? we prove a range */ - key: Uint8Array; - left: CompressedExistenceProof; - right: CompressedExistenceProof; -} -export interface CompressedNonExistenceProofProtoMsg { - typeUrl: "/ics23.CompressedNonExistenceProof"; - value: Uint8Array; -} -export interface CompressedNonExistenceProofAmino { - /** TODO: remove this as unnecessary??? we prove a range */ - key: Uint8Array; - left?: CompressedExistenceProofAmino; - right?: CompressedExistenceProofAmino; -} -export interface CompressedNonExistenceProofAminoMsg { - type: "/ics23.CompressedNonExistenceProof"; - value: CompressedNonExistenceProofAmino; -} -export interface CompressedNonExistenceProofSDKType { - key: Uint8Array; - left: CompressedExistenceProofSDKType; - right: CompressedExistenceProofSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/config.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/config.ts deleted file mode 100644 index 46882dadd..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/config.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface Config { - /** modules are the module configurations for the app. */ - modules: ModuleConfig[]; -} -export interface ConfigProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.Config"; - value: Uint8Array; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigAmino { - /** modules are the module configurations for the app. */ - modules: ModuleConfigAmino[]; -} -export interface ConfigAminoMsg { - type: "cosmos-sdk/Config"; - value: ConfigAmino; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigSDKType { - modules: ModuleConfigSDKType[]; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfig { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config: Any; -} -export interface ModuleConfigProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.ModuleConfig"; - value: Uint8Array; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigAmino { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config?: AnyAmino; -} -export interface ModuleConfigAminoMsg { - type: "cosmos-sdk/ModuleConfig"; - value: ModuleConfigAmino; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigSDKType { - name: string; - config: AnySDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/module.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/module.ts deleted file mode 100644 index d8ba15b36..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/app/v1alpha1/module.ts +++ /dev/null @@ -1,206 +0,0 @@ -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptor { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. Either go_import must be defined here - * or the go_package option must be defined at the file level to indicate - * to users where to location the module implementation. go_import takes - * precedence over go_package when both are defined. - */ - goImport: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - usePackage: PackageReference[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - canMigrateFrom: MigrateFromInfo[]; -} -export interface ModuleDescriptorProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor"; - value: Uint8Array; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorAmino { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. Either go_import must be defined here - * or the go_package option must be defined at the file level to indicate - * to users where to location the module implementation. go_import takes - * precedence over go_package when both are defined. - */ - go_import: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - use_package: PackageReferenceAmino[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - can_migrate_from: MigrateFromInfoAmino[]; -} -export interface ModuleDescriptorAminoMsg { - type: "cosmos-sdk/ModuleDescriptor"; - value: ModuleDescriptorAmino; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorSDKType { - go_import: string; - use_package: PackageReferenceSDKType[]; - can_migrate_from: MigrateFromInfoSDKType[]; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReference { - /** name is the fully-qualified name of the package. */ - name: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its fields containing the - * test "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * 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. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision: number; -} -export interface PackageReferenceProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.PackageReference"; - value: Uint8Array; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceAmino { - /** name is the fully-qualified name of the package. */ - name: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its fields containing the - * test "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * 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. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision: number; -} -export interface PackageReferenceAminoMsg { - type: "cosmos-sdk/PackageReference"; - value: PackageReferenceAmino; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceSDKType { - name: string; - revision: number; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfo { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module: string; -} -export interface MigrateFromInfoProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo"; - value: Uint8Array; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoAmino { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module: string; -} -export interface MigrateFromInfoAminoMsg { - type: "cosmos-sdk/MigrateFromInfo"; - value: MigrateFromInfoAmino; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoSDKType { - module: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/auth.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/auth.ts deleted file mode 100644 index adac0a8f8..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/auth.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccount { - address: string; - pubKey: Any; - accountNumber: Long; - sequence: Long; -} -export interface BaseAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount"; - value: Uint8Array; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountAmino { - address: string; - pub_key?: AnyAmino; - account_number: string; - sequence: string; -} -export interface BaseAccountAminoMsg { - type: "cosmos-sdk/BaseAccount"; - value: BaseAccountAmino; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountSDKType { - address: string; - pub_key: AnySDKType; - account_number: Long; - sequence: Long; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccount { - baseAccount: BaseAccount; - name: string; - permissions: string[]; -} -export interface ModuleAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount"; - value: Uint8Array; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountAmino { - base_account?: BaseAccountAmino; - name: string; - permissions: string[]; -} -export interface ModuleAccountAminoMsg { - type: "cosmos-sdk/ModuleAccount"; - value: ModuleAccountAmino; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountSDKType { - base_account: BaseAccountSDKType; - name: string; - permissions: string[]; -} -/** Params defines the parameters for the auth module. */ -export interface Params { - maxMemoCharacters: Long; - txSigLimit: Long; - txSizeCostPerByte: Long; - sigVerifyCostEd25519: Long; - sigVerifyCostSecp256k1: Long; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsAmino { - max_memo_characters: string; - tx_sig_limit: string; - tx_size_cost_per_byte: string; - sig_verify_cost_ed25519: string; - sig_verify_cost_secp256k1: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsSDKType { - max_memo_characters: Long; - tx_sig_limit: Long; - tx_size_cost_per_byte: Long; - sig_verify_cost_ed25519: Long; - sig_verify_cost_secp256k1: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/genesis.ts deleted file mode 100644 index a077a0d2f..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/auth/v1beta1/genesis.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType } from "./auth"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** accounts are the accounts present at genesis. */ - accounts: Any[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** accounts are the accounts present at genesis. */ - accounts: AnyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - accounts: AnySDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/authz.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/authz.ts deleted file mode 100644 index a4d169933..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/authz.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorization { - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg: string; -} -export interface GenericAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization"; - value: Uint8Array; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationAmino { - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg: string; -} -export interface GenericAuthorizationAminoMsg { - type: "cosmos-sdk/GenericAuthorization"; - value: GenericAuthorizationAmino; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationSDKType { - msg: string; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface Grant { - authorization: Any; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: Date; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.Grant"; - value: Uint8Array; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantAmino { - authorization?: AnyAmino; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: Date; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantSDKType { - authorization: AnySDKType; - expiration?: Date; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorization { - granter: string; - grantee: string; - authorization: Any; - expiration: Date; -} -export interface GrantAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization"; - value: Uint8Array; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationAmino { - granter: string; - grantee: string; - authorization?: AnyAmino; - expiration?: Date; -} -export interface GrantAuthorizationAminoMsg { - type: "cosmos-sdk/GrantAuthorization"; - value: GrantAuthorizationAmino; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationSDKType { - granter: string; - grantee: string; - authorization: AnySDKType; - expiration: Date; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItem { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msgTypeUrls: string[]; -} -export interface GrantQueueItemProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem"; - value: Uint8Array; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemAmino { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msg_type_urls: string[]; -} -export interface GrantQueueItemAminoMsg { - type: "cosmos-sdk/GrantQueueItem"; - value: GrantQueueItemAmino; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemSDKType { - msg_type_urls: string[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/event.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/event.ts deleted file mode 100644 index bed3a5790..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/event.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrant { - /** Msg type URL for which an autorization is granted */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventGrant"; - value: Uint8Array; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantAmino { - /** Msg type URL for which an autorization is granted */ - msg_type_url: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventGrantAminoMsg { - type: "cosmos-sdk/EventGrant"; - value: EventGrantAmino; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevoke { - /** Msg type URL for which an autorization is revoked */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke"; - value: Uint8Array; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeAmino { - /** Msg type URL for which an autorization is revoked */ - msg_type_url: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventRevokeAminoMsg { - type: "cosmos-sdk/EventRevoke"; - value: EventRevokeAmino; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/genesis.ts deleted file mode 100644 index ee5a91e87..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/genesis.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { - GrantAuthorization, - GrantAuthorizationAmino, - GrantAuthorizationSDKType, -} from "./authz"; -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisState { - authorization: GrantAuthorization[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateAmino { - authorization: GrantAuthorizationAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateSDKType { - authorization: GrantAuthorizationSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/tx.ts deleted file mode 100644 index 37535156c..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/authz/v1beta1/tx.ts +++ /dev/null @@ -1,165 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./authz"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrant { - granter: string; - grantee: string; - grant: Grant; -} -export interface MsgGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant"; - value: Uint8Array; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantAmino { - granter: string; - grantee: string; - grant?: GrantAmino; -} -export interface MsgGrantAminoMsg { - type: "cosmos-sdk/MsgGrant"; - value: MsgGrantAmino; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantSDKType { - granter: string; - grantee: string; - grant: GrantSDKType; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponse { - results: Uint8Array[]; -} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseAmino { - results: Uint8Array[]; -} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseSDKType { - results: Uint8Array[]; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExec { - grantee: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: Any[]; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExec"; - value: Uint8Array; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecAmino { - grantee: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: AnyAmino[]; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/MsgExec"; - value: MsgExecAmino; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecSDKType { - grantee: string; - msgs: AnySDKType[]; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponse {} -export interface MsgGrantResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; - value: Uint8Array; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseAmino {} -export interface MsgGrantResponseAminoMsg { - type: "cosmos-sdk/MsgGrantResponse"; - value: MsgGrantResponseAmino; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseSDKType {} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevoke { - granter: string; - grantee: string; - msgTypeUrl: string; -} -export interface MsgRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke"; - value: Uint8Array; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeAmino { - granter: string; - grantee: string; - msg_type_url: string; -} -export interface MsgRevokeAminoMsg { - type: "cosmos-sdk/MsgRevoke"; - value: MsgRevokeAmino; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeSDKType { - granter: string; - grantee: string; - msg_type_url: string; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponse {} -export interface MsgRevokeResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; - value: Uint8Array; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseAmino {} -export interface MsgRevokeResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeResponse"; - value: MsgRevokeResponseAmino; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/authz.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/authz.ts deleted file mode 100644 index f58a62af0..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/authz.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorization { - spendLimit: Coin[]; -} -export interface SendAuthorizationProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization"; - value: Uint8Array; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationAmino { - spend_limit: CoinAmino[]; -} -export interface SendAuthorizationAminoMsg { - type: "cosmos-sdk/SendAuthorization"; - value: SendAuthorizationAmino; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationSDKType { - spend_limit: CoinSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/bank.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/bank.ts deleted file mode 100644 index 5232cdd98..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/bank.ts +++ /dev/null @@ -1,296 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** Params defines the parameters for the bank module. */ -export interface Params { - sendEnabled: SendEnabled[]; - defaultSendEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsAmino { - send_enabled: SendEnabledAmino[]; - default_send_enabled: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsSDKType { - send_enabled: SendEnabledSDKType[]; - default_send_enabled: boolean; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabled { - denom: string; - enabled: boolean; -} -export interface SendEnabledProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled"; - value: Uint8Array; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledAmino { - denom: string; - enabled: boolean; -} -export interface SendEnabledAminoMsg { - type: "cosmos-sdk/SendEnabled"; - value: SendEnabledAmino; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledSDKType { - denom: string; - enabled: boolean; -} -/** Input models transaction input. */ -export interface Input { - address: string; - coins: Coin[]; -} -export interface InputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Input"; - value: Uint8Array; -} -/** Input models transaction input. */ -export interface InputAmino { - address: string; - coins: CoinAmino[]; -} -export interface InputAminoMsg { - type: "cosmos-sdk/Input"; - value: InputAmino; -} -/** Input models transaction input. */ -export interface InputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** Output models transaction outputs. */ -export interface Output { - address: string; - coins: Coin[]; -} -export interface OutputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Output"; - value: Uint8Array; -} -/** Output models transaction outputs. */ -export interface OutputAmino { - address: string; - coins: CoinAmino[]; -} -export interface OutputAminoMsg { - type: "cosmos-sdk/Output"; - value: OutputAmino; -} -/** Output models transaction outputs. */ -export interface OutputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface Supply { - total: Coin[]; -} -export interface SupplyProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Supply"; - value: Uint8Array; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplyAmino { - total: CoinAmino[]; -} -export interface SupplyAminoMsg { - type: "cosmos-sdk/Supply"; - value: SupplyAmino; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplySDKType { - total: CoinSDKType[]; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnit { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent: number; - /** aliases is a list of string aliases for the given denom */ - aliases: string[]; -} -export interface DenomUnitProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit"; - value: Uint8Array; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitAmino { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent: number; - /** aliases is a list of string aliases for the given denom */ - aliases: string[]; -} -export interface DenomUnitAminoMsg { - type: "cosmos-sdk/DenomUnit"; - value: DenomUnitAmino; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitSDKType { - denom: string; - exponent: number; - aliases: string[]; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface Metadata { - description: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denomUnits: DenomUnit[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uriHash: string; -} -export interface MetadataProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Metadata"; - value: Uint8Array; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataAmino { - description: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units: DenomUnitAmino[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri_hash: string; -} -export interface MetadataAminoMsg { - type: "cosmos-sdk/Metadata"; - value: MetadataAmino; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataSDKType { - description: string; - denom_units: DenomUnitSDKType[]; - base: string; - display: string; - name: string; - symbol: string; - uri: string; - uri_hash: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/genesis.ts deleted file mode 100644 index ce661ebbb..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/genesis.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - Metadata, - MetadataAmino, - MetadataSDKType, -} from "./bank"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** balances is an array containing the balances of all the accounts. */ - balances: Balance[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply: Coin[]; - /** denom_metadata defines the metadata of the differents coins. */ - denomMetadata: Metadata[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** balances is an array containing the balances of all the accounts. */ - balances: BalanceAmino[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply: CoinAmino[]; - /** denom_metadata defines the metadata of the differents coins. */ - denom_metadata: MetadataAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - balances: BalanceSDKType[]; - supply: CoinSDKType[]; - denom_metadata: MetadataSDKType[]; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface Balance { - /** address is the address of the balance holder. */ - address: string; - /** coins defines the different coins this balance holds. */ - coins: Coin[]; -} -export interface BalanceProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Balance"; - value: Uint8Array; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceAmino { - /** address is the address of the balance holder. */ - address: string; - /** coins defines the different coins this balance holds. */ - coins: CoinAmino[]; -} -export interface BalanceAminoMsg { - type: "cosmos-sdk/Balance"; - value: BalanceAmino; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceSDKType { - address: string; - coins: CoinSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/tx.ts deleted file mode 100644 index dccc2392f..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bank/v1beta1/tx.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { - Input, - InputAmino, - InputSDKType, - Output, - OutputAmino, - OutputSDKType, -} from "./bank"; -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSend { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSend"; - value: Uint8Array; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendAmino { - from_address: string; - to_address: string; - amount: CoinAmino[]; -} -export interface MsgSendAminoMsg { - type: "cosmos-sdk/MsgSend"; - value: MsgSendAmino; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse {} -export interface MsgSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseAmino {} -export interface MsgSendResponseAminoMsg { - type: "cosmos-sdk/MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType {} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSend { - inputs: Input[]; - outputs: Output[]; -} -export interface MsgMultiSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend"; - value: Uint8Array; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendAmino { - inputs: InputAmino[]; - outputs: OutputAmino[]; -} -export interface MsgMultiSendAminoMsg { - type: "cosmos-sdk/MsgMultiSend"; - value: MsgMultiSendAmino; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendSDKType { - inputs: InputSDKType[]; - outputs: OutputSDKType[]; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponse {} -export interface MsgMultiSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse"; - value: Uint8Array; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseAmino {} -export interface MsgMultiSendResponseAminoMsg { - type: "cosmos-sdk/MsgMultiSendResponse"; - value: MsgMultiSendResponseAmino; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/abci/v1beta1/abci.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/abci/v1beta1/abci.ts deleted file mode 100644 index 67efe9c14..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/abci/v1beta1/abci.ts +++ /dev/null @@ -1,476 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - Event, - EventAmino, - EventSDKType, -} from "../../../../tendermint/abci/types"; -import { Long } from "../../../../helpers"; -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponse { - /** The block height */ - height: Long; - /** The transaction hash. */ - txhash: string; - /** Namespace for the Code */ - codespace: string; - /** Response code. */ - code: number; - /** Result bytes, if any. */ - data: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - rawLog: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs: ABCIMessageLog[]; - /** Additional information. May be non-deterministic. */ - info: string; - /** Amount of gas requested for transaction. */ - gasWanted: Long; - /** Amount of gas consumed by transaction. */ - gasUsed: Long; - /** The request transaction bytes. */ - tx: Any; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante handler. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events: Event[]; -} -export interface TxResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse"; - value: Uint8Array; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseAmino { - /** The block height */ - height: string; - /** The transaction hash. */ - txhash: string; - /** Namespace for the Code */ - codespace: string; - /** Response code. */ - code: number; - /** Result bytes, if any. */ - data: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs: ABCIMessageLogAmino[]; - /** Additional information. May be non-deterministic. */ - info: string; - /** Amount of gas requested for transaction. */ - gas_wanted: string; - /** Amount of gas consumed by transaction. */ - gas_used: string; - /** The request transaction bytes. */ - tx?: AnyAmino; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante handler. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events: EventAmino[]; -} -export interface TxResponseAminoMsg { - type: "cosmos-sdk/TxResponse"; - value: TxResponseAmino; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseSDKType { - height: Long; - txhash: string; - codespace: string; - code: number; - data: string; - raw_log: string; - logs: ABCIMessageLogSDKType[]; - info: string; - gas_wanted: Long; - gas_used: Long; - tx: AnySDKType; - timestamp: string; - events: EventSDKType[]; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLog { - msgIndex: number; - log: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events: StringEvent[]; -} -export interface ABCIMessageLogProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog"; - value: Uint8Array; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogAmino { - msg_index: number; - log: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events: StringEventAmino[]; -} -export interface ABCIMessageLogAminoMsg { - type: "cosmos-sdk/ABCIMessageLog"; - value: ABCIMessageLogAmino; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogSDKType { - msg_index: number; - log: string; - events: StringEventSDKType[]; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEvent { - type: string; - attributes: Attribute[]; -} -export interface StringEventProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent"; - value: Uint8Array; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventAmino { - type: string; - attributes: AttributeAmino[]; -} -export interface StringEventAminoMsg { - type: "cosmos-sdk/StringEvent"; - value: StringEventAmino; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventSDKType { - type: string; - attributes: AttributeSDKType[]; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface Attribute { - key: string; - value: string; -} -export interface AttributeProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute"; - value: Uint8Array; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeAmino { - key: string; - value: string; -} -export interface AttributeAminoMsg { - type: "cosmos-sdk/Attribute"; - value: AttributeAmino; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeSDKType { - key: string; - value: string; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfo { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gasWanted: Long; - /** GasUsed is the amount of gas actually consumed. */ - gasUsed: Long; -} -export interface GasInfoProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; - value: Uint8Array; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoAmino { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gas_wanted: string; - /** GasUsed is the amount of gas actually consumed. */ - gas_used: string; -} -export interface GasInfoAminoMsg { - type: "cosmos-sdk/GasInfo"; - value: GasInfoAmino; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoSDKType { - gas_wanted: Long; - gas_used: Long; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface Result { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data: Uint8Array; - /** Log contains the log information from message or handler execution. */ - log: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events: Event[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface ResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Result"; - value: Uint8Array; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultAmino { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data: Uint8Array; - /** Log contains the log information from message or handler execution. */ - log: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events: EventAmino[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses: AnyAmino[]; -} -export interface ResultAminoMsg { - type: "cosmos-sdk/Result"; - value: ResultAmino; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultSDKType { - /** @deprecated */ - data: Uint8Array; - log: string; - events: EventSDKType[]; - msg_responses: AnySDKType[]; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponse { - gasInfo: GasInfo; - result: Result; -} -export interface SimulationResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; - value: Uint8Array; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseAmino { - gas_info?: GasInfoAmino; - result?: ResultAmino; -} -export interface SimulationResponseAminoMsg { - type: "cosmos-sdk/SimulationResponse"; - value: SimulationResponseAmino; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseSDKType { - gas_info: GasInfoSDKType; - result: ResultSDKType; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgData { - msgType: string; - data: Uint8Array; -} -export interface MsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData"; - value: Uint8Array; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataAmino { - msg_type: string; - data: Uint8Array; -} -export interface MsgDataAminoMsg { - type: "cosmos-sdk/MsgData"; - value: MsgDataAmino; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataSDKType { - msg_type: string; - data: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgData { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data: MsgData[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface TxMsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData"; - value: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataAmino { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data: MsgDataAmino[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses: AnyAmino[]; -} -export interface TxMsgDataAminoMsg { - type: "cosmos-sdk/TxMsgData"; - value: TxMsgDataAmino; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataSDKType { - /** @deprecated */ - data: MsgDataSDKType[]; - msg_responses: AnySDKType[]; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResult { - /** Count of all txs */ - totalCount: Long; - /** Count of txs in current page */ - count: Long; - /** Index of current page, start from 1 */ - pageNumber: Long; - /** Count of total pages */ - pageTotal: Long; - /** Max count txs per page */ - limit: Long; - /** List of txs in current page */ - txs: TxResponse[]; -} -export interface SearchTxsResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult"; - value: Uint8Array; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultAmino { - /** Count of all txs */ - total_count: string; - /** Count of txs in current page */ - count: string; - /** Index of current page, start from 1 */ - page_number: string; - /** Count of total pages */ - page_total: string; - /** Max count txs per page */ - limit: string; - /** List of txs in current page */ - txs: TxResponseAmino[]; -} -export interface SearchTxsResultAminoMsg { - type: "cosmos-sdk/SearchTxsResult"; - value: SearchTxsResultAmino; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultSDKType { - total_count: Long; - count: Long; - page_number: Long; - page_total: Long; - limit: Long; - txs: TxResponseSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/kv/v1beta1/kv.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/kv/v1beta1/kv.ts deleted file mode 100644 index 9ddbbc636..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/kv/v1beta1/kv.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** Pairs defines a repeated slice of Pair objects. */ -export interface Pairs { - pairs: Pair[]; -} -export interface PairsProtoMsg { - typeUrl: "/cosmos.base.kv.v1beta1.Pairs"; - value: Uint8Array; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsAmino { - pairs: PairAmino[]; -} -export interface PairsAminoMsg { - type: "cosmos-sdk/Pairs"; - value: PairsAmino; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsSDKType { - pairs: PairSDKType[]; -} -/** Pair defines a key/value bytes tuple. */ -export interface Pair { - key: Uint8Array; - value: Uint8Array; -} -export interface PairProtoMsg { - typeUrl: "/cosmos.base.kv.v1beta1.Pair"; - value: Uint8Array; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairAmino { - key: Uint8Array; - value: Uint8Array; -} -export interface PairAminoMsg { - type: "cosmos-sdk/Pair"; - value: PairAmino; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairSDKType { - key: Uint8Array; - value: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/query/v1beta1/pagination.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/query/v1beta1/pagination.ts deleted file mode 100644 index fc8aa4f67..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/query/v1beta1/pagination.ts +++ /dev/null @@ -1,172 +0,0 @@ -import { Long } from "../../../../helpers"; -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequest { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - */ - key: Uint8Array; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - */ - offset: Long; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - */ - limit: Long; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - countTotal: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse: boolean; -} -export interface PageRequestProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest"; - value: Uint8Array; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestAmino { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - */ - key: Uint8Array; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - */ - offset: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - */ - limit: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - count_total: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse: boolean; -} -export interface PageRequestAminoMsg { - type: "cosmos-sdk/PageRequest"; - value: PageRequestAmino; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestSDKType { - key: Uint8Array; - offset: Long; - limit: Long; - count_total: boolean; - reverse: boolean; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponse { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - nextKey: Uint8Array; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total: Long; -} -export interface PageResponseProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse"; - value: Uint8Array; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseAmino { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - next_key: Uint8Array; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total: string; -} -export interface PageResponseAminoMsg { - type: "cosmos-sdk/PageResponse"; - value: PageResponseAmino; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseSDKType { - next_key: Uint8Array; - total: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/reflection/v1beta1/reflection.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/reflection/v1beta1/reflection.ts deleted file mode 100644 index 0fb5a77f3..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/reflection/v1beta1/reflection.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequest {} -export interface ListAllInterfacesRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest"; - value: Uint8Array; -} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestAmino {} -export interface ListAllInterfacesRequestAminoMsg { - type: "cosmos-sdk/ListAllInterfacesRequest"; - value: ListAllInterfacesRequestAmino; -} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestSDKType {} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponse { - /** interface_names is an array of all the registered interfaces. */ - interfaceNames: string[]; -} -export interface ListAllInterfacesResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse"; - value: Uint8Array; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseAmino { - /** interface_names is an array of all the registered interfaces. */ - interface_names: string[]; -} -export interface ListAllInterfacesResponseAminoMsg { - type: "cosmos-sdk/ListAllInterfacesResponse"; - value: ListAllInterfacesResponseAmino; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseSDKType { - interface_names: string[]; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequest { - /** interface_name defines the interface to query the implementations for. */ - interfaceName: string; -} -export interface ListImplementationsRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest"; - value: Uint8Array; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestAmino { - /** interface_name defines the interface to query the implementations for. */ - interface_name: string; -} -export interface ListImplementationsRequestAminoMsg { - type: "cosmos-sdk/ListImplementationsRequest"; - value: ListImplementationsRequestAmino; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestSDKType { - interface_name: string; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponse { - implementationMessageNames: string[]; -} -export interface ListImplementationsResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse"; - value: Uint8Array; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseAmino { - implementation_message_names: string[]; -} -export interface ListImplementationsResponseAminoMsg { - type: "cosmos-sdk/ListImplementationsResponse"; - value: ListImplementationsResponseAmino; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseSDKType { - implementation_message_names: string[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/reflection/v2alpha1/reflection.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/reflection/v2alpha1/reflection.ts deleted file mode 100644 index 8f20ded2b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/reflection/v2alpha1/reflection.ts +++ /dev/null @@ -1,700 +0,0 @@ -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptor { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn: AuthnDescriptor; - /** chain provides the chain descriptor */ - chain: ChainDescriptor; - /** codec provides metadata information regarding codec related types */ - codec: CodecDescriptor; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration: ConfigurationDescriptor; - /** query_services provides metadata information regarding the available queriable endpoints */ - queryServices: QueryServicesDescriptor; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx: TxDescriptor; -} -export interface AppDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor"; - value: Uint8Array; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorAmino { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn?: AuthnDescriptorAmino; - /** chain provides the chain descriptor */ - chain?: ChainDescriptorAmino; - /** codec provides metadata information regarding codec related types */ - codec?: CodecDescriptorAmino; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration?: ConfigurationDescriptorAmino; - /** query_services provides metadata information regarding the available queriable endpoints */ - query_services?: QueryServicesDescriptorAmino; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx?: TxDescriptorAmino; -} -export interface AppDescriptorAminoMsg { - type: "cosmos-sdk/AppDescriptor"; - value: AppDescriptorAmino; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorSDKType { - authn: AuthnDescriptorSDKType; - chain: ChainDescriptorSDKType; - codec: CodecDescriptorSDKType; - configuration: ConfigurationDescriptorSDKType; - query_services: QueryServicesDescriptorSDKType; - tx: TxDescriptorSDKType; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptor { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs: MsgDescriptor[]; -} -export interface TxDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor"; - value: Uint8Array; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorAmino { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs: MsgDescriptorAmino[]; -} -export interface TxDescriptorAminoMsg { - type: "cosmos-sdk/TxDescriptor"; - value: TxDescriptorAmino; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorSDKType { - fullname: string; - msgs: MsgDescriptorSDKType[]; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptor { - /** sign_modes defines the supported signature algorithm */ - signModes: SigningModeDescriptor[]; -} -export interface AuthnDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor"; - value: Uint8Array; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorAmino { - /** sign_modes defines the supported signature algorithm */ - sign_modes: SigningModeDescriptorAmino[]; -} -export interface AuthnDescriptorAminoMsg { - type: "cosmos-sdk/AuthnDescriptor"; - value: AuthnDescriptorAmino; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorSDKType { - sign_modes: SigningModeDescriptorSDKType[]; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptor { - /** name defines the unique name of the signing mode */ - name: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authnInfoProviderMethodFullname: string; -} -export interface SigningModeDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor"; - value: Uint8Array; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorAmino { - /** name defines the unique name of the signing mode */ - name: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authn_info_provider_method_fullname: string; -} -export interface SigningModeDescriptorAminoMsg { - type: "cosmos-sdk/SigningModeDescriptor"; - value: SigningModeDescriptorAmino; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorSDKType { - name: string; - number: number; - authn_info_provider_method_fullname: string; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptor { - /** id is the chain id */ - id: string; -} -export interface ChainDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor"; - value: Uint8Array; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorAmino { - /** id is the chain id */ - id: string; -} -export interface ChainDescriptorAminoMsg { - type: "cosmos-sdk/ChainDescriptor"; - value: ChainDescriptorAmino; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorSDKType { - id: string; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptor { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces: InterfaceDescriptor[]; -} -export interface CodecDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor"; - value: Uint8Array; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorAmino { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces: InterfaceDescriptorAmino[]; -} -export interface CodecDescriptorAminoMsg { - type: "cosmos-sdk/CodecDescriptor"; - value: CodecDescriptorAmino; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorSDKType { - interfaces: InterfaceDescriptorSDKType[]; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptor { - /** fullname is the name of the interface */ - fullname: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interfaceImplementers: InterfaceImplementerDescriptor[]; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor"; - value: Uint8Array; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorAmino { - /** fullname is the name of the interface */ - fullname: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interface_accepting_messages: InterfaceAcceptingMessageDescriptorAmino[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interface_implementers: InterfaceImplementerDescriptorAmino[]; -} -export interface InterfaceDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorSDKType { - fullname: string; - interface_accepting_messages: InterfaceAcceptingMessageDescriptorSDKType[]; - interface_implementers: InterfaceImplementerDescriptorSDKType[]; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptor { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - typeUrl: string; -} -export interface InterfaceImplementerDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor"; - value: Uint8Array; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorAmino { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - type_url: string; -} -export interface InterfaceImplementerDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceImplementerDescriptor"; - value: InterfaceImplementerDescriptorAmino; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorSDKType { - fullname: string; - type_url: string; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptor { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - fieldDescriptorNames: string[]; -} -export interface InterfaceAcceptingMessageDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor"; - value: Uint8Array; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorAmino { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - field_descriptor_names: string[]; -} -export interface InterfaceAcceptingMessageDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor"; - value: InterfaceAcceptingMessageDescriptorAmino; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorSDKType { - fullname: string; - field_descriptor_names: string[]; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptor { - /** bech32_account_address_prefix is the account address prefix */ - bech32AccountAddressPrefix: string; -} -export interface ConfigurationDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor"; - value: Uint8Array; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorAmino { - /** bech32_account_address_prefix is the account address prefix */ - bech32_account_address_prefix: string; -} -export interface ConfigurationDescriptorAminoMsg { - type: "cosmos-sdk/ConfigurationDescriptor"; - value: ConfigurationDescriptorAmino; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorSDKType { - bech32_account_address_prefix: string; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptor { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msgTypeUrl: string; -} -export interface MsgDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor"; - value: Uint8Array; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorAmino { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msg_type_url: string; -} -export interface MsgDescriptorAminoMsg { - type: "cosmos-sdk/MsgDescriptor"; - value: MsgDescriptorAmino; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorSDKType { - msg_type_url: string; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequest {} -export interface GetAuthnDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest"; - value: Uint8Array; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestAmino {} -export interface GetAuthnDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorRequest"; - value: GetAuthnDescriptorRequestAmino; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestSDKType {} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponse { - /** authn describes how to authenticate to the application when sending transactions */ - authn: AuthnDescriptor; -} -export interface GetAuthnDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; - value: Uint8Array; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseAmino { - /** authn describes how to authenticate to the application when sending transactions */ - authn?: AuthnDescriptorAmino; -} -export interface GetAuthnDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorResponse"; - value: GetAuthnDescriptorResponseAmino; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseSDKType { - authn: AuthnDescriptorSDKType; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequest {} -export interface GetChainDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest"; - value: Uint8Array; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestAmino {} -export interface GetChainDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetChainDescriptorRequest"; - value: GetChainDescriptorRequestAmino; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestSDKType {} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponse { - /** chain describes application chain information */ - chain: ChainDescriptor; -} -export interface GetChainDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; - value: Uint8Array; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseAmino { - /** chain describes application chain information */ - chain?: ChainDescriptorAmino; -} -export interface GetChainDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetChainDescriptorResponse"; - value: GetChainDescriptorResponseAmino; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseSDKType { - chain: ChainDescriptorSDKType; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequest {} -export interface GetCodecDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest"; - value: Uint8Array; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestAmino {} -export interface GetCodecDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorRequest"; - value: GetCodecDescriptorRequestAmino; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestSDKType {} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponse { - /** codec describes the application codec such as registered interfaces and implementations */ - codec: CodecDescriptor; -} -export interface GetCodecDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; - value: Uint8Array; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseAmino { - /** codec describes the application codec such as registered interfaces and implementations */ - codec?: CodecDescriptorAmino; -} -export interface GetCodecDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorResponse"; - value: GetCodecDescriptorResponseAmino; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseSDKType { - codec: CodecDescriptorSDKType; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequest {} -export interface GetConfigurationDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest"; - value: Uint8Array; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestAmino {} -export interface GetConfigurationDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorRequest"; - value: GetConfigurationDescriptorRequestAmino; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestSDKType {} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponse { - /** config describes the application's sdk.Config */ - config: ConfigurationDescriptor; -} -export interface GetConfigurationDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; - value: Uint8Array; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseAmino { - /** config describes the application's sdk.Config */ - config?: ConfigurationDescriptorAmino; -} -export interface GetConfigurationDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorResponse"; - value: GetConfigurationDescriptorResponseAmino; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseSDKType { - config: ConfigurationDescriptorSDKType; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequest {} -export interface GetQueryServicesDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestAmino {} -export interface GetQueryServicesDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorRequest"; - value: GetQueryServicesDescriptorRequestAmino; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestSDKType {} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponse { - /** queries provides information on the available queryable services */ - queries: QueryServicesDescriptor; -} -export interface GetQueryServicesDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseAmino { - /** queries provides information on the available queryable services */ - queries?: QueryServicesDescriptorAmino; -} -export interface GetQueryServicesDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorResponse"; - value: GetQueryServicesDescriptorResponseAmino; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseSDKType { - queries: QueryServicesDescriptorSDKType; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequest {} -export interface GetTxDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest"; - value: Uint8Array; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestAmino {} -export interface GetTxDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetTxDescriptorRequest"; - value: GetTxDescriptorRequestAmino; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestSDKType {} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponse { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx: TxDescriptor; -} -export interface GetTxDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; - value: Uint8Array; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseAmino { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx?: TxDescriptorAmino; -} -export interface GetTxDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetTxDescriptorResponse"; - value: GetTxDescriptorResponseAmino; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseSDKType { - tx: TxDescriptorSDKType; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptor { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - queryServices: QueryServiceDescriptor[]; -} -export interface QueryServicesDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor"; - value: Uint8Array; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorAmino { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - query_services: QueryServiceDescriptorAmino[]; -} -export interface QueryServicesDescriptorAminoMsg { - type: "cosmos-sdk/QueryServicesDescriptor"; - value: QueryServicesDescriptorAmino; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorSDKType { - query_services: QueryServiceDescriptorSDKType[]; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptor { - /** fullname is the protobuf fullname of the service descriptor */ - fullname: string; - /** is_module describes if this service is actually exposed by an application's module */ - isModule: boolean; - /** methods provides a list of query service methods */ - methods: QueryMethodDescriptor[]; -} -export interface QueryServiceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor"; - value: Uint8Array; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorAmino { - /** fullname is the protobuf fullname of the service descriptor */ - fullname: string; - /** is_module describes if this service is actually exposed by an application's module */ - is_module: boolean; - /** methods provides a list of query service methods */ - methods: QueryMethodDescriptorAmino[]; -} -export interface QueryServiceDescriptorAminoMsg { - type: "cosmos-sdk/QueryServiceDescriptor"; - value: QueryServiceDescriptorAmino; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorSDKType { - fullname: string; - is_module: boolean; - methods: QueryMethodDescriptorSDKType[]; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptor { - /** name is the protobuf name (not fullname) of the method */ - name: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - fullQueryPath: string; -} -export interface QueryMethodDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor"; - value: Uint8Array; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorAmino { - /** name is the protobuf name (not fullname) of the method */ - name: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - full_query_path: string; -} -export interface QueryMethodDescriptorAminoMsg { - type: "cosmos-sdk/QueryMethodDescriptor"; - value: QueryMethodDescriptorAmino; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorSDKType { - name: string; - full_query_path: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/snapshots/v1beta1/snapshot.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/snapshots/v1beta1/snapshot.ts deleted file mode 100644 index 9dec53c0f..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/snapshots/v1beta1/snapshot.ts +++ /dev/null @@ -1,229 +0,0 @@ -import { Long } from "../../../../helpers"; -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface Snapshot { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Metadata; -} -export interface SnapshotProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.Snapshot"; - value: Uint8Array; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotAmino { - height: string; - format: number; - chunks: number; - hash: Uint8Array; - metadata?: MetadataAmino; -} -export interface SnapshotAminoMsg { - type: "cosmos-sdk/Snapshot"; - value: SnapshotAmino; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotSDKType { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: MetadataSDKType; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface Metadata { - /** SHA-256 chunk hashes */ - chunkHashes: Uint8Array[]; -} -export interface MetadataProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.Metadata"; - value: Uint8Array; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataAmino { - /** SHA-256 chunk hashes */ - chunk_hashes: Uint8Array[]; -} -export interface MetadataAminoMsg { - type: "cosmos-sdk/Metadata"; - value: MetadataAmino; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataSDKType { - chunk_hashes: Uint8Array[]; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItem { - store?: SnapshotStoreItem; - iavl?: SnapshotIAVLItem; - extension?: SnapshotExtensionMeta; - extensionPayload?: SnapshotExtensionPayload; - kv?: SnapshotKVItem; - schema?: SnapshotSchema; -} -export interface SnapshotItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotItem"; - value: Uint8Array; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItemAmino { - store?: SnapshotStoreItemAmino; - iavl?: SnapshotIAVLItemAmino; - extension?: SnapshotExtensionMetaAmino; - extension_payload?: SnapshotExtensionPayloadAmino; - kv?: SnapshotKVItemAmino; - schema?: SnapshotSchemaAmino; -} -export interface SnapshotItemAminoMsg { - type: "cosmos-sdk/SnapshotItem"; - value: SnapshotItemAmino; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItemSDKType { - store?: SnapshotStoreItemSDKType; - iavl?: SnapshotIAVLItemSDKType; - extension?: SnapshotExtensionMetaSDKType; - extension_payload?: SnapshotExtensionPayloadSDKType; - kv?: SnapshotKVItemSDKType; - schema?: SnapshotSchemaSDKType; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItem { - name: string; -} -export interface SnapshotStoreItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotStoreItem"; - value: Uint8Array; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItemAmino { - name: string; -} -export interface SnapshotStoreItemAminoMsg { - type: "cosmos-sdk/SnapshotStoreItem"; - value: SnapshotStoreItemAmino; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItemSDKType { - name: string; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItem { - key: Uint8Array; - value: Uint8Array; - /** version is block height */ - version: Long; - /** height is depth of the tree. */ - height: number; -} -export interface SnapshotIAVLItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotIAVLItem"; - value: Uint8Array; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItemAmino { - key: Uint8Array; - value: Uint8Array; - /** version is block height */ - version: string; - /** height is depth of the tree. */ - height: number; -} -export interface SnapshotIAVLItemAminoMsg { - type: "cosmos-sdk/SnapshotIAVLItem"; - value: SnapshotIAVLItemAmino; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItemSDKType { - key: Uint8Array; - value: Uint8Array; - version: Long; - height: number; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMeta { - name: string; - format: number; -} -export interface SnapshotExtensionMetaProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta"; - value: Uint8Array; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMetaAmino { - name: string; - format: number; -} -export interface SnapshotExtensionMetaAminoMsg { - type: "cosmos-sdk/SnapshotExtensionMeta"; - value: SnapshotExtensionMetaAmino; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMetaSDKType { - name: string; - format: number; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayload { - payload: Uint8Array; -} -export interface SnapshotExtensionPayloadProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload"; - value: Uint8Array; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayloadAmino { - payload: Uint8Array; -} -export interface SnapshotExtensionPayloadAminoMsg { - type: "cosmos-sdk/SnapshotExtensionPayload"; - value: SnapshotExtensionPayloadAmino; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayloadSDKType { - payload: Uint8Array; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItem { - key: Uint8Array; - value: Uint8Array; -} -export interface SnapshotKVItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotKVItem"; - value: Uint8Array; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItemAmino { - key: Uint8Array; - value: Uint8Array; -} -export interface SnapshotKVItemAminoMsg { - type: "cosmos-sdk/SnapshotKVItem"; - value: SnapshotKVItemAmino; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItemSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchema { - keys: Uint8Array[]; -} -export interface SnapshotSchemaProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotSchema"; - value: Uint8Array; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchemaAmino { - keys: Uint8Array[]; -} -export interface SnapshotSchemaAminoMsg { - type: "cosmos-sdk/SnapshotSchema"; - value: SnapshotSchemaAmino; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchemaSDKType { - keys: Uint8Array[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/commit_info.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/commit_info.ts deleted file mode 100644 index ca59c9719..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/commit_info.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { Long } from "../../../../helpers"; -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfo { - version: Long; - storeInfos: StoreInfo[]; -} -export interface CommitInfoProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.CommitInfo"; - value: Uint8Array; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoAmino { - version: string; - store_infos: StoreInfoAmino[]; -} -export interface CommitInfoAminoMsg { - type: "cosmos-sdk/CommitInfo"; - value: CommitInfoAmino; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoSDKType { - version: Long; - store_infos: StoreInfoSDKType[]; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfo { - name: string; - commitId: CommitID; -} -export interface StoreInfoProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.StoreInfo"; - value: Uint8Array; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoAmino { - name: string; - commit_id?: CommitIDAmino; -} -export interface StoreInfoAminoMsg { - type: "cosmos-sdk/StoreInfo"; - value: StoreInfoAmino; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoSDKType { - name: string; - commit_id: CommitIDSDKType; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitID { - version: Long; - hash: Uint8Array; -} -export interface CommitIDProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.CommitID"; - value: Uint8Array; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDAmino { - version: string; - hash: Uint8Array; -} -export interface CommitIDAminoMsg { - type: "cosmos-sdk/CommitID"; - value: CommitIDAmino; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDSDKType { - version: Long; - hash: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/listening.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/listening.ts deleted file mode 100644 index ef76c07c0..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/store/v1beta1/listening.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPair { - /** the store key for the KVStore this pair originates from */ - storeKey: string; - /** true indicates a delete operation, false indicates a set operation */ - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -export interface StoreKVPairProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.StoreKVPair"; - value: Uint8Array; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairAmino { - /** the store key for the KVStore this pair originates from */ - store_key: string; - /** true indicates a delete operation, false indicates a set operation */ - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -export interface StoreKVPairAminoMsg { - type: "cosmos-sdk/StoreKVPair"; - value: StoreKVPairAmino; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairSDKType { - store_key: string; - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/v1beta1/coin.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/v1beta1/coin.ts deleted file mode 100644 index 64e2475c4..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/base/v1beta1/coin.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface Coin { - denom: string; - amount: string; -} -export interface CoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.Coin"; - value: Uint8Array; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinAmino { - denom: string; - amount: string; -} -export interface CoinAminoMsg { - type: "cosmos-sdk/Coin"; - value: CoinAmino; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinSDKType { - denom: string; - amount: string; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoin { - denom: string; - amount: string; -} -export interface DecCoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecCoin"; - value: Uint8Array; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinAmino { - denom: string; - amount: string; -} -export interface DecCoinAminoMsg { - type: "cosmos-sdk/DecCoin"; - value: DecCoinAmino; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinSDKType { - denom: string; - amount: string; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProto { - int: string; -} -export interface IntProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.IntProto"; - value: Uint8Array; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoAmino { - int: string; -} -export interface IntProtoAminoMsg { - type: "cosmos-sdk/IntProto"; - value: IntProtoAmino; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoSDKType { - int: string; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProto { - dec: string; -} -export interface DecProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecProto"; - value: Uint8Array; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoAmino { - dec: string; -} -export interface DecProtoAminoMsg { - type: "cosmos-sdk/DecProto"; - value: DecProtoAmino; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoSDKType { - dec: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bundle.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bundle.ts deleted file mode 100644 index 6d87b39ef..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/bundle.ts +++ /dev/null @@ -1,298 +0,0 @@ -import * as _18 from "./app/v1alpha1/config"; -import * as _19 from "./app/v1alpha1/module"; -import * as _20 from "./auth/v1beta1/auth"; -import * as _21 from "./auth/v1beta1/genesis"; -import * as _22 from "./authz/v1beta1/authz"; -import * as _23 from "./authz/v1beta1/event"; -import * as _24 from "./authz/v1beta1/genesis"; -import * as _25 from "./authz/v1beta1/tx"; -import * as _26 from "./bank/v1beta1/authz"; -import * as _27 from "./bank/v1beta1/bank"; -import * as _28 from "./bank/v1beta1/genesis"; -import * as _29 from "./bank/v1beta1/tx"; -import * as _30 from "./base/abci/v1beta1/abci"; -import * as _31 from "./base/kv/v1beta1/kv"; -import * as _32 from "./base/query/v1beta1/pagination"; -import * as _33 from "./base/reflection/v1beta1/reflection"; -import * as _34 from "./base/reflection/v2alpha1/reflection"; -import * as _35 from "./base/snapshots/v1beta1/snapshot"; -import * as _36 from "./base/store/v1beta1/commit_info"; -import * as _37 from "./base/store/v1beta1/listening"; -import * as _38 from "./base/v1beta1/coin"; -import * as _39 from "./capability/v1beta1/capability"; -import * as _40 from "./capability/v1beta1/genesis"; -import * as _41 from "./crisis/v1beta1/genesis"; -import * as _42 from "./crisis/v1beta1/tx"; -import * as _43 from "./crypto/ed25519/keys"; -import * as _44 from "./crypto/hd/v1/hd"; -import * as _45 from "./crypto/keyring/v1/record"; -import * as _46 from "./crypto/multisig/keys"; -import * as _47 from "./crypto/secp256k1/keys"; -import * as _48 from "./crypto/secp256r1/keys"; -import * as _49 from "./distribution/v1beta1/distribution"; -import * as _50 from "./distribution/v1beta1/genesis"; -import * as _51 from "./distribution/v1beta1/tx"; -import * as _52 from "./evidence/v1beta1/evidence"; -import * as _53 from "./evidence/v1beta1/genesis"; -import * as _54 from "./evidence/v1beta1/tx"; -import * as _55 from "./feegrant/v1beta1/feegrant"; -import * as _56 from "./feegrant/v1beta1/genesis"; -import * as _57 from "./feegrant/v1beta1/tx"; -import * as _58 from "./genutil/v1beta1/genesis"; -import * as _59 from "./gov/v1/genesis"; -import * as _60 from "./gov/v1/gov"; -import * as _61 from "./gov/v1/tx"; -import * as _62 from "./gov/v1beta1/genesis"; -import * as _63 from "./gov/v1beta1/gov"; -import * as _64 from "./gov/v1beta1/tx"; -import * as _65 from "./group/v1/events"; -import * as _66 from "./group/v1/genesis"; -import * as _67 from "./group/v1/tx"; -import * as _68 from "./group/v1/types"; -import * as _69 from "./mint/v1beta1/genesis"; -import * as _70 from "./mint/v1beta1/mint"; -import * as _71 from "./msg/v1/msg"; -import * as _72 from "./slashing/v1beta1/msg"; -import * as _73 from "./nft/v1beta1/event"; -import * as _74 from "./nft/v1beta1/genesis"; -import * as _75 from "./nft/v1beta1/nft"; -import * as _76 from "./nft/v1beta1/tx"; -import * as _77 from "./orm/v1/orm"; -import * as _78 from "./orm/v1alpha1/schema"; -import * as _79 from "./params/v1beta1/params"; -import * as _80 from "./slashing/v1beta1/genesis"; -import * as _81 from "./slashing/v1beta1/slashing"; -import * as _82 from "./slashing/v1beta1/tx"; -import * as _83 from "./staking/v1beta1/authz"; -import * as _84 from "./staking/v1beta1/genesis"; -import * as _85 from "./staking/v1beta1/staking"; -import * as _86 from "./staking/v1beta1/tx"; -import * as _87 from "./tx/signing/v1beta1/signing"; -import * as _88 from "./tx/v1beta1/service"; -import * as _89 from "./tx/v1beta1/tx"; -import * as _90 from "./upgrade/v1beta1/tx"; -import * as _91 from "./upgrade/v1beta1/upgrade"; -import * as _92 from "./vesting/v1beta1/tx"; -import * as _93 from "./vesting/v1beta1/vesting"; -export namespace cosmos { - export namespace app { - export const v1alpha1 = { - ..._18, - ..._19, - }; - } - export namespace auth { - export const v1beta1 = { - ..._20, - ..._21, - }; - } - export namespace authz { - export const v1beta1 = { - ..._22, - ..._23, - ..._24, - ..._25, - }; - } - export namespace bank { - export const v1beta1 = { - ..._26, - ..._27, - ..._28, - ..._29, - }; - } - export namespace base { - export namespace abci { - export const v1beta1 = { - ..._30, - }; - } - export namespace kv { - export const v1beta1 = { - ..._31, - }; - } - export namespace query { - export const v1beta1 = { - ..._32, - }; - } - export namespace reflection { - export const v1beta1 = { - ..._33, - }; - export const v2alpha1 = { - ..._34, - }; - } - export namespace snapshots { - export const v1beta1 = { - ..._35, - }; - } - export namespace store { - export const v1beta1 = { - ..._36, - ..._37, - }; - } - export const v1beta1 = { - ..._38, - }; - } - export namespace capability { - export const v1beta1 = { - ..._39, - ..._40, - }; - } - export namespace crisis { - export const v1beta1 = { - ..._41, - ..._42, - }; - } - export namespace crypto { - export const ed25519 = { - ..._43, - }; - export namespace hd { - export const v1 = { - ..._44, - }; - } - export namespace keyring { - export const v1 = { - ..._45, - }; - } - export const multisig = { - ..._46, - }; - export const secp256k1 = { - ..._47, - }; - export const secp256r1 = { - ..._48, - }; - } - export namespace distribution { - export const v1beta1 = { - ..._49, - ..._50, - ..._51, - }; - } - export namespace evidence { - export const v1beta1 = { - ..._52, - ..._53, - ..._54, - }; - } - export namespace feegrant { - export const v1beta1 = { - ..._55, - ..._56, - ..._57, - }; - } - export namespace genutil { - export const v1beta1 = { - ..._58, - }; - } - export namespace gov { - export const v1 = { - ..._59, - ..._60, - ..._61, - }; - export const v1beta1 = { - ..._62, - ..._63, - ..._64, - }; - } - export namespace group { - export const v1 = { - ..._65, - ..._66, - ..._67, - ..._68, - }; - } - export namespace mint { - export const v1beta1 = { - ..._69, - ..._70, - }; - } - export namespace msg { - export const v1 = { - ..._71, - ..._72, - }; - } - export namespace nft { - export const v1beta1 = { - ..._73, - ..._74, - ..._75, - ..._76, - }; - } - export namespace orm { - export const v1 = { - ..._77, - }; - export const v1alpha1 = { - ..._78, - }; - } - export namespace params { - export const v1beta1 = { - ..._79, - }; - } - export namespace slashing { - export const v1beta1 = { - ..._80, - ..._81, - ..._82, - }; - } - export namespace staking { - export const v1beta1 = { - ..._83, - ..._84, - ..._85, - ..._86, - }; - } - export namespace tx { - export namespace signing { - export const v1beta1 = { - ..._87, - }; - } - export const v1beta1 = { - ..._88, - ..._89, - }; - } - export namespace upgrade { - export const v1beta1 = { - ..._90, - ..._91, - }; - } - export namespace vesting { - export const v1beta1 = { - ..._92, - ..._93, - }; - } -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/capability.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/capability.ts deleted file mode 100644 index ba2a4148a..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/capability.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { Long } from "../../../helpers"; -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface Capability { - index: Long; -} -export interface CapabilityProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.Capability"; - value: Uint8Array; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilityAmino { - index: string; -} -export interface CapabilityAminoMsg { - type: "cosmos-sdk/Capability"; - value: CapabilityAmino; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilitySDKType { - index: Long; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface Owner { - module: string; - name: string; -} -export interface OwnerProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.Owner"; - value: Uint8Array; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerAmino { - module: string; - name: string; -} -export interface OwnerAminoMsg { - type: "cosmos-sdk/Owner"; - value: OwnerAmino; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerSDKType { - module: string; - name: string; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwners { - owners: Owner[]; -} -export interface CapabilityOwnersProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.CapabilityOwners"; - value: Uint8Array; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersAmino { - owners: OwnerAmino[]; -} -export interface CapabilityOwnersAminoMsg { - type: "cosmos-sdk/CapabilityOwners"; - value: CapabilityOwnersAmino; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersSDKType { - owners: OwnerSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/genesis.ts deleted file mode 100644 index e6464c132..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/capability/v1beta1/genesis.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { - CapabilityOwners, - CapabilityOwnersAmino, - CapabilityOwnersSDKType, -} from "./capability"; -import { Long } from "../../../helpers"; -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwners { - /** index is the index of the capability owner. */ - index: Long; - /** index_owners are the owners at the given index. */ - indexOwners: CapabilityOwners; -} -export interface GenesisOwnersProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.GenesisOwners"; - value: Uint8Array; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersAmino { - /** index is the index of the capability owner. */ - index: string; - /** index_owners are the owners at the given index. */ - index_owners?: CapabilityOwnersAmino; -} -export interface GenesisOwnersAminoMsg { - type: "cosmos-sdk/GenesisOwners"; - value: GenesisOwnersAmino; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersSDKType { - index: Long; - index_owners: CapabilityOwnersSDKType; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisState { - /** index is the capability global index. */ - index: Long; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners: GenesisOwners[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateAmino { - /** index is the capability global index. */ - index: string; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners: GenesisOwnersAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateSDKType { - index: Long; - owners: GenesisOwnersSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/genesis.ts deleted file mode 100644 index a2c251ed2..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/genesis.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisState { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constantFee: Coin; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateAmino { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constant_fee?: CoinAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateSDKType { - constant_fee: CoinSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/tx.ts deleted file mode 100644 index 50f8fd809..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crisis/v1beta1/tx.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariant { - sender: string; - invariantModuleName: string; - invariantRoute: string; -} -export interface MsgVerifyInvariantProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant"; - value: Uint8Array; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantAmino { - sender: string; - invariant_module_name: string; - invariant_route: string; -} -export interface MsgVerifyInvariantAminoMsg { - type: "cosmos-sdk/MsgVerifyInvariant"; - value: MsgVerifyInvariantAmino; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantSDKType { - sender: string; - invariant_module_name: string; - invariant_route: string; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponse {} -export interface MsgVerifyInvariantResponseProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse"; - value: Uint8Array; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseAmino {} -export interface MsgVerifyInvariantResponseAminoMsg { - type: "cosmos-sdk/MsgVerifyInvariantResponse"; - value: MsgVerifyInvariantResponseAmino; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/ed25519/keys.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/ed25519/keys.ts deleted file mode 100644 index b53aa6f66..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/ed25519/keys.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PubKey"; - value: Uint8Array; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeyAmino { - key: Uint8Array; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PrivKey"; - value: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeyAmino { - key: Uint8Array; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeySDKType { - key: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/hd/v1/hd.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/hd/v1/hd.ts deleted file mode 100644 index cba849387..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/hd/v1/hd.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44Params { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose: number; - /** coin_type is a constant that improves privacy */ - coinType: number; - /** account splits the key space into independent user identities */ - account: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change: boolean; - /** address_index is used as child index in BIP32 derivation */ - addressIndex: number; -} -export interface BIP44ParamsProtoMsg { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params"; - value: Uint8Array; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsAmino { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose: number; - /** coin_type is a constant that improves privacy */ - coin_type: number; - /** account splits the key space into independent user identities */ - account: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change: boolean; - /** address_index is used as child index in BIP32 derivation */ - address_index: number; -} -export interface BIP44ParamsAminoMsg { - type: "cosmos-sdk/BIP44Params"; - value: BIP44ParamsAmino; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsSDKType { - purpose: number; - coin_type: number; - account: number; - change: boolean; - address_index: number; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/keyring/v1/record.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/keyring/v1/record.ts deleted file mode 100644 index 7ef48b72a..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/keyring/v1/record.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - BIP44Params, - BIP44ParamsAmino, - BIP44ParamsSDKType, -} from "../../hd/v1/hd"; -/** Record is used for representing a key in the keyring. */ -export interface Record { - /** name represents a name of Record */ - name: string; - /** pub_key represents a public key in any format */ - pubKey: Any; - /** local stores the public information about a locally stored key */ - local?: Record_Local; - /** ledger stores the public information about a Ledger key */ - ledger?: Record_Ledger; - /** Multi does not store any information. */ - multi?: Record_Multi; - /** Offline does not store any information. */ - offline?: Record_Offline; -} -export interface RecordProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Record"; - value: Uint8Array; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordAmino { - /** name represents a name of Record */ - name: string; - /** pub_key represents a public key in any format */ - pub_key?: AnyAmino; - /** local stores the public information about a locally stored key */ - local?: Record_LocalAmino; - /** ledger stores the public information about a Ledger key */ - ledger?: Record_LedgerAmino; - /** Multi does not store any information. */ - multi?: Record_MultiAmino; - /** Offline does not store any information. */ - offline?: Record_OfflineAmino; -} -export interface RecordAminoMsg { - type: "cosmos-sdk/Record"; - value: RecordAmino; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordSDKType { - name: string; - pub_key: AnySDKType; - local?: Record_LocalSDKType; - ledger?: Record_LedgerSDKType; - multi?: Record_MultiSDKType; - offline?: Record_OfflineSDKType; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_Local { - privKey: Any; - privKeyType: string; -} -export interface Record_LocalProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Local"; - value: Uint8Array; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalAmino { - priv_key?: AnyAmino; - priv_key_type: string; -} -export interface Record_LocalAminoMsg { - type: "cosmos-sdk/Local"; - value: Record_LocalAmino; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalSDKType { - priv_key: AnySDKType; - priv_key_type: string; -} -/** Ledger item */ -export interface Record_Ledger { - path: BIP44Params; -} -export interface Record_LedgerProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger"; - value: Uint8Array; -} -/** Ledger item */ -export interface Record_LedgerAmino { - path?: BIP44ParamsAmino; -} -export interface Record_LedgerAminoMsg { - type: "cosmos-sdk/Ledger"; - value: Record_LedgerAmino; -} -/** Ledger item */ -export interface Record_LedgerSDKType { - path: BIP44ParamsSDKType; -} -/** Multi item */ -export interface Record_Multi {} -export interface Record_MultiProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Multi"; - value: Uint8Array; -} -/** Multi item */ -export interface Record_MultiAmino {} -export interface Record_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: Record_MultiAmino; -} -/** Multi item */ -export interface Record_MultiSDKType {} -/** Offline item */ -export interface Record_Offline {} -export interface Record_OfflineProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Offline"; - value: Uint8Array; -} -/** Offline item */ -export interface Record_OfflineAmino {} -export interface Record_OfflineAminoMsg { - type: "cosmos-sdk/Offline"; - value: Record_OfflineAmino; -} -/** Offline item */ -export interface Record_OfflineSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/multisig/keys.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/multisig/keys.ts deleted file mode 100644 index 32db1d810..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/multisig/keys.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKey { - threshold: number; - publicKeys: Any[]; -} -export interface LegacyAminoPubKeyProtoMsg { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey"; - value: Uint8Array; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeyAmino { - threshold: number; - public_keys: AnyAmino[]; -} -export interface LegacyAminoPubKeyAminoMsg { - type: "cosmos-sdk/LegacyAminoPubKey"; - value: LegacyAminoPubKeyAmino; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeySDKType { - threshold: number; - public_keys: AnySDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/multisig/v1beta1/multisig.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/multisig/v1beta1/multisig.ts deleted file mode 100644 index 1f2addb46..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/multisig/v1beta1/multisig.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignature { - signatures: Uint8Array[]; -} -export interface MultiSignatureProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature"; - value: Uint8Array; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureAmino { - signatures: Uint8Array[]; -} -export interface MultiSignatureAminoMsg { - type: "cosmos-sdk/MultiSignature"; - value: MultiSignatureAmino; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureSDKType { - signatures: Uint8Array[]; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArray { - extraBitsStored: number; - elems: Uint8Array; -} -export interface CompactBitArrayProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray"; - value: Uint8Array; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArrayAmino { - extra_bits_stored: number; - elems: Uint8Array; -} -export interface CompactBitArrayAminoMsg { - type: "cosmos-sdk/CompactBitArray"; - value: CompactBitArrayAmino; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArraySDKType { - extra_bits_stored: number; - elems: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/secp256k1/keys.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/secp256k1/keys.ts deleted file mode 100644 index 350d0e855..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/secp256k1/keys.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PubKey"; - value: Uint8Array; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeyAmino { - key: Uint8Array; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeyAmino { - key: Uint8Array; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeySDKType { - key: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/secp256r1/keys.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/secp256r1/keys.ts deleted file mode 100644 index 909dc35cf..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/crypto/secp256r1/keys.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKey { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PubKey"; - value: Uint8Array; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeyAmino { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key: Uint8Array; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKey { - /** secret number serialized using big-endian encoding */ - secret: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeyAmino { - /** secret number serialized using big-endian encoding */ - secret: Uint8Array; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeySDKType { - secret: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/distribution.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/distribution.ts deleted file mode 100644 index 17b3132cf..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/distribution.ts +++ /dev/null @@ -1,432 +0,0 @@ -import { - DecCoin, - DecCoinAmino, - DecCoinSDKType, - Coin, - CoinAmino, - CoinSDKType, -} from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** Params defines the set of params for the distribution module. */ -export interface Params { - communityTax: string; - baseProposerReward: string; - bonusProposerReward: string; - withdrawAddrEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsAmino { - community_tax: string; - base_proposer_reward: string; - bonus_proposer_reward: string; - withdraw_addr_enabled: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsSDKType { - community_tax: string; - base_proposer_reward: string; - bonus_proposer_reward: string; - withdraw_addr_enabled: boolean; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * 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 - */ -export interface ValidatorHistoricalRewards { - cumulativeRewardRatio: DecCoin[]; - referenceCount: number; -} -export interface ValidatorHistoricalRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * 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 - */ -export interface ValidatorHistoricalRewardsAmino { - cumulative_reward_ratio: DecCoinAmino[]; - reference_count: number; -} -export interface ValidatorHistoricalRewardsAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewards"; - value: ValidatorHistoricalRewardsAmino; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * 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 - */ -export interface ValidatorHistoricalRewardsSDKType { - cumulative_reward_ratio: DecCoinSDKType[]; - reference_count: number; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewards { - rewards: DecCoin[]; - period: Long; -} -export interface ValidatorCurrentRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards"; - value: Uint8Array; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsAmino { - rewards: DecCoinAmino[]; - period: string; -} -export interface ValidatorCurrentRewardsAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewards"; - value: ValidatorCurrentRewardsAmino; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsSDKType { - rewards: DecCoinSDKType[]; - period: Long; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommission { - commission: DecCoin[]; -} -export interface ValidatorAccumulatedCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionAmino { - commission: DecCoinAmino[]; -} -export interface ValidatorAccumulatedCommissionAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommission"; - value: ValidatorAccumulatedCommissionAmino; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionSDKType { - commission: DecCoinSDKType[]; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewards { - rewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards"; - value: Uint8Array; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsAmino { - rewards: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewards"; - value: ValidatorOutstandingRewardsAmino; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsSDKType { - rewards: DecCoinSDKType[]; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEvent { - validatorPeriod: Long; - fraction: string; -} -export interface ValidatorSlashEventProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent"; - value: Uint8Array; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventAmino { - validator_period: string; - fraction: string; -} -export interface ValidatorSlashEventAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvent"; - value: ValidatorSlashEventAmino; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventSDKType { - validator_period: Long; - fraction: string; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEvents { - validatorSlashEvents: ValidatorSlashEvent[]; -} -export interface ValidatorSlashEventsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents"; - value: Uint8Array; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsAmino { - validator_slash_events: ValidatorSlashEventAmino[]; -} -export interface ValidatorSlashEventsAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvents"; - value: ValidatorSlashEventsAmino; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsSDKType { - validator_slash_events: ValidatorSlashEventSDKType[]; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePool { - communityPool: DecCoin[]; -} -export interface FeePoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.FeePool"; - value: Uint8Array; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolAmino { - community_pool: DecCoinAmino[]; -} -export interface FeePoolAminoMsg { - type: "cosmos-sdk/FeePool"; - value: FeePoolAmino; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolSDKType { - community_pool: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposal { - title: string; - description: string; - recipient: string; - amount: Coin[]; -} -export interface CommunityPoolSpendProposalProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalAmino { - title: string; - description: string; - recipient: string; - amount: CoinAmino[]; -} -export interface CommunityPoolSpendProposalAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposal"; - value: CommunityPoolSpendProposalAmino; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalSDKType { - title: string; - description: string; - recipient: string; - amount: CoinSDKType[]; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator 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. - */ -export interface DelegatorStartingInfo { - previousPeriod: Long; - stake: string; - height: Long; -} -export interface DelegatorStartingInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo"; - value: Uint8Array; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator 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. - */ -export interface DelegatorStartingInfoAmino { - previous_period: string; - stake: string; - height: string; -} -export interface DelegatorStartingInfoAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfo"; - value: DelegatorStartingInfoAmino; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator 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. - */ -export interface DelegatorStartingInfoSDKType { - previous_period: Long; - stake: string; - height: Long; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorReward { - validatorAddress: string; - reward: DecCoin[]; -} -export interface DelegationDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward"; - value: Uint8Array; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardAmino { - validator_address: string; - reward: DecCoinAmino[]; -} -export interface DelegationDelegatorRewardAminoMsg { - type: "cosmos-sdk/DelegationDelegatorReward"; - value: DelegationDelegatorRewardAmino; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardSDKType { - validator_address: string; - reward: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDeposit { - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -export interface CommunityPoolSpendProposalWithDepositProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositAmino { - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -export interface CommunityPoolSpendProposalWithDepositAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit"; - value: CommunityPoolSpendProposalWithDepositAmino; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositSDKType { - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/genesis.ts deleted file mode 100644 index e0de5a96d..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/genesis.ts +++ /dev/null @@ -1,331 +0,0 @@ -import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; -import { - ValidatorAccumulatedCommission, - ValidatorAccumulatedCommissionAmino, - ValidatorAccumulatedCommissionSDKType, - ValidatorHistoricalRewards, - ValidatorHistoricalRewardsAmino, - ValidatorHistoricalRewardsSDKType, - ValidatorCurrentRewards, - ValidatorCurrentRewardsAmino, - ValidatorCurrentRewardsSDKType, - DelegatorStartingInfo, - DelegatorStartingInfoAmino, - DelegatorStartingInfoSDKType, - ValidatorSlashEvent, - ValidatorSlashEventAmino, - ValidatorSlashEventSDKType, - Params, - ParamsAmino, - ParamsSDKType, - FeePool, - FeePoolAmino, - FeePoolSDKType, -} from "./distribution"; -import { Long } from "../../../helpers"; -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfo { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdrawAddress: string; -} -export interface DelegatorWithdrawInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo"; - value: Uint8Array; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoAmino { - /** delegator_address is the address of the delegator. */ - delegator_address: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdraw_address: string; -} -export interface DelegatorWithdrawInfoAminoMsg { - type: "cosmos-sdk/DelegatorWithdrawInfo"; - value: DelegatorWithdrawInfoAmino; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoSDKType { - delegator_address: string; - withdraw_address: string; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstandingRewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord"; - value: Uint8Array; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstanding_rewards: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewardsRecord"; - value: ValidatorOutstandingRewardsRecordAmino; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordSDKType { - validator_address: string; - outstanding_rewards: DecCoinSDKType[]; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated: ValidatorAccumulatedCommission; -} -export interface ValidatorAccumulatedCommissionRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated?: ValidatorAccumulatedCommissionAmino; -} -export interface ValidatorAccumulatedCommissionRecordAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord"; - value: ValidatorAccumulatedCommissionRecordAmino; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordSDKType { - validator_address: string; - accumulated: ValidatorAccumulatedCommissionSDKType; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** period defines the period the historical rewards apply to. */ - period: Long; - /** rewards defines the historical rewards of a validator. */ - rewards: ValidatorHistoricalRewards; -} -export interface ValidatorHistoricalRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** period defines the period the historical rewards apply to. */ - period: string; - /** rewards defines the historical rewards of a validator. */ - rewards?: ValidatorHistoricalRewardsAmino; -} -export interface ValidatorHistoricalRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewardsRecord"; - value: ValidatorHistoricalRewardsRecordAmino; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordSDKType { - validator_address: string; - period: Long; - rewards: ValidatorHistoricalRewardsSDKType; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** rewards defines the current rewards of a validator. */ - rewards: ValidatorCurrentRewards; -} -export interface ValidatorCurrentRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord"; - value: Uint8Array; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** rewards defines the current rewards of a validator. */ - rewards?: ValidatorCurrentRewardsAmino; -} -export interface ValidatorCurrentRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewardsRecord"; - value: ValidatorCurrentRewardsRecordAmino; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordSDKType { - validator_address: string; - rewards: ValidatorCurrentRewardsSDKType; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecord { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** starting_info defines the starting info of a delegator. */ - startingInfo: DelegatorStartingInfo; -} -export interface DelegatorStartingInfoRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord"; - value: Uint8Array; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordAmino { - /** delegator_address is the address of the delegator. */ - delegator_address: string; - /** validator_address is the address of the validator. */ - validator_address: string; - /** starting_info defines the starting info of a delegator. */ - starting_info?: DelegatorStartingInfoAmino; -} -export interface DelegatorStartingInfoRecordAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfoRecord"; - value: DelegatorStartingInfoRecordAmino; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordSDKType { - delegator_address: string; - validator_address: string; - starting_info: DelegatorStartingInfoSDKType; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** height defines the block height at which the slash event occured. */ - height: Long; - /** period is the period of the slash event. */ - period: Long; - /** validator_slash_event describes the slash event. */ - validatorSlashEvent: ValidatorSlashEvent; -} -export interface ValidatorSlashEventRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord"; - value: Uint8Array; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordAmino { - /** validator_address is the address of the validator. */ - validator_address: string; - /** height defines the block height at which the slash event occured. */ - height: string; - /** period is the period of the slash event. */ - period: string; - /** validator_slash_event describes the slash event. */ - validator_slash_event?: ValidatorSlashEventAmino; -} -export interface ValidatorSlashEventRecordAminoMsg { - type: "cosmos-sdk/ValidatorSlashEventRecord"; - value: ValidatorSlashEventRecordAmino; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordSDKType { - validator_address: string; - height: Long; - period: Long; - validator_slash_event: ValidatorSlashEventSDKType; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** fee_pool defines the fee pool at genesis. */ - feePool: FeePool; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegatorWithdrawInfos: DelegatorWithdrawInfo[]; - /** fee_pool defines the previous proposer at genesis. */ - previousProposer: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstandingRewards: ValidatorOutstandingRewardsRecord[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validatorCurrentRewards: ValidatorCurrentRewardsRecord[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegatorStartingInfos: DelegatorStartingInfoRecord[]; - /** fee_pool defines the validator slash events at genesis. */ - validatorSlashEvents: ValidatorSlashEventRecord[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** fee_pool defines the fee pool at genesis. */ - fee_pool?: FeePoolAmino; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegator_withdraw_infos: DelegatorWithdrawInfoAmino[]; - /** fee_pool defines the previous proposer at genesis. */ - previous_proposer: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstanding_rewards: ValidatorOutstandingRewardsRecordAmino[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordAmino[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validator_historical_rewards: ValidatorHistoricalRewardsRecordAmino[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validator_current_rewards: ValidatorCurrentRewardsRecordAmino[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegator_starting_infos: DelegatorStartingInfoRecordAmino[]; - /** fee_pool defines the validator slash events at genesis. */ - validator_slash_events: ValidatorSlashEventRecordAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - fee_pool: FeePoolSDKType; - delegator_withdraw_infos: DelegatorWithdrawInfoSDKType[]; - previous_proposer: string; - outstanding_rewards: ValidatorOutstandingRewardsRecordSDKType[]; - validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordSDKType[]; - validator_historical_rewards: ValidatorHistoricalRewardsRecordSDKType[]; - validator_current_rewards: ValidatorCurrentRewardsRecordSDKType[]; - delegator_starting_infos: DelegatorStartingInfoRecordSDKType[]; - validator_slash_events: ValidatorSlashEventRecordSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/tx.ts deleted file mode 100644 index 26e82fab9..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/distribution/v1beta1/tx.ts +++ /dev/null @@ -1,194 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddress { - delegatorAddress: string; - withdrawAddress: string; -} -export interface MsgSetWithdrawAddressProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; - value: Uint8Array; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressAmino { - delegator_address: string; - withdraw_address: string; -} -export interface MsgSetWithdrawAddressAminoMsg { - type: "cosmos-sdk/MsgModifyWithdrawAddress"; - value: MsgSetWithdrawAddressAmino; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressSDKType { - delegator_address: string; - withdraw_address: string; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponse {} -export interface MsgSetWithdrawAddressResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; - value: Uint8Array; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseAmino {} -export interface MsgSetWithdrawAddressResponseAminoMsg { - type: "cosmos-sdk/MsgSetWithdrawAddressResponse"; - value: MsgSetWithdrawAddressResponseAmino; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseSDKType {} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorReward { - delegatorAddress: string; - validatorAddress: string; -} -export interface MsgWithdrawDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; - value: Uint8Array; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardAmino { - delegator_address: string; - validator_address: string; -} -export interface MsgWithdrawDelegatorRewardAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegationReward"; - value: MsgWithdrawDelegatorRewardAmino; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardSDKType { - delegator_address: string; - validator_address: string; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponse { - amount: Coin[]; -} -export interface MsgWithdrawDelegatorRewardResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; - value: Uint8Array; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseAmino { - amount: CoinAmino[]; -} -export interface MsgWithdrawDelegatorRewardResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse"; - value: MsgWithdrawDelegatorRewardResponseAmino; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommission { - validatorAddress: string; -} -export interface MsgWithdrawValidatorCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; - value: Uint8Array; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionAmino { - validator_address: string; -} -export interface MsgWithdrawValidatorCommissionAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommission"; - value: MsgWithdrawValidatorCommissionAmino; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionSDKType { - validator_address: string; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponse { - amount: Coin[]; -} -export interface MsgWithdrawValidatorCommissionResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; - value: Uint8Array; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseAmino { - amount: CoinAmino[]; -} -export interface MsgWithdrawValidatorCommissionResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse"; - value: MsgWithdrawValidatorCommissionResponseAmino; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPool { - amount: Coin[]; - depositor: string; -} -export interface MsgFundCommunityPoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool"; - value: Uint8Array; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolAmino { - amount: CoinAmino[]; - depositor: string; -} -export interface MsgFundCommunityPoolAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPool"; - value: MsgFundCommunityPoolAmino; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolSDKType { - amount: CoinSDKType[]; - depositor: string; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponse {} -export interface MsgFundCommunityPoolResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; - value: Uint8Array; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseAmino {} -export interface MsgFundCommunityPoolResponseAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPoolResponse"; - value: MsgFundCommunityPoolResponseAmino; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/evidence.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/evidence.ts deleted file mode 100644 index 3803fce2f..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/evidence.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Long } from "../../../helpers"; -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface Equivocation { - height: Long; - time: Date; - power: Long; - consensusAddress: string; -} -export interface EquivocationProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.Equivocation"; - value: Uint8Array; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationAmino { - height: string; - time?: Date; - power: string; - consensus_address: string; -} -export interface EquivocationAminoMsg { - type: "cosmos-sdk/Equivocation"; - value: EquivocationAmino; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationSDKType { - height: Long; - time: Date; - power: Long; - consensus_address: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/genesis.ts deleted file mode 100644 index e0e1f6fad..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/genesis.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisState { - /** evidence defines all the evidence at genesis. */ - evidence: Any[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateAmino { - /** evidence defines all the evidence at genesis. */ - evidence: AnyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateSDKType { - evidence: AnySDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/tx.ts deleted file mode 100644 index 6f94a50f9..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/evidence/v1beta1/tx.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidence { - submitter: string; - evidence: Any; -} -export interface MsgSubmitEvidenceProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence"; - value: Uint8Array; -} -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceAmino { - submitter: string; - evidence?: AnyAmino; -} -export interface MsgSubmitEvidenceAminoMsg { - type: "cosmos-sdk/MsgSubmitEvidence"; - value: MsgSubmitEvidenceAmino; -} -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceSDKType { - submitter: string; - evidence: AnySDKType; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponse { - /** hash defines the hash of the evidence. */ - hash: Uint8Array; -} -export interface MsgSubmitEvidenceResponseProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse"; - value: Uint8Array; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseAmino { - /** hash defines the hash of the evidence. */ - hash: Uint8Array; -} -export interface MsgSubmitEvidenceResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitEvidenceResponse"; - value: MsgSubmitEvidenceResponseAmino; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseSDKType { - hash: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/feegrant.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/feegrant.ts deleted file mode 100644 index debb2ad7b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/feegrant.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowance { - /** - * spend_limit specifies the maximum amount of tokens that can be spent - * by this allowance and will be updated as tokens are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spendLimit: Coin[]; - /** expiration specifies an optional time when this allowance expires */ - expiration: Date; -} -export interface BasicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance"; - value: Uint8Array; -} -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceAmino { - /** - * spend_limit specifies the maximum amount of tokens that can be spent - * by this allowance and will be updated as tokens are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spend_limit: CoinAmino[]; - /** expiration specifies an optional time when this allowance expires */ - expiration?: Date; -} -export interface BasicAllowanceAminoMsg { - type: "cosmos-sdk/BasicAllowance"; - value: BasicAllowanceAmino; -} -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceSDKType { - spend_limit: CoinSDKType[]; - expiration: Date; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowance { - /** basic specifies a struct of `BasicAllowance` */ - basic: BasicAllowance; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period: Duration; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - periodSpendLimit: Coin[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - periodCanSpend: Coin[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - periodReset: Date; -} -export interface PeriodicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - value: Uint8Array; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceAmino { - /** basic specifies a struct of `BasicAllowance` */ - basic?: BasicAllowanceAmino; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period?: DurationAmino; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - period_spend_limit: CoinAmino[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - period_can_spend: CoinAmino[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - period_reset?: Date; -} -export interface PeriodicAllowanceAminoMsg { - type: "cosmos-sdk/PeriodicAllowance"; - value: PeriodicAllowanceAmino; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceSDKType { - basic: BasicAllowanceSDKType; - period: DurationSDKType; - period_spend_limit: CoinSDKType[]; - period_can_spend: CoinSDKType[]; - period_reset: Date; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowance { - /** allowance can be any of basic and periodic fee allowance. */ - allowance: Any; - /** allowed_messages are the messages for which the grantee has the access. */ - allowedMessages: string[]; -} -export interface AllowedMsgAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - value: Uint8Array; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceAmino { - /** allowance can be any of basic and periodic fee allowance. */ - allowance?: AnyAmino; - /** allowed_messages are the messages for which the grantee has the access. */ - allowed_messages: string[]; -} -export interface AllowedMsgAllowanceAminoMsg { - type: "cosmos-sdk/AllowedMsgAllowance"; - value: AllowedMsgAllowanceAmino; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceSDKType { - allowance: AnySDKType; - allowed_messages: string[]; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface Grant { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: Any; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.Grant"; - value: Uint8Array; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantSDKType { - granter: string; - grantee: string; - allowance: AnySDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/genesis.ts deleted file mode 100644 index 11589eaeb..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/genesis.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisState { - allowances: Grant[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateAmino { - allowances: GrantAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateSDKType { - allowances: GrantSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/tx.ts deleted file mode 100644 index c7de37a3f..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/feegrant/v1beta1/tx.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: Any; -} -export interface MsgGrantAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; - value: Uint8Array; -} -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface MsgGrantAllowanceAminoMsg { - type: "cosmos-sdk/MsgGrantAllowance"; - value: MsgGrantAllowanceAmino; -} -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceSDKType { - granter: string; - grantee: string; - allowance: AnySDKType; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponse {} -export interface MsgGrantAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; - value: Uint8Array; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseAmino {} -export interface MsgGrantAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgGrantAllowanceResponse"; - value: MsgGrantAllowanceResponseAmino; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseSDKType {} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface MsgRevokeAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"; - value: Uint8Array; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface MsgRevokeAllowanceAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowance"; - value: MsgRevokeAllowanceAmino; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceSDKType { - granter: string; - grantee: string; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponse {} -export interface MsgRevokeAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; - value: Uint8Array; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseAmino {} -export interface MsgRevokeAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowanceResponse"; - value: MsgRevokeAllowanceResponseAmino; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/genutil/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/genutil/v1beta1/genesis.ts deleted file mode 100644 index e696f4c0b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/genutil/v1beta1/genesis.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisState { - /** gen_txs defines the genesis transactions. */ - genTxs: Uint8Array[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.genutil.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateAmino { - /** gen_txs defines the genesis transactions. */ - gen_txs: Uint8Array[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateSDKType { - gen_txs: Uint8Array[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1/genesis.ts deleted file mode 100644 index b0346552a..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1/genesis.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { - Deposit, - DepositAmino, - DepositSDKType, - Vote, - VoteAmino, - VoteSDKType, - Proposal, - ProposalAmino, - ProposalSDKType, - DepositParams, - DepositParamsAmino, - DepositParamsSDKType, - VotingParams, - VotingParamsAmino, - VotingParamsSDKType, - TallyParams, - TallyParamsAmino, - TallyParamsSDKType, -} from "./gov"; -import { Long } from "../../../helpers"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: Long; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id: string; - /** deposits defines all the deposits present at genesis. */ - deposits: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/v1/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: Long; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1/gov.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1/gov.ts deleted file mode 100644 index 8e5fd9b42..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1/gov.ts +++ /dev/null @@ -1,427 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Long } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption"; - value: Uint8Array; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionAmino { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/v1/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/v1/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - id: Long; - messages: Any[]; - status: ProposalStatus; - /** - * 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. - */ - finalTallyResult: TallyResult; - submitTime: Date; - depositEndTime: Date; - totalDeposit: Coin[]; - votingStartTime: Date; - votingEndTime: Date; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.Proposal"; - value: Uint8Array; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - id: string; - messages: AnyAmino[]; - status: ProposalStatus; - /** - * 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. - */ - final_tally_result?: TallyResultAmino; - submit_time?: Date; - deposit_end_time?: Date; - total_deposit: CoinAmino[]; - voting_start_time?: Date; - voting_end_time?: Date; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/v1/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - id: Long; - messages: AnySDKType[]; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: Date; - deposit_end_time: Date; - total_deposit: CoinSDKType[]; - voting_start_time: Date; - voting_end_time: Date; - metadata: string; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yesCount: string; - abstainCount: string; - noCount: string; - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/v1/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id: string; - voter: string; - options: WeightedVoteOptionAmino[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/v1/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/v1/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/v1/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: string; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold: string; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/v1/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: string; - threshold: string; - veto_threshold: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1/tx.ts deleted file mode 100644 index a1a4a1833..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1/tx.ts +++ /dev/null @@ -1,245 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { - VoteOption, - WeightedVoteOption, - WeightedVoteOptionAmino, - WeightedVoteOptionSDKType, -} from "./gov"; -import { Long } from "../../../helpers"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - messages: Any[]; - initialDeposit: Coin[]; - proposer: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - messages: AnyAmino[]; - initial_deposit: CoinAmino[]; - proposer: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - messages: AnySDKType[]; - initial_deposit: CoinSDKType[]; - proposer: string; - metadata: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: Long; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContent { - /** content is the proposal's content. */ - content: Any; - /** authority must be the gov module address. */ - authority: string; -} -export interface MsgExecLegacyContentProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent"; - value: Uint8Array; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentAmino { - /** content is the proposal's content. */ - content?: AnyAmino; - /** authority must be the gov module address. */ - authority: string; -} -export interface MsgExecLegacyContentAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContent"; - value: MsgExecLegacyContentAmino; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentSDKType { - content: AnySDKType; - authority: string; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponse {} -export interface MsgExecLegacyContentResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse"; - value: Uint8Array; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseAmino {} -export interface MsgExecLegacyContentResponseAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContentResponse"; - value: MsgExecLegacyContentResponseAmino; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseSDKType {} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: Long; - voter: string; - option: VoteOption; - metadata: string; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id: string; - voter: string; - option: VoteOption; - metadata: string; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/v1/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse {} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino {} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeighted { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; - metadata: string; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted"; - value: Uint8Array; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter: string; - options: WeightedVoteOptionAmino[]; - metadata: string; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponse {} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseAmino {} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseSDKType {} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/v1/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse {} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino {} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/v1/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/genesis.ts deleted file mode 100644 index e0b85cea1..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/genesis.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { - Deposit, - DepositAmino, - DepositSDKType, - Vote, - VoteAmino, - VoteSDKType, - Proposal, - ProposalAmino, - ProposalSDKType, - DepositParams, - DepositParamsAmino, - DepositParamsSDKType, - VotingParams, - VotingParamsAmino, - VotingParamsSDKType, - TallyParams, - TallyParamsAmino, - TallyParamsSDKType, -} from "./gov"; -import { Long } from "../../../helpers"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: Long; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id: string; - /** deposits defines all the deposits present at genesis. */ - deposits: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: Long; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/gov.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/gov.ts deleted file mode 100644 index 5133ab902..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/gov.ts +++ /dev/null @@ -1,469 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Long } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption"; - value: Uint8Array; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionAmino { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposal { - title: string; - description: string; -} -export interface TextProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TextProposal"; - value: Uint8Array; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalAmino { - title: string; - description: string; -} -export interface TextProposalAminoMsg { - type: "cosmos-sdk/TextProposal"; - value: TextProposalAmino; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalSDKType { - title: string; - description: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - proposalId: Long; - content: Any; - status: ProposalStatus; - finalTallyResult: TallyResult; - submitTime: Date; - depositEndTime: Date; - totalDeposit: Coin[]; - votingStartTime: Date; - votingEndTime: Date; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Proposal"; - value: Uint8Array; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - proposal_id: string; - content?: AnyAmino; - status: ProposalStatus; - final_tally_result?: TallyResultAmino; - submit_time?: Date; - deposit_end_time?: Date; - total_deposit: CoinAmino[]; - voting_start_time?: Date; - voting_end_time?: Date; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - proposal_id: Long; - content: AnySDKType; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: Date; - deposit_end_time: Date; - total_deposit: CoinSDKType[]; - voting_start_time: Date; - voting_end_time: Date; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yes: string; - abstain: string; - no: string; - noWithVeto: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes: string; - abstain: string; - no: string; - no_with_veto: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes: string; - abstain: string; - no: string; - no_with_veto: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: Long; - voter: string; - /** - * 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. - */ - /** @deprecated */ - option: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options: WeightedVoteOption[]; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id: string; - voter: string; - /** - * 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. - */ - /** @deprecated */ - option: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options: WeightedVoteOptionAmino[]; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - /** @deprecated */ - option: VoteOption; - options: WeightedVoteOptionSDKType[]; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: Uint8Array; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: Uint8Array; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: Uint8Array; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: Uint8Array; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: Uint8Array; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold: Uint8Array; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: Uint8Array; - threshold: Uint8Array; - veto_threshold: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/tx.ts deleted file mode 100644 index 2685458ef..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/gov/v1beta1/tx.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { - VoteOption, - WeightedVoteOption, - WeightedVoteOptionAmino, - WeightedVoteOptionSDKType, -} from "./gov"; -import { Long } from "../../../helpers"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - content: Any; - initialDeposit: Coin[]; - proposer: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal"; - value: Uint8Array; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - content?: AnyAmino; - initial_deposit: CoinAmino[]; - proposer: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - content: AnySDKType; - initial_deposit: CoinSDKType[]; - proposer: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: Long; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: Long; - voter: string; - option: VoteOption; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id: string; - voter: string; - option: VoteOption; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse {} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino {} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeighted { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted"; - value: Uint8Array; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter: string; - options: WeightedVoteOptionAmino[]; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponse {} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseAmino {} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseSDKType {} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse {} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino {} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/events.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/events.ts deleted file mode 100644 index af9763f7b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/events.ts +++ /dev/null @@ -1,210 +0,0 @@ -import { ProposalExecutorResult } from "./types"; -import { Long } from "../../../helpers"; -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -export interface EventCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroup"; - value: Uint8Array; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id: string; -} -export interface EventCreateGroupAminoMsg { - type: "cosmos-sdk/EventCreateGroup"; - value: EventCreateGroupAmino; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupSDKType { - group_id: Long; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -export interface EventUpdateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroup"; - value: Uint8Array; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id: string; -} -export interface EventUpdateGroupAminoMsg { - type: "cosmos-sdk/EventUpdateGroup"; - value: EventUpdateGroupAmino; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupSDKType { - group_id: Long; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy"; - value: Uint8Array; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventCreateGroupPolicy"; - value: EventCreateGroupPolicyAmino; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicySDKType { - address: string; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventUpdateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy"; - value: Uint8Array; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventUpdateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventUpdateGroupPolicy"; - value: EventUpdateGroupPolicyAmino; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicySDKType { - address: string; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -export interface EventSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventSubmitProposal"; - value: Uint8Array; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; -} -export interface EventSubmitProposalAminoMsg { - type: "cosmos-sdk/EventSubmitProposal"; - value: EventSubmitProposalAmino; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalSDKType { - proposal_id: Long; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -export interface EventWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal"; - value: Uint8Array; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; -} -export interface EventWithdrawProposalAminoMsg { - type: "cosmos-sdk/EventWithdrawProposal"; - value: EventWithdrawProposalAmino; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalSDKType { - proposal_id: Long; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVote { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -export interface EventVoteProtoMsg { - typeUrl: "/cosmos.group.v1.EventVote"; - value: Uint8Array; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; -} -export interface EventVoteAminoMsg { - type: "cosmos-sdk/EventVote"; - value: EventVoteAmino; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteSDKType { - proposal_id: Long; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExec { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; - /** result is the proposal execution result. */ - result: ProposalExecutorResult; -} -export interface EventExecProtoMsg { - typeUrl: "/cosmos.group.v1.EventExec"; - value: Uint8Array; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; - /** result is the proposal execution result. */ - result: ProposalExecutorResult; -} -export interface EventExecAminoMsg { - type: "cosmos-sdk/EventExec"; - value: EventExecAmino; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecSDKType { - proposal_id: Long; - result: ProposalExecutorResult; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** address is the account address of the group member. */ - address: string; -} -export interface EventLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventLeaveGroup"; - value: Uint8Array; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupAmino { - /** group_id is the unique ID of the group. */ - group_id: string; - /** address is the account address of the group member. */ - address: string; -} -export interface EventLeaveGroupAminoMsg { - type: "cosmos-sdk/EventLeaveGroup"; - value: EventLeaveGroupAmino; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupSDKType { - group_id: Long; - address: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/genesis.ts deleted file mode 100644 index 88f2dd468..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/genesis.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { - GroupInfo, - GroupInfoAmino, - GroupInfoSDKType, - GroupMember, - GroupMemberAmino, - GroupMemberSDKType, - GroupPolicyInfo, - GroupPolicyInfoAmino, - GroupPolicyInfoSDKType, - Proposal, - ProposalAmino, - ProposalSDKType, - Vote, - VoteAmino, - VoteSDKType, -} from "./types"; -import { Long } from "../../../helpers"; -/** GenesisState defines the group module's genesis state. */ -export interface GenesisState { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - groupSeq: Long; - /** groups is the list of groups info. */ - groups: GroupInfo[]; - /** group_members is the list of groups members. */ - groupMembers: GroupMember[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - groupPolicySeq: Long; - /** group_policies is the list of group policies info. */ - groupPolicies: GroupPolicyInfo[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposalSeq: Long; - /** proposals is the list of proposals. */ - proposals: Proposal[]; - /** votes is the list of votes. */ - votes: Vote[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.group.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateAmino { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - group_seq: string; - /** groups is the list of groups info. */ - groups: GroupInfoAmino[]; - /** group_members is the list of groups members. */ - group_members: GroupMemberAmino[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - group_policy_seq: string; - /** group_policies is the list of group policies info. */ - group_policies: GroupPolicyInfoAmino[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposal_seq: string; - /** proposals is the list of proposals. */ - proposals: ProposalAmino[]; - /** votes is the list of votes. */ - votes: VoteAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateSDKType { - group_seq: Long; - groups: GroupInfoSDKType[]; - group_members: GroupMemberSDKType[]; - group_policy_seq: Long; - group_policies: GroupPolicyInfoSDKType[]; - proposal_seq: Long; - proposals: ProposalSDKType[]; - votes: VoteSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/tx.ts deleted file mode 100644 index 549b9e35e..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/tx.ts +++ /dev/null @@ -1,778 +0,0 @@ -import { Member, MemberAmino, MemberSDKType, VoteOption } from "./types"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** Exec defines modes of execution of a proposal on creation or on new vote. */ -export enum Exec { - /** - * EXEC_UNSPECIFIED - An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - */ - EXEC_UNSPECIFIED = 0, - /** - * EXEC_TRY - Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - */ - EXEC_TRY = 1, - UNRECOGNIZED = -1, -} -export const ExecSDKType = Exec; -export const ExecAmino = Exec; -export function execFromJSON(object: any): Exec { - switch (object) { - case 0: - case "EXEC_UNSPECIFIED": - return Exec.EXEC_UNSPECIFIED; - case 1: - case "EXEC_TRY": - return Exec.EXEC_TRY; - case -1: - case "UNRECOGNIZED": - default: - return Exec.UNRECOGNIZED; - } -} -export function execToJSON(object: Exec): string { - switch (object) { - case Exec.EXEC_UNSPECIFIED: - return "EXEC_UNSPECIFIED"; - case Exec.EXEC_TRY: - return "EXEC_TRY"; - case Exec.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroup { - /** admin is the account address of the group admin. */ - admin: string; - /** members defines the group members. */ - members: Member[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; -} -export interface MsgCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroup"; - value: Uint8Array; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** members defines the group members. */ - members: MemberAmino[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; -} -export interface MsgCreateGroupAminoMsg { - type: "cosmos-sdk/MsgCreateGroup"; - value: MsgCreateGroupAmino; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupSDKType { - admin: string; - members: MemberSDKType[]; - metadata: string; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponse { - /** group_id is the unique ID of the newly created group. */ - groupId: Long; -} -export interface MsgCreateGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse"; - value: Uint8Array; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseAmino { - /** group_id is the unique ID of the newly created group. */ - group_id: string; -} -export interface MsgCreateGroupResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupResponse"; - value: MsgCreateGroupResponseAmino; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseSDKType { - group_id: Long; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembers { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - memberUpdates: Member[]; -} -export interface MsgUpdateGroupMembersProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers"; - value: Uint8Array; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - member_updates: MemberAmino[]; -} -export interface MsgUpdateGroupMembersAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembers"; - value: MsgUpdateGroupMembersAmino; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersSDKType { - admin: string; - group_id: Long; - member_updates: MemberSDKType[]; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponse {} -export interface MsgUpdateGroupMembersResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseAmino {} -export interface MsgUpdateGroupMembersResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembersResponse"; - value: MsgUpdateGroupMembersResponseAmino; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseSDKType {} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdmin { - /** admin is the current account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** new_admin is the group new admin account address. */ - newAdmin: string; -} -export interface MsgUpdateGroupAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminAmino { - /** admin is the current account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** new_admin is the group new admin account address. */ - new_admin: string; -} -export interface MsgUpdateGroupAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdmin"; - value: MsgUpdateGroupAdminAmino; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminSDKType { - admin: string; - group_id: Long; - new_admin: string; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponse {} -export interface MsgUpdateGroupAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseAmino {} -export interface MsgUpdateGroupAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdminResponse"; - value: MsgUpdateGroupAdminResponseAmino; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseSDKType {} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** metadata is the updated group's metadata. */ - metadata: string; -} -export interface MsgUpdateGroupMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** metadata is the updated group's metadata. */ - metadata: string; -} -export interface MsgUpdateGroupMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadata"; - value: MsgUpdateGroupMetadataAmino; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataSDKType { - admin: string; - group_id: Long; - metadata: string; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponse {} -export interface MsgUpdateGroupMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseAmino {} -export interface MsgUpdateGroupMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadataResponse"; - value: MsgUpdateGroupMetadataResponseAmino; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseSDKType {} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata: string; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; -} -export interface MsgCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; - value: Uint8Array; -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicyAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicy"; - value: MsgCreateGroupPolicyAmino; -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicySDKType { - admin: string; - group_id: Long; - metadata: string; - decision_policy: AnySDKType; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponse { - /** address is the account address of the newly created group policy. */ - address: string; -} -export interface MsgCreateGroupPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseAmino { - /** address is the account address of the newly created group policy. */ - address: string; -} -export interface MsgCreateGroupPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicyResponse"; - value: MsgCreateGroupPolicyResponseAmino; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseSDKType { - address: string; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdmin { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of the group policy. */ - address: string; - /** new_admin is the new group policy admin. */ - newAdmin: string; -} -export interface MsgUpdateGroupPolicyAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of the group policy. */ - address: string; - /** new_admin is the new group policy admin. */ - new_admin: string; -} -export interface MsgUpdateGroupPolicyAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; - value: MsgUpdateGroupPolicyAdminAmino; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminSDKType { - admin: string; - address: string; - new_admin: string; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicy { - /** admin is the account address of the group and group policy admin. */ - admin: string; - /** members defines the group members. */ - members: Member[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - groupMetadata: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - groupPolicyMetadata: string; - /** group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin. */ - groupPolicyAsAdmin: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; -} -export interface MsgCreateGroupWithPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy"; - value: Uint8Array; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicyAmino { - /** admin is the account address of the group and group policy admin. */ - admin: string; - /** members defines the group members. */ - members: MemberAmino[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - group_metadata: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - group_policy_metadata: string; - /** group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin. */ - group_policy_as_admin: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupWithPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicy"; - value: MsgCreateGroupWithPolicyAmino; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicySDKType { - admin: string; - members: MemberSDKType[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: AnySDKType; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponse { - /** group_id is the unique ID of the newly created group with policy. */ - groupId: Long; - /** group_policy_address is the account address of the newly created group policy. */ - groupPolicyAddress: string; -} -export interface MsgCreateGroupWithPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseAmino { - /** group_id is the unique ID of the newly created group with policy. */ - group_id: string; - /** group_policy_address is the account address of the newly created group policy. */ - group_policy_address: string; -} -export interface MsgCreateGroupWithPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse"; - value: MsgCreateGroupWithPolicyResponseAmino; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseSDKType { - group_id: Long; - group_policy_address: string; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponse {} -export interface MsgUpdateGroupPolicyAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseAmino {} -export interface MsgUpdateGroupPolicyAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse"; - value: MsgUpdateGroupPolicyAdminResponseAmino; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseSDKType {} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** decision_policy is the updated group policy's decision policy. */ - decisionPolicy: Any; -} -export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** decision_policy is the updated group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgUpdateGroupPolicyDecisionPolicyAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicy"; - value: MsgUpdateGroupPolicyDecisionPolicyAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicySDKType { - admin: string; - address: string; - decision_policy: AnySDKType; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponse {} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAmino {} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: MsgUpdateGroupPolicyDecisionPolicyResponseAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType {} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** metadata is the updated group policy metadata. */ - metadata: string; -} -export interface MsgUpdateGroupPolicyMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataAmino { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** metadata is the updated group policy metadata. */ - metadata: string; -} -export interface MsgUpdateGroupPolicyMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; - value: MsgUpdateGroupPolicyMetadataAmino; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataSDKType { - admin: string; - address: string; - metadata: string; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponse {} -export interface MsgUpdateGroupPolicyMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseAmino {} -export interface MsgUpdateGroupPolicyMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse"; - value: MsgUpdateGroupPolicyMetadataResponseAmino; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseSDKType {} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposal { - /** address is the account address of group policy. */ - address: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec: Exec; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalAmino { - /** address is the account address of group policy. */ - address: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: AnyAmino[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec: Exec; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/group/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalSDKType { - address: string; - proposers: string[]; - metadata: string; - messages: AnySDKType[]; - exec: Exec; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposal { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address: string; -} -export interface MsgWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal"; - value: Uint8Array; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address: string; -} -export interface MsgWithdrawProposalAminoMsg { - type: "cosmos-sdk/group/MsgWithdrawProposal"; - value: MsgWithdrawProposalAmino; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalSDKType { - proposal_id: Long; - address: string; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponse {} -export interface MsgWithdrawProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse"; - value: Uint8Array; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseAmino {} -export interface MsgWithdrawProposalResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawProposalResponse"; - value: MsgWithdrawProposalResponseAmino; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseSDKType {} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVote { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** voter is the voter account address. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec: Exec; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; - /** voter is the voter account address. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec: Exec; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/group/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; - exec: Exec; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponse {} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseAmino {} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExec { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** signer is the account address used to execute the proposal. */ - signer: string; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExec"; - value: Uint8Array; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; - /** signer is the account address used to execute the proposal. */ - signer: string; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/group/MsgExec"; - value: MsgExecAmino; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecSDKType { - proposal_id: Long; - signer: string; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponse {} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseAmino {} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseSDKType {} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroup { - /** address is the account address of the group member. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: Long; -} -export interface MsgLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup"; - value: Uint8Array; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupAmino { - /** address is the account address of the group member. */ - address: string; - /** group_id is the unique ID of the group. */ - group_id: string; -} -export interface MsgLeaveGroupAminoMsg { - type: "cosmos-sdk/group/MsgLeaveGroup"; - value: MsgLeaveGroupAmino; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupSDKType { - address: string; - group_id: Long; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponse {} -export interface MsgLeaveGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse"; - value: Uint8Array; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseAmino {} -export interface MsgLeaveGroupResponseAminoMsg { - type: "cosmos-sdk/MsgLeaveGroupResponse"; - value: MsgLeaveGroupResponseAmino; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/types.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/types.ts deleted file mode 100644 index 4f28fc180..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/group/v1/types.ts +++ /dev/null @@ -1,761 +0,0 @@ -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus defines proposal statuses. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when persisted. */ - PROPOSAL_STATUS_SUBMITTED = 1, - /** PROPOSAL_STATUS_CLOSED - Final status of a proposal when the final tally was executed. */ - PROPOSAL_STATUS_CLOSED = 2, - /** PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group was modified before the final tally. */ - PROPOSAL_STATUS_ABORTED = 3, - /** - * PROPOSAL_STATUS_WITHDRAWN - A proposal can be deleted before the voting start time by the owner. When this happens the final status - * is Withdrawn. - */ - PROPOSAL_STATUS_WITHDRAWN = 4, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_SUBMITTED": - return ProposalStatus.PROPOSAL_STATUS_SUBMITTED; - case 2: - case "PROPOSAL_STATUS_CLOSED": - return ProposalStatus.PROPOSAL_STATUS_CLOSED; - case 3: - case "PROPOSAL_STATUS_ABORTED": - return ProposalStatus.PROPOSAL_STATUS_ABORTED; - case 4: - case "PROPOSAL_STATUS_WITHDRAWN": - return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_SUBMITTED: - return "PROPOSAL_STATUS_SUBMITTED"; - case ProposalStatus.PROPOSAL_STATUS_CLOSED: - return "PROPOSAL_STATUS_CLOSED"; - case ProposalStatus.PROPOSAL_STATUS_ABORTED: - return "PROPOSAL_STATUS_ABORTED"; - case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN: - return "PROPOSAL_STATUS_WITHDRAWN"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalResult defines types of proposal results. */ -export enum ProposalResult { - /** PROPOSAL_RESULT_UNSPECIFIED - An empty value is invalid and not allowed */ - PROPOSAL_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_RESULT_UNFINALIZED - Until a final tally has happened the status is unfinalized */ - PROPOSAL_RESULT_UNFINALIZED = 1, - /** PROPOSAL_RESULT_ACCEPTED - Final result of the tally */ - PROPOSAL_RESULT_ACCEPTED = 2, - /** PROPOSAL_RESULT_REJECTED - Final result of the tally */ - PROPOSAL_RESULT_REJECTED = 3, - UNRECOGNIZED = -1, -} -export const ProposalResultSDKType = ProposalResult; -export const ProposalResultAmino = ProposalResult; -export function proposalResultFromJSON(object: any): ProposalResult { - switch (object) { - case 0: - case "PROPOSAL_RESULT_UNSPECIFIED": - return ProposalResult.PROPOSAL_RESULT_UNSPECIFIED; - case 1: - case "PROPOSAL_RESULT_UNFINALIZED": - return ProposalResult.PROPOSAL_RESULT_UNFINALIZED; - case 2: - case "PROPOSAL_RESULT_ACCEPTED": - return ProposalResult.PROPOSAL_RESULT_ACCEPTED; - case 3: - case "PROPOSAL_RESULT_REJECTED": - return ProposalResult.PROPOSAL_RESULT_REJECTED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalResult.UNRECOGNIZED; - } -} -export function proposalResultToJSON(object: ProposalResult): string { - switch (object) { - case ProposalResult.PROPOSAL_RESULT_UNSPECIFIED: - return "PROPOSAL_RESULT_UNSPECIFIED"; - case ProposalResult.PROPOSAL_RESULT_UNFINALIZED: - return "PROPOSAL_RESULT_UNFINALIZED"; - case ProposalResult.PROPOSAL_RESULT_ACCEPTED: - return "PROPOSAL_RESULT_ACCEPTED"; - case ProposalResult.PROPOSAL_RESULT_REJECTED: - return "PROPOSAL_RESULT_REJECTED"; - case ProposalResult.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalExecutorResult defines types of proposal executor results. */ -export enum ProposalExecutorResult { - /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ - PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1, - /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ - PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2, - /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ - PROPOSAL_EXECUTOR_RESULT_FAILURE = 3, - UNRECOGNIZED = -1, -} -export const ProposalExecutorResultSDKType = ProposalExecutorResult; -export const ProposalExecutorResultAmino = ProposalExecutorResult; -export function proposalExecutorResultFromJSON( - object: any -): ProposalExecutorResult { - switch (object) { - case 0: - case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED; - case 1: - case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN; - case 2: - case "PROPOSAL_EXECUTOR_RESULT_SUCCESS": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS; - case 3: - case "PROPOSAL_EXECUTOR_RESULT_FAILURE": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE; - case -1: - case "UNRECOGNIZED": - default: - return ProposalExecutorResult.UNRECOGNIZED; - } -} -export function proposalExecutorResultToJSON( - object: ProposalExecutorResult -): string { - switch (object) { - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: - return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: - return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS: - return "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE: - return "PROPOSAL_EXECUTOR_RESULT_FAILURE"; - case ProposalExecutorResult.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface Member { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata to attached to the member. */ - metadata: string; - /** added_at is a timestamp specifying when a member was added. */ - addedAt: Date; -} -export interface MemberProtoMsg { - typeUrl: "/cosmos.group.v1.Member"; - value: Uint8Array; -} -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface MemberAmino { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata to attached to the member. */ - metadata: string; - /** added_at is a timestamp specifying when a member was added. */ - added_at?: Date; -} -export interface MemberAminoMsg { - type: "cosmos-sdk/Member"; - value: MemberAmino; -} -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface MemberSDKType { - address: string; - weight: string; - metadata: string; - added_at: Date; -} -/** Members defines a repeated slice of Member objects. */ -export interface Members { - /** members is the list of members. */ - members: Member[]; -} -export interface MembersProtoMsg { - typeUrl: "/cosmos.group.v1.Members"; - value: Uint8Array; -} -/** Members defines a repeated slice of Member objects. */ -export interface MembersAmino { - /** members is the list of members. */ - members: MemberAmino[]; -} -export interface MembersAminoMsg { - type: "cosmos-sdk/Members"; - value: MembersAmino; -} -/** Members defines a repeated slice of Member objects. */ -export interface MembersSDKType { - members: MemberSDKType[]; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicy { - /** threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. */ - threshold: string; - /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; -} -export interface ThresholdDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy"; - value: Uint8Array; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicyAmino { - /** threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. */ - threshold: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface ThresholdDecisionPolicyAminoMsg { - type: "cosmos-sdk/ThresholdDecisionPolicy"; - value: ThresholdDecisionPolicyAmino; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicySDKType { - threshold: string; - windows: DecisionPolicyWindowsSDKType; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicy { - /** percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. */ - percentage: string; - /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; -} -export interface PercentageDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy"; - value: Uint8Array; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicyAmino { - /** percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. */ - percentage: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface PercentageDecisionPolicyAminoMsg { - type: "cosmos-sdk/PercentageDecisionPolicy"; - value: PercentageDecisionPolicyAmino; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicySDKType { - percentage: string; - windows: DecisionPolicyWindowsSDKType; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindows { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - votingPeriod: Duration; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - minExecutionPeriod: Duration; -} -export interface DecisionPolicyWindowsProtoMsg { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows"; - value: Uint8Array; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsAmino { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - voting_period?: DurationAmino; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - min_execution_period?: DurationAmino; -} -export interface DecisionPolicyWindowsAminoMsg { - type: "cosmos-sdk/DecisionPolicyWindows"; - value: DecisionPolicyWindowsAmino; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsSDKType { - voting_period: DurationSDKType; - min_execution_period: DurationSDKType; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfo { - /** id is the unique ID of the group. */ - id: Long; - /** admin is the account address of the group's admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version: Long; - /** total_weight is the sum of the group members' weights. */ - totalWeight: string; - /** created_at is a timestamp specifying when a group was created. */ - createdAt: Date; -} -export interface GroupInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupInfo"; - value: Uint8Array; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoAmino { - /** id is the unique ID of the group. */ - id: string; - /** admin is the account address of the group's admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version: string; - /** total_weight is the sum of the group members' weights. */ - total_weight: string; - /** created_at is a timestamp specifying when a group was created. */ - created_at?: Date; -} -export interface GroupInfoAminoMsg { - type: "cosmos-sdk/GroupInfo"; - value: GroupInfoAmino; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoSDKType { - id: Long; - admin: string; - metadata: string; - version: Long; - total_weight: string; - created_at: Date; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMember { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** member is the member data. */ - member: Member; -} -export interface GroupMemberProtoMsg { - typeUrl: "/cosmos.group.v1.GroupMember"; - value: Uint8Array; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberAmino { - /** group_id is the unique ID of the group. */ - group_id: string; - /** member is the member data. */ - member?: MemberAmino; -} -export interface GroupMemberAminoMsg { - type: "cosmos-sdk/GroupMember"; - value: GroupMemberAmino; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberSDKType { - group_id: Long; - member: MemberSDKType; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfo { - /** address is the account address of group policy. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** admin is the account address of the group admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version: Long; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; - /** created_at is a timestamp specifying when a group policy was created. */ - createdAt: Date; -} -export interface GroupPolicyInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo"; - value: Uint8Array; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoAmino { - /** address is the account address of group policy. */ - address: string; - /** group_id is the unique ID of the group. */ - group_id: string; - /** admin is the account address of the group admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; - /** created_at is a timestamp specifying when a group policy was created. */ - created_at?: Date; -} -export interface GroupPolicyInfoAminoMsg { - type: "cosmos-sdk/GroupPolicyInfo"; - value: GroupPolicyInfoAmino; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoSDKType { - address: string; - group_id: Long; - admin: string; - metadata: string; - version: Long; - decision_policy: AnySDKType; - created_at: Date; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface Proposal { - /** id is the unique id of the proposal. */ - id: Long; - /** address is the account address of group policy. */ - address: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** proposers are the account addresses of the proposers. */ - proposers: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submitTime: Date; - /** - * group_version tracks the version of the group that this proposal corresponds to. - * When group membership is changed, existing proposals from previous group versions will become invalid. - */ - groupVersion: Long; - /** - * group_policy_version tracks the version of the group policy that this proposal corresponds to. - * When a decision policy is changed, existing proposals from previous policy versions will become invalid. - */ - groupPolicyVersion: Long; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; - /** - * result is the final result based on the votes and election rule. Initial value is unfinalized. - * The result is persisted so that clients can always rely on this state and not have to replicate the logic. - */ - result: ProposalResult; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option, after tallying. When querying a proposal - * via gRPC, this field is not populated until the proposal's voting period - * has ended. - */ - finalTallyResult: TallyResult; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`, as well - * as `status` and `result` fields will be accordingly updated. - */ - votingPeriodEnd: Date; - /** executor_result is the final result based on the votes and election rule. Initial value is NotRun. */ - executorResult: ProposalExecutorResult; - /** messages is a list of Msgs that will be executed if the proposal passes. */ - messages: Any[]; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.group.v1.Proposal"; - value: Uint8Array; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalAmino { - /** id is the unique id of the proposal. */ - id: string; - /** address is the account address of group policy. */ - address: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** proposers are the account addresses of the proposers. */ - proposers: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submit_time?: Date; - /** - * group_version tracks the version of the group that this proposal corresponds to. - * When group membership is changed, existing proposals from previous group versions will become invalid. - */ - group_version: string; - /** - * group_policy_version tracks the version of the group policy that this proposal corresponds to. - * When a decision policy is changed, existing proposals from previous policy versions will become invalid. - */ - group_policy_version: string; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; - /** - * result is the final result based on the votes and election rule. Initial value is unfinalized. - * The result is persisted so that clients can always rely on this state and not have to replicate the logic. - */ - result: ProposalResult; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option, after tallying. When querying a proposal - * via gRPC, this field is not populated until the proposal's voting period - * has ended. - */ - final_tally_result?: TallyResultAmino; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`, as well - * as `status` and `result` fields will be accordingly updated. - */ - voting_period_end?: Date; - /** executor_result is the final result based on the votes and election rule. Initial value is NotRun. */ - executor_result: ProposalExecutorResult; - /** messages is a list of Msgs that will be executed if the proposal passes. */ - messages: AnyAmino[]; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalSDKType { - id: Long; - address: string; - metadata: string; - proposers: string[]; - submit_time: Date; - group_version: Long; - group_policy_version: Long; - status: ProposalStatus; - result: ProposalResult; - final_tally_result: TallyResultSDKType; - voting_period_end: Date; - executor_result: ProposalExecutorResult; - messages: AnySDKType[]; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResult { - /** yes_count is the weighted sum of yes votes. */ - yesCount: string; - /** abstain_count is the weighted sum of abstainers. */ - abstainCount: string; - /** no is the weighted sum of no votes. */ - noCount: string; - /** no_with_veto_count is the weighted sum of veto. */ - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.group.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultAmino { - /** yes_count is the weighted sum of yes votes. */ - yes_count: string; - /** abstain_count is the weighted sum of abstainers. */ - abstain_count: string; - /** no is the weighted sum of no votes. */ - no_count: string; - /** no_with_veto_count is the weighted sum of veto. */ - no_with_veto_count: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** Vote represents a vote for a proposal. */ -export interface Vote { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** voter is the account address of the voter. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** submit_time is the timestamp when the vote was submitted. */ - submitTime: Date; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.group.v1.Vote"; - value: Uint8Array; -} -/** Vote represents a vote for a proposal. */ -export interface VoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id: string; - /** voter is the account address of the voter. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** submit_time is the timestamp when the vote was submitted. */ - submit_time?: Date; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** Vote represents a vote for a proposal. */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; - submit_time: Date; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/genesis.ts deleted file mode 100644 index 86486d4f8..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/genesis.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { - Minter, - MinterAmino, - MinterSDKType, - Params, - ParamsAmino, - ParamsSDKType, -} from "./mint"; -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisState { - /** minter is a space for holding current inflation information. */ - minter: Minter; - /** params defines all the paramaters of the module. */ - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateAmino { - /** minter is a space for holding current inflation information. */ - minter?: MinterAmino; - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateSDKType { - minter: MinterSDKType; - params: ParamsSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/mint.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/mint.ts deleted file mode 100644 index 765749d6a..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/mint/v1beta1/mint.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { Long } from "../../../helpers"; -/** Minter represents the minting state. */ -export interface Minter { - /** current annual inflation rate */ - inflation: string; - /** current annual expected provisions */ - annualProvisions: string; -} -export interface MinterProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Minter"; - value: Uint8Array; -} -/** Minter represents the minting state. */ -export interface MinterAmino { - /** current annual inflation rate */ - inflation: string; - /** current annual expected provisions */ - annual_provisions: string; -} -export interface MinterAminoMsg { - type: "cosmos-sdk/Minter"; - value: MinterAmino; -} -/** Minter represents the minting state. */ -export interface MinterSDKType { - inflation: string; - annual_provisions: string; -} -/** Params holds parameters for the mint module. */ -export interface Params { - /** type of coin to mint */ - mintDenom: string; - /** maximum annual change in inflation rate */ - inflationRateChange: string; - /** maximum inflation rate */ - inflationMax: string; - /** minimum inflation rate */ - inflationMin: string; - /** goal of percent bonded atoms */ - goalBonded: string; - /** expected blocks per year */ - blocksPerYear: Long; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Params"; - value: Uint8Array; -} -/** Params holds parameters for the mint module. */ -export interface ParamsAmino { - /** type of coin to mint */ - mint_denom: string; - /** maximum annual change in inflation rate */ - inflation_rate_change: string; - /** maximum inflation rate */ - inflation_max: string; - /** minimum inflation rate */ - inflation_min: string; - /** goal of percent bonded atoms */ - goal_bonded: string; - /** expected blocks per year */ - blocks_per_year: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params holds parameters for the mint module. */ -export interface ParamsSDKType { - mint_denom: string; - inflation_rate_change: string; - inflation_max: string; - inflation_min: string; - goal_bonded: string; - blocks_per_year: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/msg/v1/msg.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/msg/v1/msg.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/msg/v1/msg.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/event.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/event.ts deleted file mode 100644 index 621d1862d..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/event.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** EventSend is emitted on Msg/Send */ -export interface EventSend { - classId: string; - id: string; - sender: string; - receiver: string; -} -export interface EventSendProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventSend"; - value: Uint8Array; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendAmino { - class_id: string; - id: string; - sender: string; - receiver: string; -} -export interface EventSendAminoMsg { - type: "cosmos-sdk/EventSend"; - value: EventSendAmino; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** EventMint is emitted on Mint */ -export interface EventMint { - classId: string; - id: string; - owner: string; -} -export interface EventMintProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventMint"; - value: Uint8Array; -} -/** EventMint is emitted on Mint */ -export interface EventMintAmino { - class_id: string; - id: string; - owner: string; -} -export interface EventMintAminoMsg { - type: "cosmos-sdk/EventMint"; - value: EventMintAmino; -} -/** EventMint is emitted on Mint */ -export interface EventMintSDKType { - class_id: string; - id: string; - owner: string; -} -/** EventBurn is emitted on Burn */ -export interface EventBurn { - classId: string; - id: string; - owner: string; -} -export interface EventBurnProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventBurn"; - value: Uint8Array; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnAmino { - class_id: string; - id: string; - owner: string; -} -export interface EventBurnAminoMsg { - type: "cosmos-sdk/EventBurn"; - value: EventBurnAmino; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnSDKType { - class_id: string; - id: string; - owner: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/genesis.ts deleted file mode 100644 index e57f69bd4..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/genesis.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { - Class, - ClassAmino, - ClassSDKType, - NFT, - NFTAmino, - NFTSDKType, -} from "./nft"; -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisState { - /** class defines the class of the nft type. */ - classes: Class[]; - entries: Entry[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateAmino { - /** class defines the class of the nft type. */ - classes: ClassAmino[]; - entries: EntryAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateSDKType { - classes: ClassSDKType[]; - entries: EntrySDKType[]; -} -/** Entry Defines all nft owned by a person */ -export interface Entry { - /** owner is the owner address of the following nft */ - owner: string; - /** nfts is a group of nfts of the same owner */ - nfts: NFT[]; -} -export interface EntryProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.Entry"; - value: Uint8Array; -} -/** Entry Defines all nft owned by a person */ -export interface EntryAmino { - /** owner is the owner address of the following nft */ - owner: string; - /** nfts is a group of nfts of the same owner */ - nfts: NFTAmino[]; -} -export interface EntryAminoMsg { - type: "cosmos-sdk/Entry"; - value: EntryAmino; -} -/** Entry Defines all nft owned by a person */ -export interface EntrySDKType { - owner: string; - nfts: NFTSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/nft.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/nft.ts deleted file mode 100644 index b2fb108c6..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/nft.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -/** Class defines the class of the nft type. */ -export interface Class { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol: string; - /** description is a brief description of nft classification. Optional */ - description: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uriHash: string; - /** data is the app specific metadata of the NFT class. Optional */ - data: Any; -} -export interface ClassProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.Class"; - value: Uint8Array; -} -/** Class defines the class of the nft type. */ -export interface ClassAmino { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol: string; - /** description is a brief description of nft classification. Optional */ - description: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uri_hash: string; - /** data is the app specific metadata of the NFT class. Optional */ - data?: AnyAmino; -} -export interface ClassAminoMsg { - type: "cosmos-sdk/Class"; - value: ClassAmino; -} -/** Class defines the class of the nft type. */ -export interface ClassSDKType { - id: string; - name: string; - symbol: string; - description: string; - uri: string; - uri_hash: string; - data: AnySDKType; -} -/** NFT defines the NFT. */ -export interface NFT { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - classId: string; - /** id is a unique identifier of the NFT */ - id: string; - /** uri for the NFT metadata stored off chain */ - uri: string; - /** uri_hash is a hash of the document pointed by uri */ - uriHash: string; - /** data is an app specific data of the NFT. Optional */ - data: Any; -} -export interface NFTProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.NFT"; - value: Uint8Array; -} -/** NFT defines the NFT. */ -export interface NFTAmino { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - class_id: string; - /** id is a unique identifier of the NFT */ - id: string; - /** uri for the NFT metadata stored off chain */ - uri: string; - /** uri_hash is a hash of the document pointed by uri */ - uri_hash: string; - /** data is an app specific data of the NFT. Optional */ - data?: AnyAmino; -} -export interface NFTAminoMsg { - type: "cosmos-sdk/NFT"; - value: NFTAmino; -} -/** NFT defines the NFT. */ -export interface NFTSDKType { - class_id: string; - id: string; - uri: string; - uri_hash: string; - data: AnySDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/tx.ts deleted file mode 100644 index a5af7a516..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/nft/v1beta1/tx.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSend { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - classId: string; - /** id defines the unique identification of nft */ - id: string; - /** sender is the address of the owner of nft */ - sender: string; - /** receiver is the receiver address of nft */ - receiver: string; -} -export interface MsgSendProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.MsgSend"; - value: Uint8Array; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendAmino { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - class_id: string; - /** id defines the unique identification of nft */ - id: string; - /** sender is the address of the owner of nft */ - sender: string; - /** receiver is the receiver address of nft */ - receiver: string; -} -export interface MsgSendAminoMsg { - type: "cosmos-sdk/MsgNFTSend"; - value: MsgSendAmino; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse {} -export interface MsgSendResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseAmino {} -export interface MsgSendResponseAminoMsg { - type: "cosmos-sdk/MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/orm/v1/orm.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/orm/v1/orm.ts deleted file mode 100644 index c29aea296..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/orm/v1/orm.ts +++ /dev/null @@ -1,227 +0,0 @@ -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptor { - /** primary_key defines the primary key for the table. */ - primaryKey: PrimaryKeyDescriptor; - /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptor[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface TableDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.TableDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorAmino { - /** primary_key defines the primary key for the table. */ - primary_key?: PrimaryKeyDescriptorAmino; - /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptorAmino[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface TableDescriptorAminoMsg { - type: "cosmos-sdk/TableDescriptor"; - value: TableDescriptorAmino; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorSDKType { - primary_key: PrimaryKeyDescriptorSDKType; - index: SecondaryIndexDescriptorSDKType[]; - id: number; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptor { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * 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. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - autoIncrement: boolean; -} -export interface PrimaryKeyDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorAmino { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * 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. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - auto_increment: boolean; -} -export interface PrimaryKeyDescriptorAminoMsg { - type: "cosmos-sdk/PrimaryKeyDescriptor"; - value: PrimaryKeyDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorSDKType { - fields: string; - auto_increment: boolean; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptor { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id: number; - /** unique specifies that this an unique index. */ - unique: boolean; -} -export interface SecondaryIndexDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorAmino { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id: number; - /** unique specifies that this an unique index. */ - unique: boolean; -} -export interface SecondaryIndexDescriptorAminoMsg { - type: "cosmos-sdk/SecondaryIndexDescriptor"; - value: SecondaryIndexDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorSDKType { - fields: string; - id: number; - unique: boolean; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptor { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface SingletonDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorAmino { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface SingletonDescriptorAminoMsg { - type: "cosmos-sdk/SingletonDescriptor"; - value: SingletonDescriptorAmino; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorSDKType { - id: number; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/orm/v1alpha1/schema.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/orm/v1alpha1/schema.ts deleted file mode 100644 index c11c75d66..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/orm/v1alpha1/schema.ts +++ /dev/null @@ -1,170 +0,0 @@ -/** StorageType */ -export enum StorageType { - /** - * STORAGE_TYPE_DEFAULT_UNSPECIFIED - 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 = 0, - /** - * STORAGE_TYPE_MEMORY - STORAGE_TYPE_MEMORY indicates in-memory storage that will be - * reloaded every time an app restarts. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_MEMORY = 1, - /** - * STORAGE_TYPE_TRANSIENT - STORAGE_TYPE_TRANSIENT indicates transient storage that is reset - * at the end of every block. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_TRANSIENT = 2, - /** - * STORAGE_TYPE_INDEX - 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. - */ - STORAGE_TYPE_INDEX = 3, - /** - * STORAGE_TYPE_COMMITMENT - 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. - */ - STORAGE_TYPE_COMMITMENT = 4, - UNRECOGNIZED = -1, -} -export const StorageTypeSDKType = StorageType; -export const StorageTypeAmino = StorageType; -export function storageTypeFromJSON(object: any): StorageType { - switch (object) { - case 0: - case "STORAGE_TYPE_DEFAULT_UNSPECIFIED": - return StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED; - case 1: - case "STORAGE_TYPE_MEMORY": - return StorageType.STORAGE_TYPE_MEMORY; - case 2: - case "STORAGE_TYPE_TRANSIENT": - return StorageType.STORAGE_TYPE_TRANSIENT; - case 3: - case "STORAGE_TYPE_INDEX": - return StorageType.STORAGE_TYPE_INDEX; - case 4: - case "STORAGE_TYPE_COMMITMENT": - return StorageType.STORAGE_TYPE_COMMITMENT; - case -1: - case "UNRECOGNIZED": - default: - return StorageType.UNRECOGNIZED; - } -} -export function storageTypeToJSON(object: StorageType): string { - switch (object) { - case StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED: - return "STORAGE_TYPE_DEFAULT_UNSPECIFIED"; - case StorageType.STORAGE_TYPE_MEMORY: - return "STORAGE_TYPE_MEMORY"; - case StorageType.STORAGE_TYPE_TRANSIENT: - return "STORAGE_TYPE_TRANSIENT"; - case StorageType.STORAGE_TYPE_INDEX: - return "STORAGE_TYPE_INDEX"; - case StorageType.STORAGE_TYPE_COMMITMENT: - return "STORAGE_TYPE_COMMITMENT"; - case StorageType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptor { - schemaFile: ModuleSchemaDescriptor_FileEntry[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix: Uint8Array; -} -export interface ModuleSchemaDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1alpha1.ModuleSchemaDescriptor"; - value: Uint8Array; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorAmino { - schema_file: ModuleSchemaDescriptor_FileEntryAmino[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix: Uint8Array; -} -export interface ModuleSchemaDescriptorAminoMsg { - type: "cosmos-sdk/ModuleSchemaDescriptor"; - value: ModuleSchemaDescriptorAmino; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorSDKType { - schema_file: ModuleSchemaDescriptor_FileEntrySDKType[]; - prefix: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntry { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - protoFileName: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storageType: StorageType; -} -export interface ModuleSchemaDescriptor_FileEntryProtoMsg { - typeUrl: "/cosmos.orm.v1alpha1.FileEntry"; - value: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntryAmino { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - proto_file_name: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storage_type: StorageType; -} -export interface ModuleSchemaDescriptor_FileEntryAminoMsg { - type: "cosmos-sdk/FileEntry"; - value: ModuleSchemaDescriptor_FileEntryAmino; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntrySDKType { - id: number; - proto_file_name: string; - storage_type: StorageType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/params/v1beta1/params.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/params/v1beta1/params.ts deleted file mode 100644 index 36a9ea41e..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/params/v1beta1/params.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposal { - title: string; - description: string; - changes: ParamChange[]; -} -export interface ParameterChangeProposalProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal"; - value: Uint8Array; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalAmino { - title: string; - description: string; - changes: ParamChangeAmino[]; -} -export interface ParameterChangeProposalAminoMsg { - type: "cosmos-sdk/ParameterChangeProposal"; - value: ParameterChangeProposalAmino; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalSDKType { - title: string; - description: string; - changes: ParamChangeSDKType[]; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChange { - subspace: string; - key: string; - value: string; -} -export interface ParamChangeProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParamChange"; - value: Uint8Array; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeAmino { - subspace: string; - key: string; - value: string; -} -export interface ParamChangeAminoMsg { - type: "cosmos-sdk/ParamChange"; - value: ParamChangeAmino; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeSDKType { - subspace: string; - key: string; - value: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/genesis.ts deleted file mode 100644 index 94d54c0b0..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/genesis.ts +++ /dev/null @@ -1,143 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - ValidatorSigningInfo, - ValidatorSigningInfoAmino, - ValidatorSigningInfoSDKType, -} from "./slashing"; -import { Long } from "../../../helpers"; -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signingInfos: SigningInfo[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missedBlocks: ValidatorMissedBlocks[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of related to deposit. */ - params?: ParamsAmino; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signing_infos: SigningInfoAmino[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missed_blocks: ValidatorMissedBlocksAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - signing_infos: SigningInfoSDKType[]; - missed_blocks: ValidatorMissedBlocksSDKType[]; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfo { - /** address is the validator address. */ - address: string; - /** validator_signing_info represents the signing info of this validator. */ - validatorSigningInfo: ValidatorSigningInfo; -} -export interface SigningInfoProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.SigningInfo"; - value: Uint8Array; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoAmino { - /** address is the validator address. */ - address: string; - /** validator_signing_info represents the signing info of this validator. */ - validator_signing_info?: ValidatorSigningInfoAmino; -} -export interface SigningInfoAminoMsg { - type: "cosmos-sdk/SigningInfo"; - value: SigningInfoAmino; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoSDKType { - address: string; - validator_signing_info: ValidatorSigningInfoSDKType; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocks { - /** address is the validator address. */ - address: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missedBlocks: MissedBlock[]; -} -export interface ValidatorMissedBlocksProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks"; - value: Uint8Array; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksAmino { - /** address is the validator address. */ - address: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missed_blocks: MissedBlockAmino[]; -} -export interface ValidatorMissedBlocksAminoMsg { - type: "cosmos-sdk/ValidatorMissedBlocks"; - value: ValidatorMissedBlocksAmino; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksSDKType { - address: string; - missed_blocks: MissedBlockSDKType[]; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlock { - /** index is the height at which the block was missed. */ - index: Long; - /** missed is the missed status. */ - missed: boolean; -} -export interface MissedBlockProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MissedBlock"; - value: Uint8Array; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockAmino { - /** index is the height at which the block was missed. */ - index: string; - /** missed is the missed status. */ - missed: boolean; -} -export interface MissedBlockAminoMsg { - type: "cosmos-sdk/MissedBlock"; - value: MissedBlockAmino; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockSDKType { - index: Long; - missed: boolean; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/msg.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/msg.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/msg.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/slashing.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/slashing.ts deleted file mode 100644 index ee0666d50..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/slashing.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Long } from "../../../helpers"; -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfo { - address: string; - /** Height at which validator was first a candidate OR was unjailed */ - startHeight: Long; - /** - * 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`. - */ - indexOffset: Long; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailedUntil: Date; - /** - * 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. - */ - tombstoned: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missedBlocksCounter: Long; -} -export interface ValidatorSigningInfoProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo"; - value: Uint8Array; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoAmino { - address: string; - /** Height at which validator was first a candidate OR was unjailed */ - start_height: string; - /** - * 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_offset: string; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailed_until?: Date; - /** - * 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. - */ - tombstoned: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missed_blocks_counter: string; -} -export interface ValidatorSigningInfoAminoMsg { - type: "cosmos-sdk/ValidatorSigningInfo"; - value: ValidatorSigningInfoAmino; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoSDKType { - address: string; - start_height: Long; - index_offset: Long; - jailed_until: Date; - tombstoned: boolean; - missed_blocks_counter: Long; -} -/** Params represents the parameters used for by the slashing module. */ -export interface Params { - signedBlocksWindow: Long; - minSignedPerWindow: Uint8Array; - downtimeJailDuration: Duration; - slashFractionDoubleSign: Uint8Array; - slashFractionDowntime: Uint8Array; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.Params"; - value: Uint8Array; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsAmino { - signed_blocks_window: string; - min_signed_per_window: Uint8Array; - downtime_jail_duration?: DurationAmino; - slash_fraction_double_sign: Uint8Array; - slash_fraction_downtime: Uint8Array; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsSDKType { - signed_blocks_window: Long; - min_signed_per_window: Uint8Array; - downtime_jail_duration: DurationSDKType; - slash_fraction_double_sign: Uint8Array; - slash_fraction_downtime: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/tx.ts deleted file mode 100644 index 759d5d338..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/slashing/v1beta1/tx.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjail { - validatorAddr: string; -} -export interface MsgUnjailProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail"; - value: Uint8Array; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailAmino { - validator_addr: string; -} -export interface MsgUnjailAminoMsg { - type: "cosmos-sdk/MsgUnjail"; - value: MsgUnjailAmino; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailSDKType { - validator_addr: string; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponse {} -export interface MsgUnjailResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse"; - value: Uint8Array; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseAmino {} -export interface MsgUnjailResponseAminoMsg { - type: "cosmos-sdk/MsgUnjailResponse"; - value: MsgUnjailResponseAmino; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/authz.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/authz.ts deleted file mode 100644 index 1145caa66..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/authz.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** - * AuthorizationType defines the type of staking module authorization type - * - * Since: cosmos-sdk 0.43 - */ -export enum AuthorizationType { - /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ - AUTHORIZATION_TYPE_UNSPECIFIED = 0, - /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ - AUTHORIZATION_TYPE_DELEGATE = 1, - /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ - AUTHORIZATION_TYPE_UNDELEGATE = 2, - /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ - AUTHORIZATION_TYPE_REDELEGATE = 3, - UNRECOGNIZED = -1, -} -export const AuthorizationTypeSDKType = AuthorizationType; -export const AuthorizationTypeAmino = AuthorizationType; -export function authorizationTypeFromJSON(object: any): AuthorizationType { - switch (object) { - case 0: - case "AUTHORIZATION_TYPE_UNSPECIFIED": - return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED; - case 1: - case "AUTHORIZATION_TYPE_DELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE; - case 2: - case "AUTHORIZATION_TYPE_UNDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE; - case 3: - case "AUTHORIZATION_TYPE_REDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE; - case -1: - case "UNRECOGNIZED": - default: - return AuthorizationType.UNRECOGNIZED; - } -} -export function authorizationTypeToJSON(object: AuthorizationType): string { - switch (object) { - case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED: - return "AUTHORIZATION_TYPE_UNSPECIFIED"; - case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE: - return "AUTHORIZATION_TYPE_DELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE: - return "AUTHORIZATION_TYPE_UNDELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE: - return "AUTHORIZATION_TYPE_REDELEGATE"; - case AuthorizationType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorization { - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - maxTokens: Coin; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allowList?: StakeAuthorization_Validators; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - denyList?: StakeAuthorization_Validators; - /** authorization_type defines one of AuthorizationType. */ - authorizationType: AuthorizationType; -} -export interface StakeAuthorizationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization"; - value: Uint8Array; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationAmino { - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - max_tokens?: CoinAmino; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allow_list?: StakeAuthorization_ValidatorsAmino; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - deny_list?: StakeAuthorization_ValidatorsAmino; - /** authorization_type defines one of AuthorizationType. */ - authorization_type: AuthorizationType; -} -export interface StakeAuthorizationAminoMsg { - type: "cosmos-sdk/StakeAuthorization"; - value: StakeAuthorizationAmino; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationSDKType { - max_tokens: CoinSDKType; - allow_list?: StakeAuthorization_ValidatorsSDKType; - deny_list?: StakeAuthorization_ValidatorsSDKType; - authorization_type: AuthorizationType; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_Validators { - address: string[]; -} -export interface StakeAuthorization_ValidatorsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validators"; - value: Uint8Array; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsAmino { - address: string[]; -} -export interface StakeAuthorization_ValidatorsAminoMsg { - type: "cosmos-sdk/Validators"; - value: StakeAuthorization_ValidatorsAmino; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsSDKType { - address: string[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/genesis.ts deleted file mode 100644 index 1c01ca352..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/genesis.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - Validator, - ValidatorAmino, - ValidatorSDKType, - Delegation, - DelegationAmino, - DelegationSDKType, - UnbondingDelegation, - UnbondingDelegationAmino, - UnbondingDelegationSDKType, - Redelegation, - RedelegationAmino, - RedelegationSDKType, -} from "./staking"; -import { Long } from "../../../helpers"; -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - lastTotalPower: Uint8Array; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - lastValidatorPowers: LastValidatorPower[]; - /** delegations defines the validator set at genesis. */ - validators: Validator[]; - /** delegations defines the delegations active at genesis. */ - delegations: Delegation[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbondingDelegations: UnbondingDelegation[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations: Redelegation[]; - exported: boolean; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of related to deposit. */ - params?: ParamsAmino; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - last_total_power: Uint8Array; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - last_validator_powers: LastValidatorPowerAmino[]; - /** delegations defines the validator set at genesis. */ - validators: ValidatorAmino[]; - /** delegations defines the delegations active at genesis. */ - delegations: DelegationAmino[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbonding_delegations: UnbondingDelegationAmino[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations: RedelegationAmino[]; - exported: boolean; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - last_total_power: Uint8Array; - last_validator_powers: LastValidatorPowerSDKType[]; - validators: ValidatorSDKType[]; - delegations: DelegationSDKType[]; - unbonding_delegations: UnbondingDelegationSDKType[]; - redelegations: RedelegationSDKType[]; - exported: boolean; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPower { - /** address is the address of the validator. */ - address: string; - /** power defines the power of the validator. */ - power: Long; -} -export interface LastValidatorPowerProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; - value: Uint8Array; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerAmino { - /** address is the address of the validator. */ - address: string; - /** power defines the power of the validator. */ - power: string; -} -export interface LastValidatorPowerAminoMsg { - type: "cosmos-sdk/LastValidatorPower"; - value: LastValidatorPowerAmino; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerSDKType { - address: string; - power: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/staking.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/staking.ts deleted file mode 100644 index 6ef1f2073..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/staking.ts +++ /dev/null @@ -1,831 +0,0 @@ -import { - Header, - HeaderAmino, - HeaderSDKType, -} from "../../../tendermint/types/types"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../google/protobuf/duration"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** BondStatus is the status of a validator. */ -export enum BondStatus { - /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ - BOND_STATUS_UNSPECIFIED = 0, - /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ - BOND_STATUS_UNBONDED = 1, - /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ - BOND_STATUS_UNBONDING = 2, - /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ - BOND_STATUS_BONDED = 3, - UNRECOGNIZED = -1, -} -export const BondStatusSDKType = BondStatus; -export const BondStatusAmino = BondStatus; -export function bondStatusFromJSON(object: any): BondStatus { - switch (object) { - case 0: - case "BOND_STATUS_UNSPECIFIED": - return BondStatus.BOND_STATUS_UNSPECIFIED; - case 1: - case "BOND_STATUS_UNBONDED": - return BondStatus.BOND_STATUS_UNBONDED; - case 2: - case "BOND_STATUS_UNBONDING": - return BondStatus.BOND_STATUS_UNBONDING; - case 3: - case "BOND_STATUS_BONDED": - return BondStatus.BOND_STATUS_BONDED; - case -1: - case "UNRECOGNIZED": - default: - return BondStatus.UNRECOGNIZED; - } -} -export function bondStatusToJSON(object: BondStatus): string { - switch (object) { - case BondStatus.BOND_STATUS_UNSPECIFIED: - return "BOND_STATUS_UNSPECIFIED"; - case BondStatus.BOND_STATUS_UNBONDED: - return "BOND_STATUS_UNBONDED"; - case BondStatus.BOND_STATUS_UNBONDING: - return "BOND_STATUS_UNBONDING"; - case BondStatus.BOND_STATUS_BONDED: - return "BOND_STATUS_BONDED"; - case BondStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfo { - header: Header; - valset: Validator[]; -} -export interface HistoricalInfoProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo"; - value: Uint8Array; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoAmino { - header?: HeaderAmino; - valset: ValidatorAmino[]; -} -export interface HistoricalInfoAminoMsg { - type: "cosmos-sdk/HistoricalInfo"; - value: HistoricalInfoAmino; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoSDKType { - header: HeaderSDKType; - valset: ValidatorSDKType[]; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRates { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - maxRate: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - maxChangeRate: string; -} -export interface CommissionRatesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates"; - value: Uint8Array; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesAmino { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate: string; -} -export interface CommissionRatesAminoMsg { - type: "cosmos-sdk/CommissionRates"; - value: CommissionRatesAmino; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesSDKType { - rate: string; - max_rate: string; - max_change_rate: string; -} -/** Commission defines commission parameters for a given validator. */ -export interface Commission { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commissionRates: CommissionRates; - /** update_time is the last time the commission rate was changed. */ - updateTime: Date; -} -export interface CommissionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Commission"; - value: Uint8Array; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionAmino { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: CommissionRatesAmino; - /** update_time is the last time the commission rate was changed. */ - update_time?: Date; -} -export interface CommissionAminoMsg { - type: "cosmos-sdk/Commission"; - value: CommissionAmino; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionSDKType { - commission_rates: CommissionRatesSDKType; - update_time: Date; -} -/** Description defines a validator description. */ -export interface Description { - /** moniker defines a human-readable name for the validator. */ - moniker: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity: string; - /** website defines an optional website link. */ - website: string; - /** security_contact defines an optional email for security contact. */ - securityContact: string; - /** details define other optional details. */ - details: string; -} -export interface DescriptionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Description"; - value: Uint8Array; -} -/** Description defines a validator description. */ -export interface DescriptionAmino { - /** moniker defines a human-readable name for the validator. */ - moniker: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity: string; - /** website defines an optional website link. */ - website: string; - /** security_contact defines an optional email for security contact. */ - security_contact: string; - /** details define other optional details. */ - details: string; -} -export interface DescriptionAminoMsg { - type: "cosmos-sdk/Description"; - value: DescriptionAmino; -} -/** Description defines a validator description. */ -export interface DescriptionSDKType { - moniker: string; - identity: string; - website: string; - security_contact: string; - details: string; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface Validator { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operatorAddress: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensusPubkey: Any; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegatorShares: string; - /** description defines the description terms for the validator. */ - description: Description; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbondingHeight: Long; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbondingTime: Date; - /** commission defines the commission parameters. */ - commission: Commission; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - minSelfDelegation: string; -} -export interface ValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validator"; - value: Uint8Array; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorAmino { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensus_pubkey?: AnyAmino; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares: string; - /** description defines the description terms for the validator. */ - description?: DescriptionAmino; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbonding_height: string; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbonding_time?: Date; - /** commission defines the commission parameters. */ - commission?: CommissionAmino; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation: string; -} -export interface ValidatorAminoMsg { - type: "cosmos-sdk/Validator"; - value: ValidatorAmino; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorSDKType { - operator_address: string; - consensus_pubkey: AnySDKType; - jailed: boolean; - status: BondStatus; - tokens: string; - delegator_shares: string; - description: DescriptionSDKType; - unbonding_height: Long; - unbonding_time: Date; - commission: CommissionSDKType; - min_self_delegation: string; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddresses { - addresses: string[]; -} -export interface ValAddressesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses"; - value: Uint8Array; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesAmino { - addresses: string[]; -} -export interface ValAddressesAminoMsg { - type: "cosmos-sdk/ValAddresses"; - value: ValAddressesAmino; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesSDKType { - addresses: string[]; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPair { - delegatorAddress: string; - validatorAddress: string; -} -export interface DVPairProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPair"; - value: Uint8Array; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairAmino { - delegator_address: string; - validator_address: string; -} -export interface DVPairAminoMsg { - type: "cosmos-sdk/DVPair"; - value: DVPairAmino; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairSDKType { - delegator_address: string; - validator_address: string; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairs { - pairs: DVPair[]; -} -export interface DVPairsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPairs"; - value: Uint8Array; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsAmino { - pairs: DVPairAmino[]; -} -export interface DVPairsAminoMsg { - type: "cosmos-sdk/DVPairs"; - value: DVPairsAmino; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsSDKType { - pairs: DVPairSDKType[]; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTriplet { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; -} -export interface DVVTripletProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet"; - value: Uint8Array; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletAmino { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; -} -export interface DVVTripletAminoMsg { - type: "cosmos-sdk/DVVTriplet"; - value: DVVTripletAmino; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTriplets { - triplets: DVVTriplet[]; -} -export interface DVVTripletsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets"; - value: Uint8Array; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsAmino { - triplets: DVVTripletAmino[]; -} -export interface DVVTripletsAminoMsg { - type: "cosmos-sdk/DVVTriplets"; - value: DVVTripletsAmino; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsSDKType { - triplets: DVVTripletSDKType[]; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface Delegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** shares define the delegation shares received. */ - shares: string; -} -export interface DelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Delegation"; - value: Uint8Array; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address: string; - /** shares define the delegation shares received. */ - shares: string; -} -export interface DelegationAminoMsg { - type: "cosmos-sdk/Delegation"; - value: DelegationAmino; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationSDKType { - delegator_address: string; - validator_address: string; - shares: string; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** entries are the unbonding delegation entries. */ - entries: UnbondingDelegationEntry[]; -} -export interface UnbondingDelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation"; - value: Uint8Array; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address: string; - /** entries are the unbonding delegation entries. */ - entries: UnbondingDelegationEntryAmino[]; -} -export interface UnbondingDelegationAminoMsg { - type: "cosmos-sdk/UnbondingDelegation"; - value: UnbondingDelegationAmino; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationSDKType { - delegator_address: string; - validator_address: string; - entries: UnbondingDelegationEntrySDKType[]; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntry { - /** creation_height is the height which the unbonding took place. */ - creationHeight: Long; - /** completion_time is the unix time for unbonding completion. */ - completionTime: Date; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initialBalance: string; - /** balance defines the tokens to receive at completion. */ - balance: string; -} -export interface UnbondingDelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry"; - value: Uint8Array; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntryAmino { - /** creation_height is the height which the unbonding took place. */ - creation_height: string; - /** completion_time is the unix time for unbonding completion. */ - completion_time?: Date; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance: string; - /** balance defines the tokens to receive at completion. */ - balance: string; -} -export interface UnbondingDelegationEntryAminoMsg { - type: "cosmos-sdk/UnbondingDelegationEntry"; - value: UnbondingDelegationEntryAmino; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntrySDKType { - creation_height: Long; - completion_time: Date; - initial_balance: string; - balance: string; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntry { - /** creation_height defines the height which the redelegation took place. */ - creationHeight: Long; - /** completion_time defines the unix time for redelegation completion. */ - completionTime: Date; - /** initial_balance defines the initial balance when redelegation started. */ - initialBalance: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - sharesDst: string; -} -export interface RedelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry"; - value: Uint8Array; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntryAmino { - /** creation_height defines the height which the redelegation took place. */ - creation_height: string; - /** completion_time defines the unix time for redelegation completion. */ - completion_time?: Date; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst: string; -} -export interface RedelegationEntryAminoMsg { - type: "cosmos-sdk/RedelegationEntry"; - value: RedelegationEntryAmino; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntrySDKType { - creation_height: Long; - completion_time: Date; - initial_balance: string; - shares_dst: string; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface Redelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_src_address is the validator redelegation source operator address. */ - validatorSrcAddress: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validatorDstAddress: string; - /** entries are the redelegation entries. */ - entries: RedelegationEntry[]; -} -export interface RedelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Redelegation"; - value: Uint8Array; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address: string; - /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address: string; - /** entries are the redelegation entries. */ - entries: RedelegationEntryAmino[]; -} -export interface RedelegationAminoMsg { - type: "cosmos-sdk/Redelegation"; - value: RedelegationAmino; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - entries: RedelegationEntrySDKType[]; -} -/** Params defines the parameters for the staking module. */ -export interface Params { - /** unbonding_time is the time duration of unbonding. */ - unbondingTime: Duration; - /** max_validators is the maximum number of validators. */ - maxValidators: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - maxEntries: number; - /** historical_entries is the number of historical entries to persist. */ - historicalEntries: number; - /** bond_denom defines the bondable coin denomination. */ - bondDenom: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - minCommissionRate: string; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsAmino { - /** unbonding_time is the time duration of unbonding. */ - unbonding_time?: DurationAmino; - /** max_validators is the maximum number of validators. */ - max_validators: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - max_entries: number; - /** historical_entries is the number of historical entries to persist. */ - historical_entries: number; - /** bond_denom defines the bondable coin denomination. */ - bond_denom: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - min_commission_rate: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsSDKType { - unbonding_time: DurationSDKType; - max_validators: number; - max_entries: number; - historical_entries: number; - bond_denom: string; - min_commission_rate: string; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponse { - delegation: Delegation; - balance: Coin; -} -export interface DelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse"; - value: Uint8Array; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseAmino { - delegation?: DelegationAmino; - balance?: CoinAmino; -} -export interface DelegationResponseAminoMsg { - type: "cosmos-sdk/DelegationResponse"; - value: DelegationResponseAmino; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseSDKType { - delegation: DelegationSDKType; - balance: CoinSDKType; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponse { - redelegationEntry: RedelegationEntry; - balance: string; -} -export interface RedelegationEntryResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse"; - value: Uint8Array; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseAmino { - redelegation_entry?: RedelegationEntryAmino; - balance: string; -} -export interface RedelegationEntryResponseAminoMsg { - type: "cosmos-sdk/RedelegationEntryResponse"; - value: RedelegationEntryResponseAmino; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseSDKType { - redelegation_entry: RedelegationEntrySDKType; - balance: string; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponse { - redelegation: Redelegation; - entries: RedelegationEntryResponse[]; -} -export interface RedelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse"; - value: Uint8Array; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseAmino { - redelegation?: RedelegationAmino; - entries: RedelegationEntryResponseAmino[]; -} -export interface RedelegationResponseAminoMsg { - type: "cosmos-sdk/RedelegationResponse"; - value: RedelegationResponseAmino; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseSDKType { - redelegation: RedelegationSDKType; - entries: RedelegationEntryResponseSDKType[]; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface Pool { - notBondedTokens: string; - bondedTokens: string; -} -export interface PoolProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Pool"; - value: Uint8Array; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolAmino { - not_bonded_tokens: string; - bonded_tokens: string; -} -export interface PoolAminoMsg { - type: "cosmos-sdk/Pool"; - value: PoolAmino; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolSDKType { - not_bonded_tokens: string; - bonded_tokens: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/tx.ts deleted file mode 100644 index 759275852..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/staking/v1beta1/tx.ts +++ /dev/null @@ -1,279 +0,0 @@ -import { - Description, - DescriptionAmino, - DescriptionSDKType, - CommissionRates, - CommissionRatesAmino, - CommissionRatesSDKType, -} from "./staking"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidator { - description: Description; - commission: CommissionRates; - minSelfDelegation: string; - delegatorAddress: string; - validatorAddress: string; - pubkey: Any; - value: Coin; -} -export interface MsgCreateValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator"; - value: Uint8Array; -} -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorAmino { - description?: DescriptionAmino; - commission?: CommissionRatesAmino; - min_self_delegation: string; - delegator_address: string; - validator_address: string; - pubkey?: AnyAmino; - value?: CoinAmino; -} -export interface MsgCreateValidatorAminoMsg { - type: "cosmos-sdk/MsgCreateValidator"; - value: MsgCreateValidatorAmino; -} -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorSDKType { - description: DescriptionSDKType; - commission: CommissionRatesSDKType; - min_self_delegation: string; - delegator_address: string; - validator_address: string; - pubkey: AnySDKType; - value: CoinSDKType; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponse {} -export interface MsgCreateValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse"; - value: Uint8Array; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseAmino {} -export interface MsgCreateValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgCreateValidatorResponse"; - value: MsgCreateValidatorResponseAmino; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseSDKType {} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidator { - description: Description; - validatorAddress: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commissionRate: string; - minSelfDelegation: string; -} -export interface MsgEditValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator"; - value: Uint8Array; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorAmino { - description?: DescriptionAmino; - validator_address: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commission_rate: string; - min_self_delegation: string; -} -export interface MsgEditValidatorAminoMsg { - type: "cosmos-sdk/MsgEditValidator"; - value: MsgEditValidatorAmino; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorSDKType { - description: DescriptionSDKType; - validator_address: string; - commission_rate: string; - min_self_delegation: string; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponse {} -export interface MsgEditValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse"; - value: Uint8Array; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseAmino {} -export interface MsgEditValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgEditValidatorResponse"; - value: MsgEditValidatorResponseAmino; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseSDKType {} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgDelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate"; - value: Uint8Array; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateAmino { - delegator_address: string; - validator_address: string; - amount?: CoinAmino; -} -export interface MsgDelegateAminoMsg { - type: "cosmos-sdk/MsgDelegate"; - value: MsgDelegateAmino; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponse {} -export interface MsgDelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse"; - value: Uint8Array; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseAmino {} -export interface MsgDelegateResponseAminoMsg { - type: "cosmos-sdk/MsgDelegateResponse"; - value: MsgDelegateResponseAmino; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseSDKType {} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegate { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; - amount: Coin; -} -export interface MsgBeginRedelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate"; - value: Uint8Array; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateAmino { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - amount?: CoinAmino; -} -export interface MsgBeginRedelegateAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegate"; - value: MsgBeginRedelegateAmino; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - amount: CoinSDKType; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponse { - completionTime: Date; -} -export interface MsgBeginRedelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; - value: Uint8Array; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseAmino { - completion_time?: Date; -} -export interface MsgBeginRedelegateResponseAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegateResponse"; - value: MsgBeginRedelegateResponseAmino; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseSDKType { - completion_time: Date; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgUndelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate"; - value: Uint8Array; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateAmino { - delegator_address: string; - validator_address: string; - amount?: CoinAmino; -} -export interface MsgUndelegateAminoMsg { - type: "cosmos-sdk/MsgUndelegate"; - value: MsgUndelegateAmino; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponse { - completionTime: Date; -} -export interface MsgUndelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse"; - value: Uint8Array; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseAmino { - completion_time?: Date; -} -export interface MsgUndelegateResponseAminoMsg { - type: "cosmos-sdk/MsgUndelegateResponse"; - value: MsgUndelegateResponseAmino; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseSDKType { - completion_time: Date; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/tx/signing/v1beta1/signing.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/tx/signing/v1beta1/signing.ts deleted file mode 100644 index 1c5564107..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/tx/signing/v1beta1/signing.ts +++ /dev/null @@ -1,248 +0,0 @@ -import { - CompactBitArray, - CompactBitArrayAmino, - CompactBitArraySDKType, -} from "../../../crypto/multisig/v1beta1/multisig"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Long } from "../../../../helpers"; -/** - * SignMode represents a signing mode with its own security guarantees. - * - * This enum should be considered a registry of all known sign modes - * in the Cosmos ecosystem. Apps are not expected to support all known - * sign modes. Apps that would like to support custom sign modes are - * encouraged to open a small PR against this file to add a new case - * to this SignMode enum describing their sign mode so that different - * apps have a consistent version of this enum. - */ -export enum SignMode { - /** - * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected. - */ - SIGN_MODE_UNSPECIFIED = 0, - /** - * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx. - */ - SIGN_MODE_DIRECT = 1, - /** - * SIGN_MODE_TEXTUAL - 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. - */ - SIGN_MODE_TEXTUAL = 2, - /** - * SIGN_MODE_DIRECT_AUX - 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. - * - * Since: cosmos-sdk 0.46 - */ - SIGN_MODE_DIRECT_AUX = 3, - /** - * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future. - */ - SIGN_MODE_LEGACY_AMINO_JSON = 127, - UNRECOGNIZED = -1, -} -export const SignModeSDKType = SignMode; -export const SignModeAmino = SignMode; -export function signModeFromJSON(object: any): SignMode { - switch (object) { - case 0: - case "SIGN_MODE_UNSPECIFIED": - return SignMode.SIGN_MODE_UNSPECIFIED; - case 1: - case "SIGN_MODE_DIRECT": - return SignMode.SIGN_MODE_DIRECT; - case 2: - case "SIGN_MODE_TEXTUAL": - return SignMode.SIGN_MODE_TEXTUAL; - case 3: - case "SIGN_MODE_DIRECT_AUX": - return SignMode.SIGN_MODE_DIRECT_AUX; - case 127: - case "SIGN_MODE_LEGACY_AMINO_JSON": - return SignMode.SIGN_MODE_LEGACY_AMINO_JSON; - case -1: - case "UNRECOGNIZED": - default: - return SignMode.UNRECOGNIZED; - } -} -export function signModeToJSON(object: SignMode): string { - switch (object) { - case SignMode.SIGN_MODE_UNSPECIFIED: - return "SIGN_MODE_UNSPECIFIED"; - case SignMode.SIGN_MODE_DIRECT: - return "SIGN_MODE_DIRECT"; - case SignMode.SIGN_MODE_TEXTUAL: - return "SIGN_MODE_TEXTUAL"; - case SignMode.SIGN_MODE_DIRECT_AUX: - return "SIGN_MODE_DIRECT_AUX"; - case SignMode.SIGN_MODE_LEGACY_AMINO_JSON: - return "SIGN_MODE_LEGACY_AMINO_JSON"; - case SignMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptors { - /** signatures are the signature descriptors */ - signatures: SignatureDescriptor[]; -} -export interface SignatureDescriptorsProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors"; - value: Uint8Array; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsAmino { - /** signatures are the signature descriptors */ - signatures: SignatureDescriptorAmino[]; -} -export interface SignatureDescriptorsAminoMsg { - type: "cosmos-sdk/SignatureDescriptors"; - value: SignatureDescriptorsAmino; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsSDKType { - signatures: SignatureDescriptorSDKType[]; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptor { - /** public_key is the public key of the signer */ - publicKey: Any; - data: SignatureDescriptor_Data; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence: Long; -} -export interface SignatureDescriptorProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor"; - value: Uint8Array; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorAmino { - /** public_key is the public key of the signer */ - public_key?: AnyAmino; - data?: SignatureDescriptor_DataAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence: string; -} -export interface SignatureDescriptorAminoMsg { - type: "cosmos-sdk/SignatureDescriptor"; - value: SignatureDescriptorAmino; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorSDKType { - public_key: AnySDKType; - data: SignatureDescriptor_DataSDKType; - sequence: Long; -} -/** Data represents signature data */ -export interface SignatureDescriptor_Data { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_Single; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_Multi; -} -export interface SignatureDescriptor_DataProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Data"; - value: Uint8Array; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataAmino { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_SingleAmino; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_MultiAmino; -} -export interface SignatureDescriptor_DataAminoMsg { - type: "cosmos-sdk/Data"; - value: SignatureDescriptor_DataAmino; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataSDKType { - single?: SignatureDescriptor_Data_SingleSDKType; - multi?: SignatureDescriptor_Data_MultiSDKType; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** signature is the raw signature bytes */ - signature: Uint8Array; -} -export interface SignatureDescriptor_Data_SingleProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Single"; - value: Uint8Array; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleAmino { - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** signature is the raw signature bytes */ - signature: Uint8Array; -} -export interface SignatureDescriptor_Data_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: SignatureDescriptor_Data_SingleAmino; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleSDKType { - mode: SignMode; - signature: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray: CompactBitArray; - /** signatures is the signatures of the multi-signature */ - signatures: SignatureDescriptor_Data[]; -} -export interface SignatureDescriptor_Data_MultiProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** signatures is the signatures of the multi-signature */ - signatures: SignatureDescriptor_DataAmino[]; -} -export interface SignatureDescriptor_Data_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: SignatureDescriptor_Data_MultiAmino; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiSDKType { - bitarray: CompactBitArraySDKType; - signatures: SignatureDescriptor_DataSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/service.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/service.ts deleted file mode 100644 index 56bbc80af..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/service.ts +++ /dev/null @@ -1,510 +0,0 @@ -import { Tx, TxAmino, TxSDKType } from "./tx"; -import { - PageRequest, - PageRequestAmino, - PageRequestSDKType, - PageResponse, - PageResponseAmino, - PageResponseSDKType, -} from "../../base/query/v1beta1/pagination"; -import { - TxResponse, - TxResponseAmino, - TxResponseSDKType, - GasInfo, - GasInfoAmino, - GasInfoSDKType, - Result, - ResultAmino, - ResultSDKType, -} from "../../base/abci/v1beta1/abci"; -import { - BlockID, - BlockIDAmino, - BlockIDSDKType, -} from "../../../tendermint/types/types"; -import { - Block, - BlockAmino, - BlockSDKType, -} from "../../../tendermint/types/block"; -import { Long } from "../../../helpers"; -/** OrderBy defines the sorting order */ -export enum OrderBy { - /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ - ORDER_BY_UNSPECIFIED = 0, - /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ - ORDER_BY_ASC = 1, - /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ - ORDER_BY_DESC = 2, - UNRECOGNIZED = -1, -} -export const OrderBySDKType = OrderBy; -export const OrderByAmino = OrderBy; -export function orderByFromJSON(object: any): OrderBy { - switch (object) { - case 0: - case "ORDER_BY_UNSPECIFIED": - return OrderBy.ORDER_BY_UNSPECIFIED; - case 1: - case "ORDER_BY_ASC": - return OrderBy.ORDER_BY_ASC; - case 2: - case "ORDER_BY_DESC": - return OrderBy.ORDER_BY_DESC; - case -1: - case "UNRECOGNIZED": - default: - return OrderBy.UNRECOGNIZED; - } -} -export function orderByToJSON(object: OrderBy): string { - switch (object) { - case OrderBy.ORDER_BY_UNSPECIFIED: - return "ORDER_BY_UNSPECIFIED"; - case OrderBy.ORDER_BY_ASC: - return "ORDER_BY_ASC"; - case OrderBy.ORDER_BY_DESC: - return "ORDER_BY_DESC"; - case OrderBy.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ -export enum BroadcastMode { - /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ - BROADCAST_MODE_UNSPECIFIED = 0, - /** - * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - */ - BROADCAST_MODE_BLOCK = 1, - /** - * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - */ - BROADCAST_MODE_SYNC = 2, - /** - * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - */ - BROADCAST_MODE_ASYNC = 3, - UNRECOGNIZED = -1, -} -export const BroadcastModeSDKType = BroadcastMode; -export const BroadcastModeAmino = BroadcastMode; -export function broadcastModeFromJSON(object: any): BroadcastMode { - switch (object) { - case 0: - case "BROADCAST_MODE_UNSPECIFIED": - return BroadcastMode.BROADCAST_MODE_UNSPECIFIED; - case 1: - case "BROADCAST_MODE_BLOCK": - return BroadcastMode.BROADCAST_MODE_BLOCK; - case 2: - case "BROADCAST_MODE_SYNC": - return BroadcastMode.BROADCAST_MODE_SYNC; - case 3: - case "BROADCAST_MODE_ASYNC": - return BroadcastMode.BROADCAST_MODE_ASYNC; - case -1: - case "UNRECOGNIZED": - default: - return BroadcastMode.UNRECOGNIZED; - } -} -export function broadcastModeToJSON(object: BroadcastMode): string { - switch (object) { - case BroadcastMode.BROADCAST_MODE_UNSPECIFIED: - return "BROADCAST_MODE_UNSPECIFIED"; - case BroadcastMode.BROADCAST_MODE_BLOCK: - return "BROADCAST_MODE_BLOCK"; - case BroadcastMode.BROADCAST_MODE_SYNC: - return "BROADCAST_MODE_SYNC"; - case BroadcastMode.BROADCAST_MODE_ASYNC: - return "BROADCAST_MODE_ASYNC"; - case BroadcastMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequest { - /** events is the list of transaction event type. */ - events: string[]; - /** pagination defines a pagination for the request. */ - pagination: PageRequest; - orderBy: OrderBy; -} -export interface GetTxsEventRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest"; - value: Uint8Array; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestAmino { - /** events is the list of transaction event type. */ - events: string[]; - /** pagination defines a pagination for the request. */ - pagination?: PageRequestAmino; - order_by: OrderBy; -} -export interface GetTxsEventRequestAminoMsg { - type: "cosmos-sdk/GetTxsEventRequest"; - value: GetTxsEventRequestAmino; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestSDKType { - events: string[]; - pagination: PageRequestSDKType; - order_by: OrderBy; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponse { - /** txs is the list of queried transactions. */ - txs: Tx[]; - /** tx_responses is the list of queried TxResponses. */ - txResponses: TxResponse[]; - /** pagination defines a pagination for the response. */ - pagination: PageResponse; -} -export interface GetTxsEventResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse"; - value: Uint8Array; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseAmino { - /** txs is the list of queried transactions. */ - txs: TxAmino[]; - /** tx_responses is the list of queried TxResponses. */ - tx_responses: TxResponseAmino[]; - /** pagination defines a pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetTxsEventResponseAminoMsg { - type: "cosmos-sdk/GetTxsEventResponse"; - value: GetTxsEventResponseAmino; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseSDKType { - txs: TxSDKType[]; - tx_responses: TxResponseSDKType[]; - pagination: PageResponseSDKType; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequest { - /** tx_bytes is the raw transaction. */ - txBytes: Uint8Array; - mode: BroadcastMode; -} -export interface BroadcastTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest"; - value: Uint8Array; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestAmino { - /** tx_bytes is the raw transaction. */ - tx_bytes: Uint8Array; - mode: BroadcastMode; -} -export interface BroadcastTxRequestAminoMsg { - type: "cosmos-sdk/BroadcastTxRequest"; - value: BroadcastTxRequestAmino; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestSDKType { - tx_bytes: Uint8Array; - mode: BroadcastMode; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponse { - /** tx_response is the queried TxResponses. */ - txResponse: TxResponse; -} -export interface BroadcastTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse"; - value: Uint8Array; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseAmino { - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface BroadcastTxResponseAminoMsg { - type: "cosmos-sdk/BroadcastTxResponse"; - value: BroadcastTxResponseAmino; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseSDKType { - tx_response: TxResponseSDKType; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequest { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx: Tx; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - txBytes: Uint8Array; -} -export interface SimulateRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest"; - value: Uint8Array; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestAmino { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx?: TxAmino; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - tx_bytes: Uint8Array; -} -export interface SimulateRequestAminoMsg { - type: "cosmos-sdk/SimulateRequest"; - value: SimulateRequestAmino; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestSDKType { - /** @deprecated */ - tx: TxSDKType; - tx_bytes: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponse { - /** gas_info is the information about gas used in the simulation. */ - gasInfo: GasInfo; - /** result is the result of the simulation. */ - result: Result; -} -export interface SimulateResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse"; - value: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseAmino { - /** gas_info is the information about gas used in the simulation. */ - gas_info?: GasInfoAmino; - /** result is the result of the simulation. */ - result?: ResultAmino; -} -export interface SimulateResponseAminoMsg { - type: "cosmos-sdk/SimulateResponse"; - value: SimulateResponseAmino; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseSDKType { - gas_info: GasInfoSDKType; - result: ResultSDKType; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequest { - /** hash is the tx hash to query, encoded as a hex string. */ - hash: string; -} -export interface GetTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest"; - value: Uint8Array; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestAmino { - /** hash is the tx hash to query, encoded as a hex string. */ - hash: string; -} -export interface GetTxRequestAminoMsg { - type: "cosmos-sdk/GetTxRequest"; - value: GetTxRequestAmino; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestSDKType { - hash: string; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponse { - /** tx is the queried transaction. */ - tx: Tx; - /** tx_response is the queried TxResponses. */ - txResponse: TxResponse; -} -export interface GetTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse"; - value: Uint8Array; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseAmino { - /** tx is the queried transaction. */ - tx?: TxAmino; - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface GetTxResponseAminoMsg { - type: "cosmos-sdk/GetTxResponse"; - value: GetTxResponseAmino; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseSDKType { - tx: TxSDKType; - tx_response: TxResponseSDKType; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequest { - /** height is the height of the block to query. */ - height: Long; - /** pagination defines a pagination for the request. */ - pagination: PageRequest; -} -export interface GetBlockWithTxsRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest"; - value: Uint8Array; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestAmino { - /** height is the height of the block to query. */ - height: string; - /** pagination defines a pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface GetBlockWithTxsRequestAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsRequest"; - value: GetBlockWithTxsRequestAmino; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestSDKType { - height: Long; - pagination: PageRequestSDKType; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponse { - /** txs are the transactions in the block. */ - txs: Tx[]; - blockId: BlockID; - block: Block; - /** pagination defines a pagination for the response. */ - pagination: PageResponse; -} -export interface GetBlockWithTxsResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse"; - value: Uint8Array; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseAmino { - /** txs are the transactions in the block. */ - txs: TxAmino[]; - block_id?: BlockIDAmino; - block?: BlockAmino; - /** pagination defines a pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetBlockWithTxsResponseAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsResponse"; - value: GetBlockWithTxsResponseAmino; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseSDKType { - txs: TxSDKType[]; - block_id: BlockIDSDKType; - block: BlockSDKType; - pagination: PageResponseSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/tx.ts deleted file mode 100644 index fe286edcd..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/tx/v1beta1/tx.ts +++ /dev/null @@ -1,762 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { SignMode } from "../signing/v1beta1/signing"; -import { - CompactBitArray, - CompactBitArrayAmino, - CompactBitArraySDKType, -} from "../../crypto/multisig/v1beta1/multisig"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** Tx is the standard type used for broadcasting transactions. */ -export interface Tx { - /** body is the processable content of the transaction */ - body: TxBody; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - authInfo: AuthInfo; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tx"; - value: Uint8Array; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxAmino { - /** body is the processable content of the transaction */ - body?: TxBodyAmino; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - auth_info?: AuthInfoAmino; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxAminoMsg { - type: "cosmos-sdk/Tx"; - value: TxAmino; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxSDKType { - body: TxBodySDKType; - auth_info: AuthInfoSDKType; - signatures: Uint8Array[]; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRaw { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - authInfoBytes: Uint8Array; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxRawProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxRaw"; - value: Uint8Array; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawAmino { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - body_bytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - auth_info_bytes: Uint8Array; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxRawAminoMsg { - type: "cosmos-sdk/TxRaw"; - value: TxRawAmino; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - signatures: Uint8Array[]; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDoc { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - authInfoBytes: Uint8Array; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chainId: string; - /** account_number is the account number of the account in state */ - accountNumber: Long; -} -export interface SignDocProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDoc"; - value: Uint8Array; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - auth_info_bytes: Uint8Array; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chain_id: string; - /** account_number is the account number of the account in state */ - account_number: string; -} -export interface SignDocAminoMsg { - type: "cosmos-sdk/SignDoc"; - value: SignDocAmino; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - chain_id: string; - account_number: Long; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAux { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** public_key is the public key of the signing account. */ - publicKey: Any; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chainId: string; - /** account_number is the account number of the account in state. */ - accountNumber: Long; - /** sequence is the sequence number of the signing account. */ - sequence: Long; - /** - * Tip is the optional tip used for meta-transactions. It should be left - * empty if the signer is not the tipper for this transaction. - */ - tip: Tip; -} -export interface SignDocDirectAuxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux"; - value: Uint8Array; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes: Uint8Array; - /** public_key is the public key of the signing account. */ - public_key?: AnyAmino; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chain_id: string; - /** account_number is the account number of the account in state. */ - account_number: string; - /** sequence is the sequence number of the signing account. */ - sequence: string; - /** - * Tip is the optional tip used for meta-transactions. It should be left - * empty if the signer is not the tipper for this transaction. - */ - tip?: TipAmino; -} -export interface SignDocDirectAuxAminoMsg { - type: "cosmos-sdk/SignDocDirectAux"; - value: SignDocDirectAuxAmino; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxSDKType { - body_bytes: Uint8Array; - public_key: AnySDKType; - chain_id: string; - account_number: Long; - sequence: Long; - tip: TipSDKType; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBody { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages: Any[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeoutHeight: Long; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extensionOptions: Any[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - nonCriticalExtensionOptions: Any[]; -} -export interface TxBodyProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxBody"; - value: Uint8Array; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodyAmino { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages: AnyAmino[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeout_height: string; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extension_options: AnyAmino[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - non_critical_extension_options: AnyAmino[]; -} -export interface TxBodyAminoMsg { - type: "cosmos-sdk/TxBody"; - value: TxBodyAmino; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodySDKType { - messages: AnySDKType[]; - memo: string; - timeout_height: Long; - extension_options: AnySDKType[]; - non_critical_extension_options: AnySDKType[]; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfo { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signerInfos: SignerInfo[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee: Fee; - /** - * Tip is the optional tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ - tip: Tip; -} -export interface AuthInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo"; - value: Uint8Array; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoAmino { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signer_infos: SignerInfoAmino[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee?: FeeAmino; - /** - * Tip is the optional tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ - tip?: TipAmino; -} -export interface AuthInfoAminoMsg { - type: "cosmos-sdk/AuthInfo"; - value: AuthInfoAmino; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoSDKType { - signer_infos: SignerInfoSDKType[]; - fee: FeeSDKType; - tip: TipSDKType; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfo { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - publicKey: Any; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - modeInfo: ModeInfo; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence: Long; -} -export interface SignerInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo"; - value: Uint8Array; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoAmino { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - public_key?: AnyAmino; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - mode_info?: ModeInfoAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence: string; -} -export interface SignerInfoAminoMsg { - type: "cosmos-sdk/SignerInfo"; - value: SignerInfoAmino; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoSDKType { - public_key: AnySDKType; - mode_info: ModeInfoSDKType; - sequence: Long; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfo { - /** single represents a single signer */ - single?: ModeInfo_Single; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_Multi; -} -export interface ModeInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo"; - value: Uint8Array; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoAmino { - /** single represents a single signer */ - single?: ModeInfo_SingleAmino; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_MultiAmino; -} -export interface ModeInfoAminoMsg { - type: "cosmos-sdk/ModeInfo"; - value: ModeInfoAmino; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoSDKType { - single?: ModeInfo_SingleSDKType; - multi?: ModeInfo_MultiSDKType; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; -} -export interface ModeInfo_SingleProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Single"; - value: Uint8Array; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleAmino { - /** mode is the signing mode of the single signer */ - mode: SignMode; -} -export interface ModeInfo_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: ModeInfo_SingleAmino; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleSDKType { - mode: SignMode; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray: CompactBitArray; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - modeInfos: ModeInfo[]; -} -export interface ModeInfo_MultiProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - mode_infos: ModeInfoAmino[]; -} -export interface ModeInfo_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: ModeInfo_MultiAmino; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiSDKType { - bitarray: CompactBitArraySDKType; - mode_infos: ModeInfoSDKType[]; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface Fee { - /** amount is the amount of coins to be paid as a fee */ - amount: Coin[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gasLimit: Long; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter: string; -} -export interface FeeProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Fee"; - value: Uint8Array; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeAmino { - /** amount is the amount of coins to be paid as a fee */ - amount: CoinAmino[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gas_limit: string; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter: string; -} -export interface FeeAminoMsg { - type: "cosmos-sdk/Fee"; - value: FeeAmino; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeSDKType { - amount: CoinSDKType[]; - gas_limit: Long; - payer: string; - granter: string; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface Tip { - /** amount is the amount of the tip */ - amount: Coin[]; - /** tipper is the address of the account paying for the tip */ - tipper: string; -} -export interface TipProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tip"; - value: Uint8Array; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipAmino { - /** amount is the amount of the tip */ - amount: CoinAmino[]; - /** tipper is the address of the account paying for the tip */ - tipper: string; -} -export interface TipAminoMsg { - type: "cosmos-sdk/Tip"; - value: TipAmino; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipSDKType { - amount: CoinSDKType[]; - tipper: string; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerData { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address: string; - /** - * sign_doc is the SIGN_MOD_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - signDoc: SignDocDirectAux; - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** sig is the signature of the sign doc. */ - sig: Uint8Array; -} -export interface AuxSignerDataProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData"; - value: Uint8Array; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataAmino { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address: string; - /** - * sign_doc is the SIGN_MOD_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - sign_doc?: SignDocDirectAuxAmino; - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** sig is the signature of the sign doc. */ - sig: Uint8Array; -} -export interface AuxSignerDataAminoMsg { - type: "cosmos-sdk/AuxSignerData"; - value: AuxSignerDataAmino; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataSDKType { - address: string; - sign_doc: SignDocDirectAuxSDKType; - mode: SignMode; - sig: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/tx.ts deleted file mode 100644 index bb21adc9b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/tx.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { Plan, PlanAmino, PlanSDKType } from "./upgrade"; -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgrade { - /** authority is the address of the governance account. */ - authority: string; - /** plan is the upgrade plan. */ - plan: Plan; -} -export interface MsgSoftwareUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeAmino { - /** authority is the address of the governance account. */ - authority: string; - /** plan is the upgrade plan. */ - plan?: PlanAmino; -} -export interface MsgSoftwareUpgradeAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgrade"; - value: MsgSoftwareUpgradeAmino; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeSDKType { - authority: string; - plan: PlanSDKType; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponse {} -export interface MsgSoftwareUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseAmino {} -export interface MsgSoftwareUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgradeResponse"; - value: MsgSoftwareUpgradeResponseAmino; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseSDKType {} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgrade { - /** authority is the address of the governance account. */ - authority: string; -} -export interface MsgCancelUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade"; - value: Uint8Array; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeAmino { - /** authority is the address of the governance account. */ - authority: string; -} -export interface MsgCancelUpgradeAminoMsg { - type: "cosmos-sdk/MsgCancelUpgrade"; - value: MsgCancelUpgradeAmino; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeSDKType { - authority: string; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponse {} -export interface MsgCancelUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseAmino {} -export interface MsgCancelUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgCancelUpgradeResponse"; - value: MsgCancelUpgradeResponseAmino; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/upgrade.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/upgrade.ts deleted file mode 100644 index 91bc928e8..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/upgrade/v1beta1/upgrade.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface Plan { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time: Date; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height: Long; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgradedClientState: Any; -} -export interface PlanProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.Plan"; - value: Uint8Array; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanAmino { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time?: Date; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height: string; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgraded_client_state?: AnyAmino; -} -export interface PlanAminoMsg { - type: "cosmos-sdk/Plan"; - value: PlanAmino; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanSDKType { - name: string; - /** @deprecated */ - time: Date; - height: Long; - info: string; - /** @deprecated */ - upgraded_client_state: AnySDKType; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposal { - title: string; - description: string; - plan: Plan; -} -export interface SoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalAmino { - title: string; - description: string; - plan?: PlanAmino; -} -export interface SoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/SoftwareUpgradeProposal"; - value: SoftwareUpgradeProposalAmino; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalSDKType { - title: string; - description: string; - plan: PlanSDKType; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposal { - title: string; - description: string; -} -export interface CancelSoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalAmino { - title: string; - description: string; -} -export interface CancelSoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/CancelSoftwareUpgradeProposal"; - value: CancelSoftwareUpgradeProposalAmino; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalSDKType { - title: string; - description: string; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersion { - /** name of the app module */ - name: string; - /** consensus version of the app module */ - version: Long; -} -export interface ModuleVersionProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion"; - value: Uint8Array; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionAmino { - /** name of the app module */ - name: string; - /** consensus version of the app module */ - version: string; -} -export interface ModuleVersionAminoMsg { - type: "cosmos-sdk/ModuleVersion"; - value: ModuleVersionAmino; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionSDKType { - name: string; - version: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/tx.ts deleted file mode 100644 index ad4aefa70..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/tx.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Period, PeriodAmino, PeriodSDKType } from "./vesting"; -import { Long } from "../../../helpers"; -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; - endTime: Long; - delayed: boolean; -} -export interface MsgCreateVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountAmino { - from_address: string; - to_address: string; - amount: CoinAmino[]; - end_time: string; - delayed: boolean; -} -export interface MsgCreateVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccount"; - value: MsgCreateVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; - end_time: Long; - delayed: boolean; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponse {} -export interface MsgCreateVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; - value: Uint8Array; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseAmino {} -export interface MsgCreateVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccountResponse"; - value: MsgCreateVestingAccountResponseAmino; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseSDKType {} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgCreatePermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; - value: Uint8Array; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccountAmino { - from_address: string; - to_address: string; - amount: CoinAmino[]; -} -export interface MsgCreatePermanentLockedAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; - value: MsgCreatePermanentLockedAccountAmino; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponse {} -export interface MsgCreatePermanentLockedAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; - value: Uint8Array; -} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponseAmino {} -export interface MsgCreatePermanentLockedAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse"; - value: MsgCreatePermanentLockedAccountResponseAmino; -} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponseSDKType {} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccount { - fromAddress: string; - toAddress: string; - startTime: Long; - vestingPeriods: Period[]; -} -export interface MsgCreatePeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccountAmino { - from_address: string; - to_address: string; - start_time: string; - vesting_periods: PeriodAmino[]; -} -export interface MsgCreatePeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; - value: MsgCreatePeriodicVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccountSDKType { - from_address: string; - to_address: string; - start_time: Long; - vesting_periods: PeriodSDKType[]; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponse {} -export interface MsgCreatePeriodicVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponseAmino {} -export interface MsgCreatePeriodicVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse"; - value: MsgCreatePeriodicVestingAccountResponseAmino; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/vesting.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/vesting.ts deleted file mode 100644 index 715c7ac4b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos/vesting/v1beta1/vesting.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { - BaseAccount, - BaseAccountAmino, - BaseAccountSDKType, -} from "../../auth/v1beta1/auth"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccount { - baseAccount: BaseAccount; - originalVesting: Coin[]; - delegatedFree: Coin[]; - delegatedVesting: Coin[]; - endTime: Long; -} -export interface BaseVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount"; - value: Uint8Array; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountAmino { - base_account?: BaseAccountAmino; - original_vesting: CoinAmino[]; - delegated_free: CoinAmino[]; - delegated_vesting: CoinAmino[]; - end_time: string; -} -export interface BaseVestingAccountAminoMsg { - type: "cosmos-sdk/BaseVestingAccount"; - value: BaseVestingAccountAmino; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountSDKType { - base_account: BaseAccountSDKType; - original_vesting: CoinSDKType[]; - delegated_free: CoinSDKType[]; - delegated_vesting: CoinSDKType[]; - end_time: Long; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; -} -export interface ContinuousVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount"; - value: Uint8Array; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time: string; -} -export interface ContinuousVestingAccountAminoMsg { - type: "cosmos-sdk/ContinuousVestingAccount"; - value: ContinuousVestingAccountAmino; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccount { - baseVestingAccount: BaseVestingAccount; -} -export interface DelayedVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount"; - value: Uint8Array; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface DelayedVestingAccountAminoMsg { - type: "cosmos-sdk/DelayedVestingAccount"; - value: DelayedVestingAccountAmino; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface Period { - length: Long; - amount: Coin[]; -} -export interface PeriodProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.Period"; - value: Uint8Array; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodAmino { - length: string; - amount: CoinAmino[]; -} -export interface PeriodAminoMsg { - type: "cosmos-sdk/Period"; - value: PeriodAmino; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodSDKType { - length: Long; - amount: CoinSDKType[]; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; - vestingPeriods: Period[]; -} -export interface PeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount"; - value: Uint8Array; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time: string; - vesting_periods: PeriodAmino[]; -} -export interface PeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/PeriodicVestingAccount"; - value: PeriodicVestingAccountAmino; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; - vesting_periods: PeriodSDKType[]; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccount { - baseVestingAccount: BaseVestingAccount; -} -export interface PermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount"; - value: Uint8Array; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface PermanentLockedAccountAminoMsg { - type: "cosmos-sdk/PermanentLockedAccount"; - value: PermanentLockedAccountAmino; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos_proto/bundle.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos_proto/bundle.ts deleted file mode 100644 index aa63583ad..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos_proto/bundle.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as _17 from "./cosmos"; -export const cosmos_proto = { - ..._17, -}; diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos_proto/cosmos.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos_proto/cosmos.ts deleted file mode 100644 index 819d020b5..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmos_proto/cosmos.ts +++ /dev/null @@ -1,174 +0,0 @@ -export enum ScalarType { - SCALAR_TYPE_UNSPECIFIED = 0, - SCALAR_TYPE_STRING = 1, - SCALAR_TYPE_BYTES = 2, - UNRECOGNIZED = -1, -} -export const ScalarTypeSDKType = ScalarType; -export const ScalarTypeAmino = ScalarType; -export function scalarTypeFromJSON(object: any): ScalarType { - switch (object) { - case 0: - case "SCALAR_TYPE_UNSPECIFIED": - return ScalarType.SCALAR_TYPE_UNSPECIFIED; - case 1: - case "SCALAR_TYPE_STRING": - return ScalarType.SCALAR_TYPE_STRING; - case 2: - case "SCALAR_TYPE_BYTES": - return ScalarType.SCALAR_TYPE_BYTES; - case -1: - case "UNRECOGNIZED": - default: - return ScalarType.UNRECOGNIZED; - } -} -export function scalarTypeToJSON(object: ScalarType): string { - switch (object) { - case ScalarType.SCALAR_TYPE_UNSPECIFIED: - return "SCALAR_TYPE_UNSPECIFIED"; - case ScalarType.SCALAR_TYPE_STRING: - return "SCALAR_TYPE_STRING"; - case ScalarType.SCALAR_TYPE_BYTES: - return "SCALAR_TYPE_BYTES"; - case ScalarType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptor { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description: string; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos_proto.InterfaceDescriptor"; - value: Uint8Array; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorAmino { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description: string; -} -export interface InterfaceDescriptorAminoMsg { - type: "/cosmos_proto.InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorSDKType { - name: string; - description: string; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptor { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - fieldType: ScalarType[]; -} -export interface ScalarDescriptorProtoMsg { - typeUrl: "/cosmos_proto.ScalarDescriptor"; - value: Uint8Array; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorAmino { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - field_type: ScalarType[]; -} -export interface ScalarDescriptorAminoMsg { - type: "/cosmos_proto.ScalarDescriptor"; - value: ScalarDescriptorAmino; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorSDKType { - name: string; - description: string; - field_type: ScalarType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/bundle.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/bundle.ts deleted file mode 100644 index 97202b74c..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/bundle.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as _94 from "./wasm/v1/authz"; -import * as _95 from "./wasm/v1/genesis"; -import * as _96 from "./wasm/v1/ibc"; -import * as _97 from "./wasm/v1/proposal"; -import * as _98 from "./wasm/v1/tx"; -import * as _99 from "./wasm/v1/types"; -export namespace cosmwasm { - export namespace wasm { - export const v1 = { - ..._94, - ..._95, - ..._96, - ..._97, - ..._98, - ..._99, - }; - } -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/authz.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/authz.ts deleted file mode 100644 index 15dfc78cf..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/authz.ts +++ /dev/null @@ -1,319 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../cosmos/base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** - * ContractExecutionAuthorization defines authorization for wasm execute. - * Since: wasmd 0.30 - */ -export interface ContractExecutionAuthorization { - /** Grants for contract executions */ - grants: ContractGrant[]; -} -export interface ContractExecutionAuthorizationProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization"; - value: Uint8Array; -} -/** - * ContractExecutionAuthorization defines authorization for wasm execute. - * Since: wasmd 0.30 - */ -export interface ContractExecutionAuthorizationAmino { - /** Grants for contract executions */ - grants: ContractGrantAmino[]; -} -export interface ContractExecutionAuthorizationAminoMsg { - type: "wasm/ContractExecutionAuthorization"; - value: ContractExecutionAuthorizationAmino; -} -/** - * ContractExecutionAuthorization defines authorization for wasm execute. - * Since: wasmd 0.30 - */ -export interface ContractExecutionAuthorizationSDKType { - grants: ContractGrantSDKType[]; -} -/** - * ContractMigrationAuthorization defines authorization for wasm contract - * migration. Since: wasmd 0.30 - */ -export interface ContractMigrationAuthorization { - /** Grants for contract migrations */ - grants: ContractGrant[]; -} -export interface ContractMigrationAuthorizationProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization"; - value: Uint8Array; -} -/** - * ContractMigrationAuthorization defines authorization for wasm contract - * migration. Since: wasmd 0.30 - */ -export interface ContractMigrationAuthorizationAmino { - /** Grants for contract migrations */ - grants: ContractGrantAmino[]; -} -export interface ContractMigrationAuthorizationAminoMsg { - type: "wasm/ContractMigrationAuthorization"; - value: ContractMigrationAuthorizationAmino; -} -/** - * ContractMigrationAuthorization defines authorization for wasm contract - * migration. Since: wasmd 0.30 - */ -export interface ContractMigrationAuthorizationSDKType { - grants: ContractGrantSDKType[]; -} -/** - * ContractGrant a granted permission for a single contract - * Since: wasmd 0.30 - */ -export interface ContractGrant { - /** Contract is the bech32 address of the smart contract */ - contract: string; - /** - * Limit defines execution limits that are enforced and updated when the grant - * is applied. When the limit lapsed the grant is removed. - */ - limit: Any; - /** - * Filter define more fine-grained control on the message payload passed - * to the contract in the operation. When no filter applies on execution, the - * operation is prohibited. - */ - filter: Any; -} -export interface ContractGrantProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractGrant"; - value: Uint8Array; -} -/** - * ContractGrant a granted permission for a single contract - * Since: wasmd 0.30 - */ -export interface ContractGrantAmino { - /** Contract is the bech32 address of the smart contract */ - contract: string; - /** - * Limit defines execution limits that are enforced and updated when the grant - * is applied. When the limit lapsed the grant is removed. - */ - limit?: AnyAmino; - /** - * Filter define more fine-grained control on the message payload passed - * to the contract in the operation. When no filter applies on execution, the - * operation is prohibited. - */ - filter?: AnyAmino; -} -export interface ContractGrantAminoMsg { - type: "wasm/ContractGrant"; - value: ContractGrantAmino; -} -/** - * ContractGrant a granted permission for a single contract - * Since: wasmd 0.30 - */ -export interface ContractGrantSDKType { - contract: string; - limit: AnySDKType; - filter: AnySDKType; -} -/** - * MaxCallsLimit limited number of calls to the contract. No funds transferable. - * Since: wasmd 0.30 - */ -export interface MaxCallsLimit { - /** Remaining number that is decremented on each execution */ - remaining: Long; -} -export interface MaxCallsLimitProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit"; - value: Uint8Array; -} -/** - * MaxCallsLimit limited number of calls to the contract. No funds transferable. - * Since: wasmd 0.30 - */ -export interface MaxCallsLimitAmino { - /** Remaining number that is decremented on each execution */ - remaining: string; -} -export interface MaxCallsLimitAminoMsg { - type: "wasm/MaxCallsLimit"; - value: MaxCallsLimitAmino; -} -/** - * MaxCallsLimit limited number of calls to the contract. No funds transferable. - * Since: wasmd 0.30 - */ -export interface MaxCallsLimitSDKType { - remaining: Long; -} -/** - * MaxFundsLimit defines the maximal amounts that can be sent to the contract. - * Since: wasmd 0.30 - */ -export interface MaxFundsLimit { - /** Amounts is the maximal amount of tokens transferable to the contract. */ - amounts: Coin[]; -} -export interface MaxFundsLimitProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit"; - value: Uint8Array; -} -/** - * MaxFundsLimit defines the maximal amounts that can be sent to the contract. - * Since: wasmd 0.30 - */ -export interface MaxFundsLimitAmino { - /** Amounts is the maximal amount of tokens transferable to the contract. */ - amounts: CoinAmino[]; -} -export interface MaxFundsLimitAminoMsg { - type: "wasm/MaxFundsLimit"; - value: MaxFundsLimitAmino; -} -/** - * MaxFundsLimit defines the maximal amounts that can be sent to the contract. - * Since: wasmd 0.30 - */ -export interface MaxFundsLimitSDKType { - amounts: CoinSDKType[]; -} -/** - * CombinedLimit defines the maximal amounts that can be sent to a contract and - * the maximal number of calls executable. Both need to remain >0 to be valid. - * Since: wasmd 0.30 - */ -export interface CombinedLimit { - /** Remaining number that is decremented on each execution */ - callsRemaining: Long; - /** Amounts is the maximal amount of tokens transferable to the contract. */ - amounts: Coin[]; -} -export interface CombinedLimitProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.CombinedLimit"; - value: Uint8Array; -} -/** - * CombinedLimit defines the maximal amounts that can be sent to a contract and - * the maximal number of calls executable. Both need to remain >0 to be valid. - * Since: wasmd 0.30 - */ -export interface CombinedLimitAmino { - /** Remaining number that is decremented on each execution */ - calls_remaining: string; - /** Amounts is the maximal amount of tokens transferable to the contract. */ - amounts: CoinAmino[]; -} -export interface CombinedLimitAminoMsg { - type: "wasm/CombinedLimit"; - value: CombinedLimitAmino; -} -/** - * CombinedLimit defines the maximal amounts that can be sent to a contract and - * the maximal number of calls executable. Both need to remain >0 to be valid. - * Since: wasmd 0.30 - */ -export interface CombinedLimitSDKType { - calls_remaining: Long; - amounts: CoinSDKType[]; -} -/** - * AllowAllMessagesFilter is a wildcard to allow any type of contract payload - * message. - * Since: wasmd 0.30 - */ -export interface AllowAllMessagesFilter {} -export interface AllowAllMessagesFilterProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter"; - value: Uint8Array; -} -/** - * AllowAllMessagesFilter is a wildcard to allow any type of contract payload - * message. - * Since: wasmd 0.30 - */ -export interface AllowAllMessagesFilterAmino {} -export interface AllowAllMessagesFilterAminoMsg { - type: "wasm/AllowAllMessagesFilter"; - value: AllowAllMessagesFilterAmino; -} -/** - * AllowAllMessagesFilter is a wildcard to allow any type of contract payload - * message. - * Since: wasmd 0.30 - */ -export interface AllowAllMessagesFilterSDKType {} -/** - * AcceptedMessageKeysFilter accept only the specific contract message keys in - * the json object to be executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessageKeysFilter { - /** Messages is the list of unique keys */ - keys: string[]; -} -export interface AcceptedMessageKeysFilterProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter"; - value: Uint8Array; -} -/** - * AcceptedMessageKeysFilter accept only the specific contract message keys in - * the json object to be executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessageKeysFilterAmino { - /** Messages is the list of unique keys */ - keys: string[]; -} -export interface AcceptedMessageKeysFilterAminoMsg { - type: "wasm/AcceptedMessageKeysFilter"; - value: AcceptedMessageKeysFilterAmino; -} -/** - * AcceptedMessageKeysFilter accept only the specific contract message keys in - * the json object to be executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessageKeysFilterSDKType { - keys: string[]; -} -/** - * AcceptedMessagesFilter accept only the specific raw contract messages to be - * executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessagesFilter { - /** Messages is the list of raw contract messages */ - messages: Uint8Array[]; -} -export interface AcceptedMessagesFilterProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter"; - value: Uint8Array; -} -/** - * AcceptedMessagesFilter accept only the specific raw contract messages to be - * executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessagesFilterAmino { - /** Messages is the list of raw contract messages */ - messages: Uint8Array[]; -} -export interface AcceptedMessagesFilterAminoMsg { - type: "wasm/AcceptedMessagesFilter"; - value: AcceptedMessagesFilterAmino; -} -/** - * AcceptedMessagesFilter accept only the specific raw contract messages to be - * executed. - * Since: wasmd 0.30 - */ -export interface AcceptedMessagesFilterSDKType { - messages: Uint8Array[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/genesis.ts deleted file mode 100644 index b8f94039b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/genesis.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { - Params, - ParamsAmino, - ParamsSDKType, - CodeInfo, - CodeInfoAmino, - CodeInfoSDKType, - ContractInfo, - ContractInfoAmino, - ContractInfoSDKType, - Model, - ModelAmino, - ModelSDKType, - ContractCodeHistoryEntry, - ContractCodeHistoryEntryAmino, - ContractCodeHistoryEntrySDKType, -} from "./types"; -import { Long } from "../../../helpers"; -/** GenesisState - genesis state of x/wasm */ -export interface GenesisState { - params: Params; - codes: Code[]; - contracts: Contract[]; - sequences: Sequence[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState - genesis state of x/wasm */ -export interface GenesisStateAmino { - params?: ParamsAmino; - codes: CodeAmino[]; - contracts: ContractAmino[]; - sequences: SequenceAmino[]; -} -export interface GenesisStateAminoMsg { - type: "wasm/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState - genesis state of x/wasm */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - codes: CodeSDKType[]; - contracts: ContractSDKType[]; - sequences: SequenceSDKType[]; -} -/** Code struct encompasses CodeInfo and CodeBytes */ -export interface Code { - codeId: Long; - codeInfo: CodeInfo; - codeBytes: Uint8Array; - /** Pinned to wasmvm cache */ - pinned: boolean; -} -export interface CodeProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Code"; - value: Uint8Array; -} -/** Code struct encompasses CodeInfo and CodeBytes */ -export interface CodeAmino { - code_id: string; - code_info?: CodeInfoAmino; - code_bytes: Uint8Array; - /** Pinned to wasmvm cache */ - pinned: boolean; -} -export interface CodeAminoMsg { - type: "wasm/Code"; - value: CodeAmino; -} -/** Code struct encompasses CodeInfo and CodeBytes */ -export interface CodeSDKType { - code_id: Long; - code_info: CodeInfoSDKType; - code_bytes: Uint8Array; - pinned: boolean; -} -/** Contract struct encompasses ContractAddress, ContractInfo, and ContractState */ -export interface Contract { - contractAddress: string; - contractInfo: ContractInfo; - contractState: Model[]; - contractCodeHistory: ContractCodeHistoryEntry[]; -} -export interface ContractProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Contract"; - value: Uint8Array; -} -/** Contract struct encompasses ContractAddress, ContractInfo, and ContractState */ -export interface ContractAmino { - contract_address: string; - contract_info?: ContractInfoAmino; - contract_state: ModelAmino[]; - contract_code_history: ContractCodeHistoryEntryAmino[]; -} -export interface ContractAminoMsg { - type: "wasm/Contract"; - value: ContractAmino; -} -/** Contract struct encompasses ContractAddress, ContractInfo, and ContractState */ -export interface ContractSDKType { - contract_address: string; - contract_info: ContractInfoSDKType; - contract_state: ModelSDKType[]; - contract_code_history: ContractCodeHistoryEntrySDKType[]; -} -/** Sequence key and value of an id generation counter */ -export interface Sequence { - idKey: Uint8Array; - value: Long; -} -export interface SequenceProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Sequence"; - value: Uint8Array; -} -/** Sequence key and value of an id generation counter */ -export interface SequenceAmino { - id_key: Uint8Array; - value: string; -} -export interface SequenceAminoMsg { - type: "wasm/Sequence"; - value: SequenceAmino; -} -/** Sequence key and value of an id generation counter */ -export interface SequenceSDKType { - id_key: Uint8Array; - value: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/ibc.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/ibc.ts deleted file mode 100644 index d8b7c7859..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/ibc.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { Long } from "../../../helpers"; -/** MsgIBCSend */ -export interface MsgIBCSend { - /** the channel by which the packet will be sent */ - channel: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeoutHeight: Long; - /** - * Timeout timestamp (in nanoseconds) relative to the current block timestamp. - * The timeout is disabled when set to 0. - */ - timeoutTimestamp: Long; - /** - * Data is the payload to transfer. We must not make assumption what format or - * content is in here. - */ - data: Uint8Array; -} -export interface MsgIBCSendProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgIBCSend"; - value: Uint8Array; -} -/** MsgIBCSend */ -export interface MsgIBCSendAmino { - /** the channel by which the packet will be sent */ - channel: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeout_height: string; - /** - * Timeout timestamp (in nanoseconds) relative to the current block timestamp. - * The timeout is disabled when set to 0. - */ - timeout_timestamp: string; - /** - * Data is the payload to transfer. We must not make assumption what format or - * content is in here. - */ - data: Uint8Array; -} -export interface MsgIBCSendAminoMsg { - type: "wasm/MsgIBCSend"; - value: MsgIBCSendAmino; -} -/** MsgIBCSend */ -export interface MsgIBCSendSDKType { - channel: string; - timeout_height: Long; - timeout_timestamp: Long; - data: Uint8Array; -} -/** MsgIBCCloseChannel port and channel need to be owned by the contract */ -export interface MsgIBCCloseChannel { - channel: string; -} -export interface MsgIBCCloseChannelProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgIBCCloseChannel"; - value: Uint8Array; -} -/** MsgIBCCloseChannel port and channel need to be owned by the contract */ -export interface MsgIBCCloseChannelAmino { - channel: string; -} -export interface MsgIBCCloseChannelAminoMsg { - type: "wasm/MsgIBCCloseChannel"; - value: MsgIBCCloseChannelAmino; -} -/** MsgIBCCloseChannel port and channel need to be owned by the contract */ -export interface MsgIBCCloseChannelSDKType { - channel: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/proposal.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/proposal.ts deleted file mode 100644 index fca36e014..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/proposal.ts +++ /dev/null @@ -1,710 +0,0 @@ -import { AccessConfig, AccessConfigAmino, AccessConfigSDKType } from "./types"; -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../cosmos/base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** StoreCodeProposal gov proposal content type to submit WASM code to the system */ -export interface StoreCodeProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - runAs: string; - /** WASMByteCode can be raw or gzip compressed */ - wasmByteCode: Uint8Array; - /** InstantiatePermission to apply on contract creation, optional */ - instantiatePermission: AccessConfig; - /** UnpinCode code on upload, optional */ - unpinCode: boolean; - /** Source is the URL where the code is hosted */ - source: string; - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - */ - builder: string; - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - */ - codeHash: Uint8Array; -} -export interface StoreCodeProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal"; - value: Uint8Array; -} -/** StoreCodeProposal gov proposal content type to submit WASM code to the system */ -export interface StoreCodeProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - run_as: string; - /** WASMByteCode can be raw or gzip compressed */ - wasm_byte_code: string; - /** InstantiatePermission to apply on contract creation, optional */ - instantiate_permission?: AccessConfigAmino; - /** UnpinCode code on upload, optional */ - unpin_code: boolean; - /** Source is the URL where the code is hosted */ - source: string; - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - */ - builder: string; - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - */ - code_hash: Uint8Array; -} -export interface StoreCodeProposalAminoMsg { - type: "wasm/StoreCodeProposal"; - value: StoreCodeProposalAmino; -} -/** StoreCodeProposal gov proposal content type to submit WASM code to the system */ -export interface StoreCodeProposalSDKType { - title: string; - description: string; - run_as: string; - wasm_byte_code: Uint8Array; - instantiate_permission: AccessConfigSDKType; - unpin_code: boolean; - source: string; - builder: string; - code_hash: Uint8Array; -} -/** - * InstantiateContractProposal gov proposal content type to instantiate a - * contract. - */ -export interface InstantiateContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - runAs: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; -} -export interface InstantiateContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal"; - value: Uint8Array; -} -/** - * InstantiateContractProposal gov proposal content type to instantiate a - * contract. - */ -export interface InstantiateContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - run_as: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; -} -export interface InstantiateContractProposalAminoMsg { - type: "wasm/InstantiateContractProposal"; - value: InstantiateContractProposalAmino; -} -/** - * InstantiateContractProposal gov proposal content type to instantiate a - * contract. - */ -export interface InstantiateContractProposalSDKType { - title: string; - description: string; - run_as: string; - admin: string; - code_id: Long; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; -} -/** - * InstantiateContract2Proposal gov proposal content type to instantiate - * contract 2 - */ -export interface InstantiateContract2Proposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's enviroment as sender */ - runAs: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encode message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; - /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */ - salt: Uint8Array; - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - */ - fixMsg: boolean; -} -export interface InstantiateContract2ProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal"; - value: Uint8Array; -} -/** - * InstantiateContract2Proposal gov proposal content type to instantiate - * contract 2 - */ -export interface InstantiateContract2ProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's enviroment as sender */ - run_as: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encode message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; - /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */ - salt: Uint8Array; - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - */ - fix_msg: boolean; -} -export interface InstantiateContract2ProposalAminoMsg { - type: "wasm/InstantiateContract2Proposal"; - value: InstantiateContract2ProposalAmino; -} -/** - * InstantiateContract2Proposal gov proposal content type to instantiate - * contract 2 - */ -export interface InstantiateContract2ProposalSDKType { - title: string; - description: string; - run_as: string; - admin: string; - code_id: Long; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; - salt: Uint8Array; - fix_msg: boolean; -} -/** MigrateContractProposal gov proposal content type to migrate a contract. */ -export interface MigrateContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; - /** CodeID references the new WASM code */ - codeId: Long; - /** Msg json encoded message to be passed to the contract on migration */ - msg: Uint8Array; -} -export interface MigrateContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal"; - value: Uint8Array; -} -/** MigrateContractProposal gov proposal content type to migrate a contract. */ -export interface MigrateContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; - /** CodeID references the new WASM code */ - code_id: string; - /** Msg json encoded message to be passed to the contract on migration */ - msg: Uint8Array; -} -export interface MigrateContractProposalAminoMsg { - type: "wasm/MigrateContractProposal"; - value: MigrateContractProposalAmino; -} -/** MigrateContractProposal gov proposal content type to migrate a contract. */ -export interface MigrateContractProposalSDKType { - title: string; - description: string; - contract: string; - code_id: Long; - msg: Uint8Array; -} -/** SudoContractProposal gov proposal content type to call sudo on a contract. */ -export interface SudoContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract as sudo */ - msg: Uint8Array; -} -export interface SudoContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal"; - value: Uint8Array; -} -/** SudoContractProposal gov proposal content type to call sudo on a contract. */ -export interface SudoContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract as sudo */ - msg: Uint8Array; -} -export interface SudoContractProposalAminoMsg { - type: "wasm/SudoContractProposal"; - value: SudoContractProposalAmino; -} -/** SudoContractProposal gov proposal content type to call sudo on a contract. */ -export interface SudoContractProposalSDKType { - title: string; - description: string; - contract: string; - msg: Uint8Array; -} -/** - * ExecuteContractProposal gov proposal content type to call execute on a - * contract. - */ -export interface ExecuteContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - runAs: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract as execute */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; -} -export interface ExecuteContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal"; - value: Uint8Array; -} -/** - * ExecuteContractProposal gov proposal content type to call execute on a - * contract. - */ -export interface ExecuteContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - run_as: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract as execute */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; -} -export interface ExecuteContractProposalAminoMsg { - type: "wasm/ExecuteContractProposal"; - value: ExecuteContractProposalAmino; -} -/** - * ExecuteContractProposal gov proposal content type to call execute on a - * contract. - */ -export interface ExecuteContractProposalSDKType { - title: string; - description: string; - run_as: string; - contract: string; - msg: Uint8Array; - funds: CoinSDKType[]; -} -/** UpdateAdminProposal gov proposal content type to set an admin for a contract. */ -export interface UpdateAdminProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** NewAdmin address to be set */ - newAdmin: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface UpdateAdminProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal"; - value: Uint8Array; -} -/** UpdateAdminProposal gov proposal content type to set an admin for a contract. */ -export interface UpdateAdminProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** NewAdmin address to be set */ - new_admin: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface UpdateAdminProposalAminoMsg { - type: "wasm/UpdateAdminProposal"; - value: UpdateAdminProposalAmino; -} -/** UpdateAdminProposal gov proposal content type to set an admin for a contract. */ -export interface UpdateAdminProposalSDKType { - title: string; - description: string; - new_admin: string; - contract: string; -} -/** - * ClearAdminProposal gov proposal content type to clear the admin of a - * contract. - */ -export interface ClearAdminProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface ClearAdminProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal"; - value: Uint8Array; -} -/** - * ClearAdminProposal gov proposal content type to clear the admin of a - * contract. - */ -export interface ClearAdminProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface ClearAdminProposalAminoMsg { - type: "wasm/ClearAdminProposal"; - value: ClearAdminProposalAmino; -} -/** - * ClearAdminProposal gov proposal content type to clear the admin of a - * contract. - */ -export interface ClearAdminProposalSDKType { - title: string; - description: string; - contract: string; -} -/** - * PinCodesProposal gov proposal content type to pin a set of code ids in the - * wasmvm cache. - */ -export interface PinCodesProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** CodeIDs references the new WASM codes */ - codeIds: Long[]; -} -export interface PinCodesProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal"; - value: Uint8Array; -} -/** - * PinCodesProposal gov proposal content type to pin a set of code ids in the - * wasmvm cache. - */ -export interface PinCodesProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** CodeIDs references the new WASM codes */ - code_ids: string[]; -} -export interface PinCodesProposalAminoMsg { - type: "wasm/PinCodesProposal"; - value: PinCodesProposalAmino; -} -/** - * PinCodesProposal gov proposal content type to pin a set of code ids in the - * wasmvm cache. - */ -export interface PinCodesProposalSDKType { - title: string; - description: string; - code_ids: Long[]; -} -/** - * UnpinCodesProposal gov proposal content type to unpin a set of code ids in - * the wasmvm cache. - */ -export interface UnpinCodesProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** CodeIDs references the WASM codes */ - codeIds: Long[]; -} -export interface UnpinCodesProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal"; - value: Uint8Array; -} -/** - * UnpinCodesProposal gov proposal content type to unpin a set of code ids in - * the wasmvm cache. - */ -export interface UnpinCodesProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** CodeIDs references the WASM codes */ - code_ids: string[]; -} -export interface UnpinCodesProposalAminoMsg { - type: "wasm/UnpinCodesProposal"; - value: UnpinCodesProposalAmino; -} -/** - * UnpinCodesProposal gov proposal content type to unpin a set of code ids in - * the wasmvm cache. - */ -export interface UnpinCodesProposalSDKType { - title: string; - description: string; - code_ids: Long[]; -} -/** - * AccessConfigUpdate contains the code id and the access config to be - * applied. - */ -export interface AccessConfigUpdate { - /** CodeID is the reference to the stored WASM code to be updated */ - codeId: Long; - /** InstantiatePermission to apply to the set of code ids */ - instantiatePermission: AccessConfig; -} -export interface AccessConfigUpdateProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate"; - value: Uint8Array; -} -/** - * AccessConfigUpdate contains the code id and the access config to be - * applied. - */ -export interface AccessConfigUpdateAmino { - /** CodeID is the reference to the stored WASM code to be updated */ - code_id: string; - /** InstantiatePermission to apply to the set of code ids */ - instantiate_permission?: AccessConfigAmino; -} -export interface AccessConfigUpdateAminoMsg { - type: "wasm/AccessConfigUpdate"; - value: AccessConfigUpdateAmino; -} -/** - * AccessConfigUpdate contains the code id and the access config to be - * applied. - */ -export interface AccessConfigUpdateSDKType { - code_id: Long; - instantiate_permission: AccessConfigSDKType; -} -/** - * UpdateInstantiateConfigProposal gov proposal content type to update - * instantiate config to a set of code ids. - */ -export interface UpdateInstantiateConfigProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** - * AccessConfigUpdate contains the list of code ids and the access config - * to be applied. - */ - accessConfigUpdates: AccessConfigUpdate[]; -} -export interface UpdateInstantiateConfigProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal"; - value: Uint8Array; -} -/** - * UpdateInstantiateConfigProposal gov proposal content type to update - * instantiate config to a set of code ids. - */ -export interface UpdateInstantiateConfigProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** - * AccessConfigUpdate contains the list of code ids and the access config - * to be applied. - */ - access_config_updates: AccessConfigUpdateAmino[]; -} -export interface UpdateInstantiateConfigProposalAminoMsg { - type: "wasm/UpdateInstantiateConfigProposal"; - value: UpdateInstantiateConfigProposalAmino; -} -/** - * UpdateInstantiateConfigProposal gov proposal content type to update - * instantiate config to a set of code ids. - */ -export interface UpdateInstantiateConfigProposalSDKType { - title: string; - description: string; - access_config_updates: AccessConfigUpdateSDKType[]; -} -/** - * StoreAndInstantiateContractProposal gov proposal content type to store - * and instantiate the contract. - */ -export interface StoreAndInstantiateContractProposal { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - runAs: string; - /** WASMByteCode can be raw or gzip compressed */ - wasmByteCode: Uint8Array; - /** InstantiatePermission to apply on contract creation, optional */ - instantiatePermission: AccessConfig; - /** UnpinCode code on upload, optional */ - unpinCode: boolean; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; - /** Source is the URL where the code is hosted */ - source: string; - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - */ - builder: string; - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - */ - codeHash: Uint8Array; -} -export interface StoreAndInstantiateContractProposalProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal"; - value: Uint8Array; -} -/** - * StoreAndInstantiateContractProposal gov proposal content type to store - * and instantiate the contract. - */ -export interface StoreAndInstantiateContractProposalAmino { - /** Title is a short summary */ - title: string; - /** Description is a human readable text */ - description: string; - /** RunAs is the address that is passed to the contract's environment as sender */ - run_as: string; - /** WASMByteCode can be raw or gzip compressed */ - wasm_byte_code: string; - /** InstantiatePermission to apply on contract creation, optional */ - instantiate_permission?: AccessConfigAmino; - /** UnpinCode code on upload, optional */ - unpin_code: boolean; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** Label is optional metadata to be stored with a constract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; - /** Source is the URL where the code is hosted */ - source: string; - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - */ - builder: string; - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - */ - code_hash: Uint8Array; -} -export interface StoreAndInstantiateContractProposalAminoMsg { - type: "wasm/StoreAndInstantiateContractProposal"; - value: StoreAndInstantiateContractProposalAmino; -} -/** - * StoreAndInstantiateContractProposal gov proposal content type to store - * and instantiate the contract. - */ -export interface StoreAndInstantiateContractProposalSDKType { - title: string; - description: string; - run_as: string; - wasm_byte_code: Uint8Array; - instantiate_permission: AccessConfigSDKType; - unpin_code: boolean; - admin: string; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; - source: string; - builder: string; - code_hash: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/tx.ts deleted file mode 100644 index 3a5ce955c..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/tx.ts +++ /dev/null @@ -1,465 +0,0 @@ -import { AccessConfig, AccessConfigAmino, AccessConfigSDKType } from "./types"; -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../cosmos/base/v1beta1/coin"; -import { Long } from "../../../helpers"; -/** MsgStoreCode submit Wasm code to the system */ -export interface MsgStoreCode { - /** Sender is the that actor that signed the messages */ - sender: string; - /** WASMByteCode can be raw or gzip compressed */ - wasmByteCode: Uint8Array; - /** - * InstantiatePermission access control to apply on contract creation, - * optional - */ - instantiatePermission: AccessConfig; -} -export interface MsgStoreCodeProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode"; - value: Uint8Array; -} -/** MsgStoreCode submit Wasm code to the system */ -export interface MsgStoreCodeAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** WASMByteCode can be raw or gzip compressed */ - wasm_byte_code: string; - /** - * InstantiatePermission access control to apply on contract creation, - * optional - */ - instantiate_permission?: AccessConfigAmino; -} -export interface MsgStoreCodeAminoMsg { - type: "wasm/MsgStoreCode"; - value: MsgStoreCodeAmino; -} -/** MsgStoreCode submit Wasm code to the system */ -export interface MsgStoreCodeSDKType { - sender: string; - wasm_byte_code: Uint8Array; - instantiate_permission: AccessConfigSDKType; -} -/** MsgStoreCodeResponse returns store result data. */ -export interface MsgStoreCodeResponse { - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Checksum is the sha256 hash of the stored code */ - checksum: Uint8Array; -} -export interface MsgStoreCodeResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse"; - value: Uint8Array; -} -/** MsgStoreCodeResponse returns store result data. */ -export interface MsgStoreCodeResponseAmino { - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Checksum is the sha256 hash of the stored code */ - checksum: Uint8Array; -} -export interface MsgStoreCodeResponseAminoMsg { - type: "wasm/MsgStoreCodeResponse"; - value: MsgStoreCodeResponseAmino; -} -/** MsgStoreCodeResponse returns store result data. */ -export interface MsgStoreCodeResponseSDKType { - code_id: Long; - checksum: Uint8Array; -} -/** - * MsgInstantiateContract create a new smart contract instance for the given - * code id. - */ -export interface MsgInstantiateContract { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; -} -export interface MsgInstantiateContractProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract"; - value: Uint8Array; -} -/** - * MsgInstantiateContract create a new smart contract instance for the given - * code id. - */ -export interface MsgInstantiateContractAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; -} -export interface MsgInstantiateContractAminoMsg { - type: "wasm/MsgInstantiateContract"; - value: MsgInstantiateContractAmino; -} -/** - * MsgInstantiateContract create a new smart contract instance for the given - * code id. - */ -export interface MsgInstantiateContractSDKType { - sender: string; - admin: string; - code_id: Long; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; -} -/** - * MsgInstantiateContract2 create a new smart contract instance for the given - * code id with a predicable address. - */ -export interface MsgInstantiateContract2 { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: Coin[]; - /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */ - salt: Uint8Array; - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - */ - fixMsg: boolean; -} -export interface MsgInstantiateContract2ProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2"; - value: Uint8Array; -} -/** - * MsgInstantiateContract2 create a new smart contract instance for the given - * code id with a predicable address. - */ -export interface MsgInstantiateContract2Amino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Msg json encoded message to be passed to the contract on instantiation */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on instantiation */ - funds: CoinAmino[]; - /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */ - salt: Uint8Array; - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - */ - fix_msg: boolean; -} -export interface MsgInstantiateContract2AminoMsg { - type: "wasm/MsgInstantiateContract2"; - value: MsgInstantiateContract2Amino; -} -/** - * MsgInstantiateContract2 create a new smart contract instance for the given - * code id with a predicable address. - */ -export interface MsgInstantiateContract2SDKType { - sender: string; - admin: string; - code_id: Long; - label: string; - msg: Uint8Array; - funds: CoinSDKType[]; - salt: Uint8Array; - fix_msg: boolean; -} -/** MsgInstantiateContractResponse return instantiation result data */ -export interface MsgInstantiateContractResponse { - /** Address is the bech32 address of the new contract instance. */ - address: string; - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgInstantiateContractResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse"; - value: Uint8Array; -} -/** MsgInstantiateContractResponse return instantiation result data */ -export interface MsgInstantiateContractResponseAmino { - /** Address is the bech32 address of the new contract instance. */ - address: string; - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgInstantiateContractResponseAminoMsg { - type: "wasm/MsgInstantiateContractResponse"; - value: MsgInstantiateContractResponseAmino; -} -/** MsgInstantiateContractResponse return instantiation result data */ -export interface MsgInstantiateContractResponseSDKType { - address: string; - data: Uint8Array; -} -/** MsgInstantiateContract2Response return instantiation result data */ -export interface MsgInstantiateContract2Response { - /** Address is the bech32 address of the new contract instance. */ - address: string; - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgInstantiateContract2ResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response"; - value: Uint8Array; -} -/** MsgInstantiateContract2Response return instantiation result data */ -export interface MsgInstantiateContract2ResponseAmino { - /** Address is the bech32 address of the new contract instance. */ - address: string; - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgInstantiateContract2ResponseAminoMsg { - type: "wasm/MsgInstantiateContract2Response"; - value: MsgInstantiateContract2ResponseAmino; -} -/** MsgInstantiateContract2Response return instantiation result data */ -export interface MsgInstantiateContract2ResponseSDKType { - address: string; - data: Uint8Array; -} -/** MsgExecuteContract submits the given message data to a smart contract */ -export interface MsgExecuteContract { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on execution */ - funds: Coin[]; -} -export interface MsgExecuteContractProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract"; - value: Uint8Array; -} -/** MsgExecuteContract submits the given message data to a smart contract */ -export interface MsgExecuteContractAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; - /** Msg json encoded message to be passed to the contract */ - msg: Uint8Array; - /** Funds coins that are transferred to the contract on execution */ - funds: CoinAmino[]; -} -export interface MsgExecuteContractAminoMsg { - type: "wasm/MsgExecuteContract"; - value: MsgExecuteContractAmino; -} -/** MsgExecuteContract submits the given message data to a smart contract */ -export interface MsgExecuteContractSDKType { - sender: string; - contract: string; - msg: Uint8Array; - funds: CoinSDKType[]; -} -/** MsgExecuteContractResponse returns execution result data. */ -export interface MsgExecuteContractResponse { - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgExecuteContractResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse"; - value: Uint8Array; -} -/** MsgExecuteContractResponse returns execution result data. */ -export interface MsgExecuteContractResponseAmino { - /** Data contains bytes to returned from the contract */ - data: Uint8Array; -} -export interface MsgExecuteContractResponseAminoMsg { - type: "wasm/MsgExecuteContractResponse"; - value: MsgExecuteContractResponseAmino; -} -/** MsgExecuteContractResponse returns execution result data. */ -export interface MsgExecuteContractResponseSDKType { - data: Uint8Array; -} -/** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */ -export interface MsgMigrateContract { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; - /** CodeID references the new WASM code */ - codeId: Long; - /** Msg json encoded message to be passed to the contract on migration */ - msg: Uint8Array; -} -export interface MsgMigrateContractProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract"; - value: Uint8Array; -} -/** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */ -export interface MsgMigrateContractAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; - /** CodeID references the new WASM code */ - code_id: string; - /** Msg json encoded message to be passed to the contract on migration */ - msg: Uint8Array; -} -export interface MsgMigrateContractAminoMsg { - type: "wasm/MsgMigrateContract"; - value: MsgMigrateContractAmino; -} -/** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */ -export interface MsgMigrateContractSDKType { - sender: string; - contract: string; - code_id: Long; - msg: Uint8Array; -} -/** MsgMigrateContractResponse returns contract migration result data. */ -export interface MsgMigrateContractResponse { - /** - * Data contains same raw bytes returned as data from the wasm contract. - * (May be empty) - */ - data: Uint8Array; -} -export interface MsgMigrateContractResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse"; - value: Uint8Array; -} -/** MsgMigrateContractResponse returns contract migration result data. */ -export interface MsgMigrateContractResponseAmino { - /** - * Data contains same raw bytes returned as data from the wasm contract. - * (May be empty) - */ - data: Uint8Array; -} -export interface MsgMigrateContractResponseAminoMsg { - type: "wasm/MsgMigrateContractResponse"; - value: MsgMigrateContractResponseAmino; -} -/** MsgMigrateContractResponse returns contract migration result data. */ -export interface MsgMigrateContractResponseSDKType { - data: Uint8Array; -} -/** MsgUpdateAdmin sets a new admin for a smart contract */ -export interface MsgUpdateAdmin { - /** Sender is the that actor that signed the messages */ - sender: string; - /** NewAdmin address to be set */ - newAdmin: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface MsgUpdateAdminProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin"; - value: Uint8Array; -} -/** MsgUpdateAdmin sets a new admin for a smart contract */ -export interface MsgUpdateAdminAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** NewAdmin address to be set */ - new_admin: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface MsgUpdateAdminAminoMsg { - type: "wasm/MsgUpdateAdmin"; - value: MsgUpdateAdminAmino; -} -/** MsgUpdateAdmin sets a new admin for a smart contract */ -export interface MsgUpdateAdminSDKType { - sender: string; - new_admin: string; - contract: string; -} -/** MsgUpdateAdminResponse returns empty data */ -export interface MsgUpdateAdminResponse {} -export interface MsgUpdateAdminResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateAdminResponse returns empty data */ -export interface MsgUpdateAdminResponseAmino {} -export interface MsgUpdateAdminResponseAminoMsg { - type: "wasm/MsgUpdateAdminResponse"; - value: MsgUpdateAdminResponseAmino; -} -/** MsgUpdateAdminResponse returns empty data */ -export interface MsgUpdateAdminResponseSDKType {} -/** MsgClearAdmin removes any admin stored for a smart contract */ -export interface MsgClearAdmin { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface MsgClearAdminProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin"; - value: Uint8Array; -} -/** MsgClearAdmin removes any admin stored for a smart contract */ -export interface MsgClearAdminAmino { - /** Sender is the that actor that signed the messages */ - sender: string; - /** Contract is the address of the smart contract */ - contract: string; -} -export interface MsgClearAdminAminoMsg { - type: "wasm/MsgClearAdmin"; - value: MsgClearAdminAmino; -} -/** MsgClearAdmin removes any admin stored for a smart contract */ -export interface MsgClearAdminSDKType { - sender: string; - contract: string; -} -/** MsgClearAdminResponse returns empty data */ -export interface MsgClearAdminResponse {} -export interface MsgClearAdminResponseProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse"; - value: Uint8Array; -} -/** MsgClearAdminResponse returns empty data */ -export interface MsgClearAdminResponseAmino {} -export interface MsgClearAdminResponseAminoMsg { - type: "wasm/MsgClearAdminResponse"; - value: MsgClearAdminResponseAmino; -} -/** MsgClearAdminResponse returns empty data */ -export interface MsgClearAdminResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/types.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/types.ts deleted file mode 100644 index 80d75fa5d..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/cosmwasm/wasm/v1/types.ts +++ /dev/null @@ -1,383 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -/** AccessType permission types */ -export enum AccessType { - /** ACCESS_TYPE_UNSPECIFIED - AccessTypeUnspecified placeholder for empty value */ - ACCESS_TYPE_UNSPECIFIED = 0, - /** ACCESS_TYPE_NOBODY - AccessTypeNobody forbidden */ - ACCESS_TYPE_NOBODY = 1, - /** - * ACCESS_TYPE_ONLY_ADDRESS - AccessTypeOnlyAddress restricted to a single address - * Deprecated: use AccessTypeAnyOfAddresses instead - */ - ACCESS_TYPE_ONLY_ADDRESS = 2, - /** ACCESS_TYPE_EVERYBODY - AccessTypeEverybody unrestricted */ - ACCESS_TYPE_EVERYBODY = 3, - /** ACCESS_TYPE_ANY_OF_ADDRESSES - AccessTypeAnyOfAddresses allow any of the addresses */ - ACCESS_TYPE_ANY_OF_ADDRESSES = 4, - UNRECOGNIZED = -1, -} -export const AccessTypeSDKType = AccessType; -export const AccessTypeAmino = AccessType; -export function accessTypeFromJSON(object: any): AccessType { - switch (object) { - case 0: - case "ACCESS_TYPE_UNSPECIFIED": - return AccessType.ACCESS_TYPE_UNSPECIFIED; - case 1: - case "ACCESS_TYPE_NOBODY": - return AccessType.ACCESS_TYPE_NOBODY; - case 2: - case "ACCESS_TYPE_ONLY_ADDRESS": - return AccessType.ACCESS_TYPE_ONLY_ADDRESS; - case 3: - case "ACCESS_TYPE_EVERYBODY": - return AccessType.ACCESS_TYPE_EVERYBODY; - case 4: - case "ACCESS_TYPE_ANY_OF_ADDRESSES": - return AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES; - case -1: - case "UNRECOGNIZED": - default: - return AccessType.UNRECOGNIZED; - } -} -export function accessTypeToJSON(object: AccessType): string { - switch (object) { - case AccessType.ACCESS_TYPE_UNSPECIFIED: - return "ACCESS_TYPE_UNSPECIFIED"; - case AccessType.ACCESS_TYPE_NOBODY: - return "ACCESS_TYPE_NOBODY"; - case AccessType.ACCESS_TYPE_ONLY_ADDRESS: - return "ACCESS_TYPE_ONLY_ADDRESS"; - case AccessType.ACCESS_TYPE_EVERYBODY: - return "ACCESS_TYPE_EVERYBODY"; - case AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES: - return "ACCESS_TYPE_ANY_OF_ADDRESSES"; - case AccessType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ContractCodeHistoryOperationType actions that caused a code change */ -export enum ContractCodeHistoryOperationType { - /** CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - ContractCodeHistoryOperationTypeUnspecified placeholder for empty value */ - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0, - /** CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - ContractCodeHistoryOperationTypeInit on chain contract instantiation */ - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1, - /** CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - ContractCodeHistoryOperationTypeMigrate code migration */ - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2, - /** CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - ContractCodeHistoryOperationTypeGenesis based on genesis data */ - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3, - UNRECOGNIZED = -1, -} -export const ContractCodeHistoryOperationTypeSDKType = - ContractCodeHistoryOperationType; -export const ContractCodeHistoryOperationTypeAmino = - ContractCodeHistoryOperationType; -export function contractCodeHistoryOperationTypeFromJSON( - object: any -): ContractCodeHistoryOperationType { - switch (object) { - case 0: - case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED": - return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED; - case 1: - case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT": - return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT; - case 2: - case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE": - return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE; - case 3: - case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS": - return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS; - case -1: - case "UNRECOGNIZED": - default: - return ContractCodeHistoryOperationType.UNRECOGNIZED; - } -} -export function contractCodeHistoryOperationTypeToJSON( - object: ContractCodeHistoryOperationType -): string { - switch (object) { - case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: - return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED"; - case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: - return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT"; - case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: - return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE"; - case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: - return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS"; - case ContractCodeHistoryOperationType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** AccessTypeParam */ -export interface AccessTypeParam { - value: AccessType; -} -export interface AccessTypeParamProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AccessTypeParam"; - value: Uint8Array; -} -/** AccessTypeParam */ -export interface AccessTypeParamAmino { - value: AccessType; -} -export interface AccessTypeParamAminoMsg { - type: "wasm/AccessTypeParam"; - value: AccessTypeParamAmino; -} -/** AccessTypeParam */ -export interface AccessTypeParamSDKType { - value: AccessType; -} -/** AccessConfig access control type. */ -export interface AccessConfig { - permission: AccessType; - /** - * Address - * Deprecated: replaced by addresses - */ - address: string; - addresses: string[]; -} -export interface AccessConfigProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AccessConfig"; - value: Uint8Array; -} -/** AccessConfig access control type. */ -export interface AccessConfigAmino { - permission: AccessType; - /** - * Address - * Deprecated: replaced by addresses - */ - address: string; - addresses: string[]; -} -export interface AccessConfigAminoMsg { - type: "wasm/AccessConfig"; - value: AccessConfigAmino; -} -/** AccessConfig access control type. */ -export interface AccessConfigSDKType { - permission: AccessType; - address: string; - addresses: string[]; -} -/** Params defines the set of wasm parameters. */ -export interface Params { - codeUploadAccess: AccessConfig; - instantiateDefaultPermission: AccessType; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Params"; - value: Uint8Array; -} -/** Params defines the set of wasm parameters. */ -export interface ParamsAmino { - code_upload_access?: AccessConfigAmino; - instantiate_default_permission: AccessType; -} -export interface ParamsAminoMsg { - type: "wasm/Params"; - value: ParamsAmino; -} -/** Params defines the set of wasm parameters. */ -export interface ParamsSDKType { - code_upload_access: AccessConfigSDKType; - instantiate_default_permission: AccessType; -} -/** CodeInfo is data for the uploaded contract WASM code */ -export interface CodeInfo { - /** CodeHash is the unique identifier created by wasmvm */ - codeHash: Uint8Array; - /** Creator address who initially stored the code */ - creator: string; - /** InstantiateConfig access control to apply on contract creation, optional */ - instantiateConfig: AccessConfig; -} -export interface CodeInfoProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.CodeInfo"; - value: Uint8Array; -} -/** CodeInfo is data for the uploaded contract WASM code */ -export interface CodeInfoAmino { - /** CodeHash is the unique identifier created by wasmvm */ - code_hash: Uint8Array; - /** Creator address who initially stored the code */ - creator: string; - /** InstantiateConfig access control to apply on contract creation, optional */ - instantiate_config?: AccessConfigAmino; -} -export interface CodeInfoAminoMsg { - type: "wasm/CodeInfo"; - value: CodeInfoAmino; -} -/** CodeInfo is data for the uploaded contract WASM code */ -export interface CodeInfoSDKType { - code_hash: Uint8Array; - creator: string; - instantiate_config: AccessConfigSDKType; -} -/** ContractInfo stores a WASM contract instance */ -export interface ContractInfo { - /** CodeID is the reference to the stored Wasm code */ - codeId: Long; - /** Creator address who initially instantiated the contract */ - creator: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Created Tx position when the contract was instantiated. */ - created: AbsoluteTxPosition; - ibcPortId: string; - /** - * Extension is an extension point to store custom metadata within the - * persistence model. - */ - extension: Any; -} -export interface ContractInfoProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractInfo"; - value: Uint8Array; -} -/** ContractInfo stores a WASM contract instance */ -export interface ContractInfoAmino { - /** CodeID is the reference to the stored Wasm code */ - code_id: string; - /** Creator address who initially instantiated the contract */ - creator: string; - /** Admin is an optional address that can execute migrations */ - admin: string; - /** Label is optional metadata to be stored with a contract instance. */ - label: string; - /** Created Tx position when the contract was instantiated. */ - created?: AbsoluteTxPositionAmino; - ibc_port_id: string; - /** - * Extension is an extension point to store custom metadata within the - * persistence model. - */ - extension?: AnyAmino; -} -export interface ContractInfoAminoMsg { - type: "wasm/ContractInfo"; - value: ContractInfoAmino; -} -/** ContractInfo stores a WASM contract instance */ -export interface ContractInfoSDKType { - code_id: Long; - creator: string; - admin: string; - label: string; - created: AbsoluteTxPositionSDKType; - ibc_port_id: string; - extension: AnySDKType; -} -/** ContractCodeHistoryEntry metadata to a contract. */ -export interface ContractCodeHistoryEntry { - operation: ContractCodeHistoryOperationType; - /** CodeID is the reference to the stored WASM code */ - codeId: Long; - /** Updated Tx position when the operation was executed. */ - updated: AbsoluteTxPosition; - msg: Uint8Array; -} -export interface ContractCodeHistoryEntryProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.ContractCodeHistoryEntry"; - value: Uint8Array; -} -/** ContractCodeHistoryEntry metadata to a contract. */ -export interface ContractCodeHistoryEntryAmino { - operation: ContractCodeHistoryOperationType; - /** CodeID is the reference to the stored WASM code */ - code_id: string; - /** Updated Tx position when the operation was executed. */ - updated?: AbsoluteTxPositionAmino; - msg: Uint8Array; -} -export interface ContractCodeHistoryEntryAminoMsg { - type: "wasm/ContractCodeHistoryEntry"; - value: ContractCodeHistoryEntryAmino; -} -/** ContractCodeHistoryEntry metadata to a contract. */ -export interface ContractCodeHistoryEntrySDKType { - operation: ContractCodeHistoryOperationType; - code_id: Long; - updated: AbsoluteTxPositionSDKType; - msg: Uint8Array; -} -/** - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ -export interface AbsoluteTxPosition { - /** BlockHeight is the block the contract was created at */ - blockHeight: Long; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - */ - txIndex: Long; -} -export interface AbsoluteTxPositionProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.AbsoluteTxPosition"; - value: Uint8Array; -} -/** - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ -export interface AbsoluteTxPositionAmino { - /** BlockHeight is the block the contract was created at */ - block_height: string; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - */ - tx_index: string; -} -export interface AbsoluteTxPositionAminoMsg { - type: "wasm/AbsoluteTxPosition"; - value: AbsoluteTxPositionAmino; -} -/** - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ -export interface AbsoluteTxPositionSDKType { - block_height: Long; - tx_index: Long; -} -/** Model is a struct that holds a KV pair */ -export interface Model { - /** hex-encode key to read it better (this is often ascii) */ - key: Uint8Array; - /** base64-encode raw value */ - value: Uint8Array; -} -export interface ModelProtoMsg { - typeUrl: "/cosmwasm.wasm.v1.Model"; - value: Uint8Array; -} -/** Model is a struct that holds a KV pair */ -export interface ModelAmino { - /** hex-encode key to read it better (this is often ascii) */ - key: Uint8Array; - /** base64-encode raw value */ - value: Uint8Array; -} -export interface ModelAminoMsg { - type: "wasm/Model"; - value: ModelAmino; -} -/** Model is a struct that holds a KV pair */ -export interface ModelSDKType { - key: Uint8Array; - value: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/api/annotations.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/google/api/annotations.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/api/annotations.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/api/http.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/google/api/http.ts deleted file mode 100644 index bf9446bbe..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/api/http.ts +++ /dev/null @@ -1,1025 +0,0 @@ -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface Http { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules: HttpRule[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fullyDecodeReservedExpansion: boolean; -} -export interface HttpProtoMsg { - typeUrl: "/google.api.Http"; - value: Uint8Array; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpAmino { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules: HttpRuleAmino[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fully_decode_reserved_expansion: boolean; -} -export interface HttpAminoMsg { - type: "/google.api.Http"; - value: HttpAmino; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpSDKType { - rules: HttpRuleSDKType[]; - fully_decode_reserved_expansion: boolean; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRule { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. - */ - selector: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPattern; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - responseBody: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additionalBindings: HttpRule[]; -} -export interface HttpRuleProtoMsg { - typeUrl: "/google.api.HttpRule"; - value: Uint8Array; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleAmino { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. - */ - selector: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPatternAmino; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - response_body: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additional_bindings: HttpRuleAmino[]; -} -export interface HttpRuleAminoMsg { - type: "/google.api.HttpRule"; - value: HttpRuleAmino; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleSDKType { - selector: string; - get?: string; - put?: string; - post?: string; - delete?: string; - patch?: string; - custom?: CustomHttpPatternSDKType; - body: string; - response_body: string; - additional_bindings: HttpRuleSDKType[]; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPattern { - /** The name of this custom HTTP verb. */ - kind: string; - /** The path matched by this custom verb. */ - path: string; -} -export interface CustomHttpPatternProtoMsg { - typeUrl: "/google.api.CustomHttpPattern"; - value: Uint8Array; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternAmino { - /** The name of this custom HTTP verb. */ - kind: string; - /** The path matched by this custom verb. */ - path: string; -} -export interface CustomHttpPatternAminoMsg { - type: "/google.api.CustomHttpPattern"; - value: CustomHttpPatternAmino; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternSDKType { - kind: string; - path: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/bundle.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/google/bundle.ts deleted file mode 100644 index 97b1d04e9..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/bundle.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as _100 from "./api/annotations"; -import * as _101 from "./api/http"; -import * as _102 from "./protobuf/any"; -import * as _103 from "./protobuf/descriptor"; -import * as _104 from "./protobuf/duration"; -import * as _105 from "./protobuf/empty"; -import * as _106 from "./protobuf/timestamp"; -export namespace google { - export const api = { - ..._100, - ..._101, - }; - export const protobuf = { - ..._102, - ..._103, - ..._104, - ..._105, - ..._106, - }; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/any.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/any.ts deleted file mode 100644 index e19166eff..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/any.ts +++ /dev/null @@ -1,325 +0,0 @@ -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface Any { - $typeUrl?: string; - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - typeUrl: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: Uint8Array; -} -export interface AnyProtoMsg { - typeUrl: "/google.protobuf.Any"; - value: Uint8Array; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnyAmino { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: any; -} -export interface AnyAminoMsg { - type: string; - value: AnyAmino; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnySDKType { - $typeUrl?: string; - type_url: string; - value: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/descriptor.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/descriptor.ts deleted file mode 100644 index e7c103054..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/descriptor.ts +++ /dev/null @@ -1,2215 +0,0 @@ -import { Long } from "../../helpers"; -export enum FieldDescriptorProto_Type { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - /** TYPE_BYTES - New in version 2. */ - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - /** TYPE_SINT32 - Uses ZigZag encoding. */ - TYPE_SINT32 = 17, - /** TYPE_SINT64 - Uses ZigZag encoding. */ - TYPE_SINT64 = 18, - UNRECOGNIZED = -1, -} -export const FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type; -export const FieldDescriptorProto_TypeAmino = FieldDescriptorProto_Type; -export function fieldDescriptorProto_TypeFromJSON( - object: any -): FieldDescriptorProto_Type { - switch (object) { - case 1: - case "TYPE_DOUBLE": - return FieldDescriptorProto_Type.TYPE_DOUBLE; - case 2: - case "TYPE_FLOAT": - return FieldDescriptorProto_Type.TYPE_FLOAT; - case 3: - case "TYPE_INT64": - return FieldDescriptorProto_Type.TYPE_INT64; - case 4: - case "TYPE_UINT64": - return FieldDescriptorProto_Type.TYPE_UINT64; - case 5: - case "TYPE_INT32": - return FieldDescriptorProto_Type.TYPE_INT32; - case 6: - case "TYPE_FIXED64": - return FieldDescriptorProto_Type.TYPE_FIXED64; - case 7: - case "TYPE_FIXED32": - return FieldDescriptorProto_Type.TYPE_FIXED32; - case 8: - case "TYPE_BOOL": - return FieldDescriptorProto_Type.TYPE_BOOL; - case 9: - case "TYPE_STRING": - return FieldDescriptorProto_Type.TYPE_STRING; - case 10: - case "TYPE_GROUP": - return FieldDescriptorProto_Type.TYPE_GROUP; - case 11: - case "TYPE_MESSAGE": - return FieldDescriptorProto_Type.TYPE_MESSAGE; - case 12: - case "TYPE_BYTES": - return FieldDescriptorProto_Type.TYPE_BYTES; - case 13: - case "TYPE_UINT32": - return FieldDescriptorProto_Type.TYPE_UINT32; - case 14: - case "TYPE_ENUM": - return FieldDescriptorProto_Type.TYPE_ENUM; - case 15: - case "TYPE_SFIXED32": - return FieldDescriptorProto_Type.TYPE_SFIXED32; - case 16: - case "TYPE_SFIXED64": - return FieldDescriptorProto_Type.TYPE_SFIXED64; - case 17: - case "TYPE_SINT32": - return FieldDescriptorProto_Type.TYPE_SINT32; - case 18: - case "TYPE_SINT64": - return FieldDescriptorProto_Type.TYPE_SINT64; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Type.UNRECOGNIZED; - } -} -export function fieldDescriptorProto_TypeToJSON( - object: FieldDescriptorProto_Type -): string { - switch (object) { - case FieldDescriptorProto_Type.TYPE_DOUBLE: - return "TYPE_DOUBLE"; - case FieldDescriptorProto_Type.TYPE_FLOAT: - return "TYPE_FLOAT"; - case FieldDescriptorProto_Type.TYPE_INT64: - return "TYPE_INT64"; - case FieldDescriptorProto_Type.TYPE_UINT64: - return "TYPE_UINT64"; - case FieldDescriptorProto_Type.TYPE_INT32: - return "TYPE_INT32"; - case FieldDescriptorProto_Type.TYPE_FIXED64: - return "TYPE_FIXED64"; - case FieldDescriptorProto_Type.TYPE_FIXED32: - return "TYPE_FIXED32"; - case FieldDescriptorProto_Type.TYPE_BOOL: - return "TYPE_BOOL"; - case FieldDescriptorProto_Type.TYPE_STRING: - return "TYPE_STRING"; - case FieldDescriptorProto_Type.TYPE_GROUP: - return "TYPE_GROUP"; - case FieldDescriptorProto_Type.TYPE_MESSAGE: - return "TYPE_MESSAGE"; - case FieldDescriptorProto_Type.TYPE_BYTES: - return "TYPE_BYTES"; - case FieldDescriptorProto_Type.TYPE_UINT32: - return "TYPE_UINT32"; - case FieldDescriptorProto_Type.TYPE_ENUM: - return "TYPE_ENUM"; - case FieldDescriptorProto_Type.TYPE_SFIXED32: - return "TYPE_SFIXED32"; - case FieldDescriptorProto_Type.TYPE_SFIXED64: - return "TYPE_SFIXED64"; - case FieldDescriptorProto_Type.TYPE_SINT32: - return "TYPE_SINT32"; - case FieldDescriptorProto_Type.TYPE_SINT64: - return "TYPE_SINT64"; - case FieldDescriptorProto_Type.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum FieldDescriptorProto_Label { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3, - UNRECOGNIZED = -1, -} -export const FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label; -export const FieldDescriptorProto_LabelAmino = FieldDescriptorProto_Label; -export function fieldDescriptorProto_LabelFromJSON( - object: any -): FieldDescriptorProto_Label { - switch (object) { - case 1: - case "LABEL_OPTIONAL": - return FieldDescriptorProto_Label.LABEL_OPTIONAL; - case 2: - case "LABEL_REQUIRED": - return FieldDescriptorProto_Label.LABEL_REQUIRED; - case 3: - case "LABEL_REPEATED": - return FieldDescriptorProto_Label.LABEL_REPEATED; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Label.UNRECOGNIZED; - } -} -export function fieldDescriptorProto_LabelToJSON( - object: FieldDescriptorProto_Label -): string { - switch (object) { - case FieldDescriptorProto_Label.LABEL_OPTIONAL: - return "LABEL_OPTIONAL"; - case FieldDescriptorProto_Label.LABEL_REQUIRED: - return "LABEL_REQUIRED"; - case FieldDescriptorProto_Label.LABEL_REPEATED: - return "LABEL_REPEATED"; - case FieldDescriptorProto_Label.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** Generated classes can be optimized for speed or code size. */ -export enum FileOptions_OptimizeMode { - /** - * SPEED - Generate complete code for parsing, serialization, - * etc. - */ - SPEED = 1, - /** CODE_SIZE - Use ReflectionOps to implement these methods. */ - CODE_SIZE = 2, - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - LITE_RUNTIME = 3, - UNRECOGNIZED = -1, -} -export const FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode; -export const FileOptions_OptimizeModeAmino = FileOptions_OptimizeMode; -export function fileOptions_OptimizeModeFromJSON( - object: any -): FileOptions_OptimizeMode { - switch (object) { - case 1: - case "SPEED": - return FileOptions_OptimizeMode.SPEED; - case 2: - case "CODE_SIZE": - return FileOptions_OptimizeMode.CODE_SIZE; - case 3: - case "LITE_RUNTIME": - return FileOptions_OptimizeMode.LITE_RUNTIME; - case -1: - case "UNRECOGNIZED": - default: - return FileOptions_OptimizeMode.UNRECOGNIZED; - } -} -export function fileOptions_OptimizeModeToJSON( - object: FileOptions_OptimizeMode -): string { - switch (object) { - case FileOptions_OptimizeMode.SPEED: - return "SPEED"; - case FileOptions_OptimizeMode.CODE_SIZE: - return "CODE_SIZE"; - case FileOptions_OptimizeMode.LITE_RUNTIME: - return "LITE_RUNTIME"; - case FileOptions_OptimizeMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum FieldOptions_CType { - /** STRING - Default mode. */ - STRING = 0, - CORD = 1, - STRING_PIECE = 2, - UNRECOGNIZED = -1, -} -export const FieldOptions_CTypeSDKType = FieldOptions_CType; -export const FieldOptions_CTypeAmino = FieldOptions_CType; -export function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType { - switch (object) { - case 0: - case "STRING": - return FieldOptions_CType.STRING; - case 1: - case "CORD": - return FieldOptions_CType.CORD; - case 2: - case "STRING_PIECE": - return FieldOptions_CType.STRING_PIECE; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_CType.UNRECOGNIZED; - } -} -export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string { - switch (object) { - case FieldOptions_CType.STRING: - return "STRING"; - case FieldOptions_CType.CORD: - return "CORD"; - case FieldOptions_CType.STRING_PIECE: - return "STRING_PIECE"; - case FieldOptions_CType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum FieldOptions_JSType { - /** JS_NORMAL - Use the default type. */ - JS_NORMAL = 0, - /** JS_STRING - Use JavaScript strings. */ - JS_STRING = 1, - /** JS_NUMBER - Use JavaScript numbers. */ - JS_NUMBER = 2, - UNRECOGNIZED = -1, -} -export const FieldOptions_JSTypeSDKType = FieldOptions_JSType; -export const FieldOptions_JSTypeAmino = FieldOptions_JSType; -export function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType { - switch (object) { - case 0: - case "JS_NORMAL": - return FieldOptions_JSType.JS_NORMAL; - case 1: - case "JS_STRING": - return FieldOptions_JSType.JS_STRING; - case 2: - case "JS_NUMBER": - return FieldOptions_JSType.JS_NUMBER; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_JSType.UNRECOGNIZED; - } -} -export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string { - switch (object) { - case FieldOptions_JSType.JS_NORMAL: - return "JS_NORMAL"; - case FieldOptions_JSType.JS_STRING: - return "JS_STRING"; - case FieldOptions_JSType.JS_NUMBER: - return "JS_NUMBER"; - case FieldOptions_JSType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -export enum MethodOptions_IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - /** NO_SIDE_EFFECTS - implies idempotent */ - NO_SIDE_EFFECTS = 1, - /** IDEMPOTENT - idempotent, but may have side effects */ - IDEMPOTENT = 2, - UNRECOGNIZED = -1, -} -export const MethodOptions_IdempotencyLevelSDKType = - MethodOptions_IdempotencyLevel; -export const MethodOptions_IdempotencyLevelAmino = - MethodOptions_IdempotencyLevel; -export function methodOptions_IdempotencyLevelFromJSON( - object: any -): MethodOptions_IdempotencyLevel { - switch (object) { - case 0: - case "IDEMPOTENCY_UNKNOWN": - return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; - case 1: - case "NO_SIDE_EFFECTS": - return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; - case 2: - case "IDEMPOTENT": - return MethodOptions_IdempotencyLevel.IDEMPOTENT; - case -1: - case "UNRECOGNIZED": - default: - return MethodOptions_IdempotencyLevel.UNRECOGNIZED; - } -} -export function methodOptions_IdempotencyLevelToJSON( - object: MethodOptions_IdempotencyLevel -): string { - switch (object) { - case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: - return "IDEMPOTENCY_UNKNOWN"; - case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: - return "NO_SIDE_EFFECTS"; - case MethodOptions_IdempotencyLevel.IDEMPOTENT: - return "IDEMPOTENT"; - case MethodOptions_IdempotencyLevel.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSet { - file: FileDescriptorProto[]; -} -export interface FileDescriptorSetProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorSet"; - value: Uint8Array; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetAmino { - file: FileDescriptorProtoAmino[]; -} -export interface FileDescriptorSetAminoMsg { - type: "/google.protobuf.FileDescriptorSet"; - value: FileDescriptorSetAmino; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetSDKType { - file: FileDescriptorProtoSDKType[]; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProto { - /** file name, relative to root of source tree */ - name: string; - package: string; - /** Names of files imported by this file. */ - dependency: string[]; - /** Indexes of the public imported files in the dependency list above. */ - publicDependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weakDependency: number[]; - /** All top-level definitions in this file. */ - messageType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - service: ServiceDescriptorProto[]; - extension: FieldDescriptorProto[]; - options: FileOptions; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - sourceCodeInfo: SourceCodeInfo; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax: string; -} -export interface FileDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorProto"; - value: Uint8Array; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoAmino { - /** file name, relative to root of source tree */ - name: string; - package: string; - /** Names of files imported by this file. */ - dependency: string[]; - /** Indexes of the public imported files in the dependency list above. */ - public_dependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weak_dependency: number[]; - /** All top-level definitions in this file. */ - message_type: DescriptorProtoAmino[]; - enum_type: EnumDescriptorProtoAmino[]; - service: ServiceDescriptorProtoAmino[]; - extension: FieldDescriptorProtoAmino[]; - options?: FileOptionsAmino; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - source_code_info?: SourceCodeInfoAmino; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax: string; -} -export interface FileDescriptorProtoAminoMsg { - type: "/google.protobuf.FileDescriptorProto"; - value: FileDescriptorProtoAmino; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoSDKType { - name: string; - package: string; - dependency: string[]; - public_dependency: number[]; - weak_dependency: number[]; - message_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - service: ServiceDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - options: FileOptionsSDKType; - source_code_info: SourceCodeInfoSDKType; - syntax: string; -} -/** Describes a message type. */ -export interface DescriptorProto { - name: string; - field: FieldDescriptorProto[]; - extension: FieldDescriptorProto[]; - nestedType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - extensionRange: DescriptorProto_ExtensionRange[]; - oneofDecl: OneofDescriptorProto[]; - options: MessageOptions; - reservedRange: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reservedName: string[]; -} -export interface DescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.DescriptorProto"; - value: Uint8Array; -} -/** Describes a message type. */ -export interface DescriptorProtoAmino { - name: string; - field: FieldDescriptorProtoAmino[]; - extension: FieldDescriptorProtoAmino[]; - nested_type: DescriptorProtoAmino[]; - enum_type: EnumDescriptorProtoAmino[]; - extension_range: DescriptorProto_ExtensionRangeAmino[]; - oneof_decl: OneofDescriptorProtoAmino[]; - options?: MessageOptionsAmino; - reserved_range: DescriptorProto_ReservedRangeAmino[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reserved_name: string[]; -} -export interface DescriptorProtoAminoMsg { - type: "/google.protobuf.DescriptorProto"; - value: DescriptorProtoAmino; -} -/** Describes a message type. */ -export interface DescriptorProtoSDKType { - name: string; - field: FieldDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - nested_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - extension_range: DescriptorProto_ExtensionRangeSDKType[]; - oneof_decl: OneofDescriptorProtoSDKType[]; - options: MessageOptionsSDKType; - reserved_range: DescriptorProto_ReservedRangeSDKType[]; - reserved_name: string[]; -} -export interface DescriptorProto_ExtensionRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; - options: ExtensionRangeOptions; -} -export interface DescriptorProto_ExtensionRangeProtoMsg { - typeUrl: "/google.protobuf.ExtensionRange"; - value: Uint8Array; -} -export interface DescriptorProto_ExtensionRangeAmino { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; - options?: ExtensionRangeOptionsAmino; -} -export interface DescriptorProto_ExtensionRangeAminoMsg { - type: "/google.protobuf.ExtensionRange"; - value: DescriptorProto_ExtensionRangeAmino; -} -export interface DescriptorProto_ExtensionRangeSDKType { - start: number; - end: number; - options: ExtensionRangeOptionsSDKType; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; -} -export interface DescriptorProto_ReservedRangeProtoMsg { - typeUrl: "/google.protobuf.ReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeAmino { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; -} -export interface DescriptorProto_ReservedRangeAminoMsg { - type: "/google.protobuf.ReservedRange"; - value: DescriptorProto_ReservedRangeAmino; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeSDKType { - start: number; - end: number; -} -export interface ExtensionRangeOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ExtensionRangeOptionsProtoMsg { - typeUrl: "/google.protobuf.ExtensionRangeOptions"; - value: Uint8Array; -} -export interface ExtensionRangeOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface ExtensionRangeOptionsAminoMsg { - type: "/google.protobuf.ExtensionRangeOptions"; - value: ExtensionRangeOptionsAmino; -} -export interface ExtensionRangeOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProto { - name: string; - number: number; - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - typeName: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - defaultValue: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneofIndex: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - jsonName: string; - options: FieldOptions; -} -export interface FieldDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FieldDescriptorProto"; - value: Uint8Array; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoAmino { - name: string; - number: number; - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - type_name: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - default_value: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneof_index: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - json_name: string; - options?: FieldOptionsAmino; -} -export interface FieldDescriptorProtoAminoMsg { - type: "/google.protobuf.FieldDescriptorProto"; - value: FieldDescriptorProtoAmino; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoSDKType { - name: string; - number: number; - label: FieldDescriptorProto_Label; - type: FieldDescriptorProto_Type; - type_name: string; - extendee: string; - default_value: string; - oneof_index: number; - json_name: string; - options: FieldOptionsSDKType; -} -/** Describes a oneof. */ -export interface OneofDescriptorProto { - name: string; - options: OneofOptions; -} -export interface OneofDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.OneofDescriptorProto"; - value: Uint8Array; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoAmino { - name: string; - options?: OneofOptionsAmino; -} -export interface OneofDescriptorProtoAminoMsg { - type: "/google.protobuf.OneofDescriptorProto"; - value: OneofDescriptorProtoAmino; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoSDKType { - name: string; - options: OneofOptionsSDKType; -} -/** Describes an enum type. */ -export interface EnumDescriptorProto { - name: string; - value: EnumValueDescriptorProto[]; - options: EnumOptions; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reservedRange: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reservedName: string[]; -} -export interface EnumDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumDescriptorProto"; - value: Uint8Array; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoAmino { - name: string; - value: EnumValueDescriptorProtoAmino[]; - options?: EnumOptionsAmino; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reserved_range: EnumDescriptorProto_EnumReservedRangeAmino[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reserved_name: string[]; -} -export interface EnumDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumDescriptorProto"; - value: EnumDescriptorProtoAmino; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoSDKType { - name: string; - value: EnumValueDescriptorProtoSDKType[]; - options: EnumOptionsSDKType; - reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[]; - reserved_name: string[]; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRange { - /** Inclusive. */ - start: number; - /** Inclusive. */ - end: number; -} -export interface EnumDescriptorProto_EnumReservedRangeProtoMsg { - typeUrl: "/google.protobuf.EnumReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeAmino { - /** Inclusive. */ - start: number; - /** Inclusive. */ - end: number; -} -export interface EnumDescriptorProto_EnumReservedRangeAminoMsg { - type: "/google.protobuf.EnumReservedRange"; - value: EnumDescriptorProto_EnumReservedRangeAmino; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeSDKType { - start: number; - end: number; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProto { - name: string; - number: number; - options: EnumValueOptions; -} -export interface EnumValueDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumValueDescriptorProto"; - value: Uint8Array; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoAmino { - name: string; - number: number; - options?: EnumValueOptionsAmino; -} -export interface EnumValueDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumValueDescriptorProto"; - value: EnumValueDescriptorProtoAmino; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoSDKType { - name: string; - number: number; - options: EnumValueOptionsSDKType; -} -/** Describes a service. */ -export interface ServiceDescriptorProto { - name: string; - method: MethodDescriptorProto[]; - options: ServiceOptions; -} -export interface ServiceDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.ServiceDescriptorProto"; - value: Uint8Array; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoAmino { - name: string; - method: MethodDescriptorProtoAmino[]; - options?: ServiceOptionsAmino; -} -export interface ServiceDescriptorProtoAminoMsg { - type: "/google.protobuf.ServiceDescriptorProto"; - value: ServiceDescriptorProtoAmino; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoSDKType { - name: string; - method: MethodDescriptorProtoSDKType[]; - options: ServiceOptionsSDKType; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProto { - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - inputType: string; - outputType: string; - options: MethodOptions; - /** Identifies if client streams multiple client messages */ - clientStreaming: boolean; - /** Identifies if server streams multiple server messages */ - serverStreaming: boolean; -} -export interface MethodDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.MethodDescriptorProto"; - value: Uint8Array; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoAmino { - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - input_type: string; - output_type: string; - options?: MethodOptionsAmino; - /** Identifies if client streams multiple client messages */ - client_streaming: boolean; - /** Identifies if server streams multiple server messages */ - server_streaming: boolean; -} -export interface MethodDescriptorProtoAminoMsg { - type: "/google.protobuf.MethodDescriptorProto"; - value: MethodDescriptorProtoAmino; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoSDKType { - name: string; - input_type: string; - output_type: string; - options: MethodOptionsSDKType; - client_streaming: boolean; - server_streaming: boolean; -} -export interface FileOptions { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - javaPackage: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - javaOuterClassname: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - javaMultipleFiles: boolean; - /** This option does nothing. */ - /** @deprecated */ - javaGenerateEqualsAndHash: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - javaStringCheckUtf8: boolean; - optimizeFor: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - goPackage: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - ccGenericServices: boolean; - javaGenericServices: boolean; - pyGenericServices: boolean; - phpGenericServices: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - ccEnableArenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objcClassPrefix: string; - /** Namespace for generated classes; defaults to the package. */ - csharpNamespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swiftPrefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - phpClassPrefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - phpNamespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - phpMetadataNamespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - rubyPackage: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FileOptionsProtoMsg { - typeUrl: "/google.protobuf.FileOptions"; - value: Uint8Array; -} -export interface FileOptionsAmino { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - java_package: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - java_outer_classname: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - java_multiple_files: boolean; - /** This option does nothing. */ - /** @deprecated */ - java_generate_equals_and_hash: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - java_string_check_utf8: boolean; - optimize_for: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - go_package: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - cc_generic_services: boolean; - java_generic_services: boolean; - py_generic_services: boolean; - php_generic_services: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - cc_enable_arenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objc_class_prefix: string; - /** Namespace for generated classes; defaults to the package. */ - csharp_namespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swift_prefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - php_class_prefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - php_namespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - php_metadata_namespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - ruby_package: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface FileOptionsAminoMsg { - type: "/google.protobuf.FileOptions"; - value: FileOptionsAmino; -} -export interface FileOptionsSDKType { - java_package: string; - java_outer_classname: string; - java_multiple_files: boolean; - /** @deprecated */ - java_generate_equals_and_hash: boolean; - java_string_check_utf8: boolean; - optimize_for: FileOptions_OptimizeMode; - go_package: string; - cc_generic_services: boolean; - java_generic_services: boolean; - py_generic_services: boolean; - php_generic_services: boolean; - deprecated: boolean; - cc_enable_arenas: boolean; - objc_class_prefix: string; - csharp_namespace: string; - swift_prefix: string; - php_class_prefix: string; - php_namespace: string; - php_metadata_namespace: string; - ruby_package: string; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MessageOptions { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - messageSetWireFormat: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - noStandardDescriptorAccessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - mapEntry: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MessageOptionsProtoMsg { - typeUrl: "/google.protobuf.MessageOptions"; - value: Uint8Array; -} -export interface MessageOptionsAmino { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - message_set_wire_format: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - no_standard_descriptor_accessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - map_entry: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface MessageOptionsAminoMsg { - type: "/google.protobuf.MessageOptions"; - value: MessageOptionsAmino; -} -export interface MessageOptionsSDKType { - message_set_wire_format: boolean; - no_standard_descriptor_accessor: boolean; - deprecated: boolean; - map_entry: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface FieldOptions { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated: boolean; - /** For Google-internal migration only. Do not use. */ - weak: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FieldOptionsProtoMsg { - typeUrl: "/google.protobuf.FieldOptions"; - value: Uint8Array; -} -export interface FieldOptionsAmino { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated: boolean; - /** For Google-internal migration only. Do not use. */ - weak: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface FieldOptionsAminoMsg { - type: "/google.protobuf.FieldOptions"; - value: FieldOptionsAmino; -} -export interface FieldOptionsSDKType { - ctype: FieldOptions_CType; - packed: boolean; - jstype: FieldOptions_JSType; - lazy: boolean; - deprecated: boolean; - weak: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface OneofOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface OneofOptionsProtoMsg { - typeUrl: "/google.protobuf.OneofOptions"; - value: Uint8Array; -} -export interface OneofOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface OneofOptionsAminoMsg { - type: "/google.protobuf.OneofOptions"; - value: OneofOptionsAmino; -} -export interface OneofOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumOptions { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allowAlias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumOptions"; - value: Uint8Array; -} -export interface EnumOptionsAmino { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allow_alias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface EnumOptionsAminoMsg { - type: "/google.protobuf.EnumOptions"; - value: EnumOptionsAmino; -} -export interface EnumOptionsSDKType { - allow_alias: boolean; - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumValueOptions { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumValueOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumValueOptions"; - value: Uint8Array; -} -export interface EnumValueOptionsAmino { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface EnumValueOptionsAminoMsg { - type: "/google.protobuf.EnumValueOptions"; - value: EnumValueOptionsAmino; -} -export interface EnumValueOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface ServiceOptions { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ServiceOptionsProtoMsg { - typeUrl: "/google.protobuf.ServiceOptions"; - value: Uint8Array; -} -export interface ServiceOptionsAmino { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface ServiceOptionsAminoMsg { - type: "/google.protobuf.ServiceOptions"; - value: ServiceOptionsAmino; -} -export interface ServiceOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MethodOptions { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated: boolean; - idempotencyLevel: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MethodOptionsProtoMsg { - typeUrl: "/google.protobuf.MethodOptions"; - value: Uint8Array; -} -export interface MethodOptionsAmino { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated: boolean; - idempotency_level: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; -} -export interface MethodOptionsAminoMsg { - type: "/google.protobuf.MethodOptions"; - value: MethodOptionsAmino; -} -export interface MethodOptionsSDKType { - deprecated: boolean; - idempotency_level: MethodOptions_IdempotencyLevel; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOption { - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifierValue: string; - positiveIntValue: Long; - negativeIntValue: Long; - doubleValue: number; - stringValue: Uint8Array; - aggregateValue: string; -} -export interface UninterpretedOptionProtoMsg { - typeUrl: "/google.protobuf.UninterpretedOption"; - value: Uint8Array; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionAmino { - name: UninterpretedOption_NamePartAmino[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifier_value: string; - positive_int_value: string; - negative_int_value: string; - double_value: number; - string_value: Uint8Array; - aggregate_value: string; -} -export interface UninterpretedOptionAminoMsg { - type: "/google.protobuf.UninterpretedOption"; - value: UninterpretedOptionAmino; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionSDKType { - name: UninterpretedOption_NamePartSDKType[]; - identifier_value: string; - positive_int_value: Long; - negative_int_value: Long; - double_value: number; - string_value: Uint8Array; - aggregate_value: string; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePart { - namePart: string; - isExtension: boolean; -} -export interface UninterpretedOption_NamePartProtoMsg { - typeUrl: "/google.protobuf.NamePart"; - value: Uint8Array; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartAmino { - name_part: string; - is_extension: boolean; -} -export interface UninterpretedOption_NamePartAminoMsg { - type: "/google.protobuf.NamePart"; - value: UninterpretedOption_NamePartAmino; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartSDKType { - name_part: string; - is_extension: boolean; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfo { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location: SourceCodeInfo_Location[]; -} -export interface SourceCodeInfoProtoMsg { - typeUrl: "/google.protobuf.SourceCodeInfo"; - value: Uint8Array; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoAmino { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location: SourceCodeInfo_LocationAmino[]; -} -export interface SourceCodeInfoAminoMsg { - type: "/google.protobuf.SourceCodeInfo"; - value: SourceCodeInfoAmino; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoSDKType { - location: SourceCodeInfo_LocationSDKType[]; -} -export interface SourceCodeInfo_Location { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leadingComments: string; - trailingComments: string; - leadingDetachedComments: string[]; -} -export interface SourceCodeInfo_LocationProtoMsg { - typeUrl: "/google.protobuf.Location"; - value: Uint8Array; -} -export interface SourceCodeInfo_LocationAmino { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leading_comments: string; - trailing_comments: string; - leading_detached_comments: string[]; -} -export interface SourceCodeInfo_LocationAminoMsg { - type: "/google.protobuf.Location"; - value: SourceCodeInfo_LocationAmino; -} -export interface SourceCodeInfo_LocationSDKType { - path: number[]; - span: number[]; - leading_comments: string; - trailing_comments: string; - leading_detached_comments: string[]; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfo { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation: GeneratedCodeInfo_Annotation[]; -} -export interface GeneratedCodeInfoProtoMsg { - typeUrl: "/google.protobuf.GeneratedCodeInfo"; - value: Uint8Array; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoAmino { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation: GeneratedCodeInfo_AnnotationAmino[]; -} -export interface GeneratedCodeInfoAminoMsg { - type: "/google.protobuf.GeneratedCodeInfo"; - value: GeneratedCodeInfoAmino; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoSDKType { - annotation: GeneratedCodeInfo_AnnotationSDKType[]; -} -export interface GeneratedCodeInfo_Annotation { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path: number[]; - /** Identifies the filesystem path to the original source .proto. */ - sourceFile: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end: number; -} -export interface GeneratedCodeInfo_AnnotationProtoMsg { - typeUrl: "/google.protobuf.Annotation"; - value: Uint8Array; -} -export interface GeneratedCodeInfo_AnnotationAmino { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path: number[]; - /** Identifies the filesystem path to the original source .proto. */ - source_file: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end: number; -} -export interface GeneratedCodeInfo_AnnotationAminoMsg { - type: "/google.protobuf.Annotation"; - value: GeneratedCodeInfo_AnnotationAmino; -} -export interface GeneratedCodeInfo_AnnotationSDKType { - path: number[]; - source_file: string; - begin: number; - end: number; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/duration.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/duration.ts deleted file mode 100644 index 1d9242e7b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/duration.ts +++ /dev/null @@ -1,211 +0,0 @@ -import { Long } from "../../helpers"; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: Long; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - nanos: number; -} -export interface DurationProtoMsg { - typeUrl: "/google.protobuf.Duration"; - value: Uint8Array; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export type DurationAmino = string; -export interface DurationAminoMsg { - type: "/google.protobuf.Duration"; - value: DurationAmino; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface DurationSDKType { - seconds: Long; - nanos: number; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/empty.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/empty.ts deleted file mode 100644 index 6db2c7d8e..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/empty.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * The JSON representation for `Empty` is empty JSON object `{}`. - */ -export interface Empty {} -export interface EmptyProtoMsg { - typeUrl: "/google.protobuf.Empty"; - value: Uint8Array; -} -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * The JSON representation for `Empty` is empty JSON object `{}`. - */ -export interface EmptyAmino {} -export interface EmptyAminoMsg { - type: "/google.protobuf.Empty"; - value: EmptyAmino; -} -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * The JSON representation for `Empty` is empty JSON object `{}`. - */ -export interface EmptySDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/timestamp.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/timestamp.ts deleted file mode 100644 index 5724a8f41..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/google/protobuf/timestamp.ts +++ /dev/null @@ -1,281 +0,0 @@ -import { Long } from "../../helpers"; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: Long; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} -export interface TimestampProtoMsg { - typeUrl: "/google.protobuf.Timestamp"; - value: Uint8Array; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export type TimestampAmino = string; -export interface TimestampAminoMsg { - type: "/google.protobuf.Timestamp"; - value: TimestampAmino; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface TimestampSDKType { - seconds: Long; - nanos: number; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/helpers.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/helpers.ts deleted file mode 100644 index ad780b62b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/helpers.ts +++ /dev/null @@ -1,269 +0,0 @@ -/** - * This file and any referenced files were automatically generated by @cosmology/telescope@0.104.0 - * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain - * and run the transpile command or yarn proto command to regenerate this bundle. - */ - -import * as _m0 from "protobufjs/minimal"; -import Long from "long"; - -// @ts-ignore -if (_m0.util.Long !== Long) { - _m0.util.Long = Long as any; - - _m0.configure(); -} - -export { Long }; - -declare var self: any | undefined; -declare var window: any | undefined; -declare var global: any | undefined; -var globalThis: any = (() => { - if (typeof globalThis !== "undefined") return globalThis; - if (typeof self !== "undefined") return self; - if (typeof window !== "undefined") return window; - if (typeof global !== "undefined") return global; - throw "Unable to locate global object"; -})(); - -const atob: (b64: string) => string = - globalThis.atob || - ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary")); - -export function bytesFromBase64(b64: string): Uint8Array { - const bin = atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; -} - -const btoa: (bin: string) => string = - globalThis.btoa || - ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64")); - -export function base64FromBytes(arr: Uint8Array): string { - const bin: string[] = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return btoa(bin.join("")); -} - -export interface AminoHeight { - readonly revision_number?: string; - readonly revision_height?: string; -} - -export function omitDefault( - input: T -): T | undefined { - if (typeof input === "string") { - return input === "" ? undefined : input; - } - - if (typeof input === "number") { - return input === 0 ? undefined : input; - } - - if (Long.isLong(input)) { - return input.isZero() ? undefined : input; - } - - throw new Error(`Got unsupported type ${typeof input}`); -} - -interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: Long; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - - nanos: number; -} - -export function toDuration(duration: string): Duration { - return { - seconds: Long.fromNumber(Math.floor(parseInt(duration) / 1000000000)), - nanos: parseInt(duration) % 1000000000, - }; -} - -export function fromDuration(duration: Duration): string { - return ( - parseInt(duration.seconds.toString()) * 1000000000 + - duration.nanos - ).toString(); -} - -export function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -export interface PageRequest { - key: Uint8Array; - offset: Long; - limit: Long; - countTotal: boolean; - reverse: boolean; -} - -export interface PageRequestParams { - "pagination.key"?: string; - "pagination.offset"?: string; - "pagination.limit"?: string; - "pagination.count_total"?: boolean; - "pagination.reverse"?: boolean; -} - -export interface Params { - params: PageRequestParams; -} - -export const setPaginationParams = ( - options: Params, - pagination?: PageRequest -) => { - if (!pagination) { - return options; - } - - if (typeof pagination?.countTotal !== "undefined") { - options.params["pagination.count_total"] = pagination.countTotal; - } - if (typeof pagination?.key !== "undefined") { - // String to Uint8Array - // let uint8arr = new Uint8Array(Buffer.from(data,'base64')); - - // Uint8Array to String - options.params["pagination.key"] = Buffer.from(pagination.key).toString( - "base64" - ); - } - if (typeof pagination?.limit !== "undefined") { - options.params["pagination.limit"] = pagination.limit.toString(); - } - if (typeof pagination?.offset !== "undefined") { - options.params["pagination.offset"] = pagination.offset.toString(); - } - if (typeof pagination?.reverse !== "undefined") { - options.params["pagination.reverse"] = pagination.reverse; - } - - return options; -}; - -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; - -export type DeepPartial = T extends Builtin - ? T - : T extends Long - ? string | number | Long - : T extends Array - ? Array> - : T extends ReadonlyArray - ? ReadonlyArray> - : T extends {} - ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin - ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; - -export interface Rpc { - request( - service: string, - method: string, - data: Uint8Array - ): Promise; -} - -interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: Long; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - - nanos: number; -} - -export function toTimestamp(date: Date): Timestamp { - const seconds = numberToLong(date.getTime() / 1_000); - const nanos = (date.getTime() % 1000) * 1000000; - return { - seconds, - nanos, - }; -} - -export function fromTimestamp(t: Timestamp): Date { - let millis = t.seconds.toNumber() * 1000; - millis += t.nanos / 1000000; - return new Date(millis); -} - -const fromJSON = (object: any): Timestamp => { - return { - seconds: isSet(object.seconds) - ? Long.fromString(object.seconds) - : Long.ZERO, - nanos: isSet(object.nanos) ? Number(object.nanos) : 0, - }; -}; - -const timestampFromJSON = (object: any): Timestamp => { - return { - seconds: isSet(object.seconds) ? Long.fromValue(object.seconds) : Long.ZERO, - nanos: isSet(object.nanos) ? Number(object.nanos) : 0, - }; -}; - -export function fromJsonTimestamp(o: any): Timestamp { - if (o instanceof Date) { - return toTimestamp(o); - } else if (typeof o === "string") { - return toTimestamp(new Date(o)); - } else { - return timestampFromJSON(o); - } -} - -function numberToLong(number: number) { - return Long.fromNumber(number); -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/genesis.ts deleted file mode 100644 index 2695096f4..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/genesis.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { - DenomTrace, - DenomTraceAmino, - DenomTraceSDKType, - Params, - ParamsAmino, - ParamsSDKType, -} from "./transfer"; -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisState { - portId: string; - denomTraces: DenomTrace[]; - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateAmino { - port_id: string; - denom_traces: DenomTraceAmino[]; - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateSDKType { - port_id: string; - denom_traces: DenomTraceSDKType[]; - params: ParamsSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/transfer.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/transfer.ts deleted file mode 100644 index 466f381fe..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/transfer.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTrace { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path: string; - /** base denomination of the relayed fungible token. */ - baseDenom: string; -} -export interface DenomTraceProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace"; - value: Uint8Array; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceAmino { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path: string; - /** base denomination of the relayed fungible token. */ - base_denom: string; -} -export interface DenomTraceAminoMsg { - type: "cosmos-sdk/DenomTrace"; - value: DenomTraceAmino; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceSDKType { - path: string; - base_denom: string; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface Params { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - sendEnabled: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receiveEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.Params"; - value: Uint8Array; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsAmino { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - send_enabled: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receive_enabled: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsSDKType { - send_enabled: boolean; - receive_enabled: boolean; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/tx.ts deleted file mode 100644 index 46a759003..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v1/tx.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { - Coin, - CoinAmino, - CoinSDKType, -} from "../../../../cosmos/base/v1beta1/coin"; -import { - Height, - HeightAmino, - HeightSDKType, -} from "../../../core/client/v1/client"; -import { Long } from "../../../../helpers"; -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransfer { - /** the port on which the packet will be sent */ - sourcePort: string; - /** the channel by which the packet will be sent */ - sourceChannel: string; - /** the tokens to be transferred */ - token: Coin; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeoutHeight: Height; - /** - * Timeout timestamp (in nanoseconds) relative to the current block timestamp. - * The timeout is disabled when set to 0. - */ - timeoutTimestamp: Long; -} -export interface MsgTransferProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer"; - value: Uint8Array; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferAmino { - /** the port on which the packet will be sent */ - source_port: string; - /** the channel by which the packet will be sent */ - source_channel: string; - /** the tokens to be transferred */ - token?: CoinAmino; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeout_height?: HeightAmino; - /** - * Timeout timestamp (in nanoseconds) relative to the current block timestamp. - * The timeout is disabled when set to 0. - */ - timeout_timestamp: string; -} -export interface MsgTransferAminoMsg { - type: "cosmos-sdk/MsgTransfer"; - value: MsgTransferAmino; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferSDKType { - source_port: string; - source_channel: string; - token: CoinSDKType; - sender: string; - receiver: string; - timeout_height: HeightSDKType; - timeout_timestamp: Long; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponse {} -export interface MsgTransferResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse"; - value: Uint8Array; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseAmino {} -export interface MsgTransferResponseAminoMsg { - type: "cosmos-sdk/MsgTransferResponse"; - value: MsgTransferResponseAmino; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v2/packet.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v2/packet.ts deleted file mode 100644 index d8b9e71da..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/applications/transfer/v2/packet.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * FungibleTokenPacketData defines a struct for the packet payload - * See FungibleTokenPacketData spec: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface FungibleTokenPacketData { - /** the token denomination to be transferred */ - denom: string; - /** the token amount to be transferred */ - amount: string; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; -} -export interface FungibleTokenPacketDataProtoMsg { - typeUrl: "/ibc.applications.transfer.v2.FungibleTokenPacketData"; - value: Uint8Array; -} -/** - * FungibleTokenPacketData defines a struct for the packet payload - * See FungibleTokenPacketData spec: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface FungibleTokenPacketDataAmino { - /** the token denomination to be transferred */ - denom: string; - /** the token amount to be transferred */ - amount: string; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; -} -export interface FungibleTokenPacketDataAminoMsg { - type: "cosmos-sdk/FungibleTokenPacketData"; - value: FungibleTokenPacketDataAmino; -} -/** - * FungibleTokenPacketData defines a struct for the packet payload - * See FungibleTokenPacketData spec: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface FungibleTokenPacketDataSDKType { - denom: string; - amount: string; - sender: string; - receiver: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/bundle.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/bundle.ts deleted file mode 100644 index 4cf8b3a2f..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/bundle.ts +++ /dev/null @@ -1,86 +0,0 @@ -import * as _107 from "./applications/transfer/v1/genesis"; -import * as _108 from "./applications/transfer/v1/transfer"; -import * as _109 from "./applications/transfer/v1/tx"; -import * as _110 from "./applications/transfer/v2/packet"; -import * as _111 from "./core/channel/v1/channel"; -import * as _112 from "./core/channel/v1/genesis"; -import * as _113 from "./core/channel/v1/tx"; -import * as _114 from "./core/client/v1/client"; -import * as _115 from "./core/client/v1/genesis"; -import * as _116 from "./core/client/v1/tx"; -import * as _117 from "./core/commitment/v1/commitment"; -import * as _118 from "./core/connection/v1/connection"; -import * as _119 from "./core/connection/v1/genesis"; -import * as _120 from "./core/connection/v1/tx"; -import * as _121 from "./core/types/v1/genesis"; -import * as _122 from "./lightclients/localhost/v1/localhost"; -import * as _123 from "./lightclients/solomachine/v1/solomachine"; -import * as _124 from "./lightclients/solomachine/v2/solomachine"; -import * as _125 from "./lightclients/tendermint/v1/tendermint"; -export namespace ibc { - export namespace applications { - export namespace transfer { - export const v1 = { - ..._107, - ..._108, - ..._109, - }; - export const v2 = { - ..._110, - }; - } - } - export namespace core { - export namespace channel { - export const v1 = { - ..._111, - ..._112, - ..._113, - }; - } - export namespace client { - export const v1 = { - ..._114, - ..._115, - ..._116, - }; - } - export namespace commitment { - export const v1 = { - ..._117, - }; - } - export namespace connection { - export const v1 = { - ..._118, - ..._119, - ..._120, - }; - } - export namespace types { - export const v1 = { - ..._121, - }; - } - } - export namespace lightclients { - export namespace localhost { - export const v1 = { - ..._122, - }; - } - export namespace solomachine { - export const v1 = { - ..._123, - }; - export const v2 = { - ..._124, - }; - } - export namespace tendermint { - export const v1 = { - ..._125, - }; - } - } -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/channel/v1/channel.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/channel/v1/channel.ts deleted file mode 100644 index 566d5cb94..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/channel/v1/channel.ts +++ /dev/null @@ -1,430 +0,0 @@ -import { Height, HeightAmino, HeightSDKType } from "../../client/v1/client"; -import { Long } from "../../../../helpers"; -/** - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - */ -export enum State { - /** STATE_UNINITIALIZED_UNSPECIFIED - Default State */ - STATE_UNINITIALIZED_UNSPECIFIED = 0, - /** STATE_INIT - A channel has just started the opening handshake. */ - STATE_INIT = 1, - /** STATE_TRYOPEN - A channel has acknowledged the handshake step on the counterparty chain. */ - STATE_TRYOPEN = 2, - /** - * STATE_OPEN - A channel has completed the handshake. Open channels are - * ready to send and receive packets. - */ - STATE_OPEN = 3, - /** - * STATE_CLOSED - A channel has been closed and can no longer be used to send or receive - * packets. - */ - STATE_CLOSED = 4, - UNRECOGNIZED = -1, -} -export const StateSDKType = State; -export const StateAmino = State; -export function stateFromJSON(object: any): State { - switch (object) { - case 0: - case "STATE_UNINITIALIZED_UNSPECIFIED": - return State.STATE_UNINITIALIZED_UNSPECIFIED; - case 1: - case "STATE_INIT": - return State.STATE_INIT; - case 2: - case "STATE_TRYOPEN": - return State.STATE_TRYOPEN; - case 3: - case "STATE_OPEN": - return State.STATE_OPEN; - case 4: - case "STATE_CLOSED": - return State.STATE_CLOSED; - case -1: - case "UNRECOGNIZED": - default: - return State.UNRECOGNIZED; - } -} -export function stateToJSON(object: State): string { - switch (object) { - case State.STATE_UNINITIALIZED_UNSPECIFIED: - return "STATE_UNINITIALIZED_UNSPECIFIED"; - case State.STATE_INIT: - return "STATE_INIT"; - case State.STATE_TRYOPEN: - return "STATE_TRYOPEN"; - case State.STATE_OPEN: - return "STATE_OPEN"; - case State.STATE_CLOSED: - return "STATE_CLOSED"; - case State.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** Order defines if a channel is ORDERED or UNORDERED */ -export enum Order { - /** ORDER_NONE_UNSPECIFIED - zero-value for channel ordering */ - ORDER_NONE_UNSPECIFIED = 0, - /** - * ORDER_UNORDERED - packets can be delivered in any order, which may differ from the order in - * which they were sent. - */ - ORDER_UNORDERED = 1, - /** ORDER_ORDERED - packets are delivered exactly in the order which they were sent */ - ORDER_ORDERED = 2, - UNRECOGNIZED = -1, -} -export const OrderSDKType = Order; -export const OrderAmino = Order; -export function orderFromJSON(object: any): Order { - switch (object) { - case 0: - case "ORDER_NONE_UNSPECIFIED": - return Order.ORDER_NONE_UNSPECIFIED; - case 1: - case "ORDER_UNORDERED": - return Order.ORDER_UNORDERED; - case 2: - case "ORDER_ORDERED": - return Order.ORDER_ORDERED; - case -1: - case "UNRECOGNIZED": - default: - return Order.UNRECOGNIZED; - } -} -export function orderToJSON(object: Order): string { - switch (object) { - case Order.ORDER_NONE_UNSPECIFIED: - return "ORDER_NONE_UNSPECIFIED"; - case Order.ORDER_UNORDERED: - return "ORDER_UNORDERED"; - case Order.ORDER_ORDERED: - return "ORDER_ORDERED"; - case Order.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - */ -export interface Channel { - /** current state of the channel end */ - state: State; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty: Counterparty; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connectionHops: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version: string; -} -export interface ChannelProtoMsg { - typeUrl: "/ibc.core.channel.v1.Channel"; - value: Uint8Array; -} -/** - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - */ -export interface ChannelAmino { - /** current state of the channel end */ - state: State; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty?: CounterpartyAmino; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version: string; -} -export interface ChannelAminoMsg { - type: "cosmos-sdk/Channel"; - value: ChannelAmino; -} -/** - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - */ -export interface ChannelSDKType { - state: State; - ordering: Order; - counterparty: CounterpartySDKType; - connection_hops: string[]; - version: string; -} -/** - * IdentifiedChannel defines a channel with additional port and channel - * identifier fields. - */ -export interface IdentifiedChannel { - /** current state of the channel end */ - state: State; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty: Counterparty; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connectionHops: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version: string; - /** port identifier */ - portId: string; - /** channel identifier */ - channelId: string; -} -export interface IdentifiedChannelProtoMsg { - typeUrl: "/ibc.core.channel.v1.IdentifiedChannel"; - value: Uint8Array; -} -/** - * IdentifiedChannel defines a channel with additional port and channel - * identifier fields. - */ -export interface IdentifiedChannelAmino { - /** current state of the channel end */ - state: State; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty?: CounterpartyAmino; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version: string; - /** port identifier */ - port_id: string; - /** channel identifier */ - channel_id: string; -} -export interface IdentifiedChannelAminoMsg { - type: "cosmos-sdk/IdentifiedChannel"; - value: IdentifiedChannelAmino; -} -/** - * IdentifiedChannel defines a channel with additional port and channel - * identifier fields. - */ -export interface IdentifiedChannelSDKType { - state: State; - ordering: Order; - counterparty: CounterpartySDKType; - connection_hops: string[]; - version: string; - port_id: string; - channel_id: string; -} -/** Counterparty defines a channel end counterparty */ -export interface Counterparty { - /** port on the counterparty chain which owns the other end of the channel. */ - portId: string; - /** channel end on the counterparty chain */ - channelId: string; -} -export interface CounterpartyProtoMsg { - typeUrl: "/ibc.core.channel.v1.Counterparty"; - value: Uint8Array; -} -/** Counterparty defines a channel end counterparty */ -export interface CounterpartyAmino { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id: string; - /** channel end on the counterparty chain */ - channel_id: string; -} -export interface CounterpartyAminoMsg { - type: "cosmos-sdk/Counterparty"; - value: CounterpartyAmino; -} -/** Counterparty defines a channel end counterparty */ -export interface CounterpartySDKType { - port_id: string; - channel_id: string; -} -/** Packet defines a type that carries data across different chains through IBC */ -export interface Packet { - /** - * number corresponds to the order of sends and receives, where a Packet - * with an earlier sequence number must be sent and received before a Packet - * with a later sequence number. - */ - sequence: Long; - /** identifies the port on the sending chain. */ - sourcePort: string; - /** identifies the channel end on the sending chain. */ - sourceChannel: string; - /** identifies the port on the receiving chain. */ - destinationPort: string; - /** identifies the channel end on the receiving chain. */ - destinationChannel: string; - /** actual opaque bytes transferred directly to the application module */ - data: Uint8Array; - /** block height after which the packet times out */ - timeoutHeight: Height; - /** block timestamp (in nanoseconds) after which the packet times out */ - timeoutTimestamp: Long; -} -export interface PacketProtoMsg { - typeUrl: "/ibc.core.channel.v1.Packet"; - value: Uint8Array; -} -/** Packet defines a type that carries data across different chains through IBC */ -export interface PacketAmino { - /** - * number corresponds to the order of sends and receives, where a Packet - * with an earlier sequence number must be sent and received before a Packet - * with a later sequence number. - */ - sequence: string; - /** identifies the port on the sending chain. */ - source_port: string; - /** identifies the channel end on the sending chain. */ - source_channel: string; - /** identifies the port on the receiving chain. */ - destination_port: string; - /** identifies the channel end on the receiving chain. */ - destination_channel: string; - /** actual opaque bytes transferred directly to the application module */ - data: Uint8Array; - /** block height after which the packet times out */ - timeout_height?: HeightAmino; - /** block timestamp (in nanoseconds) after which the packet times out */ - timeout_timestamp: string; -} -export interface PacketAminoMsg { - type: "cosmos-sdk/Packet"; - value: PacketAmino; -} -/** Packet defines a type that carries data across different chains through IBC */ -export interface PacketSDKType { - sequence: Long; - source_port: string; - source_channel: string; - destination_port: string; - destination_channel: string; - data: Uint8Array; - timeout_height: HeightSDKType; - timeout_timestamp: Long; -} -/** - * PacketState defines the generic type necessary to retrieve and store - * packet commitments, acknowledgements, and receipts. - * Caller is responsible for knowing the context necessary to interpret this - * state as a commitment, acknowledgement, or a receipt. - */ -export interface PacketState { - /** channel port identifier. */ - portId: string; - /** channel unique identifier. */ - channelId: string; - /** packet sequence. */ - sequence: Long; - /** embedded data that represents packet state. */ - data: Uint8Array; -} -export interface PacketStateProtoMsg { - typeUrl: "/ibc.core.channel.v1.PacketState"; - value: Uint8Array; -} -/** - * PacketState defines the generic type necessary to retrieve and store - * packet commitments, acknowledgements, and receipts. - * Caller is responsible for knowing the context necessary to interpret this - * state as a commitment, acknowledgement, or a receipt. - */ -export interface PacketStateAmino { - /** channel port identifier. */ - port_id: string; - /** channel unique identifier. */ - channel_id: string; - /** packet sequence. */ - sequence: string; - /** embedded data that represents packet state. */ - data: Uint8Array; -} -export interface PacketStateAminoMsg { - type: "cosmos-sdk/PacketState"; - value: PacketStateAmino; -} -/** - * PacketState defines the generic type necessary to retrieve and store - * packet commitments, acknowledgements, and receipts. - * Caller is responsible for knowing the context necessary to interpret this - * state as a commitment, acknowledgement, or a receipt. - */ -export interface PacketStateSDKType { - port_id: string; - channel_id: string; - sequence: Long; - data: Uint8Array; -} -/** - * Acknowledgement is the recommended acknowledgement format to be used by - * app-specific protocols. - * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental - * conflicts with other protobuf message formats used for acknowledgements. - * The first byte of any message with this format will be the non-ASCII values - * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: - * https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope - */ -export interface Acknowledgement { - result?: Uint8Array; - error?: string; -} -export interface AcknowledgementProtoMsg { - typeUrl: "/ibc.core.channel.v1.Acknowledgement"; - value: Uint8Array; -} -/** - * Acknowledgement is the recommended acknowledgement format to be used by - * app-specific protocols. - * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental - * conflicts with other protobuf message formats used for acknowledgements. - * The first byte of any message with this format will be the non-ASCII values - * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: - * https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope - */ -export interface AcknowledgementAmino { - result?: Uint8Array; - error?: string; -} -export interface AcknowledgementAminoMsg { - type: "cosmos-sdk/Acknowledgement"; - value: AcknowledgementAmino; -} -/** - * Acknowledgement is the recommended acknowledgement format to be used by - * app-specific protocols. - * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental - * conflicts with other protobuf message formats used for acknowledgements. - * The first byte of any message with this format will be the non-ASCII values - * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: - * https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope - */ -export interface AcknowledgementSDKType { - result?: Uint8Array; - error?: string; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/channel/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/channel/v1/genesis.ts deleted file mode 100644 index b75654ca4..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/channel/v1/genesis.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { - IdentifiedChannel, - IdentifiedChannelAmino, - IdentifiedChannelSDKType, - PacketState, - PacketStateAmino, - PacketStateSDKType, -} from "./channel"; -import { Long } from "../../../../helpers"; -/** GenesisState defines the ibc channel submodule's genesis state. */ -export interface GenesisState { - channels: IdentifiedChannel[]; - acknowledgements: PacketState[]; - commitments: PacketState[]; - receipts: PacketState[]; - sendSequences: PacketSequence[]; - recvSequences: PacketSequence[]; - ackSequences: PacketSequence[]; - /** the sequence for the next generated channel identifier */ - nextChannelSequence: Long; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.channel.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc channel submodule's genesis state. */ -export interface GenesisStateAmino { - channels: IdentifiedChannelAmino[]; - acknowledgements: PacketStateAmino[]; - commitments: PacketStateAmino[]; - receipts: PacketStateAmino[]; - send_sequences: PacketSequenceAmino[]; - recv_sequences: PacketSequenceAmino[]; - ack_sequences: PacketSequenceAmino[]; - /** the sequence for the next generated channel identifier */ - next_channel_sequence: string; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc channel submodule's genesis state. */ -export interface GenesisStateSDKType { - channels: IdentifiedChannelSDKType[]; - acknowledgements: PacketStateSDKType[]; - commitments: PacketStateSDKType[]; - receipts: PacketStateSDKType[]; - send_sequences: PacketSequenceSDKType[]; - recv_sequences: PacketSequenceSDKType[]; - ack_sequences: PacketSequenceSDKType[]; - next_channel_sequence: Long; -} -/** - * PacketSequence defines the genesis type necessary to retrieve and store - * next send and receive sequences. - */ -export interface PacketSequence { - portId: string; - channelId: string; - sequence: Long; -} -export interface PacketSequenceProtoMsg { - typeUrl: "/ibc.core.channel.v1.PacketSequence"; - value: Uint8Array; -} -/** - * PacketSequence defines the genesis type necessary to retrieve and store - * next send and receive sequences. - */ -export interface PacketSequenceAmino { - port_id: string; - channel_id: string; - sequence: string; -} -export interface PacketSequenceAminoMsg { - type: "cosmos-sdk/PacketSequence"; - value: PacketSequenceAmino; -} -/** - * PacketSequence defines the genesis type necessary to retrieve and store - * next send and receive sequences. - */ -export interface PacketSequenceSDKType { - port_id: string; - channel_id: string; - sequence: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/channel/v1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/channel/v1/tx.ts deleted file mode 100644 index bc36227ef..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/channel/v1/tx.ts +++ /dev/null @@ -1,550 +0,0 @@ -import { - Channel, - ChannelAmino, - ChannelSDKType, - Packet, - PacketAmino, - PacketSDKType, -} from "./channel"; -import { Height, HeightAmino, HeightSDKType } from "../../client/v1/client"; -import { Long } from "../../../../helpers"; -/** - * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It - * is called by a relayer on Chain A. - */ -export interface MsgChannelOpenInit { - portId: string; - channel: Channel; - signer: string; -} -export interface MsgChannelOpenInitProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit"; - value: Uint8Array; -} -/** - * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It - * is called by a relayer on Chain A. - */ -export interface MsgChannelOpenInitAmino { - port_id: string; - channel?: ChannelAmino; - signer: string; -} -export interface MsgChannelOpenInitAminoMsg { - type: "cosmos-sdk/MsgChannelOpenInit"; - value: MsgChannelOpenInitAmino; -} -/** - * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It - * is called by a relayer on Chain A. - */ -export interface MsgChannelOpenInitSDKType { - port_id: string; - channel: ChannelSDKType; - signer: string; -} -/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ -export interface MsgChannelOpenInitResponse {} -export interface MsgChannelOpenInitResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInitResponse"; - value: Uint8Array; -} -/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ -export interface MsgChannelOpenInitResponseAmino {} -export interface MsgChannelOpenInitResponseAminoMsg { - type: "cosmos-sdk/MsgChannelOpenInitResponse"; - value: MsgChannelOpenInitResponseAmino; -} -/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ -export interface MsgChannelOpenInitResponseSDKType {} -/** - * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel - * on Chain B. - */ -export interface MsgChannelOpenTry { - portId: string; - /** - * in the case of crossing hello's, when both chains call OpenInit, we need - * the channel identifier of the previous channel in state INIT - */ - previousChannelId: string; - channel: Channel; - counterpartyVersion: string; - proofInit: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgChannelOpenTryProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry"; - value: Uint8Array; -} -/** - * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel - * on Chain B. - */ -export interface MsgChannelOpenTryAmino { - port_id: string; - /** - * in the case of crossing hello's, when both chains call OpenInit, we need - * the channel identifier of the previous channel in state INIT - */ - previous_channel_id: string; - channel?: ChannelAmino; - counterparty_version: string; - proof_init: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgChannelOpenTryAminoMsg { - type: "cosmos-sdk/MsgChannelOpenTry"; - value: MsgChannelOpenTryAmino; -} -/** - * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel - * on Chain B. - */ -export interface MsgChannelOpenTrySDKType { - port_id: string; - previous_channel_id: string; - channel: ChannelSDKType; - counterparty_version: string; - proof_init: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ -export interface MsgChannelOpenTryResponse {} -export interface MsgChannelOpenTryResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTryResponse"; - value: Uint8Array; -} -/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ -export interface MsgChannelOpenTryResponseAmino {} -export interface MsgChannelOpenTryResponseAminoMsg { - type: "cosmos-sdk/MsgChannelOpenTryResponse"; - value: MsgChannelOpenTryResponseAmino; -} -/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ -export interface MsgChannelOpenTryResponseSDKType {} -/** - * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge - * the change of channel state to TRYOPEN on Chain B. - */ -export interface MsgChannelOpenAck { - portId: string; - channelId: string; - counterpartyChannelId: string; - counterpartyVersion: string; - proofTry: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgChannelOpenAckProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck"; - value: Uint8Array; -} -/** - * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge - * the change of channel state to TRYOPEN on Chain B. - */ -export interface MsgChannelOpenAckAmino { - port_id: string; - channel_id: string; - counterparty_channel_id: string; - counterparty_version: string; - proof_try: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgChannelOpenAckAminoMsg { - type: "cosmos-sdk/MsgChannelOpenAck"; - value: MsgChannelOpenAckAmino; -} -/** - * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge - * the change of channel state to TRYOPEN on Chain B. - */ -export interface MsgChannelOpenAckSDKType { - port_id: string; - channel_id: string; - counterparty_channel_id: string; - counterparty_version: string; - proof_try: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ -export interface MsgChannelOpenAckResponse {} -export interface MsgChannelOpenAckResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAckResponse"; - value: Uint8Array; -} -/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ -export interface MsgChannelOpenAckResponseAmino {} -export interface MsgChannelOpenAckResponseAminoMsg { - type: "cosmos-sdk/MsgChannelOpenAckResponse"; - value: MsgChannelOpenAckResponseAmino; -} -/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ -export interface MsgChannelOpenAckResponseSDKType {} -/** - * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of channel state to OPEN on Chain A. - */ -export interface MsgChannelOpenConfirm { - portId: string; - channelId: string; - proofAck: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgChannelOpenConfirmProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm"; - value: Uint8Array; -} -/** - * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of channel state to OPEN on Chain A. - */ -export interface MsgChannelOpenConfirmAmino { - port_id: string; - channel_id: string; - proof_ack: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgChannelOpenConfirmAminoMsg { - type: "cosmos-sdk/MsgChannelOpenConfirm"; - value: MsgChannelOpenConfirmAmino; -} -/** - * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of channel state to OPEN on Chain A. - */ -export interface MsgChannelOpenConfirmSDKType { - port_id: string; - channel_id: string; - proof_ack: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** - * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response - * type. - */ -export interface MsgChannelOpenConfirmResponse {} -export interface MsgChannelOpenConfirmResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse"; - value: Uint8Array; -} -/** - * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response - * type. - */ -export interface MsgChannelOpenConfirmResponseAmino {} -export interface MsgChannelOpenConfirmResponseAminoMsg { - type: "cosmos-sdk/MsgChannelOpenConfirmResponse"; - value: MsgChannelOpenConfirmResponseAmino; -} -/** - * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response - * type. - */ -export interface MsgChannelOpenConfirmResponseSDKType {} -/** - * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - * to close a channel with Chain B. - */ -export interface MsgChannelCloseInit { - portId: string; - channelId: string; - signer: string; -} -export interface MsgChannelCloseInitProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit"; - value: Uint8Array; -} -/** - * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - * to close a channel with Chain B. - */ -export interface MsgChannelCloseInitAmino { - port_id: string; - channel_id: string; - signer: string; -} -export interface MsgChannelCloseInitAminoMsg { - type: "cosmos-sdk/MsgChannelCloseInit"; - value: MsgChannelCloseInitAmino; -} -/** - * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - * to close a channel with Chain B. - */ -export interface MsgChannelCloseInitSDKType { - port_id: string; - channel_id: string; - signer: string; -} -/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ -export interface MsgChannelCloseInitResponse {} -export interface MsgChannelCloseInitResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInitResponse"; - value: Uint8Array; -} -/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ -export interface MsgChannelCloseInitResponseAmino {} -export interface MsgChannelCloseInitResponseAminoMsg { - type: "cosmos-sdk/MsgChannelCloseInitResponse"; - value: MsgChannelCloseInitResponseAmino; -} -/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ -export interface MsgChannelCloseInitResponseSDKType {} -/** - * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - * to acknowledge the change of channel state to CLOSED on Chain A. - */ -export interface MsgChannelCloseConfirm { - portId: string; - channelId: string; - proofInit: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgChannelCloseConfirmProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm"; - value: Uint8Array; -} -/** - * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - * to acknowledge the change of channel state to CLOSED on Chain A. - */ -export interface MsgChannelCloseConfirmAmino { - port_id: string; - channel_id: string; - proof_init: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgChannelCloseConfirmAminoMsg { - type: "cosmos-sdk/MsgChannelCloseConfirm"; - value: MsgChannelCloseConfirmAmino; -} -/** - * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - * to acknowledge the change of channel state to CLOSED on Chain A. - */ -export interface MsgChannelCloseConfirmSDKType { - port_id: string; - channel_id: string; - proof_init: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** - * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response - * type. - */ -export interface MsgChannelCloseConfirmResponse {} -export interface MsgChannelCloseConfirmResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse"; - value: Uint8Array; -} -/** - * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response - * type. - */ -export interface MsgChannelCloseConfirmResponseAmino {} -export interface MsgChannelCloseConfirmResponseAminoMsg { - type: "cosmos-sdk/MsgChannelCloseConfirmResponse"; - value: MsgChannelCloseConfirmResponseAmino; -} -/** - * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response - * type. - */ -export interface MsgChannelCloseConfirmResponseSDKType {} -/** MsgRecvPacket receives incoming IBC packet */ -export interface MsgRecvPacket { - packet: Packet; - proofCommitment: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgRecvPacketProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgRecvPacket"; - value: Uint8Array; -} -/** MsgRecvPacket receives incoming IBC packet */ -export interface MsgRecvPacketAmino { - packet?: PacketAmino; - proof_commitment: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgRecvPacketAminoMsg { - type: "cosmos-sdk/MsgRecvPacket"; - value: MsgRecvPacketAmino; -} -/** MsgRecvPacket receives incoming IBC packet */ -export interface MsgRecvPacketSDKType { - packet: PacketSDKType; - proof_commitment: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ -export interface MsgRecvPacketResponse {} -export interface MsgRecvPacketResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgRecvPacketResponse"; - value: Uint8Array; -} -/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ -export interface MsgRecvPacketResponseAmino {} -export interface MsgRecvPacketResponseAminoMsg { - type: "cosmos-sdk/MsgRecvPacketResponse"; - value: MsgRecvPacketResponseAmino; -} -/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ -export interface MsgRecvPacketResponseSDKType {} -/** MsgTimeout receives timed-out packet */ -export interface MsgTimeout { - packet: Packet; - proofUnreceived: Uint8Array; - proofHeight: Height; - nextSequenceRecv: Long; - signer: string; -} -export interface MsgTimeoutProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgTimeout"; - value: Uint8Array; -} -/** MsgTimeout receives timed-out packet */ -export interface MsgTimeoutAmino { - packet?: PacketAmino; - proof_unreceived: Uint8Array; - proof_height?: HeightAmino; - next_sequence_recv: string; - signer: string; -} -export interface MsgTimeoutAminoMsg { - type: "cosmos-sdk/MsgTimeout"; - value: MsgTimeoutAmino; -} -/** MsgTimeout receives timed-out packet */ -export interface MsgTimeoutSDKType { - packet: PacketSDKType; - proof_unreceived: Uint8Array; - proof_height: HeightSDKType; - next_sequence_recv: Long; - signer: string; -} -/** MsgTimeoutResponse defines the Msg/Timeout response type. */ -export interface MsgTimeoutResponse {} -export interface MsgTimeoutResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgTimeoutResponse"; - value: Uint8Array; -} -/** MsgTimeoutResponse defines the Msg/Timeout response type. */ -export interface MsgTimeoutResponseAmino {} -export interface MsgTimeoutResponseAminoMsg { - type: "cosmos-sdk/MsgTimeoutResponse"; - value: MsgTimeoutResponseAmino; -} -/** MsgTimeoutResponse defines the Msg/Timeout response type. */ -export interface MsgTimeoutResponseSDKType {} -/** MsgTimeoutOnClose timed-out packet upon counterparty channel closure. */ -export interface MsgTimeoutOnClose { - packet: Packet; - proofUnreceived: Uint8Array; - proofClose: Uint8Array; - proofHeight: Height; - nextSequenceRecv: Long; - signer: string; -} -export interface MsgTimeoutOnCloseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose"; - value: Uint8Array; -} -/** MsgTimeoutOnClose timed-out packet upon counterparty channel closure. */ -export interface MsgTimeoutOnCloseAmino { - packet?: PacketAmino; - proof_unreceived: Uint8Array; - proof_close: Uint8Array; - proof_height?: HeightAmino; - next_sequence_recv: string; - signer: string; -} -export interface MsgTimeoutOnCloseAminoMsg { - type: "cosmos-sdk/MsgTimeoutOnClose"; - value: MsgTimeoutOnCloseAmino; -} -/** MsgTimeoutOnClose timed-out packet upon counterparty channel closure. */ -export interface MsgTimeoutOnCloseSDKType { - packet: PacketSDKType; - proof_unreceived: Uint8Array; - proof_close: Uint8Array; - proof_height: HeightSDKType; - next_sequence_recv: Long; - signer: string; -} -/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ -export interface MsgTimeoutOnCloseResponse {} -export interface MsgTimeoutOnCloseResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse"; - value: Uint8Array; -} -/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ -export interface MsgTimeoutOnCloseResponseAmino {} -export interface MsgTimeoutOnCloseResponseAminoMsg { - type: "cosmos-sdk/MsgTimeoutOnCloseResponse"; - value: MsgTimeoutOnCloseResponseAmino; -} -/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ -export interface MsgTimeoutOnCloseResponseSDKType {} -/** MsgAcknowledgement receives incoming IBC acknowledgement */ -export interface MsgAcknowledgement { - packet: Packet; - acknowledgement: Uint8Array; - proofAcked: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgAcknowledgementProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement"; - value: Uint8Array; -} -/** MsgAcknowledgement receives incoming IBC acknowledgement */ -export interface MsgAcknowledgementAmino { - packet?: PacketAmino; - acknowledgement: Uint8Array; - proof_acked: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgAcknowledgementAminoMsg { - type: "cosmos-sdk/MsgAcknowledgement"; - value: MsgAcknowledgementAmino; -} -/** MsgAcknowledgement receives incoming IBC acknowledgement */ -export interface MsgAcknowledgementSDKType { - packet: PacketSDKType; - acknowledgement: Uint8Array; - proof_acked: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ -export interface MsgAcknowledgementResponse {} -export interface MsgAcknowledgementResponseProtoMsg { - typeUrl: "/ibc.core.channel.v1.MsgAcknowledgementResponse"; - value: Uint8Array; -} -/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ -export interface MsgAcknowledgementResponseAmino {} -export interface MsgAcknowledgementResponseAminoMsg { - type: "cosmos-sdk/MsgAcknowledgementResponse"; - value: MsgAcknowledgementResponseAmino; -} -/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ -export interface MsgAcknowledgementResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/client/v1/client.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/client/v1/client.ts deleted file mode 100644 index a07af4ceb..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/client/v1/client.ts +++ /dev/null @@ -1,309 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - Plan, - PlanAmino, - PlanSDKType, -} from "../../../../cosmos/upgrade/v1beta1/upgrade"; -import { Long } from "../../../../helpers"; -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientState { - /** client identifier */ - clientId: string; - /** client state */ - clientState: Any; -} -export interface IdentifiedClientStateProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState"; - value: Uint8Array; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateAmino { - /** client identifier */ - client_id: string; - /** client state */ - client_state?: AnyAmino; -} -export interface IdentifiedClientStateAminoMsg { - type: "cosmos-sdk/IdentifiedClientState"; - value: IdentifiedClientStateAmino; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateSDKType { - client_id: string; - client_state: AnySDKType; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeight { - /** consensus state height */ - height: Height; - /** consensus state */ - consensusState: Any; -} -export interface ConsensusStateWithHeightProtoMsg { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight"; - value: Uint8Array; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightAmino { - /** consensus state height */ - height?: HeightAmino; - /** consensus state */ - consensus_state?: AnyAmino; -} -export interface ConsensusStateWithHeightAminoMsg { - type: "cosmos-sdk/ConsensusStateWithHeight"; - value: ConsensusStateWithHeightAmino; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightSDKType { - height: HeightSDKType; - consensus_state: AnySDKType; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStates { - /** client identifier */ - clientId: string; - /** consensus states and their heights associated with the client */ - consensusStates: ConsensusStateWithHeight[]; -} -export interface ClientConsensusStatesProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates"; - value: Uint8Array; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesAmino { - /** client identifier */ - client_id: string; - /** consensus states and their heights associated with the client */ - consensus_states: ConsensusStateWithHeightAmino[]; -} -export interface ClientConsensusStatesAminoMsg { - type: "cosmos-sdk/ClientConsensusStates"; - value: ClientConsensusStatesAmino; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesSDKType { - client_id: string; - consensus_states: ConsensusStateWithHeightSDKType[]; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposal { - /** the title of the update proposal */ - title: string; - /** the description of the proposal */ - description: string; - /** the client identifier for the client to be updated if the proposal passes */ - subjectClientId: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substituteClientId: string; -} -export interface ClientUpdateProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal"; - value: Uint8Array; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalAmino { - /** the title of the update proposal */ - title: string; - /** the description of the proposal */ - description: string; - /** the client identifier for the client to be updated if the proposal passes */ - subject_client_id: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substitute_client_id: string; -} -export interface ClientUpdateProposalAminoMsg { - type: "cosmos-sdk/ClientUpdateProposal"; - value: ClientUpdateProposalAmino; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalSDKType { - title: string; - description: string; - subject_client_id: string; - substitute_client_id: string; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposal { - title: string; - description: string; - plan: Plan; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgradedClientState: Any; -} -export interface UpgradeProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.UpgradeProposal"; - value: Uint8Array; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalAmino { - title: string; - description: string; - plan?: PlanAmino; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgraded_client_state?: AnyAmino; -} -export interface UpgradeProposalAminoMsg { - type: "cosmos-sdk/UpgradeProposal"; - value: UpgradeProposalAmino; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalSDKType { - title: string; - description: string; - plan: PlanSDKType; - upgraded_client_state: AnySDKType; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface Height { - /** the revision that the client is currently on */ - revisionNumber: Long; - /** the height within the given revision */ - revisionHeight: Long; -} -export interface HeightProtoMsg { - typeUrl: "/ibc.core.client.v1.Height"; - value: Uint8Array; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightAmino { - /** the revision that the client is currently on */ - revision_number: string; - /** the height within the given revision */ - revision_height: string; -} -export interface HeightAminoMsg { - type: "cosmos-sdk/Height"; - value: HeightAmino; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightSDKType { - revision_number: Long; - revision_height: Long; -} -/** Params defines the set of IBC light client parameters. */ -export interface Params { - /** allowed_clients defines the list of allowed client state types. */ - allowedClients: string[]; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.core.client.v1.Params"; - value: Uint8Array; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsAmino { - /** allowed_clients defines the list of allowed client state types. */ - allowed_clients: string[]; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsSDKType { - allowed_clients: string[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/client/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/client/v1/genesis.ts deleted file mode 100644 index 7ba45c9e9..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/client/v1/genesis.ts +++ /dev/null @@ -1,125 +0,0 @@ -import { - IdentifiedClientState, - IdentifiedClientStateAmino, - IdentifiedClientStateSDKType, - ClientConsensusStates, - ClientConsensusStatesAmino, - ClientConsensusStatesSDKType, - Params, - ParamsAmino, - ParamsSDKType, -} from "./client"; -import { Long } from "../../../../helpers"; -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisState { - /** client states with their corresponding identifiers */ - clients: IdentifiedClientState[]; - /** consensus states from each client */ - clientsConsensus: ClientConsensusStates[]; - /** metadata from each client */ - clientsMetadata: IdentifiedGenesisMetadata[]; - params: Params; - /** create localhost on initialization */ - createLocalhost: boolean; - /** the sequence for the next generated client identifier */ - nextClientSequence: Long; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateAmino { - /** client states with their corresponding identifiers */ - clients: IdentifiedClientStateAmino[]; - /** consensus states from each client */ - clients_consensus: ClientConsensusStatesAmino[]; - /** metadata from each client */ - clients_metadata: IdentifiedGenesisMetadataAmino[]; - params?: ParamsAmino; - /** create localhost on initialization */ - create_localhost: boolean; - /** the sequence for the next generated client identifier */ - next_client_sequence: string; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateSDKType { - clients: IdentifiedClientStateSDKType[]; - clients_consensus: ClientConsensusStatesSDKType[]; - clients_metadata: IdentifiedGenesisMetadataSDKType[]; - params: ParamsSDKType; - create_localhost: boolean; - next_client_sequence: Long; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadata { - /** store key of metadata without clientID-prefix */ - key: Uint8Array; - /** metadata value */ - value: Uint8Array; -} -export interface GenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisMetadata"; - value: Uint8Array; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataAmino { - /** store key of metadata without clientID-prefix */ - key: Uint8Array; - /** metadata value */ - value: Uint8Array; -} -export interface GenesisMetadataAminoMsg { - type: "cosmos-sdk/GenesisMetadata"; - value: GenesisMetadataAmino; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadata { - clientId: string; - clientMetadata: GenesisMetadata[]; -} -export interface IdentifiedGenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata"; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataAmino { - client_id: string; - client_metadata: GenesisMetadataAmino[]; -} -export interface IdentifiedGenesisMetadataAminoMsg { - type: "cosmos-sdk/IdentifiedGenesisMetadata"; - value: IdentifiedGenesisMetadataAmino; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataSDKType { - client_id: string; - client_metadata: GenesisMetadataSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/client/v1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/client/v1/tx.ts deleted file mode 100644 index 72513a258..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/client/v1/tx.ts +++ /dev/null @@ -1,248 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClient { - /** light client state */ - clientState: Any; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensusState: Any; - /** signer address */ - signer: string; -} -export interface MsgCreateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClient"; - value: Uint8Array; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientAmino { - /** light client state */ - client_state?: AnyAmino; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensus_state?: AnyAmino; - /** signer address */ - signer: string; -} -export interface MsgCreateClientAminoMsg { - type: "cosmos-sdk/MsgCreateClient"; - value: MsgCreateClientAmino; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientSDKType { - client_state: AnySDKType; - consensus_state: AnySDKType; - signer: string; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponse {} -export interface MsgCreateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse"; - value: Uint8Array; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseAmino {} -export interface MsgCreateClientResponseAminoMsg { - type: "cosmos-sdk/MsgCreateClientResponse"; - value: MsgCreateClientResponseAmino; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseSDKType {} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given header. - */ -export interface MsgUpdateClient { - /** client unique identifier */ - clientId: string; - /** header to update the light client */ - header: Any; - /** signer address */ - signer: string; -} -export interface MsgUpdateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient"; - value: Uint8Array; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given header. - */ -export interface MsgUpdateClientAmino { - /** client unique identifier */ - client_id: string; - /** header to update the light client */ - header?: AnyAmino; - /** signer address */ - signer: string; -} -export interface MsgUpdateClientAminoMsg { - type: "cosmos-sdk/MsgUpdateClient"; - value: MsgUpdateClientAmino; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given header. - */ -export interface MsgUpdateClientSDKType { - client_id: string; - header: AnySDKType; - signer: string; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponse {} -export interface MsgUpdateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse"; - value: Uint8Array; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseAmino {} -export interface MsgUpdateClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateClientResponse"; - value: MsgUpdateClientResponseAmino; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseSDKType {} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClient { - /** client unique identifier */ - clientId: string; - /** upgraded client state */ - clientState: Any; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensusState: Any; - /** proof that old chain committed to new client */ - proofUpgradeClient: Uint8Array; - /** proof that old chain committed to new consensus state */ - proofUpgradeConsensusState: Uint8Array; - /** signer address */ - signer: string; -} -export interface MsgUpgradeClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient"; - value: Uint8Array; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientAmino { - /** client unique identifier */ - client_id: string; - /** upgraded client state */ - client_state?: AnyAmino; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensus_state?: AnyAmino; - /** proof that old chain committed to new client */ - proof_upgrade_client: Uint8Array; - /** proof that old chain committed to new consensus state */ - proof_upgrade_consensus_state: Uint8Array; - /** signer address */ - signer: string; -} -export interface MsgUpgradeClientAminoMsg { - type: "cosmos-sdk/MsgUpgradeClient"; - value: MsgUpgradeClientAmino; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientSDKType { - client_id: string; - client_state: AnySDKType; - consensus_state: AnySDKType; - proof_upgrade_client: Uint8Array; - proof_upgrade_consensus_state: Uint8Array; - signer: string; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponse {} -export interface MsgUpgradeClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse"; - value: Uint8Array; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseAmino {} -export interface MsgUpgradeClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpgradeClientResponse"; - value: MsgUpgradeClientResponseAmino; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseSDKType {} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - */ -export interface MsgSubmitMisbehaviour { - /** client unique identifier */ - clientId: string; - /** misbehaviour used for freezing the light client */ - misbehaviour: Any; - /** signer address */ - signer: string; -} -export interface MsgSubmitMisbehaviourProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - */ -export interface MsgSubmitMisbehaviourAmino { - /** client unique identifier */ - client_id: string; - /** misbehaviour used for freezing the light client */ - misbehaviour?: AnyAmino; - /** signer address */ - signer: string; -} -export interface MsgSubmitMisbehaviourAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviour"; - value: MsgSubmitMisbehaviourAmino; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - */ -export interface MsgSubmitMisbehaviourSDKType { - client_id: string; - misbehaviour: AnySDKType; - signer: string; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponse {} -export interface MsgSubmitMisbehaviourResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseAmino {} -export interface MsgSubmitMisbehaviourResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviourResponse"; - value: MsgSubmitMisbehaviourResponseAmino; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/commitment/v1/commitment.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/commitment/v1/commitment.ts deleted file mode 100644 index cc0c433b1..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/commitment/v1/commitment.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { - CommitmentProof, - CommitmentProofAmino, - CommitmentProofSDKType, -} from "../../../../confio/proofs"; -/** - * MerkleRoot defines a merkle root hash. - * In the Cosmos SDK, the AppHash of a block header becomes the root. - */ -export interface MerkleRoot { - hash: Uint8Array; -} -export interface MerkleRootProtoMsg { - typeUrl: "/ibc.core.commitment.v1.MerkleRoot"; - value: Uint8Array; -} -/** - * MerkleRoot defines a merkle root hash. - * In the Cosmos SDK, the AppHash of a block header becomes the root. - */ -export interface MerkleRootAmino { - hash: Uint8Array; -} -export interface MerkleRootAminoMsg { - type: "cosmos-sdk/MerkleRoot"; - value: MerkleRootAmino; -} -/** - * MerkleRoot defines a merkle root hash. - * In the Cosmos SDK, the AppHash of a block header becomes the root. - */ -export interface MerkleRootSDKType { - hash: Uint8Array; -} -/** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - */ -export interface MerklePrefix { - keyPrefix: Uint8Array; -} -export interface MerklePrefixProtoMsg { - typeUrl: "/ibc.core.commitment.v1.MerklePrefix"; - value: Uint8Array; -} -/** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - */ -export interface MerklePrefixAmino { - key_prefix: Uint8Array; -} -export interface MerklePrefixAminoMsg { - type: "cosmos-sdk/MerklePrefix"; - value: MerklePrefixAmino; -} -/** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - */ -export interface MerklePrefixSDKType { - key_prefix: Uint8Array; -} -/** - * MerklePath is the path used to verify commitment proofs, which can be an - * arbitrary structured object (defined by a commitment type). - * MerklePath is represented from root-to-leaf - */ -export interface MerklePath { - keyPath: string[]; -} -export interface MerklePathProtoMsg { - typeUrl: "/ibc.core.commitment.v1.MerklePath"; - value: Uint8Array; -} -/** - * MerklePath is the path used to verify commitment proofs, which can be an - * arbitrary structured object (defined by a commitment type). - * MerklePath is represented from root-to-leaf - */ -export interface MerklePathAmino { - key_path: string[]; -} -export interface MerklePathAminoMsg { - type: "cosmos-sdk/MerklePath"; - value: MerklePathAmino; -} -/** - * MerklePath is the path used to verify commitment proofs, which can be an - * arbitrary structured object (defined by a commitment type). - * MerklePath is represented from root-to-leaf - */ -export interface MerklePathSDKType { - key_path: string[]; -} -/** - * MerkleProof is a wrapper type over a chain of CommitmentProofs. - * It demonstrates membership or non-membership for an element or set of - * elements, verifiable in conjunction with a known commitment root. Proofs - * should be succinct. - * MerkleProofs are ordered from leaf-to-root - */ -export interface MerkleProof { - proofs: CommitmentProof[]; -} -export interface MerkleProofProtoMsg { - typeUrl: "/ibc.core.commitment.v1.MerkleProof"; - value: Uint8Array; -} -/** - * MerkleProof is a wrapper type over a chain of CommitmentProofs. - * It demonstrates membership or non-membership for an element or set of - * elements, verifiable in conjunction with a known commitment root. Proofs - * should be succinct. - * MerkleProofs are ordered from leaf-to-root - */ -export interface MerkleProofAmino { - proofs: CommitmentProofAmino[]; -} -export interface MerkleProofAminoMsg { - type: "cosmos-sdk/MerkleProof"; - value: MerkleProofAmino; -} -/** - * MerkleProof is a wrapper type over a chain of CommitmentProofs. - * It demonstrates membership or non-membership for an element or set of - * elements, verifiable in conjunction with a known commitment root. Proofs - * should be succinct. - * MerkleProofs are ordered from leaf-to-root - */ -export interface MerkleProofSDKType { - proofs: CommitmentProofSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/connection/v1/connection.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/connection/v1/connection.ts deleted file mode 100644 index b6e59993b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/connection/v1/connection.ts +++ /dev/null @@ -1,353 +0,0 @@ -import { - MerklePrefix, - MerklePrefixAmino, - MerklePrefixSDKType, -} from "../../commitment/v1/commitment"; -import { Long } from "../../../../helpers"; -/** - * State defines if a connection is in one of the following states: - * INIT, TRYOPEN, OPEN or UNINITIALIZED. - */ -export enum State { - /** STATE_UNINITIALIZED_UNSPECIFIED - Default State */ - STATE_UNINITIALIZED_UNSPECIFIED = 0, - /** STATE_INIT - A connection end has just started the opening handshake. */ - STATE_INIT = 1, - /** - * STATE_TRYOPEN - A connection end has acknowledged the handshake step on the counterparty - * chain. - */ - STATE_TRYOPEN = 2, - /** STATE_OPEN - A connection end has completed the handshake. */ - STATE_OPEN = 3, - UNRECOGNIZED = -1, -} -export const StateSDKType = State; -export const StateAmino = State; -export function stateFromJSON(object: any): State { - switch (object) { - case 0: - case "STATE_UNINITIALIZED_UNSPECIFIED": - return State.STATE_UNINITIALIZED_UNSPECIFIED; - case 1: - case "STATE_INIT": - return State.STATE_INIT; - case 2: - case "STATE_TRYOPEN": - return State.STATE_TRYOPEN; - case 3: - case "STATE_OPEN": - return State.STATE_OPEN; - case -1: - case "UNRECOGNIZED": - default: - return State.UNRECOGNIZED; - } -} -export function stateToJSON(object: State): string { - switch (object) { - case State.STATE_UNINITIALIZED_UNSPECIFIED: - return "STATE_UNINITIALIZED_UNSPECIFIED"; - case State.STATE_INIT: - return "STATE_INIT"; - case State.STATE_TRYOPEN: - return "STATE_TRYOPEN"; - case State.STATE_OPEN: - return "STATE_OPEN"; - case State.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - */ -export interface ConnectionEnd { - /** client associated with this connection. */ - clientId: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection. - */ - versions: Version[]; - /** current state of the connection end. */ - state: State; - /** counterparty chain associated with this connection. */ - counterparty: Counterparty; - /** - * delay period that must pass before a consensus state can be used for - * packet-verification NOTE: delay period logic is only implemented by some - * clients. - */ - delayPeriod: Long; -} -export interface ConnectionEndProtoMsg { - typeUrl: "/ibc.core.connection.v1.ConnectionEnd"; - value: Uint8Array; -} -/** - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - */ -export interface ConnectionEndAmino { - /** client associated with this connection. */ - client_id: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection. - */ - versions: VersionAmino[]; - /** current state of the connection end. */ - state: State; - /** counterparty chain associated with this connection. */ - counterparty?: CounterpartyAmino; - /** - * delay period that must pass before a consensus state can be used for - * packet-verification NOTE: delay period logic is only implemented by some - * clients. - */ - delay_period: string; -} -export interface ConnectionEndAminoMsg { - type: "cosmos-sdk/ConnectionEnd"; - value: ConnectionEndAmino; -} -/** - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - */ -export interface ConnectionEndSDKType { - client_id: string; - versions: VersionSDKType[]; - state: State; - counterparty: CounterpartySDKType; - delay_period: Long; -} -/** - * IdentifiedConnection defines a connection with additional connection - * identifier field. - */ -export interface IdentifiedConnection { - /** connection identifier. */ - id: string; - /** client associated with this connection. */ - clientId: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection - */ - versions: Version[]; - /** current state of the connection end. */ - state: State; - /** counterparty chain associated with this connection. */ - counterparty: Counterparty; - /** delay period associated with this connection. */ - delayPeriod: Long; -} -export interface IdentifiedConnectionProtoMsg { - typeUrl: "/ibc.core.connection.v1.IdentifiedConnection"; - value: Uint8Array; -} -/** - * IdentifiedConnection defines a connection with additional connection - * identifier field. - */ -export interface IdentifiedConnectionAmino { - /** connection identifier. */ - id: string; - /** client associated with this connection. */ - client_id: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection - */ - versions: VersionAmino[]; - /** current state of the connection end. */ - state: State; - /** counterparty chain associated with this connection. */ - counterparty?: CounterpartyAmino; - /** delay period associated with this connection. */ - delay_period: string; -} -export interface IdentifiedConnectionAminoMsg { - type: "cosmos-sdk/IdentifiedConnection"; - value: IdentifiedConnectionAmino; -} -/** - * IdentifiedConnection defines a connection with additional connection - * identifier field. - */ -export interface IdentifiedConnectionSDKType { - id: string; - client_id: string; - versions: VersionSDKType[]; - state: State; - counterparty: CounterpartySDKType; - delay_period: Long; -} -/** Counterparty defines the counterparty chain associated with a connection end. */ -export interface Counterparty { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - clientId: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connectionId: string; - /** commitment merkle prefix of the counterparty chain. */ - prefix: MerklePrefix; -} -export interface CounterpartyProtoMsg { - typeUrl: "/ibc.core.connection.v1.Counterparty"; - value: Uint8Array; -} -/** Counterparty defines the counterparty chain associated with a connection end. */ -export interface CounterpartyAmino { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - client_id: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connection_id: string; - /** commitment merkle prefix of the counterparty chain. */ - prefix?: MerklePrefixAmino; -} -export interface CounterpartyAminoMsg { - type: "cosmos-sdk/Counterparty"; - value: CounterpartyAmino; -} -/** Counterparty defines the counterparty chain associated with a connection end. */ -export interface CounterpartySDKType { - client_id: string; - connection_id: string; - prefix: MerklePrefixSDKType; -} -/** ClientPaths define all the connection paths for a client state. */ -export interface ClientPaths { - /** list of connection paths */ - paths: string[]; -} -export interface ClientPathsProtoMsg { - typeUrl: "/ibc.core.connection.v1.ClientPaths"; - value: Uint8Array; -} -/** ClientPaths define all the connection paths for a client state. */ -export interface ClientPathsAmino { - /** list of connection paths */ - paths: string[]; -} -export interface ClientPathsAminoMsg { - type: "cosmos-sdk/ClientPaths"; - value: ClientPathsAmino; -} -/** ClientPaths define all the connection paths for a client state. */ -export interface ClientPathsSDKType { - paths: string[]; -} -/** ConnectionPaths define all the connection paths for a given client state. */ -export interface ConnectionPaths { - /** client state unique identifier */ - clientId: string; - /** list of connection paths */ - paths: string[]; -} -export interface ConnectionPathsProtoMsg { - typeUrl: "/ibc.core.connection.v1.ConnectionPaths"; - value: Uint8Array; -} -/** ConnectionPaths define all the connection paths for a given client state. */ -export interface ConnectionPathsAmino { - /** client state unique identifier */ - client_id: string; - /** list of connection paths */ - paths: string[]; -} -export interface ConnectionPathsAminoMsg { - type: "cosmos-sdk/ConnectionPaths"; - value: ConnectionPathsAmino; -} -/** ConnectionPaths define all the connection paths for a given client state. */ -export interface ConnectionPathsSDKType { - client_id: string; - paths: string[]; -} -/** - * Version defines the versioning scheme used to negotiate the IBC verison in - * the connection handshake. - */ -export interface Version { - /** unique version identifier */ - identifier: string; - /** list of features compatible with the specified identifier */ - features: string[]; -} -export interface VersionProtoMsg { - typeUrl: "/ibc.core.connection.v1.Version"; - value: Uint8Array; -} -/** - * Version defines the versioning scheme used to negotiate the IBC verison in - * the connection handshake. - */ -export interface VersionAmino { - /** unique version identifier */ - identifier: string; - /** list of features compatible with the specified identifier */ - features: string[]; -} -export interface VersionAminoMsg { - type: "cosmos-sdk/Version"; - value: VersionAmino; -} -/** - * Version defines the versioning scheme used to negotiate the IBC verison in - * the connection handshake. - */ -export interface VersionSDKType { - identifier: string; - features: string[]; -} -/** Params defines the set of Connection parameters. */ -export interface Params { - /** - * maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the - * largest amount of time that the chain might reasonably take to produce the next block under normal operating - * conditions. A safe choice is 3-5x the expected time per block. - */ - maxExpectedTimePerBlock: Long; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.core.connection.v1.Params"; - value: Uint8Array; -} -/** Params defines the set of Connection parameters. */ -export interface ParamsAmino { - /** - * maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the - * largest amount of time that the chain might reasonably take to produce the next block under normal operating - * conditions. A safe choice is 3-5x the expected time per block. - */ - max_expected_time_per_block: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of Connection parameters. */ -export interface ParamsSDKType { - max_expected_time_per_block: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/connection/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/connection/v1/genesis.ts deleted file mode 100644 index 2feda8826..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/connection/v1/genesis.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { - IdentifiedConnection, - IdentifiedConnectionAmino, - IdentifiedConnectionSDKType, - ConnectionPaths, - ConnectionPathsAmino, - ConnectionPathsSDKType, - Params, - ParamsAmino, - ParamsSDKType, -} from "./connection"; -import { Long } from "../../../../helpers"; -/** GenesisState defines the ibc connection submodule's genesis state. */ -export interface GenesisState { - connections: IdentifiedConnection[]; - clientConnectionPaths: ConnectionPaths[]; - /** the sequence for the next generated connection identifier */ - nextConnectionSequence: Long; - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.connection.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc connection submodule's genesis state. */ -export interface GenesisStateAmino { - connections: IdentifiedConnectionAmino[]; - client_connection_paths: ConnectionPathsAmino[]; - /** the sequence for the next generated connection identifier */ - next_connection_sequence: string; - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc connection submodule's genesis state. */ -export interface GenesisStateSDKType { - connections: IdentifiedConnectionSDKType[]; - client_connection_paths: ConnectionPathsSDKType[]; - next_connection_sequence: Long; - params: ParamsSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/connection/v1/tx.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/connection/v1/tx.ts deleted file mode 100644 index 63b0d8e8f..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/connection/v1/tx.ts +++ /dev/null @@ -1,316 +0,0 @@ -import { - Counterparty, - CounterpartyAmino, - CounterpartySDKType, - Version, - VersionAmino, - VersionSDKType, -} from "./connection"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Height, HeightAmino, HeightSDKType } from "../../client/v1/client"; -import { Long } from "../../../../helpers"; -/** - * MsgConnectionOpenInit defines the msg sent by an account on Chain A to - * initialize a connection with Chain B. - */ -export interface MsgConnectionOpenInit { - clientId: string; - counterparty: Counterparty; - version: Version; - delayPeriod: Long; - signer: string; -} -export interface MsgConnectionOpenInitProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit"; - value: Uint8Array; -} -/** - * MsgConnectionOpenInit defines the msg sent by an account on Chain A to - * initialize a connection with Chain B. - */ -export interface MsgConnectionOpenInitAmino { - client_id: string; - counterparty?: CounterpartyAmino; - version?: VersionAmino; - delay_period: string; - signer: string; -} -export interface MsgConnectionOpenInitAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenInit"; - value: MsgConnectionOpenInitAmino; -} -/** - * MsgConnectionOpenInit defines the msg sent by an account on Chain A to - * initialize a connection with Chain B. - */ -export interface MsgConnectionOpenInitSDKType { - client_id: string; - counterparty: CounterpartySDKType; - version: VersionSDKType; - delay_period: Long; - signer: string; -} -/** - * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response - * type. - */ -export interface MsgConnectionOpenInitResponse {} -export interface MsgConnectionOpenInitResponseProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse"; - value: Uint8Array; -} -/** - * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response - * type. - */ -export interface MsgConnectionOpenInitResponseAmino {} -export interface MsgConnectionOpenInitResponseAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenInitResponse"; - value: MsgConnectionOpenInitResponseAmino; -} -/** - * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response - * type. - */ -export interface MsgConnectionOpenInitResponseSDKType {} -/** - * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a - * connection on Chain B. - */ -export interface MsgConnectionOpenTry { - clientId: string; - /** - * in the case of crossing hello's, when both chains call OpenInit, we need - * the connection identifier of the previous connection in state INIT - */ - previousConnectionId: string; - clientState: Any; - counterparty: Counterparty; - delayPeriod: Long; - counterpartyVersions: Version[]; - proofHeight: Height; - /** - * proof of the initialization the connection on Chain A: `UNITIALIZED -> - * INIT` - */ - proofInit: Uint8Array; - /** proof of client state included in message */ - proofClient: Uint8Array; - /** proof of client consensus state */ - proofConsensus: Uint8Array; - consensusHeight: Height; - signer: string; -} -export interface MsgConnectionOpenTryProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry"; - value: Uint8Array; -} -/** - * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a - * connection on Chain B. - */ -export interface MsgConnectionOpenTryAmino { - client_id: string; - /** - * in the case of crossing hello's, when both chains call OpenInit, we need - * the connection identifier of the previous connection in state INIT - */ - previous_connection_id: string; - client_state?: AnyAmino; - counterparty?: CounterpartyAmino; - delay_period: string; - counterparty_versions: VersionAmino[]; - proof_height?: HeightAmino; - /** - * proof of the initialization the connection on Chain A: `UNITIALIZED -> - * INIT` - */ - proof_init: Uint8Array; - /** proof of client state included in message */ - proof_client: Uint8Array; - /** proof of client consensus state */ - proof_consensus: Uint8Array; - consensus_height?: HeightAmino; - signer: string; -} -export interface MsgConnectionOpenTryAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenTry"; - value: MsgConnectionOpenTryAmino; -} -/** - * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a - * connection on Chain B. - */ -export interface MsgConnectionOpenTrySDKType { - client_id: string; - previous_connection_id: string; - client_state: AnySDKType; - counterparty: CounterpartySDKType; - delay_period: Long; - counterparty_versions: VersionSDKType[]; - proof_height: HeightSDKType; - proof_init: Uint8Array; - proof_client: Uint8Array; - proof_consensus: Uint8Array; - consensus_height: HeightSDKType; - signer: string; -} -/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ -export interface MsgConnectionOpenTryResponse {} -export interface MsgConnectionOpenTryResponseProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse"; - value: Uint8Array; -} -/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ -export interface MsgConnectionOpenTryResponseAmino {} -export interface MsgConnectionOpenTryResponseAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenTryResponse"; - value: MsgConnectionOpenTryResponseAmino; -} -/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ -export interface MsgConnectionOpenTryResponseSDKType {} -/** - * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - * acknowledge the change of connection state to TRYOPEN on Chain B. - */ -export interface MsgConnectionOpenAck { - connectionId: string; - counterpartyConnectionId: string; - version: Version; - clientState: Any; - proofHeight: Height; - /** - * proof of the initialization the connection on Chain B: `UNITIALIZED -> - * TRYOPEN` - */ - proofTry: Uint8Array; - /** proof of client state included in message */ - proofClient: Uint8Array; - /** proof of client consensus state */ - proofConsensus: Uint8Array; - consensusHeight: Height; - signer: string; -} -export interface MsgConnectionOpenAckProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck"; - value: Uint8Array; -} -/** - * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - * acknowledge the change of connection state to TRYOPEN on Chain B. - */ -export interface MsgConnectionOpenAckAmino { - connection_id: string; - counterparty_connection_id: string; - version?: VersionAmino; - client_state?: AnyAmino; - proof_height?: HeightAmino; - /** - * proof of the initialization the connection on Chain B: `UNITIALIZED -> - * TRYOPEN` - */ - proof_try: Uint8Array; - /** proof of client state included in message */ - proof_client: Uint8Array; - /** proof of client consensus state */ - proof_consensus: Uint8Array; - consensus_height?: HeightAmino; - signer: string; -} -export interface MsgConnectionOpenAckAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenAck"; - value: MsgConnectionOpenAckAmino; -} -/** - * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - * acknowledge the change of connection state to TRYOPEN on Chain B. - */ -export interface MsgConnectionOpenAckSDKType { - connection_id: string; - counterparty_connection_id: string; - version: VersionSDKType; - client_state: AnySDKType; - proof_height: HeightSDKType; - proof_try: Uint8Array; - proof_client: Uint8Array; - proof_consensus: Uint8Array; - consensus_height: HeightSDKType; - signer: string; -} -/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ -export interface MsgConnectionOpenAckResponse {} -export interface MsgConnectionOpenAckResponseProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse"; - value: Uint8Array; -} -/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ -export interface MsgConnectionOpenAckResponseAmino {} -export interface MsgConnectionOpenAckResponseAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenAckResponse"; - value: MsgConnectionOpenAckResponseAmino; -} -/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ -export interface MsgConnectionOpenAckResponseSDKType {} -/** - * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of connection state to OPEN on Chain A. - */ -export interface MsgConnectionOpenConfirm { - connectionId: string; - /** proof for the change of the connection state on Chain A: `INIT -> OPEN` */ - proofAck: Uint8Array; - proofHeight: Height; - signer: string; -} -export interface MsgConnectionOpenConfirmProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm"; - value: Uint8Array; -} -/** - * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of connection state to OPEN on Chain A. - */ -export interface MsgConnectionOpenConfirmAmino { - connection_id: string; - /** proof for the change of the connection state on Chain A: `INIT -> OPEN` */ - proof_ack: Uint8Array; - proof_height?: HeightAmino; - signer: string; -} -export interface MsgConnectionOpenConfirmAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenConfirm"; - value: MsgConnectionOpenConfirmAmino; -} -/** - * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of connection state to OPEN on Chain A. - */ -export interface MsgConnectionOpenConfirmSDKType { - connection_id: string; - proof_ack: Uint8Array; - proof_height: HeightSDKType; - signer: string; -} -/** - * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm - * response type. - */ -export interface MsgConnectionOpenConfirmResponse {} -export interface MsgConnectionOpenConfirmResponseProtoMsg { - typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse"; - value: Uint8Array; -} -/** - * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm - * response type. - */ -export interface MsgConnectionOpenConfirmResponseAmino {} -export interface MsgConnectionOpenConfirmResponseAminoMsg { - type: "cosmos-sdk/MsgConnectionOpenConfirmResponse"; - value: MsgConnectionOpenConfirmResponseAmino; -} -/** - * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm - * response type. - */ -export interface MsgConnectionOpenConfirmResponseSDKType {} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/types/v1/genesis.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/types/v1/genesis.ts deleted file mode 100644 index 72ca9826b..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/core/types/v1/genesis.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { GenesisState as GenesisState1 } from "../../client/v1/genesis"; -import { GenesisStateAmino as GenesisState1Amino } from "../../client/v1/genesis"; -import { GenesisStateSDKType as GenesisState1SDKType } from "../../client/v1/genesis"; -import { GenesisState as GenesisState2 } from "../../connection/v1/genesis"; -import { GenesisStateAmino as GenesisState2Amino } from "../../connection/v1/genesis"; -import { GenesisStateSDKType as GenesisState2SDKType } from "../../connection/v1/genesis"; -import { GenesisState as GenesisState3 } from "../../channel/v1/genesis"; -import { GenesisStateAmino as GenesisState3Amino } from "../../channel/v1/genesis"; -import { GenesisStateSDKType as GenesisState3SDKType } from "../../channel/v1/genesis"; -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisState { - /** ICS002 - Clients genesis state */ - clientGenesis: GenesisState1; - /** ICS003 - Connections genesis state */ - connectionGenesis: GenesisState2; - /** ICS004 - Channel genesis state */ - channelGenesis: GenesisState3; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.types.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisStateAmino { - /** ICS002 - Clients genesis state */ - client_genesis?: GenesisState1Amino; - /** ICS003 - Connections genesis state */ - connection_genesis?: GenesisState2Amino; - /** ICS004 - Channel genesis state */ - channel_genesis?: GenesisState3Amino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisStateSDKType { - client_genesis: GenesisState1SDKType; - connection_genesis: GenesisState2SDKType; - channel_genesis: GenesisState3SDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/localhost/v1/localhost.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/localhost/v1/localhost.ts deleted file mode 100644 index 5213a6cee..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/localhost/v1/localhost.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { - Height, - HeightAmino, - HeightSDKType, -} from "../../../core/client/v1/client"; -/** - * ClientState defines a loopback (localhost) client. It requires (read-only) - * access to keys outside the client prefix. - */ -export interface ClientState { - /** self chain ID */ - chainId: string; - /** self latest block height */ - height: Height; -} -export interface ClientStateProtoMsg { - typeUrl: "/ibc.lightclients.localhost.v1.ClientState"; - value: Uint8Array; -} -/** - * ClientState defines a loopback (localhost) client. It requires (read-only) - * access to keys outside the client prefix. - */ -export interface ClientStateAmino { - /** self chain ID */ - chain_id: string; - /** self latest block height */ - height?: HeightAmino; -} -export interface ClientStateAminoMsg { - type: "cosmos-sdk/ClientState"; - value: ClientStateAmino; -} -/** - * ClientState defines a loopback (localhost) client. It requires (read-only) - * access to keys outside the client prefix. - */ -export interface ClientStateSDKType { - chain_id: string; - height: HeightSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v1/solomachine.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v1/solomachine.ts deleted file mode 100644 index 064a54a40..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v1/solomachine.ts +++ /dev/null @@ -1,655 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - ConnectionEnd, - ConnectionEndAmino, - ConnectionEndSDKType, -} from "../../../core/connection/v1/connection"; -import { - Channel, - ChannelAmino, - ChannelSDKType, -} from "../../../core/channel/v1/channel"; -import { Long } from "../../../../helpers"; -/** - * DataType defines the type of solo machine proof being created. This is done - * to preserve uniqueness of different data sign byte encodings. - */ -export enum DataType { - /** DATA_TYPE_UNINITIALIZED_UNSPECIFIED - Default State */ - DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0, - /** DATA_TYPE_CLIENT_STATE - Data type for client state verification */ - DATA_TYPE_CLIENT_STATE = 1, - /** DATA_TYPE_CONSENSUS_STATE - Data type for consensus state verification */ - DATA_TYPE_CONSENSUS_STATE = 2, - /** DATA_TYPE_CONNECTION_STATE - Data type for connection state verification */ - DATA_TYPE_CONNECTION_STATE = 3, - /** DATA_TYPE_CHANNEL_STATE - Data type for channel state verification */ - DATA_TYPE_CHANNEL_STATE = 4, - /** DATA_TYPE_PACKET_COMMITMENT - Data type for packet commitment verification */ - DATA_TYPE_PACKET_COMMITMENT = 5, - /** DATA_TYPE_PACKET_ACKNOWLEDGEMENT - Data type for packet acknowledgement verification */ - DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6, - /** DATA_TYPE_PACKET_RECEIPT_ABSENCE - Data type for packet receipt absence verification */ - DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7, - /** DATA_TYPE_NEXT_SEQUENCE_RECV - Data type for next sequence recv verification */ - DATA_TYPE_NEXT_SEQUENCE_RECV = 8, - /** DATA_TYPE_HEADER - Data type for header verification */ - DATA_TYPE_HEADER = 9, - UNRECOGNIZED = -1, -} -export const DataTypeSDKType = DataType; -export const DataTypeAmino = DataType; -export function dataTypeFromJSON(object: any): DataType { - switch (object) { - case 0: - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - return DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED; - case 1: - case "DATA_TYPE_CLIENT_STATE": - return DataType.DATA_TYPE_CLIENT_STATE; - case 2: - case "DATA_TYPE_CONSENSUS_STATE": - return DataType.DATA_TYPE_CONSENSUS_STATE; - case 3: - case "DATA_TYPE_CONNECTION_STATE": - return DataType.DATA_TYPE_CONNECTION_STATE; - case 4: - case "DATA_TYPE_CHANNEL_STATE": - return DataType.DATA_TYPE_CHANNEL_STATE; - case 5: - case "DATA_TYPE_PACKET_COMMITMENT": - return DataType.DATA_TYPE_PACKET_COMMITMENT; - case 6: - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - return DataType.DATA_TYPE_PACKET_ACKNOWLEDGEMENT; - case 7: - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - return DataType.DATA_TYPE_PACKET_RECEIPT_ABSENCE; - case 8: - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - return DataType.DATA_TYPE_NEXT_SEQUENCE_RECV; - case 9: - case "DATA_TYPE_HEADER": - return DataType.DATA_TYPE_HEADER; - case -1: - case "UNRECOGNIZED": - default: - return DataType.UNRECOGNIZED; - } -} -export function dataTypeToJSON(object: DataType): string { - switch (object) { - case DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED: - return "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"; - case DataType.DATA_TYPE_CLIENT_STATE: - return "DATA_TYPE_CLIENT_STATE"; - case DataType.DATA_TYPE_CONSENSUS_STATE: - return "DATA_TYPE_CONSENSUS_STATE"; - case DataType.DATA_TYPE_CONNECTION_STATE: - return "DATA_TYPE_CONNECTION_STATE"; - case DataType.DATA_TYPE_CHANNEL_STATE: - return "DATA_TYPE_CHANNEL_STATE"; - case DataType.DATA_TYPE_PACKET_COMMITMENT: - return "DATA_TYPE_PACKET_COMMITMENT"; - case DataType.DATA_TYPE_PACKET_ACKNOWLEDGEMENT: - return "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"; - case DataType.DATA_TYPE_PACKET_RECEIPT_ABSENCE: - return "DATA_TYPE_PACKET_RECEIPT_ABSENCE"; - case DataType.DATA_TYPE_NEXT_SEQUENCE_RECV: - return "DATA_TYPE_NEXT_SEQUENCE_RECV"; - case DataType.DATA_TYPE_HEADER: - return "DATA_TYPE_HEADER"; - case DataType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientState { - /** latest sequence of the client state */ - sequence: Long; - /** frozen sequence of the solo machine */ - frozenSequence: Long; - consensusState: ConsensusState; - /** - * when set to true, will allow governance to update a solo machine client. - * The client will be unfrozen if it is frozen. - */ - allowUpdateAfterProposal: boolean; -} -export interface ClientStateProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ClientState"; - value: Uint8Array; -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientStateAmino { - /** latest sequence of the client state */ - sequence: string; - /** frozen sequence of the solo machine */ - frozen_sequence: string; - consensus_state?: ConsensusStateAmino; - /** - * when set to true, will allow governance to update a solo machine client. - * The client will be unfrozen if it is frozen. - */ - allow_update_after_proposal: boolean; -} -export interface ClientStateAminoMsg { - type: "cosmos-sdk/ClientState"; - value: ClientStateAmino; -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientStateSDKType { - sequence: Long; - frozen_sequence: Long; - consensus_state: ConsensusStateSDKType; - allow_update_after_proposal: boolean; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusState { - /** public key of the solo machine */ - publicKey: Any; - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - */ - diversifier: string; - timestamp: Long; -} -export interface ConsensusStateProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ConsensusState"; - value: Uint8Array; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusStateAmino { - /** public key of the solo machine */ - public_key?: AnyAmino; - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - */ - diversifier: string; - timestamp: string; -} -export interface ConsensusStateAminoMsg { - type: "cosmos-sdk/ConsensusState"; - value: ConsensusStateAmino; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusStateSDKType { - public_key: AnySDKType; - diversifier: string; - timestamp: Long; -} -/** Header defines a solo machine consensus header */ -export interface Header { - /** sequence to update solo machine public key at */ - sequence: Long; - timestamp: Long; - signature: Uint8Array; - newPublicKey: Any; - newDiversifier: string; -} -export interface HeaderProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.Header"; - value: Uint8Array; -} -/** Header defines a solo machine consensus header */ -export interface HeaderAmino { - /** sequence to update solo machine public key at */ - sequence: string; - timestamp: string; - signature: Uint8Array; - new_public_key?: AnyAmino; - new_diversifier: string; -} -export interface HeaderAminoMsg { - type: "cosmos-sdk/Header"; - value: HeaderAmino; -} -/** Header defines a solo machine consensus header */ -export interface HeaderSDKType { - sequence: Long; - timestamp: Long; - signature: Uint8Array; - new_public_key: AnySDKType; - new_diversifier: string; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface Misbehaviour { - clientId: string; - sequence: Long; - signatureOne: SignatureAndData; - signatureTwo: SignatureAndData; -} -export interface MisbehaviourProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.Misbehaviour"; - value: Uint8Array; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface MisbehaviourAmino { - client_id: string; - sequence: string; - signature_one?: SignatureAndDataAmino; - signature_two?: SignatureAndDataAmino; -} -export interface MisbehaviourAminoMsg { - type: "cosmos-sdk/Misbehaviour"; - value: MisbehaviourAmino; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface MisbehaviourSDKType { - client_id: string; - sequence: Long; - signature_one: SignatureAndDataSDKType; - signature_two: SignatureAndDataSDKType; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndData { - signature: Uint8Array; - dataType: DataType; - data: Uint8Array; - timestamp: Long; -} -export interface SignatureAndDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.SignatureAndData"; - value: Uint8Array; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndDataAmino { - signature: Uint8Array; - data_type: DataType; - data: Uint8Array; - timestamp: string; -} -export interface SignatureAndDataAminoMsg { - type: "cosmos-sdk/SignatureAndData"; - value: SignatureAndDataAmino; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndDataSDKType { - signature: Uint8Array; - data_type: DataType; - data: Uint8Array; - timestamp: Long; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureData { - signatureData: Uint8Array; - timestamp: Long; -} -export interface TimestampedSignatureDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.TimestampedSignatureData"; - value: Uint8Array; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureDataAmino { - signature_data: Uint8Array; - timestamp: string; -} -export interface TimestampedSignatureDataAminoMsg { - type: "cosmos-sdk/TimestampedSignatureData"; - value: TimestampedSignatureDataAmino; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureDataSDKType { - signature_data: Uint8Array; - timestamp: Long; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytes { - sequence: Long; - timestamp: Long; - diversifier: string; - /** type of the data used */ - dataType: DataType; - /** marshaled data */ - data: Uint8Array; -} -export interface SignBytesProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.SignBytes"; - value: Uint8Array; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytesAmino { - sequence: string; - timestamp: string; - diversifier: string; - /** type of the data used */ - data_type: DataType; - /** marshaled data */ - data: Uint8Array; -} -export interface SignBytesAminoMsg { - type: "cosmos-sdk/SignBytes"; - value: SignBytesAmino; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytesSDKType { - sequence: Long; - timestamp: Long; - diversifier: string; - data_type: DataType; - data: Uint8Array; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderData { - /** header public key */ - newPubKey: Any; - /** header diversifier */ - newDiversifier: string; -} -export interface HeaderDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.HeaderData"; - value: Uint8Array; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderDataAmino { - /** header public key */ - new_pub_key?: AnyAmino; - /** header diversifier */ - new_diversifier: string; -} -export interface HeaderDataAminoMsg { - type: "cosmos-sdk/HeaderData"; - value: HeaderDataAmino; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderDataSDKType { - new_pub_key: AnySDKType; - new_diversifier: string; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateData { - path: Uint8Array; - clientState: Any; -} -export interface ClientStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ClientStateData"; - value: Uint8Array; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateDataAmino { - path: Uint8Array; - client_state?: AnyAmino; -} -export interface ClientStateDataAminoMsg { - type: "cosmos-sdk/ClientStateData"; - value: ClientStateDataAmino; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateDataSDKType { - path: Uint8Array; - client_state: AnySDKType; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateData { - path: Uint8Array; - consensusState: Any; -} -export interface ConsensusStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ConsensusStateData"; - value: Uint8Array; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateDataAmino { - path: Uint8Array; - consensus_state?: AnyAmino; -} -export interface ConsensusStateDataAminoMsg { - type: "cosmos-sdk/ConsensusStateData"; - value: ConsensusStateDataAmino; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateDataSDKType { - path: Uint8Array; - consensus_state: AnySDKType; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateData { - path: Uint8Array; - connection: ConnectionEnd; -} -export interface ConnectionStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ConnectionStateData"; - value: Uint8Array; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateDataAmino { - path: Uint8Array; - connection?: ConnectionEndAmino; -} -export interface ConnectionStateDataAminoMsg { - type: "cosmos-sdk/ConnectionStateData"; - value: ConnectionStateDataAmino; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateDataSDKType { - path: Uint8Array; - connection: ConnectionEndSDKType; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateData { - path: Uint8Array; - channel: Channel; -} -export interface ChannelStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.ChannelStateData"; - value: Uint8Array; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateDataAmino { - path: Uint8Array; - channel?: ChannelAmino; -} -export interface ChannelStateDataAminoMsg { - type: "cosmos-sdk/ChannelStateData"; - value: ChannelStateDataAmino; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateDataSDKType { - path: Uint8Array; - channel: ChannelSDKType; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentData { - path: Uint8Array; - commitment: Uint8Array; -} -export interface PacketCommitmentDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.PacketCommitmentData"; - value: Uint8Array; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentDataAmino { - path: Uint8Array; - commitment: Uint8Array; -} -export interface PacketCommitmentDataAminoMsg { - type: "cosmos-sdk/PacketCommitmentData"; - value: PacketCommitmentDataAmino; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentDataSDKType { - path: Uint8Array; - commitment: Uint8Array; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementData { - path: Uint8Array; - acknowledgement: Uint8Array; -} -export interface PacketAcknowledgementDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.PacketAcknowledgementData"; - value: Uint8Array; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementDataAmino { - path: Uint8Array; - acknowledgement: Uint8Array; -} -export interface PacketAcknowledgementDataAminoMsg { - type: "cosmos-sdk/PacketAcknowledgementData"; - value: PacketAcknowledgementDataAmino; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementDataSDKType { - path: Uint8Array; - acknowledgement: Uint8Array; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceData { - path: Uint8Array; -} -export interface PacketReceiptAbsenceDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData"; - value: Uint8Array; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceDataAmino { - path: Uint8Array; -} -export interface PacketReceiptAbsenceDataAminoMsg { - type: "cosmos-sdk/PacketReceiptAbsenceData"; - value: PacketReceiptAbsenceDataAmino; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceDataSDKType { - path: Uint8Array; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvData { - path: Uint8Array; - nextSeqRecv: Long; -} -export interface NextSequenceRecvDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v1.NextSequenceRecvData"; - value: Uint8Array; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvDataAmino { - path: Uint8Array; - next_seq_recv: string; -} -export interface NextSequenceRecvDataAminoMsg { - type: "cosmos-sdk/NextSequenceRecvData"; - value: NextSequenceRecvDataAmino; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvDataSDKType { - path: Uint8Array; - next_seq_recv: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v2/solomachine.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v2/solomachine.ts deleted file mode 100644 index b884f6bad..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/solomachine/v2/solomachine.ts +++ /dev/null @@ -1,655 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { - ConnectionEnd, - ConnectionEndAmino, - ConnectionEndSDKType, -} from "../../../core/connection/v1/connection"; -import { - Channel, - ChannelAmino, - ChannelSDKType, -} from "../../../core/channel/v1/channel"; -import { Long } from "../../../../helpers"; -/** - * DataType defines the type of solo machine proof being created. This is done - * to preserve uniqueness of different data sign byte encodings. - */ -export enum DataType { - /** DATA_TYPE_UNINITIALIZED_UNSPECIFIED - Default State */ - DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0, - /** DATA_TYPE_CLIENT_STATE - Data type for client state verification */ - DATA_TYPE_CLIENT_STATE = 1, - /** DATA_TYPE_CONSENSUS_STATE - Data type for consensus state verification */ - DATA_TYPE_CONSENSUS_STATE = 2, - /** DATA_TYPE_CONNECTION_STATE - Data type for connection state verification */ - DATA_TYPE_CONNECTION_STATE = 3, - /** DATA_TYPE_CHANNEL_STATE - Data type for channel state verification */ - DATA_TYPE_CHANNEL_STATE = 4, - /** DATA_TYPE_PACKET_COMMITMENT - Data type for packet commitment verification */ - DATA_TYPE_PACKET_COMMITMENT = 5, - /** DATA_TYPE_PACKET_ACKNOWLEDGEMENT - Data type for packet acknowledgement verification */ - DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6, - /** DATA_TYPE_PACKET_RECEIPT_ABSENCE - Data type for packet receipt absence verification */ - DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7, - /** DATA_TYPE_NEXT_SEQUENCE_RECV - Data type for next sequence recv verification */ - DATA_TYPE_NEXT_SEQUENCE_RECV = 8, - /** DATA_TYPE_HEADER - Data type for header verification */ - DATA_TYPE_HEADER = 9, - UNRECOGNIZED = -1, -} -export const DataTypeSDKType = DataType; -export const DataTypeAmino = DataType; -export function dataTypeFromJSON(object: any): DataType { - switch (object) { - case 0: - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - return DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED; - case 1: - case "DATA_TYPE_CLIENT_STATE": - return DataType.DATA_TYPE_CLIENT_STATE; - case 2: - case "DATA_TYPE_CONSENSUS_STATE": - return DataType.DATA_TYPE_CONSENSUS_STATE; - case 3: - case "DATA_TYPE_CONNECTION_STATE": - return DataType.DATA_TYPE_CONNECTION_STATE; - case 4: - case "DATA_TYPE_CHANNEL_STATE": - return DataType.DATA_TYPE_CHANNEL_STATE; - case 5: - case "DATA_TYPE_PACKET_COMMITMENT": - return DataType.DATA_TYPE_PACKET_COMMITMENT; - case 6: - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - return DataType.DATA_TYPE_PACKET_ACKNOWLEDGEMENT; - case 7: - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - return DataType.DATA_TYPE_PACKET_RECEIPT_ABSENCE; - case 8: - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - return DataType.DATA_TYPE_NEXT_SEQUENCE_RECV; - case 9: - case "DATA_TYPE_HEADER": - return DataType.DATA_TYPE_HEADER; - case -1: - case "UNRECOGNIZED": - default: - return DataType.UNRECOGNIZED; - } -} -export function dataTypeToJSON(object: DataType): string { - switch (object) { - case DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED: - return "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"; - case DataType.DATA_TYPE_CLIENT_STATE: - return "DATA_TYPE_CLIENT_STATE"; - case DataType.DATA_TYPE_CONSENSUS_STATE: - return "DATA_TYPE_CONSENSUS_STATE"; - case DataType.DATA_TYPE_CONNECTION_STATE: - return "DATA_TYPE_CONNECTION_STATE"; - case DataType.DATA_TYPE_CHANNEL_STATE: - return "DATA_TYPE_CHANNEL_STATE"; - case DataType.DATA_TYPE_PACKET_COMMITMENT: - return "DATA_TYPE_PACKET_COMMITMENT"; - case DataType.DATA_TYPE_PACKET_ACKNOWLEDGEMENT: - return "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"; - case DataType.DATA_TYPE_PACKET_RECEIPT_ABSENCE: - return "DATA_TYPE_PACKET_RECEIPT_ABSENCE"; - case DataType.DATA_TYPE_NEXT_SEQUENCE_RECV: - return "DATA_TYPE_NEXT_SEQUENCE_RECV"; - case DataType.DATA_TYPE_HEADER: - return "DATA_TYPE_HEADER"; - case DataType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientState { - /** latest sequence of the client state */ - sequence: Long; - /** frozen sequence of the solo machine */ - isFrozen: boolean; - consensusState: ConsensusState; - /** - * when set to true, will allow governance to update a solo machine client. - * The client will be unfrozen if it is frozen. - */ - allowUpdateAfterProposal: boolean; -} -export interface ClientStateProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ClientState"; - value: Uint8Array; -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientStateAmino { - /** latest sequence of the client state */ - sequence: string; - /** frozen sequence of the solo machine */ - is_frozen: boolean; - consensus_state?: ConsensusStateAmino; - /** - * when set to true, will allow governance to update a solo machine client. - * The client will be unfrozen if it is frozen. - */ - allow_update_after_proposal: boolean; -} -export interface ClientStateAminoMsg { - type: "cosmos-sdk/ClientState"; - value: ClientStateAmino; -} -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - */ -export interface ClientStateSDKType { - sequence: Long; - is_frozen: boolean; - consensus_state: ConsensusStateSDKType; - allow_update_after_proposal: boolean; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusState { - /** public key of the solo machine */ - publicKey: Any; - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - */ - diversifier: string; - timestamp: Long; -} -export interface ConsensusStateProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ConsensusState"; - value: Uint8Array; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusStateAmino { - /** public key of the solo machine */ - public_key?: AnyAmino; - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - */ - diversifier: string; - timestamp: string; -} -export interface ConsensusStateAminoMsg { - type: "cosmos-sdk/ConsensusState"; - value: ConsensusStateAmino; -} -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - */ -export interface ConsensusStateSDKType { - public_key: AnySDKType; - diversifier: string; - timestamp: Long; -} -/** Header defines a solo machine consensus header */ -export interface Header { - /** sequence to update solo machine public key at */ - sequence: Long; - timestamp: Long; - signature: Uint8Array; - newPublicKey: Any; - newDiversifier: string; -} -export interface HeaderProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.Header"; - value: Uint8Array; -} -/** Header defines a solo machine consensus header */ -export interface HeaderAmino { - /** sequence to update solo machine public key at */ - sequence: string; - timestamp: string; - signature: Uint8Array; - new_public_key?: AnyAmino; - new_diversifier: string; -} -export interface HeaderAminoMsg { - type: "cosmos-sdk/Header"; - value: HeaderAmino; -} -/** Header defines a solo machine consensus header */ -export interface HeaderSDKType { - sequence: Long; - timestamp: Long; - signature: Uint8Array; - new_public_key: AnySDKType; - new_diversifier: string; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface Misbehaviour { - clientId: string; - sequence: Long; - signatureOne: SignatureAndData; - signatureTwo: SignatureAndData; -} -export interface MisbehaviourProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.Misbehaviour"; - value: Uint8Array; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface MisbehaviourAmino { - client_id: string; - sequence: string; - signature_one?: SignatureAndDataAmino; - signature_two?: SignatureAndDataAmino; -} -export interface MisbehaviourAminoMsg { - type: "cosmos-sdk/Misbehaviour"; - value: MisbehaviourAmino; -} -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - */ -export interface MisbehaviourSDKType { - client_id: string; - sequence: Long; - signature_one: SignatureAndDataSDKType; - signature_two: SignatureAndDataSDKType; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndData { - signature: Uint8Array; - dataType: DataType; - data: Uint8Array; - timestamp: Long; -} -export interface SignatureAndDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.SignatureAndData"; - value: Uint8Array; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndDataAmino { - signature: Uint8Array; - data_type: DataType; - data: Uint8Array; - timestamp: string; -} -export interface SignatureAndDataAminoMsg { - type: "cosmos-sdk/SignatureAndData"; - value: SignatureAndDataAmino; -} -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - */ -export interface SignatureAndDataSDKType { - signature: Uint8Array; - data_type: DataType; - data: Uint8Array; - timestamp: Long; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureData { - signatureData: Uint8Array; - timestamp: Long; -} -export interface TimestampedSignatureDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.TimestampedSignatureData"; - value: Uint8Array; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureDataAmino { - signature_data: Uint8Array; - timestamp: string; -} -export interface TimestampedSignatureDataAminoMsg { - type: "cosmos-sdk/TimestampedSignatureData"; - value: TimestampedSignatureDataAmino; -} -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - */ -export interface TimestampedSignatureDataSDKType { - signature_data: Uint8Array; - timestamp: Long; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytes { - sequence: Long; - timestamp: Long; - diversifier: string; - /** type of the data used */ - dataType: DataType; - /** marshaled data */ - data: Uint8Array; -} -export interface SignBytesProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.SignBytes"; - value: Uint8Array; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytesAmino { - sequence: string; - timestamp: string; - diversifier: string; - /** type of the data used */ - data_type: DataType; - /** marshaled data */ - data: Uint8Array; -} -export interface SignBytesAminoMsg { - type: "cosmos-sdk/SignBytes"; - value: SignBytesAmino; -} -/** SignBytes defines the signed bytes used for signature verification. */ -export interface SignBytesSDKType { - sequence: Long; - timestamp: Long; - diversifier: string; - data_type: DataType; - data: Uint8Array; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderData { - /** header public key */ - newPubKey: Any; - /** header diversifier */ - newDiversifier: string; -} -export interface HeaderDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.HeaderData"; - value: Uint8Array; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderDataAmino { - /** header public key */ - new_pub_key?: AnyAmino; - /** header diversifier */ - new_diversifier: string; -} -export interface HeaderDataAminoMsg { - type: "cosmos-sdk/HeaderData"; - value: HeaderDataAmino; -} -/** HeaderData returns the SignBytes data for update verification. */ -export interface HeaderDataSDKType { - new_pub_key: AnySDKType; - new_diversifier: string; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateData { - path: Uint8Array; - clientState: Any; -} -export interface ClientStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ClientStateData"; - value: Uint8Array; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateDataAmino { - path: Uint8Array; - client_state?: AnyAmino; -} -export interface ClientStateDataAminoMsg { - type: "cosmos-sdk/ClientStateData"; - value: ClientStateDataAmino; -} -/** ClientStateData returns the SignBytes data for client state verification. */ -export interface ClientStateDataSDKType { - path: Uint8Array; - client_state: AnySDKType; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateData { - path: Uint8Array; - consensusState: Any; -} -export interface ConsensusStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ConsensusStateData"; - value: Uint8Array; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateDataAmino { - path: Uint8Array; - consensus_state?: AnyAmino; -} -export interface ConsensusStateDataAminoMsg { - type: "cosmos-sdk/ConsensusStateData"; - value: ConsensusStateDataAmino; -} -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - */ -export interface ConsensusStateDataSDKType { - path: Uint8Array; - consensus_state: AnySDKType; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateData { - path: Uint8Array; - connection: ConnectionEnd; -} -export interface ConnectionStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ConnectionStateData"; - value: Uint8Array; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateDataAmino { - path: Uint8Array; - connection?: ConnectionEndAmino; -} -export interface ConnectionStateDataAminoMsg { - type: "cosmos-sdk/ConnectionStateData"; - value: ConnectionStateDataAmino; -} -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - */ -export interface ConnectionStateDataSDKType { - path: Uint8Array; - connection: ConnectionEndSDKType; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateData { - path: Uint8Array; - channel: Channel; -} -export interface ChannelStateDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.ChannelStateData"; - value: Uint8Array; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateDataAmino { - path: Uint8Array; - channel?: ChannelAmino; -} -export interface ChannelStateDataAminoMsg { - type: "cosmos-sdk/ChannelStateData"; - value: ChannelStateDataAmino; -} -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - */ -export interface ChannelStateDataSDKType { - path: Uint8Array; - channel: ChannelSDKType; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentData { - path: Uint8Array; - commitment: Uint8Array; -} -export interface PacketCommitmentDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.PacketCommitmentData"; - value: Uint8Array; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentDataAmino { - path: Uint8Array; - commitment: Uint8Array; -} -export interface PacketCommitmentDataAminoMsg { - type: "cosmos-sdk/PacketCommitmentData"; - value: PacketCommitmentDataAmino; -} -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - */ -export interface PacketCommitmentDataSDKType { - path: Uint8Array; - commitment: Uint8Array; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementData { - path: Uint8Array; - acknowledgement: Uint8Array; -} -export interface PacketAcknowledgementDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.PacketAcknowledgementData"; - value: Uint8Array; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementDataAmino { - path: Uint8Array; - acknowledgement: Uint8Array; -} -export interface PacketAcknowledgementDataAminoMsg { - type: "cosmos-sdk/PacketAcknowledgementData"; - value: PacketAcknowledgementDataAmino; -} -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - */ -export interface PacketAcknowledgementDataSDKType { - path: Uint8Array; - acknowledgement: Uint8Array; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceData { - path: Uint8Array; -} -export interface PacketReceiptAbsenceDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData"; - value: Uint8Array; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceDataAmino { - path: Uint8Array; -} -export interface PacketReceiptAbsenceDataAminoMsg { - type: "cosmos-sdk/PacketReceiptAbsenceData"; - value: PacketReceiptAbsenceDataAmino; -} -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - */ -export interface PacketReceiptAbsenceDataSDKType { - path: Uint8Array; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvData { - path: Uint8Array; - nextSeqRecv: Long; -} -export interface NextSequenceRecvDataProtoMsg { - typeUrl: "/ibc.lightclients.solomachine.v2.NextSequenceRecvData"; - value: Uint8Array; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvDataAmino { - path: Uint8Array; - next_seq_recv: string; -} -export interface NextSequenceRecvDataAminoMsg { - type: "cosmos-sdk/NextSequenceRecvData"; - value: NextSequenceRecvDataAmino; -} -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - */ -export interface NextSequenceRecvDataSDKType { - path: Uint8Array; - next_seq_recv: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/tendermint/v1/tendermint.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/tendermint/v1/tendermint.ts deleted file mode 100644 index 0e69158f9..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ibc/lightclients/tendermint/v1/tendermint.ts +++ /dev/null @@ -1,313 +0,0 @@ -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../../../google/protobuf/duration"; -import { - Height, - HeightAmino, - HeightSDKType, -} from "../../../core/client/v1/client"; -import { - ProofSpec, - ProofSpecAmino, - ProofSpecSDKType, -} from "../../../../confio/proofs"; -import { - MerkleRoot, - MerkleRootAmino, - MerkleRootSDKType, -} from "../../../core/commitment/v1/commitment"; -import { - SignedHeader, - SignedHeaderAmino, - SignedHeaderSDKType, -} from "../../../../tendermint/types/types"; -import { - ValidatorSet, - ValidatorSetAmino, - ValidatorSetSDKType, -} from "../../../../tendermint/types/validator"; -import { Long } from "../../../../helpers"; -/** - * ClientState from Tendermint tracks the current validator set, latest height, - * and a possible frozen height. - */ -export interface ClientState { - chainId: string; - trustLevel: Fraction; - /** - * duration of the period since the LastestTimestamp during which the - * submitted headers are valid for upgrade - */ - trustingPeriod: Duration; - /** duration of the staking unbonding period */ - unbondingPeriod: Duration; - /** defines how much new (untrusted) header's Time can drift into the future. */ - maxClockDrift: Duration; - /** Block height when the client was frozen due to a misbehaviour */ - frozenHeight: Height; - /** Latest height the client was updated to */ - latestHeight: Height; - /** Proof specifications used in verifying counterparty state */ - proofSpecs: ProofSpec[]; - /** - * Path at which next upgraded client will be committed. - * Each element corresponds to the key for a single CommitmentProof in the - * chained proof. NOTE: ClientState must stored under - * `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored - * under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using - * the default upgrade module, upgrade_path should be []string{"upgrade", - * "upgradedIBCState"}` - */ - upgradePath: string[]; - /** - * This flag, when set to true, will allow governance to recover a client - * which has expired - */ - allowUpdateAfterExpiry: boolean; - /** - * This flag, when set to true, will allow governance to unfreeze a client - * whose chain has experienced a misbehaviour event - */ - allowUpdateAfterMisbehaviour: boolean; -} -export interface ClientStateProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.ClientState"; - value: Uint8Array; -} -/** - * ClientState from Tendermint tracks the current validator set, latest height, - * and a possible frozen height. - */ -export interface ClientStateAmino { - chain_id: string; - trust_level?: FractionAmino; - /** - * duration of the period since the LastestTimestamp during which the - * submitted headers are valid for upgrade - */ - trusting_period?: DurationAmino; - /** duration of the staking unbonding period */ - unbonding_period?: DurationAmino; - /** defines how much new (untrusted) header's Time can drift into the future. */ - max_clock_drift?: DurationAmino; - /** Block height when the client was frozen due to a misbehaviour */ - frozen_height?: HeightAmino; - /** Latest height the client was updated to */ - latest_height?: HeightAmino; - /** Proof specifications used in verifying counterparty state */ - proof_specs: ProofSpecAmino[]; - /** - * Path at which next upgraded client will be committed. - * Each element corresponds to the key for a single CommitmentProof in the - * chained proof. NOTE: ClientState must stored under - * `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored - * under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using - * the default upgrade module, upgrade_path should be []string{"upgrade", - * "upgradedIBCState"}` - */ - upgrade_path: string[]; - /** - * This flag, when set to true, will allow governance to recover a client - * which has expired - */ - allow_update_after_expiry: boolean; - /** - * This flag, when set to true, will allow governance to unfreeze a client - * whose chain has experienced a misbehaviour event - */ - allow_update_after_misbehaviour: boolean; -} -export interface ClientStateAminoMsg { - type: "cosmos-sdk/ClientState"; - value: ClientStateAmino; -} -/** - * ClientState from Tendermint tracks the current validator set, latest height, - * and a possible frozen height. - */ -export interface ClientStateSDKType { - chain_id: string; - trust_level: FractionSDKType; - trusting_period: DurationSDKType; - unbonding_period: DurationSDKType; - max_clock_drift: DurationSDKType; - frozen_height: HeightSDKType; - latest_height: HeightSDKType; - proof_specs: ProofSpecSDKType[]; - upgrade_path: string[]; - allow_update_after_expiry: boolean; - allow_update_after_misbehaviour: boolean; -} -/** ConsensusState defines the consensus state from Tendermint. */ -export interface ConsensusState { - /** - * timestamp that corresponds to the block height in which the ConsensusState - * was stored. - */ - timestamp: Date; - /** commitment root (i.e app hash) */ - root: MerkleRoot; - nextValidatorsHash: Uint8Array; -} -export interface ConsensusStateProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.ConsensusState"; - value: Uint8Array; -} -/** ConsensusState defines the consensus state from Tendermint. */ -export interface ConsensusStateAmino { - /** - * timestamp that corresponds to the block height in which the ConsensusState - * was stored. - */ - timestamp?: Date; - /** commitment root (i.e app hash) */ - root?: MerkleRootAmino; - next_validators_hash: Uint8Array; -} -export interface ConsensusStateAminoMsg { - type: "cosmos-sdk/ConsensusState"; - value: ConsensusStateAmino; -} -/** ConsensusState defines the consensus state from Tendermint. */ -export interface ConsensusStateSDKType { - timestamp: Date; - root: MerkleRootSDKType; - next_validators_hash: Uint8Array; -} -/** - * Misbehaviour is a wrapper over two conflicting Headers - * that implements Misbehaviour interface expected by ICS-02 - */ -export interface Misbehaviour { - clientId: string; - header1: Header; - header2: Header; -} -export interface MisbehaviourProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.Misbehaviour"; - value: Uint8Array; -} -/** - * Misbehaviour is a wrapper over two conflicting Headers - * that implements Misbehaviour interface expected by ICS-02 - */ -export interface MisbehaviourAmino { - client_id: string; - header_1?: HeaderAmino; - header_2?: HeaderAmino; -} -export interface MisbehaviourAminoMsg { - type: "cosmos-sdk/Misbehaviour"; - value: MisbehaviourAmino; -} -/** - * Misbehaviour is a wrapper over two conflicting Headers - * that implements Misbehaviour interface expected by ICS-02 - */ -export interface MisbehaviourSDKType { - client_id: string; - header_1: HeaderSDKType; - header_2: HeaderSDKType; -} -/** - * Header defines the Tendermint client consensus Header. - * It encapsulates all the information necessary to update from a trusted - * Tendermint ConsensusState. The inclusion of TrustedHeight and - * TrustedValidators allows this update to process correctly, so long as the - * ConsensusState for the TrustedHeight exists, this removes race conditions - * among relayers The SignedHeader and ValidatorSet are the new untrusted update - * fields for the client. The TrustedHeight is the height of a stored - * ConsensusState on the client that will be used to verify the new untrusted - * header. The Trusted ConsensusState must be within the unbonding period of - * current time in order to correctly verify, and the TrustedValidators must - * hash to TrustedConsensusState.NextValidatorsHash since that is the last - * trusted validator set at the TrustedHeight. - */ -export interface Header { - signedHeader: SignedHeader; - validatorSet: ValidatorSet; - trustedHeight: Height; - trustedValidators: ValidatorSet; -} -export interface HeaderProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.Header"; - value: Uint8Array; -} -/** - * Header defines the Tendermint client consensus Header. - * It encapsulates all the information necessary to update from a trusted - * Tendermint ConsensusState. The inclusion of TrustedHeight and - * TrustedValidators allows this update to process correctly, so long as the - * ConsensusState for the TrustedHeight exists, this removes race conditions - * among relayers The SignedHeader and ValidatorSet are the new untrusted update - * fields for the client. The TrustedHeight is the height of a stored - * ConsensusState on the client that will be used to verify the new untrusted - * header. The Trusted ConsensusState must be within the unbonding period of - * current time in order to correctly verify, and the TrustedValidators must - * hash to TrustedConsensusState.NextValidatorsHash since that is the last - * trusted validator set at the TrustedHeight. - */ -export interface HeaderAmino { - signed_header?: SignedHeaderAmino; - validator_set?: ValidatorSetAmino; - trusted_height?: HeightAmino; - trusted_validators?: ValidatorSetAmino; -} -export interface HeaderAminoMsg { - type: "cosmos-sdk/Header"; - value: HeaderAmino; -} -/** - * Header defines the Tendermint client consensus Header. - * It encapsulates all the information necessary to update from a trusted - * Tendermint ConsensusState. The inclusion of TrustedHeight and - * TrustedValidators allows this update to process correctly, so long as the - * ConsensusState for the TrustedHeight exists, this removes race conditions - * among relayers The SignedHeader and ValidatorSet are the new untrusted update - * fields for the client. The TrustedHeight is the height of a stored - * ConsensusState on the client that will be used to verify the new untrusted - * header. The Trusted ConsensusState must be within the unbonding period of - * current time in order to correctly verify, and the TrustedValidators must - * hash to TrustedConsensusState.NextValidatorsHash since that is the last - * trusted validator set at the TrustedHeight. - */ -export interface HeaderSDKType { - signed_header: SignedHeaderSDKType; - validator_set: ValidatorSetSDKType; - trusted_height: HeightSDKType; - trusted_validators: ValidatorSetSDKType; -} -/** - * Fraction defines the protobuf message type for tmmath.Fraction that only - * supports positive values. - */ -export interface Fraction { - numerator: Long; - denominator: Long; -} -export interface FractionProtoMsg { - typeUrl: "/ibc.lightclients.tendermint.v1.Fraction"; - value: Uint8Array; -} -/** - * Fraction defines the protobuf message type for tmmath.Fraction that only - * supports positive values. - */ -export interface FractionAmino { - numerator: string; - denominator: string; -} -export interface FractionAminoMsg { - type: "cosmos-sdk/Fraction"; - value: FractionAmino; -} -/** - * Fraction defines the protobuf message type for tmmath.Fraction that only - * supports positive values. - */ -export interface FractionSDKType { - numerator: Long; - denominator: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/ics23/bundle.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/ics23/bundle.ts deleted file mode 100644 index e428aabcb..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/ics23/bundle.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as _16 from "../confio/proofs"; -export const ics23 = { - ..._16, -}; diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/index.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/index.ts deleted file mode 100644 index ad5b9ec82..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/index.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file and any referenced files were automatically generated by @cosmology/telescope@0.104.0 - * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain - * and run the transpile command or yarn proto command to regenerate this bundle. - */ - -export * from "./cheqdid/bundle"; -export * from "./cheqd/bundle"; -export * from "./ics23/bundle"; -export * from "./cosmos_proto/bundle"; -export * from "./cosmos/bundle"; -export * from "./cosmwasm/bundle"; -export * from "./google/bundle"; -export * from "./ibc/bundle"; -export * from "./tendermint/bundle"; diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/abci/types.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/abci/types.ts deleted file mode 100644 index 436d6f257..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/abci/types.ts +++ /dev/null @@ -1,1405 +0,0 @@ -import { Header, HeaderAmino, HeaderSDKType } from "../types/types"; -import { ProofOps, ProofOpsAmino, ProofOpsSDKType } from "../crypto/proof"; -import { - EvidenceParams, - EvidenceParamsAmino, - EvidenceParamsSDKType, - ValidatorParams, - ValidatorParamsAmino, - ValidatorParamsSDKType, - VersionParams, - VersionParamsAmino, - VersionParamsSDKType, -} from "../types/params"; -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { Long } from "../../helpers"; -export enum CheckTxType { - NEW = 0, - RECHECK = 1, - UNRECOGNIZED = -1, -} -export const CheckTxTypeSDKType = CheckTxType; -export const CheckTxTypeAmino = CheckTxType; -export function checkTxTypeFromJSON(object: any): CheckTxType { - switch (object) { - case 0: - case "NEW": - return CheckTxType.NEW; - case 1: - case "RECHECK": - return CheckTxType.RECHECK; - case -1: - case "UNRECOGNIZED": - default: - return CheckTxType.UNRECOGNIZED; - } -} -export function checkTxTypeToJSON(object: CheckTxType): string { - switch (object) { - case CheckTxType.NEW: - return "NEW"; - case CheckTxType.RECHECK: - return "RECHECK"; - case CheckTxType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum ResponseOfferSnapshot_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Snapshot accepted, apply chunks */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** REJECT - Reject this specific snapshot, try others */ - REJECT = 3, - /** REJECT_FORMAT - Reject all snapshots of this format, try others */ - REJECT_FORMAT = 4, - /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ - REJECT_SENDER = 5, - UNRECOGNIZED = -1, -} -export const ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result; -export const ResponseOfferSnapshot_ResultAmino = ResponseOfferSnapshot_Result; -export function responseOfferSnapshot_ResultFromJSON( - object: any -): ResponseOfferSnapshot_Result { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseOfferSnapshot_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseOfferSnapshot_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseOfferSnapshot_Result.ABORT; - case 3: - case "REJECT": - return ResponseOfferSnapshot_Result.REJECT; - case 4: - case "REJECT_FORMAT": - return ResponseOfferSnapshot_Result.REJECT_FORMAT; - case 5: - case "REJECT_SENDER": - return ResponseOfferSnapshot_Result.REJECT_SENDER; - case -1: - case "UNRECOGNIZED": - default: - return ResponseOfferSnapshot_Result.UNRECOGNIZED; - } -} -export function responseOfferSnapshot_ResultToJSON( - object: ResponseOfferSnapshot_Result -): string { - switch (object) { - case ResponseOfferSnapshot_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseOfferSnapshot_Result.ACCEPT: - return "ACCEPT"; - case ResponseOfferSnapshot_Result.ABORT: - return "ABORT"; - case ResponseOfferSnapshot_Result.REJECT: - return "REJECT"; - case ResponseOfferSnapshot_Result.REJECT_FORMAT: - return "REJECT_FORMAT"; - case ResponseOfferSnapshot_Result.REJECT_SENDER: - return "REJECT_SENDER"; - case ResponseOfferSnapshot_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum ResponseApplySnapshotChunk_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Chunk successfully accepted */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** RETRY - Retry chunk (combine with refetch and reject) */ - RETRY = 3, - /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ - RETRY_SNAPSHOT = 4, - /** REJECT_SNAPSHOT - Reject this snapshot, try others */ - REJECT_SNAPSHOT = 5, - UNRECOGNIZED = -1, -} -export const ResponseApplySnapshotChunk_ResultSDKType = - ResponseApplySnapshotChunk_Result; -export const ResponseApplySnapshotChunk_ResultAmino = - ResponseApplySnapshotChunk_Result; -export function responseApplySnapshotChunk_ResultFromJSON( - object: any -): ResponseApplySnapshotChunk_Result { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseApplySnapshotChunk_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseApplySnapshotChunk_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseApplySnapshotChunk_Result.ABORT; - case 3: - case "RETRY": - return ResponseApplySnapshotChunk_Result.RETRY; - case 4: - case "RETRY_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT; - case 5: - case "REJECT_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT; - case -1: - case "UNRECOGNIZED": - default: - return ResponseApplySnapshotChunk_Result.UNRECOGNIZED; - } -} -export function responseApplySnapshotChunk_ResultToJSON( - object: ResponseApplySnapshotChunk_Result -): string { - switch (object) { - case ResponseApplySnapshotChunk_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseApplySnapshotChunk_Result.ACCEPT: - return "ACCEPT"; - case ResponseApplySnapshotChunk_Result.ABORT: - return "ABORT"; - case ResponseApplySnapshotChunk_Result.RETRY: - return "RETRY"; - case ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT: - return "RETRY_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT: - return "REJECT_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum EvidenceType { - UNKNOWN = 0, - DUPLICATE_VOTE = 1, - LIGHT_CLIENT_ATTACK = 2, - UNRECOGNIZED = -1, -} -export const EvidenceTypeSDKType = EvidenceType; -export const EvidenceTypeAmino = EvidenceType; -export function evidenceTypeFromJSON(object: any): EvidenceType { - switch (object) { - case 0: - case "UNKNOWN": - return EvidenceType.UNKNOWN; - case 1: - case "DUPLICATE_VOTE": - return EvidenceType.DUPLICATE_VOTE; - case 2: - case "LIGHT_CLIENT_ATTACK": - return EvidenceType.LIGHT_CLIENT_ATTACK; - case -1: - case "UNRECOGNIZED": - default: - return EvidenceType.UNRECOGNIZED; - } -} -export function evidenceTypeToJSON(object: EvidenceType): string { - switch (object) { - case EvidenceType.UNKNOWN: - return "UNKNOWN"; - case EvidenceType.DUPLICATE_VOTE: - return "DUPLICATE_VOTE"; - case EvidenceType.LIGHT_CLIENT_ATTACK: - return "LIGHT_CLIENT_ATTACK"; - case EvidenceType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export interface Request { - echo?: RequestEcho; - flush?: RequestFlush; - info?: RequestInfo; - setOption?: RequestSetOption; - initChain?: RequestInitChain; - query?: RequestQuery; - beginBlock?: RequestBeginBlock; - checkTx?: RequestCheckTx; - deliverTx?: RequestDeliverTx; - endBlock?: RequestEndBlock; - commit?: RequestCommit; - listSnapshots?: RequestListSnapshots; - offerSnapshot?: RequestOfferSnapshot; - loadSnapshotChunk?: RequestLoadSnapshotChunk; - applySnapshotChunk?: RequestApplySnapshotChunk; -} -export interface RequestProtoMsg { - typeUrl: "/tendermint.abci.Request"; - value: Uint8Array; -} -export interface RequestAmino { - echo?: RequestEchoAmino; - flush?: RequestFlushAmino; - info?: RequestInfoAmino; - set_option?: RequestSetOptionAmino; - init_chain?: RequestInitChainAmino; - query?: RequestQueryAmino; - begin_block?: RequestBeginBlockAmino; - check_tx?: RequestCheckTxAmino; - deliver_tx?: RequestDeliverTxAmino; - end_block?: RequestEndBlockAmino; - commit?: RequestCommitAmino; - list_snapshots?: RequestListSnapshotsAmino; - offer_snapshot?: RequestOfferSnapshotAmino; - load_snapshot_chunk?: RequestLoadSnapshotChunkAmino; - apply_snapshot_chunk?: RequestApplySnapshotChunkAmino; -} -export interface RequestAminoMsg { - type: "/tendermint.abci.Request"; - value: RequestAmino; -} -export interface RequestSDKType { - echo?: RequestEchoSDKType; - flush?: RequestFlushSDKType; - info?: RequestInfoSDKType; - set_option?: RequestSetOptionSDKType; - init_chain?: RequestInitChainSDKType; - query?: RequestQuerySDKType; - begin_block?: RequestBeginBlockSDKType; - check_tx?: RequestCheckTxSDKType; - deliver_tx?: RequestDeliverTxSDKType; - end_block?: RequestEndBlockSDKType; - commit?: RequestCommitSDKType; - list_snapshots?: RequestListSnapshotsSDKType; - offer_snapshot?: RequestOfferSnapshotSDKType; - load_snapshot_chunk?: RequestLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: RequestApplySnapshotChunkSDKType; -} -export interface RequestEcho { - message: string; -} -export interface RequestEchoProtoMsg { - typeUrl: "/tendermint.abci.RequestEcho"; - value: Uint8Array; -} -export interface RequestEchoAmino { - message: string; -} -export interface RequestEchoAminoMsg { - type: "/tendermint.abci.RequestEcho"; - value: RequestEchoAmino; -} -export interface RequestEchoSDKType { - message: string; -} -export interface RequestFlush {} -export interface RequestFlushProtoMsg { - typeUrl: "/tendermint.abci.RequestFlush"; - value: Uint8Array; -} -export interface RequestFlushAmino {} -export interface RequestFlushAminoMsg { - type: "/tendermint.abci.RequestFlush"; - value: RequestFlushAmino; -} -export interface RequestFlushSDKType {} -export interface RequestInfo { - version: string; - blockVersion: Long; - p2pVersion: Long; -} -export interface RequestInfoProtoMsg { - typeUrl: "/tendermint.abci.RequestInfo"; - value: Uint8Array; -} -export interface RequestInfoAmino { - version: string; - block_version: string; - p2p_version: string; -} -export interface RequestInfoAminoMsg { - type: "/tendermint.abci.RequestInfo"; - value: RequestInfoAmino; -} -export interface RequestInfoSDKType { - version: string; - block_version: Long; - p2p_version: Long; -} -/** nondeterministic */ -export interface RequestSetOption { - key: string; - value: string; -} -export interface RequestSetOptionProtoMsg { - typeUrl: "/tendermint.abci.RequestSetOption"; - value: Uint8Array; -} -/** nondeterministic */ -export interface RequestSetOptionAmino { - key: string; - value: string; -} -export interface RequestSetOptionAminoMsg { - type: "/tendermint.abci.RequestSetOption"; - value: RequestSetOptionAmino; -} -/** nondeterministic */ -export interface RequestSetOptionSDKType { - key: string; - value: string; -} -export interface RequestInitChain { - time: Date; - chainId: string; - consensusParams: ConsensusParams; - validators: ValidatorUpdate[]; - appStateBytes: Uint8Array; - initialHeight: Long; -} -export interface RequestInitChainProtoMsg { - typeUrl: "/tendermint.abci.RequestInitChain"; - value: Uint8Array; -} -export interface RequestInitChainAmino { - time?: Date; - chain_id: string; - consensus_params?: ConsensusParamsAmino; - validators: ValidatorUpdateAmino[]; - app_state_bytes: Uint8Array; - initial_height: string; -} -export interface RequestInitChainAminoMsg { - type: "/tendermint.abci.RequestInitChain"; - value: RequestInitChainAmino; -} -export interface RequestInitChainSDKType { - time: Date; - chain_id: string; - consensus_params: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_state_bytes: Uint8Array; - initial_height: Long; -} -export interface RequestQuery { - data: Uint8Array; - path: string; - height: Long; - prove: boolean; -} -export interface RequestQueryProtoMsg { - typeUrl: "/tendermint.abci.RequestQuery"; - value: Uint8Array; -} -export interface RequestQueryAmino { - data: Uint8Array; - path: string; - height: string; - prove: boolean; -} -export interface RequestQueryAminoMsg { - type: "/tendermint.abci.RequestQuery"; - value: RequestQueryAmino; -} -export interface RequestQuerySDKType { - data: Uint8Array; - path: string; - height: Long; - prove: boolean; -} -export interface RequestBeginBlock { - hash: Uint8Array; - header: Header; - lastCommitInfo: LastCommitInfo; - byzantineValidators: Evidence[]; -} -export interface RequestBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestBeginBlock"; - value: Uint8Array; -} -export interface RequestBeginBlockAmino { - hash: Uint8Array; - header?: HeaderAmino; - last_commit_info?: LastCommitInfoAmino; - byzantine_validators: EvidenceAmino[]; -} -export interface RequestBeginBlockAminoMsg { - type: "/tendermint.abci.RequestBeginBlock"; - value: RequestBeginBlockAmino; -} -export interface RequestBeginBlockSDKType { - hash: Uint8Array; - header: HeaderSDKType; - last_commit_info: LastCommitInfoSDKType; - byzantine_validators: EvidenceSDKType[]; -} -export interface RequestCheckTx { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestCheckTxProtoMsg { - typeUrl: "/tendermint.abci.RequestCheckTx"; - value: Uint8Array; -} -export interface RequestCheckTxAmino { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestCheckTxAminoMsg { - type: "/tendermint.abci.RequestCheckTx"; - value: RequestCheckTxAmino; -} -export interface RequestCheckTxSDKType { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestDeliverTx { - tx: Uint8Array; -} -export interface RequestDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.RequestDeliverTx"; - value: Uint8Array; -} -export interface RequestDeliverTxAmino { - tx: Uint8Array; -} -export interface RequestDeliverTxAminoMsg { - type: "/tendermint.abci.RequestDeliverTx"; - value: RequestDeliverTxAmino; -} -export interface RequestDeliverTxSDKType { - tx: Uint8Array; -} -export interface RequestEndBlock { - height: Long; -} -export interface RequestEndBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestEndBlock"; - value: Uint8Array; -} -export interface RequestEndBlockAmino { - height: string; -} -export interface RequestEndBlockAminoMsg { - type: "/tendermint.abci.RequestEndBlock"; - value: RequestEndBlockAmino; -} -export interface RequestEndBlockSDKType { - height: Long; -} -export interface RequestCommit {} -export interface RequestCommitProtoMsg { - typeUrl: "/tendermint.abci.RequestCommit"; - value: Uint8Array; -} -export interface RequestCommitAmino {} -export interface RequestCommitAminoMsg { - type: "/tendermint.abci.RequestCommit"; - value: RequestCommitAmino; -} -export interface RequestCommitSDKType {} -/** lists available snapshots */ -export interface RequestListSnapshots {} -export interface RequestListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.RequestListSnapshots"; - value: Uint8Array; -} -/** lists available snapshots */ -export interface RequestListSnapshotsAmino {} -export interface RequestListSnapshotsAminoMsg { - type: "/tendermint.abci.RequestListSnapshots"; - value: RequestListSnapshotsAmino; -} -/** lists available snapshots */ -export interface RequestListSnapshotsSDKType {} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshot { - /** snapshot offered by peers */ - snapshot: Snapshot; - /** light client-verified app hash for snapshot height */ - appHash: Uint8Array; -} -export interface RequestOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.RequestOfferSnapshot"; - value: Uint8Array; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotAmino { - /** snapshot offered by peers */ - snapshot?: SnapshotAmino; - /** light client-verified app hash for snapshot height */ - app_hash: Uint8Array; -} -export interface RequestOfferSnapshotAminoMsg { - type: "/tendermint.abci.RequestOfferSnapshot"; - value: RequestOfferSnapshotAmino; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotSDKType { - snapshot: SnapshotSDKType; - app_hash: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunk { - height: Long; - format: number; - chunk: number; -} -export interface RequestLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkAmino { - height: string; - format: number; - chunk: number; -} -export interface RequestLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: RequestLoadSnapshotChunkAmino; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkSDKType { - height: Long; - format: number; - chunk: number; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunk { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk"; - value: Uint8Array; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkAmino { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestApplySnapshotChunk"; - value: RequestApplySnapshotChunkAmino; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkSDKType { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface Response { - exception?: ResponseException; - echo?: ResponseEcho; - flush?: ResponseFlush; - info?: ResponseInfo; - setOption?: ResponseSetOption; - initChain?: ResponseInitChain; - query?: ResponseQuery; - beginBlock?: ResponseBeginBlock; - checkTx?: ResponseCheckTx; - deliverTx?: ResponseDeliverTx; - endBlock?: ResponseEndBlock; - commit?: ResponseCommit; - listSnapshots?: ResponseListSnapshots; - offerSnapshot?: ResponseOfferSnapshot; - loadSnapshotChunk?: ResponseLoadSnapshotChunk; - applySnapshotChunk?: ResponseApplySnapshotChunk; -} -export interface ResponseProtoMsg { - typeUrl: "/tendermint.abci.Response"; - value: Uint8Array; -} -export interface ResponseAmino { - exception?: ResponseExceptionAmino; - echo?: ResponseEchoAmino; - flush?: ResponseFlushAmino; - info?: ResponseInfoAmino; - set_option?: ResponseSetOptionAmino; - init_chain?: ResponseInitChainAmino; - query?: ResponseQueryAmino; - begin_block?: ResponseBeginBlockAmino; - check_tx?: ResponseCheckTxAmino; - deliver_tx?: ResponseDeliverTxAmino; - end_block?: ResponseEndBlockAmino; - commit?: ResponseCommitAmino; - list_snapshots?: ResponseListSnapshotsAmino; - offer_snapshot?: ResponseOfferSnapshotAmino; - load_snapshot_chunk?: ResponseLoadSnapshotChunkAmino; - apply_snapshot_chunk?: ResponseApplySnapshotChunkAmino; -} -export interface ResponseAminoMsg { - type: "/tendermint.abci.Response"; - value: ResponseAmino; -} -export interface ResponseSDKType { - exception?: ResponseExceptionSDKType; - echo?: ResponseEchoSDKType; - flush?: ResponseFlushSDKType; - info?: ResponseInfoSDKType; - set_option?: ResponseSetOptionSDKType; - init_chain?: ResponseInitChainSDKType; - query?: ResponseQuerySDKType; - begin_block?: ResponseBeginBlockSDKType; - check_tx?: ResponseCheckTxSDKType; - deliver_tx?: ResponseDeliverTxSDKType; - end_block?: ResponseEndBlockSDKType; - commit?: ResponseCommitSDKType; - list_snapshots?: ResponseListSnapshotsSDKType; - offer_snapshot?: ResponseOfferSnapshotSDKType; - load_snapshot_chunk?: ResponseLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: ResponseApplySnapshotChunkSDKType; -} -/** nondeterministic */ -export interface ResponseException { - error: string; -} -export interface ResponseExceptionProtoMsg { - typeUrl: "/tendermint.abci.ResponseException"; - value: Uint8Array; -} -/** nondeterministic */ -export interface ResponseExceptionAmino { - error: string; -} -export interface ResponseExceptionAminoMsg { - type: "/tendermint.abci.ResponseException"; - value: ResponseExceptionAmino; -} -/** nondeterministic */ -export interface ResponseExceptionSDKType { - error: string; -} -export interface ResponseEcho { - message: string; -} -export interface ResponseEchoProtoMsg { - typeUrl: "/tendermint.abci.ResponseEcho"; - value: Uint8Array; -} -export interface ResponseEchoAmino { - message: string; -} -export interface ResponseEchoAminoMsg { - type: "/tendermint.abci.ResponseEcho"; - value: ResponseEchoAmino; -} -export interface ResponseEchoSDKType { - message: string; -} -export interface ResponseFlush {} -export interface ResponseFlushProtoMsg { - typeUrl: "/tendermint.abci.ResponseFlush"; - value: Uint8Array; -} -export interface ResponseFlushAmino {} -export interface ResponseFlushAminoMsg { - type: "/tendermint.abci.ResponseFlush"; - value: ResponseFlushAmino; -} -export interface ResponseFlushSDKType {} -export interface ResponseInfo { - data: string; - version: string; - appVersion: Long; - lastBlockHeight: Long; - lastBlockAppHash: Uint8Array; -} -export interface ResponseInfoProtoMsg { - typeUrl: "/tendermint.abci.ResponseInfo"; - value: Uint8Array; -} -export interface ResponseInfoAmino { - data: string; - version: string; - app_version: string; - last_block_height: string; - last_block_app_hash: Uint8Array; -} -export interface ResponseInfoAminoMsg { - type: "/tendermint.abci.ResponseInfo"; - value: ResponseInfoAmino; -} -export interface ResponseInfoSDKType { - data: string; - version: string; - app_version: Long; - last_block_height: Long; - last_block_app_hash: Uint8Array; -} -/** nondeterministic */ -export interface ResponseSetOption { - code: number; - /** bytes data = 2; */ - log: string; - info: string; -} -export interface ResponseSetOptionProtoMsg { - typeUrl: "/tendermint.abci.ResponseSetOption"; - value: Uint8Array; -} -/** nondeterministic */ -export interface ResponseSetOptionAmino { - code: number; - /** bytes data = 2; */ - log: string; - info: string; -} -export interface ResponseSetOptionAminoMsg { - type: "/tendermint.abci.ResponseSetOption"; - value: ResponseSetOptionAmino; -} -/** nondeterministic */ -export interface ResponseSetOptionSDKType { - code: number; - log: string; - info: string; -} -export interface ResponseInitChain { - consensusParams: ConsensusParams; - validators: ValidatorUpdate[]; - appHash: Uint8Array; -} -export interface ResponseInitChainProtoMsg { - typeUrl: "/tendermint.abci.ResponseInitChain"; - value: Uint8Array; -} -export interface ResponseInitChainAmino { - consensus_params?: ConsensusParamsAmino; - validators: ValidatorUpdateAmino[]; - app_hash: Uint8Array; -} -export interface ResponseInitChainAminoMsg { - type: "/tendermint.abci.ResponseInitChain"; - value: ResponseInitChainAmino; -} -export interface ResponseInitChainSDKType { - consensus_params: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_hash: Uint8Array; -} -export interface ResponseQuery { - code: number; - /** bytes data = 2; // use "value" instead. */ - log: string; - /** nondeterministic */ - info: string; - index: Long; - key: Uint8Array; - value: Uint8Array; - proofOps: ProofOps; - height: Long; - codespace: string; -} -export interface ResponseQueryProtoMsg { - typeUrl: "/tendermint.abci.ResponseQuery"; - value: Uint8Array; -} -export interface ResponseQueryAmino { - code: number; - /** bytes data = 2; // use "value" instead. */ - log: string; - /** nondeterministic */ - info: string; - index: string; - key: Uint8Array; - value: Uint8Array; - proof_ops?: ProofOpsAmino; - height: string; - codespace: string; -} -export interface ResponseQueryAminoMsg { - type: "/tendermint.abci.ResponseQuery"; - value: ResponseQueryAmino; -} -export interface ResponseQuerySDKType { - code: number; - log: string; - info: string; - index: Long; - key: Uint8Array; - value: Uint8Array; - proof_ops: ProofOpsSDKType; - height: Long; - codespace: string; -} -export interface ResponseBeginBlock { - events: Event[]; -} -export interface ResponseBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseBeginBlock"; - value: Uint8Array; -} -export interface ResponseBeginBlockAmino { - events: EventAmino[]; -} -export interface ResponseBeginBlockAminoMsg { - type: "/tendermint.abci.ResponseBeginBlock"; - value: ResponseBeginBlockAmino; -} -export interface ResponseBeginBlockSDKType { - events: EventSDKType[]; -} -export interface ResponseCheckTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: Long; - gasUsed: Long; - events: Event[]; - codespace: string; -} -export interface ResponseCheckTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseCheckTx"; - value: Uint8Array; -} -export interface ResponseCheckTxAmino { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gas_wanted: string; - gas_used: string; - events: EventAmino[]; - codespace: string; -} -export interface ResponseCheckTxAminoMsg { - type: "/tendermint.abci.ResponseCheckTx"; - value: ResponseCheckTxAmino; -} -export interface ResponseCheckTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: Long; - gas_used: Long; - events: EventSDKType[]; - codespace: string; -} -export interface ResponseDeliverTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: Long; - gasUsed: Long; - events: Event[]; - codespace: string; -} -export interface ResponseDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseDeliverTx"; - value: Uint8Array; -} -export interface ResponseDeliverTxAmino { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gas_wanted: string; - gas_used: string; - events: EventAmino[]; - codespace: string; -} -export interface ResponseDeliverTxAminoMsg { - type: "/tendermint.abci.ResponseDeliverTx"; - value: ResponseDeliverTxAmino; -} -export interface ResponseDeliverTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: Long; - gas_used: Long; - events: EventSDKType[]; - codespace: string; -} -export interface ResponseEndBlock { - validatorUpdates: ValidatorUpdate[]; - consensusParamUpdates: ConsensusParams; - events: Event[]; -} -export interface ResponseEndBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseEndBlock"; - value: Uint8Array; -} -export interface ResponseEndBlockAmino { - validator_updates: ValidatorUpdateAmino[]; - consensus_param_updates?: ConsensusParamsAmino; - events: EventAmino[]; -} -export interface ResponseEndBlockAminoMsg { - type: "/tendermint.abci.ResponseEndBlock"; - value: ResponseEndBlockAmino; -} -export interface ResponseEndBlockSDKType { - validator_updates: ValidatorUpdateSDKType[]; - consensus_param_updates: ConsensusParamsSDKType; - events: EventSDKType[]; -} -export interface ResponseCommit { - /** reserve 1 */ - data: Uint8Array; - retainHeight: Long; -} -export interface ResponseCommitProtoMsg { - typeUrl: "/tendermint.abci.ResponseCommit"; - value: Uint8Array; -} -export interface ResponseCommitAmino { - /** reserve 1 */ - data: Uint8Array; - retain_height: string; -} -export interface ResponseCommitAminoMsg { - type: "/tendermint.abci.ResponseCommit"; - value: ResponseCommitAmino; -} -export interface ResponseCommitSDKType { - data: Uint8Array; - retain_height: Long; -} -export interface ResponseListSnapshots { - snapshots: Snapshot[]; -} -export interface ResponseListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.ResponseListSnapshots"; - value: Uint8Array; -} -export interface ResponseListSnapshotsAmino { - snapshots: SnapshotAmino[]; -} -export interface ResponseListSnapshotsAminoMsg { - type: "/tendermint.abci.ResponseListSnapshots"; - value: ResponseListSnapshotsAmino; -} -export interface ResponseListSnapshotsSDKType { - snapshots: SnapshotSDKType[]; -} -export interface ResponseOfferSnapshot { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot"; - value: Uint8Array; -} -export interface ResponseOfferSnapshotAmino { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotAminoMsg { - type: "/tendermint.abci.ResponseOfferSnapshot"; - value: ResponseOfferSnapshotAmino; -} -export interface ResponseOfferSnapshotSDKType { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseLoadSnapshotChunk { - chunk: Uint8Array; -} -export interface ResponseLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: Uint8Array; -} -export interface ResponseLoadSnapshotChunkAmino { - chunk: Uint8Array; -} -export interface ResponseLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: ResponseLoadSnapshotChunkAmino; -} -export interface ResponseLoadSnapshotChunkSDKType { - chunk: Uint8Array; -} -export interface ResponseApplySnapshotChunk { - result: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetchChunks: number[]; - /** Chunk senders to reject and ban */ - rejectSenders: string[]; -} -export interface ResponseApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: Uint8Array; -} -export interface ResponseApplySnapshotChunkAmino { - result: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetch_chunks: number[]; - /** Chunk senders to reject and ban */ - reject_senders: string[]; -} -export interface ResponseApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: ResponseApplySnapshotChunkAmino; -} -export interface ResponseApplySnapshotChunkSDKType { - result: ResponseApplySnapshotChunk_Result; - refetch_chunks: number[]; - reject_senders: string[]; -} -/** - * ConsensusParams contains all consensus-relevant parameters - * that can be adjusted by the abci app - */ -export interface ConsensusParams { - block: BlockParams; - evidence: EvidenceParams; - validator: ValidatorParams; - version: VersionParams; -} -export interface ConsensusParamsProtoMsg { - typeUrl: "/tendermint.abci.ConsensusParams"; - value: Uint8Array; -} -/** - * ConsensusParams contains all consensus-relevant parameters - * that can be adjusted by the abci app - */ -export interface ConsensusParamsAmino { - block?: BlockParamsAmino; - evidence?: EvidenceParamsAmino; - validator?: ValidatorParamsAmino; - version?: VersionParamsAmino; -} -export interface ConsensusParamsAminoMsg { - type: "/tendermint.abci.ConsensusParams"; - value: ConsensusParamsAmino; -} -/** - * ConsensusParams contains all consensus-relevant parameters - * that can be adjusted by the abci app - */ -export interface ConsensusParamsSDKType { - block: BlockParamsSDKType; - evidence: EvidenceParamsSDKType; - validator: ValidatorParamsSDKType; - version: VersionParamsSDKType; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParams { - /** Note: must be greater than 0 */ - maxBytes: Long; - /** Note: must be greater or equal to -1 */ - maxGas: Long; -} -export interface BlockParamsProtoMsg { - typeUrl: "/tendermint.abci.BlockParams"; - value: Uint8Array; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsAmino { - /** Note: must be greater than 0 */ - max_bytes: string; - /** Note: must be greater or equal to -1 */ - max_gas: string; -} -export interface BlockParamsAminoMsg { - type: "/tendermint.abci.BlockParams"; - value: BlockParamsAmino; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsSDKType { - max_bytes: Long; - max_gas: Long; -} -export interface LastCommitInfo { - round: number; - votes: VoteInfo[]; -} -export interface LastCommitInfoProtoMsg { - typeUrl: "/tendermint.abci.LastCommitInfo"; - value: Uint8Array; -} -export interface LastCommitInfoAmino { - round: number; - votes: VoteInfoAmino[]; -} -export interface LastCommitInfoAminoMsg { - type: "/tendermint.abci.LastCommitInfo"; - value: LastCommitInfoAmino; -} -export interface LastCommitInfoSDKType { - round: number; - votes: VoteInfoSDKType[]; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface Event { - type: string; - attributes: EventAttribute[]; -} -export interface EventProtoMsg { - typeUrl: "/tendermint.abci.Event"; - value: Uint8Array; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventAmino { - type: string; - attributes: EventAttributeAmino[]; -} -export interface EventAminoMsg { - type: "/tendermint.abci.Event"; - value: EventAmino; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventSDKType { - type: string; - attributes: EventAttributeSDKType[]; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttribute { - key: Uint8Array; - value: Uint8Array; - /** nondeterministic */ - index: boolean; -} -export interface EventAttributeProtoMsg { - typeUrl: "/tendermint.abci.EventAttribute"; - value: Uint8Array; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeAmino { - key: Uint8Array; - value: Uint8Array; - /** nondeterministic */ - index: boolean; -} -export interface EventAttributeAminoMsg { - type: "/tendermint.abci.EventAttribute"; - value: EventAttributeAmino; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeSDKType { - key: Uint8Array; - value: Uint8Array; - index: boolean; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResult { - height: Long; - index: number; - tx: Uint8Array; - result: ResponseDeliverTx; -} -export interface TxResultProtoMsg { - typeUrl: "/tendermint.abci.TxResult"; - value: Uint8Array; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultAmino { - height: string; - index: number; - tx: Uint8Array; - result?: ResponseDeliverTxAmino; -} -export interface TxResultAminoMsg { - type: "/tendermint.abci.TxResult"; - value: TxResultAmino; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultSDKType { - height: Long; - index: number; - tx: Uint8Array; - result: ResponseDeliverTxSDKType; -} -/** Validator */ -export interface Validator { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address: Uint8Array; - /** The voting power */ - power: Long; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.abci.Validator"; - value: Uint8Array; -} -/** Validator */ -export interface ValidatorAmino { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address: Uint8Array; - /** The voting power */ - power: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.abci.Validator"; - value: ValidatorAmino; -} -/** Validator */ -export interface ValidatorSDKType { - address: Uint8Array; - power: Long; -} -/** ValidatorUpdate */ -export interface ValidatorUpdate { - pubKey: PublicKey; - power: Long; -} -export interface ValidatorUpdateProtoMsg { - typeUrl: "/tendermint.abci.ValidatorUpdate"; - value: Uint8Array; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateAmino { - pub_key?: PublicKeyAmino; - power: string; -} -export interface ValidatorUpdateAminoMsg { - type: "/tendermint.abci.ValidatorUpdate"; - value: ValidatorUpdateAmino; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateSDKType { - pub_key: PublicKeySDKType; - power: Long; -} -/** VoteInfo */ -export interface VoteInfo { - validator: Validator; - signedLastBlock: boolean; -} -export interface VoteInfoProtoMsg { - typeUrl: "/tendermint.abci.VoteInfo"; - value: Uint8Array; -} -/** VoteInfo */ -export interface VoteInfoAmino { - validator?: ValidatorAmino; - signed_last_block: boolean; -} -export interface VoteInfoAminoMsg { - type: "/tendermint.abci.VoteInfo"; - value: VoteInfoAmino; -} -/** VoteInfo */ -export interface VoteInfoSDKType { - validator: ValidatorSDKType; - signed_last_block: boolean; -} -export interface Evidence { - type: EvidenceType; - /** The offending validator */ - validator: Validator; - /** The height when the offense occurred */ - height: Long; - /** The corresponding time where the offense occurred */ - time: Date; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - totalVotingPower: Long; -} -export interface EvidenceProtoMsg { - typeUrl: "/tendermint.abci.Evidence"; - value: Uint8Array; -} -export interface EvidenceAmino { - type: EvidenceType; - /** The offending validator */ - validator?: ValidatorAmino; - /** The height when the offense occurred */ - height: string; - /** The corresponding time where the offense occurred */ - time?: Date; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - total_voting_power: string; -} -export interface EvidenceAminoMsg { - type: "/tendermint.abci.Evidence"; - value: EvidenceAmino; -} -export interface EvidenceSDKType { - type: EvidenceType; - validator: ValidatorSDKType; - height: Long; - time: Date; - total_voting_power: Long; -} -export interface Snapshot { - /** The height at which the snapshot was taken */ - height: Long; - /** The application-specific snapshot format */ - format: number; - /** Number of chunks in the snapshot */ - chunks: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash: Uint8Array; - /** Arbitrary application metadata */ - metadata: Uint8Array; -} -export interface SnapshotProtoMsg { - typeUrl: "/tendermint.abci.Snapshot"; - value: Uint8Array; -} -export interface SnapshotAmino { - /** The height at which the snapshot was taken */ - height: string; - /** The application-specific snapshot format */ - format: number; - /** Number of chunks in the snapshot */ - chunks: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash: Uint8Array; - /** Arbitrary application metadata */ - metadata: Uint8Array; -} -export interface SnapshotAminoMsg { - type: "/tendermint.abci.Snapshot"; - value: SnapshotAmino; -} -export interface SnapshotSDKType { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/bundle.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/bundle.ts deleted file mode 100644 index 863d9eb72..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/bundle.ts +++ /dev/null @@ -1,38 +0,0 @@ -import * as _126 from "./abci/types"; -import * as _127 from "./crypto/keys"; -import * as _128 from "./crypto/proof"; -import * as _129 from "./libs/bits/types"; -import * as _130 from "./p2p/types"; -import * as _131 from "./types/block"; -import * as _132 from "./types/evidence"; -import * as _133 from "./types/params"; -import * as _134 from "./types/types"; -import * as _135 from "./types/validator"; -import * as _136 from "./version/types"; -export namespace tendermint { - export const abci = { - ..._126, - }; - export const crypto = { - ..._127, - ..._128, - }; - export namespace libs { - export const bits = { - ..._129, - }; - } - export const p2p = { - ..._130, - }; - export const types = { - ..._131, - ..._132, - ..._133, - ..._134, - ..._135, - }; - export const version = { - ..._136, - }; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/crypto/keys.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/crypto/keys.ts deleted file mode 100644 index a30588508..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/crypto/keys.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** PublicKey defines the keys available for use with Tendermint Validators */ -export interface PublicKey { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -export interface PublicKeyProtoMsg { - typeUrl: "/tendermint.crypto.PublicKey"; - value: Uint8Array; -} -/** PublicKey defines the keys available for use with Tendermint Validators */ -export interface PublicKeyAmino { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -export interface PublicKeyAminoMsg { - type: "/tendermint.crypto.PublicKey"; - value: PublicKeyAmino; -} -/** PublicKey defines the keys available for use with Tendermint Validators */ -export interface PublicKeySDKType { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/crypto/proof.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/crypto/proof.ts deleted file mode 100644 index ea60a0b57..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/crypto/proof.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { Long } from "../../helpers"; -export interface Proof { - total: Long; - index: Long; - leafHash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ProofProtoMsg { - typeUrl: "/tendermint.crypto.Proof"; - value: Uint8Array; -} -export interface ProofAmino { - total: string; - index: string; - leaf_hash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ProofAminoMsg { - type: "/tendermint.crypto.Proof"; - value: ProofAmino; -} -export interface ProofSDKType { - total: Long; - index: Long; - leaf_hash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ValueOp { - /** Encoded in ProofOp.Key. */ - key: Uint8Array; - /** To encode in ProofOp.Data */ - proof: Proof; -} -export interface ValueOpProtoMsg { - typeUrl: "/tendermint.crypto.ValueOp"; - value: Uint8Array; -} -export interface ValueOpAmino { - /** Encoded in ProofOp.Key. */ - key: Uint8Array; - /** To encode in ProofOp.Data */ - proof?: ProofAmino; -} -export interface ValueOpAminoMsg { - type: "/tendermint.crypto.ValueOp"; - value: ValueOpAmino; -} -export interface ValueOpSDKType { - key: Uint8Array; - proof: ProofSDKType; -} -export interface DominoOp { - key: string; - input: string; - output: string; -} -export interface DominoOpProtoMsg { - typeUrl: "/tendermint.crypto.DominoOp"; - value: Uint8Array; -} -export interface DominoOpAmino { - key: string; - input: string; - output: string; -} -export interface DominoOpAminoMsg { - type: "/tendermint.crypto.DominoOp"; - value: DominoOpAmino; -} -export interface DominoOpSDKType { - key: string; - input: string; - output: string; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOp { - type: string; - key: Uint8Array; - data: Uint8Array; -} -export interface ProofOpProtoMsg { - typeUrl: "/tendermint.crypto.ProofOp"; - value: Uint8Array; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpAmino { - type: string; - key: Uint8Array; - data: Uint8Array; -} -export interface ProofOpAminoMsg { - type: "/tendermint.crypto.ProofOp"; - value: ProofOpAmino; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpSDKType { - type: string; - key: Uint8Array; - data: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOps { - ops: ProofOp[]; -} -export interface ProofOpsProtoMsg { - typeUrl: "/tendermint.crypto.ProofOps"; - value: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsAmino { - ops: ProofOpAmino[]; -} -export interface ProofOpsAminoMsg { - type: "/tendermint.crypto.ProofOps"; - value: ProofOpsAmino; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsSDKType { - ops: ProofOpSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/libs/bits/types.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/libs/bits/types.ts deleted file mode 100644 index 8b8c42208..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/libs/bits/types.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Long } from "../../../helpers"; -export interface BitArray { - bits: Long; - elems: Long[]; -} -export interface BitArrayProtoMsg { - typeUrl: "/tendermint.libs.bits.BitArray"; - value: Uint8Array; -} -export interface BitArrayAmino { - bits: string; - elems: string[]; -} -export interface BitArrayAminoMsg { - type: "/tendermint.libs.bits.BitArray"; - value: BitArrayAmino; -} -export interface BitArraySDKType { - bits: Long; - elems: Long[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/p2p/types.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/p2p/types.ts deleted file mode 100644 index e38b45ae5..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/p2p/types.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { Long } from "../../helpers"; -export interface ProtocolVersion { - p2p: Long; - block: Long; - app: Long; -} -export interface ProtocolVersionProtoMsg { - typeUrl: "/tendermint.p2p.ProtocolVersion"; - value: Uint8Array; -} -export interface ProtocolVersionAmino { - p2p: string; - block: string; - app: string; -} -export interface ProtocolVersionAminoMsg { - type: "/tendermint.p2p.ProtocolVersion"; - value: ProtocolVersionAmino; -} -export interface ProtocolVersionSDKType { - p2p: Long; - block: Long; - app: Long; -} -export interface NodeInfo { - protocolVersion: ProtocolVersion; - nodeId: string; - listenAddr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: NodeInfoOther; -} -export interface NodeInfoProtoMsg { - typeUrl: "/tendermint.p2p.NodeInfo"; - value: Uint8Array; -} -export interface NodeInfoAmino { - protocol_version?: ProtocolVersionAmino; - node_id: string; - listen_addr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other?: NodeInfoOtherAmino; -} -export interface NodeInfoAminoMsg { - type: "/tendermint.p2p.NodeInfo"; - value: NodeInfoAmino; -} -export interface NodeInfoSDKType { - protocol_version: ProtocolVersionSDKType; - node_id: string; - listen_addr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: NodeInfoOtherSDKType; -} -export interface NodeInfoOther { - txIndex: string; - rpcAddress: string; -} -export interface NodeInfoOtherProtoMsg { - typeUrl: "/tendermint.p2p.NodeInfoOther"; - value: Uint8Array; -} -export interface NodeInfoOtherAmino { - tx_index: string; - rpc_address: string; -} -export interface NodeInfoOtherAminoMsg { - type: "/tendermint.p2p.NodeInfoOther"; - value: NodeInfoOtherAmino; -} -export interface NodeInfoOtherSDKType { - tx_index: string; - rpc_address: string; -} -export interface PeerInfo { - id: string; - addressInfo: PeerAddressInfo[]; - lastConnected: Date; -} -export interface PeerInfoProtoMsg { - typeUrl: "/tendermint.p2p.PeerInfo"; - value: Uint8Array; -} -export interface PeerInfoAmino { - id: string; - address_info: PeerAddressInfoAmino[]; - last_connected?: Date; -} -export interface PeerInfoAminoMsg { - type: "/tendermint.p2p.PeerInfo"; - value: PeerInfoAmino; -} -export interface PeerInfoSDKType { - id: string; - address_info: PeerAddressInfoSDKType[]; - last_connected: Date; -} -export interface PeerAddressInfo { - address: string; - lastDialSuccess: Date; - lastDialFailure: Date; - dialFailures: number; -} -export interface PeerAddressInfoProtoMsg { - typeUrl: "/tendermint.p2p.PeerAddressInfo"; - value: Uint8Array; -} -export interface PeerAddressInfoAmino { - address: string; - last_dial_success?: Date; - last_dial_failure?: Date; - dial_failures: number; -} -export interface PeerAddressInfoAminoMsg { - type: "/tendermint.p2p.PeerAddressInfo"; - value: PeerAddressInfoAmino; -} -export interface PeerAddressInfoSDKType { - address: string; - last_dial_success: Date; - last_dial_failure: Date; - dial_failures: number; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/block.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/block.ts deleted file mode 100644 index ca154f194..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/block.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { - Header, - HeaderAmino, - HeaderSDKType, - Data, - DataAmino, - DataSDKType, - Commit, - CommitAmino, - CommitSDKType, -} from "./types"; -import { - EvidenceList, - EvidenceListAmino, - EvidenceListSDKType, -} from "./evidence"; -export interface Block { - header: Header; - data: Data; - evidence: EvidenceList; - lastCommit: Commit; -} -export interface BlockProtoMsg { - typeUrl: "/tendermint.types.Block"; - value: Uint8Array; -} -export interface BlockAmino { - header?: HeaderAmino; - data?: DataAmino; - evidence?: EvidenceListAmino; - last_commit?: CommitAmino; -} -export interface BlockAminoMsg { - type: "/tendermint.types.Block"; - value: BlockAmino; -} -export interface BlockSDKType { - header: HeaderSDKType; - data: DataSDKType; - evidence: EvidenceListSDKType; - last_commit: CommitSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/evidence.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/evidence.ts deleted file mode 100644 index 7e027c29c..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/evidence.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { - Vote, - VoteAmino, - VoteSDKType, - LightBlock, - LightBlockAmino, - LightBlockSDKType, -} from "./types"; -import { Validator, ValidatorAmino, ValidatorSDKType } from "./validator"; -import { Long } from "../../helpers"; -export interface Evidence { - duplicateVoteEvidence?: DuplicateVoteEvidence; - lightClientAttackEvidence?: LightClientAttackEvidence; -} -export interface EvidenceProtoMsg { - typeUrl: "/tendermint.types.Evidence"; - value: Uint8Array; -} -export interface EvidenceAmino { - duplicate_vote_evidence?: DuplicateVoteEvidenceAmino; - light_client_attack_evidence?: LightClientAttackEvidenceAmino; -} -export interface EvidenceAminoMsg { - type: "/tendermint.types.Evidence"; - value: EvidenceAmino; -} -export interface EvidenceSDKType { - duplicate_vote_evidence?: DuplicateVoteEvidenceSDKType; - light_client_attack_evidence?: LightClientAttackEvidenceSDKType; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidence { - voteA: Vote; - voteB: Vote; - totalVotingPower: Long; - validatorPower: Long; - timestamp: Date; -} -export interface DuplicateVoteEvidenceProtoMsg { - typeUrl: "/tendermint.types.DuplicateVoteEvidence"; - value: Uint8Array; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceAmino { - vote_a?: VoteAmino; - vote_b?: VoteAmino; - total_voting_power: string; - validator_power: string; - timestamp?: Date; -} -export interface DuplicateVoteEvidenceAminoMsg { - type: "/tendermint.types.DuplicateVoteEvidence"; - value: DuplicateVoteEvidenceAmino; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceSDKType { - vote_a: VoteSDKType; - vote_b: VoteSDKType; - total_voting_power: Long; - validator_power: Long; - timestamp: Date; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidence { - conflictingBlock: LightBlock; - commonHeight: Long; - byzantineValidators: Validator[]; - totalVotingPower: Long; - timestamp: Date; -} -export interface LightClientAttackEvidenceProtoMsg { - typeUrl: "/tendermint.types.LightClientAttackEvidence"; - value: Uint8Array; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceAmino { - conflicting_block?: LightBlockAmino; - common_height: string; - byzantine_validators: ValidatorAmino[]; - total_voting_power: string; - timestamp?: Date; -} -export interface LightClientAttackEvidenceAminoMsg { - type: "/tendermint.types.LightClientAttackEvidence"; - value: LightClientAttackEvidenceAmino; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceSDKType { - conflicting_block: LightBlockSDKType; - common_height: Long; - byzantine_validators: ValidatorSDKType[]; - total_voting_power: Long; - timestamp: Date; -} -export interface EvidenceList { - evidence: Evidence[]; -} -export interface EvidenceListProtoMsg { - typeUrl: "/tendermint.types.EvidenceList"; - value: Uint8Array; -} -export interface EvidenceListAmino { - evidence: EvidenceAmino[]; -} -export interface EvidenceListAminoMsg { - type: "/tendermint.types.EvidenceList"; - value: EvidenceListAmino; -} -export interface EvidenceListSDKType { - evidence: EvidenceSDKType[]; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/params.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/params.ts deleted file mode 100644 index d5d105e0c..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/params.ts +++ /dev/null @@ -1,244 +0,0 @@ -import { - Duration, - DurationAmino, - DurationSDKType, -} from "../../google/protobuf/duration"; -import { Long } from "../../helpers"; -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParams { - block: BlockParams; - evidence: EvidenceParams; - validator: ValidatorParams; - version: VersionParams; -} -export interface ConsensusParamsProtoMsg { - typeUrl: "/tendermint.types.ConsensusParams"; - value: Uint8Array; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsAmino { - block?: BlockParamsAmino; - evidence?: EvidenceParamsAmino; - validator?: ValidatorParamsAmino; - version?: VersionParamsAmino; -} -export interface ConsensusParamsAminoMsg { - type: "/tendermint.types.ConsensusParams"; - value: ConsensusParamsAmino; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsSDKType { - block: BlockParamsSDKType; - evidence: EvidenceParamsSDKType; - validator: ValidatorParamsSDKType; - version: VersionParamsSDKType; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParams { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - maxBytes: Long; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - maxGas: Long; - /** - * Minimum time increment between consecutive blocks (in milliseconds) If the - * block header timestamp is ahead of the system clock, decrease this value. - * - * Not exposed to the application. - */ - timeIotaMs: Long; -} -export interface BlockParamsProtoMsg { - typeUrl: "/tendermint.types.BlockParams"; - value: Uint8Array; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsAmino { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - max_bytes: string; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - max_gas: string; - /** - * Minimum time increment between consecutive blocks (in milliseconds) If the - * block header timestamp is ahead of the system clock, decrease this value. - * - * Not exposed to the application. - */ - time_iota_ms: string; -} -export interface BlockParamsAminoMsg { - type: "/tendermint.types.BlockParams"; - value: BlockParamsAmino; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsSDKType { - max_bytes: Long; - max_gas: Long; - time_iota_ms: Long; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParams { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - maxAgeNumBlocks: Long; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - maxAgeDuration: Duration; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - maxBytes: Long; -} -export interface EvidenceParamsProtoMsg { - typeUrl: "/tendermint.types.EvidenceParams"; - value: Uint8Array; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsAmino { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - max_age_num_blocks: string; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - max_age_duration?: DurationAmino; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - max_bytes: string; -} -export interface EvidenceParamsAminoMsg { - type: "/tendermint.types.EvidenceParams"; - value: EvidenceParamsAmino; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsSDKType { - max_age_num_blocks: Long; - max_age_duration: DurationSDKType; - max_bytes: Long; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParams { - pubKeyTypes: string[]; -} -export interface ValidatorParamsProtoMsg { - typeUrl: "/tendermint.types.ValidatorParams"; - value: Uint8Array; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsAmino { - pub_key_types: string[]; -} -export interface ValidatorParamsAminoMsg { - type: "/tendermint.types.ValidatorParams"; - value: ValidatorParamsAmino; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsSDKType { - pub_key_types: string[]; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParams { - appVersion: Long; -} -export interface VersionParamsProtoMsg { - typeUrl: "/tendermint.types.VersionParams"; - value: Uint8Array; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsAmino { - app_version: string; -} -export interface VersionParamsAminoMsg { - type: "/tendermint.types.VersionParams"; - value: VersionParamsAmino; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsSDKType { - app_version: Long; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParams { - blockMaxBytes: Long; - blockMaxGas: Long; -} -export interface HashedParamsProtoMsg { - typeUrl: "/tendermint.types.HashedParams"; - value: Uint8Array; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsAmino { - block_max_bytes: string; - block_max_gas: string; -} -export interface HashedParamsAminoMsg { - type: "/tendermint.types.HashedParams"; - value: HashedParamsAmino; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsSDKType { - block_max_bytes: Long; - block_max_gas: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/types.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/types.ts deleted file mode 100644 index f335e21d8..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/types.ts +++ /dev/null @@ -1,513 +0,0 @@ -import { Proof, ProofAmino, ProofSDKType } from "../crypto/proof"; -import { Consensus, ConsensusAmino, ConsensusSDKType } from "../version/types"; -import { - ValidatorSet, - ValidatorSetAmino, - ValidatorSetSDKType, -} from "./validator"; -import { Long } from "../../helpers"; -/** BlockIdFlag indicates which BlcokID the signature is for */ -export enum BlockIDFlag { - BLOCK_ID_FLAG_UNKNOWN = 0, - BLOCK_ID_FLAG_ABSENT = 1, - BLOCK_ID_FLAG_COMMIT = 2, - BLOCK_ID_FLAG_NIL = 3, - UNRECOGNIZED = -1, -} -export const BlockIDFlagSDKType = BlockIDFlag; -export const BlockIDFlagAmino = BlockIDFlag; -export function blockIDFlagFromJSON(object: any): BlockIDFlag { - switch (object) { - case 0: - case "BLOCK_ID_FLAG_UNKNOWN": - return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; - case 1: - case "BLOCK_ID_FLAG_ABSENT": - return BlockIDFlag.BLOCK_ID_FLAG_ABSENT; - case 2: - case "BLOCK_ID_FLAG_COMMIT": - return BlockIDFlag.BLOCK_ID_FLAG_COMMIT; - case 3: - case "BLOCK_ID_FLAG_NIL": - return BlockIDFlag.BLOCK_ID_FLAG_NIL; - case -1: - case "UNRECOGNIZED": - default: - return BlockIDFlag.UNRECOGNIZED; - } -} -export function blockIDFlagToJSON(object: BlockIDFlag): string { - switch (object) { - case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN: - return "BLOCK_ID_FLAG_UNKNOWN"; - case BlockIDFlag.BLOCK_ID_FLAG_ABSENT: - return "BLOCK_ID_FLAG_ABSENT"; - case BlockIDFlag.BLOCK_ID_FLAG_COMMIT: - return "BLOCK_ID_FLAG_COMMIT"; - case BlockIDFlag.BLOCK_ID_FLAG_NIL: - return "BLOCK_ID_FLAG_NIL"; - case BlockIDFlag.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** SignedMsgType is a type of signed message in the consensus. */ -export enum SignedMsgType { - SIGNED_MSG_TYPE_UNKNOWN = 0, - /** SIGNED_MSG_TYPE_PREVOTE - Votes */ - SIGNED_MSG_TYPE_PREVOTE = 1, - SIGNED_MSG_TYPE_PRECOMMIT = 2, - /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ - SIGNED_MSG_TYPE_PROPOSAL = 32, - UNRECOGNIZED = -1, -} -export const SignedMsgTypeSDKType = SignedMsgType; -export const SignedMsgTypeAmino = SignedMsgType; -export function signedMsgTypeFromJSON(object: any): SignedMsgType { - switch (object) { - case 0: - case "SIGNED_MSG_TYPE_UNKNOWN": - return SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN; - case 1: - case "SIGNED_MSG_TYPE_PREVOTE": - return SignedMsgType.SIGNED_MSG_TYPE_PREVOTE; - case 2: - case "SIGNED_MSG_TYPE_PRECOMMIT": - return SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT; - case 32: - case "SIGNED_MSG_TYPE_PROPOSAL": - return SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL; - case -1: - case "UNRECOGNIZED": - default: - return SignedMsgType.UNRECOGNIZED; - } -} -export function signedMsgTypeToJSON(object: SignedMsgType): string { - switch (object) { - case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN: - return "SIGNED_MSG_TYPE_UNKNOWN"; - case SignedMsgType.SIGNED_MSG_TYPE_PREVOTE: - return "SIGNED_MSG_TYPE_PREVOTE"; - case SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT: - return "SIGNED_MSG_TYPE_PRECOMMIT"; - case SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL: - return "SIGNED_MSG_TYPE_PROPOSAL"; - case SignedMsgType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** PartsetHeader */ -export interface PartSetHeader { - total: number; - hash: Uint8Array; -} -export interface PartSetHeaderProtoMsg { - typeUrl: "/tendermint.types.PartSetHeader"; - value: Uint8Array; -} -/** PartsetHeader */ -export interface PartSetHeaderAmino { - total: number; - hash: Uint8Array; -} -export interface PartSetHeaderAminoMsg { - type: "/tendermint.types.PartSetHeader"; - value: PartSetHeaderAmino; -} -/** PartsetHeader */ -export interface PartSetHeaderSDKType { - total: number; - hash: Uint8Array; -} -export interface Part { - index: number; - bytes: Uint8Array; - proof: Proof; -} -export interface PartProtoMsg { - typeUrl: "/tendermint.types.Part"; - value: Uint8Array; -} -export interface PartAmino { - index: number; - bytes: Uint8Array; - proof?: ProofAmino; -} -export interface PartAminoMsg { - type: "/tendermint.types.Part"; - value: PartAmino; -} -export interface PartSDKType { - index: number; - bytes: Uint8Array; - proof: ProofSDKType; -} -/** BlockID */ -export interface BlockID { - hash: Uint8Array; - partSetHeader: PartSetHeader; -} -export interface BlockIDProtoMsg { - typeUrl: "/tendermint.types.BlockID"; - value: Uint8Array; -} -/** BlockID */ -export interface BlockIDAmino { - hash: Uint8Array; - part_set_header?: PartSetHeaderAmino; -} -export interface BlockIDAminoMsg { - type: "/tendermint.types.BlockID"; - value: BlockIDAmino; -} -/** BlockID */ -export interface BlockIDSDKType { - hash: Uint8Array; - part_set_header: PartSetHeaderSDKType; -} -/** Header defines the structure of a Tendermint block header. */ -export interface Header { - /** basic block info */ - version: Consensus; - chainId: string; - height: Long; - time: Date; - /** prev block info */ - lastBlockId: BlockID; - /** hashes of block data */ - lastCommitHash: Uint8Array; - dataHash: Uint8Array; - /** hashes from the app output from the prev block */ - validatorsHash: Uint8Array; - /** validators for the next block */ - nextValidatorsHash: Uint8Array; - /** consensus params for current block */ - consensusHash: Uint8Array; - /** state after txs from the previous block */ - appHash: Uint8Array; - lastResultsHash: Uint8Array; - /** consensus info */ - evidenceHash: Uint8Array; - /** original proposer of the block */ - proposerAddress: Uint8Array; -} -export interface HeaderProtoMsg { - typeUrl: "/tendermint.types.Header"; - value: Uint8Array; -} -/** Header defines the structure of a Tendermint block header. */ -export interface HeaderAmino { - /** basic block info */ - version?: ConsensusAmino; - chain_id: string; - height: string; - time?: Date; - /** prev block info */ - last_block_id?: BlockIDAmino; - /** hashes of block data */ - last_commit_hash: Uint8Array; - data_hash: Uint8Array; - /** hashes from the app output from the prev block */ - validators_hash: Uint8Array; - /** validators for the next block */ - next_validators_hash: Uint8Array; - /** consensus params for current block */ - consensus_hash: Uint8Array; - /** state after txs from the previous block */ - app_hash: Uint8Array; - last_results_hash: Uint8Array; - /** consensus info */ - evidence_hash: Uint8Array; - /** original proposer of the block */ - proposer_address: Uint8Array; -} -export interface HeaderAminoMsg { - type: "/tendermint.types.Header"; - value: HeaderAmino; -} -/** Header defines the structure of a Tendermint block header. */ -export interface HeaderSDKType { - version: ConsensusSDKType; - chain_id: string; - height: Long; - time: Date; - last_block_id: BlockIDSDKType; - last_commit_hash: Uint8Array; - data_hash: Uint8Array; - validators_hash: Uint8Array; - next_validators_hash: Uint8Array; - consensus_hash: Uint8Array; - app_hash: Uint8Array; - last_results_hash: Uint8Array; - evidence_hash: Uint8Array; - proposer_address: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface Data { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs: Uint8Array[]; -} -export interface DataProtoMsg { - typeUrl: "/tendermint.types.Data"; - value: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface DataAmino { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs: Uint8Array[]; -} -export interface DataAminoMsg { - type: "/tendermint.types.Data"; - value: DataAmino; -} -/** Data contains the set of transactions included in the block */ -export interface DataSDKType { - txs: Uint8Array[]; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface Vote { - type: SignedMsgType; - height: Long; - round: number; - /** zero if vote is nil. */ - blockId: BlockID; - timestamp: Date; - validatorAddress: Uint8Array; - validatorIndex: number; - signature: Uint8Array; -} -export interface VoteProtoMsg { - typeUrl: "/tendermint.types.Vote"; - value: Uint8Array; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteAmino { - type: SignedMsgType; - height: string; - round: number; - /** zero if vote is nil. */ - block_id?: BlockIDAmino; - timestamp?: Date; - validator_address: Uint8Array; - validator_index: number; - signature: Uint8Array; -} -export interface VoteAminoMsg { - type: "/tendermint.types.Vote"; - value: VoteAmino; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteSDKType { - type: SignedMsgType; - height: Long; - round: number; - block_id: BlockIDSDKType; - timestamp: Date; - validator_address: Uint8Array; - validator_index: number; - signature: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface Commit { - height: Long; - round: number; - blockId: BlockID; - signatures: CommitSig[]; -} -export interface CommitProtoMsg { - typeUrl: "/tendermint.types.Commit"; - value: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitAmino { - height: string; - round: number; - block_id?: BlockIDAmino; - signatures: CommitSigAmino[]; -} -export interface CommitAminoMsg { - type: "/tendermint.types.Commit"; - value: CommitAmino; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitSDKType { - height: Long; - round: number; - block_id: BlockIDSDKType; - signatures: CommitSigSDKType[]; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSig { - blockIdFlag: BlockIDFlag; - validatorAddress: Uint8Array; - timestamp: Date; - signature: Uint8Array; -} -export interface CommitSigProtoMsg { - typeUrl: "/tendermint.types.CommitSig"; - value: Uint8Array; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigAmino { - block_id_flag: BlockIDFlag; - validator_address: Uint8Array; - timestamp?: Date; - signature: Uint8Array; -} -export interface CommitSigAminoMsg { - type: "/tendermint.types.CommitSig"; - value: CommitSigAmino; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigSDKType { - block_id_flag: BlockIDFlag; - validator_address: Uint8Array; - timestamp: Date; - signature: Uint8Array; -} -export interface Proposal { - type: SignedMsgType; - height: Long; - round: number; - polRound: number; - blockId: BlockID; - timestamp: Date; - signature: Uint8Array; -} -export interface ProposalProtoMsg { - typeUrl: "/tendermint.types.Proposal"; - value: Uint8Array; -} -export interface ProposalAmino { - type: SignedMsgType; - height: string; - round: number; - pol_round: number; - block_id?: BlockIDAmino; - timestamp?: Date; - signature: Uint8Array; -} -export interface ProposalAminoMsg { - type: "/tendermint.types.Proposal"; - value: ProposalAmino; -} -export interface ProposalSDKType { - type: SignedMsgType; - height: Long; - round: number; - pol_round: number; - block_id: BlockIDSDKType; - timestamp: Date; - signature: Uint8Array; -} -export interface SignedHeader { - header: Header; - commit: Commit; -} -export interface SignedHeaderProtoMsg { - typeUrl: "/tendermint.types.SignedHeader"; - value: Uint8Array; -} -export interface SignedHeaderAmino { - header?: HeaderAmino; - commit?: CommitAmino; -} -export interface SignedHeaderAminoMsg { - type: "/tendermint.types.SignedHeader"; - value: SignedHeaderAmino; -} -export interface SignedHeaderSDKType { - header: HeaderSDKType; - commit: CommitSDKType; -} -export interface LightBlock { - signedHeader: SignedHeader; - validatorSet: ValidatorSet; -} -export interface LightBlockProtoMsg { - typeUrl: "/tendermint.types.LightBlock"; - value: Uint8Array; -} -export interface LightBlockAmino { - signed_header?: SignedHeaderAmino; - validator_set?: ValidatorSetAmino; -} -export interface LightBlockAminoMsg { - type: "/tendermint.types.LightBlock"; - value: LightBlockAmino; -} -export interface LightBlockSDKType { - signed_header: SignedHeaderSDKType; - validator_set: ValidatorSetSDKType; -} -export interface BlockMeta { - blockId: BlockID; - blockSize: Long; - header: Header; - numTxs: Long; -} -export interface BlockMetaProtoMsg { - typeUrl: "/tendermint.types.BlockMeta"; - value: Uint8Array; -} -export interface BlockMetaAmino { - block_id?: BlockIDAmino; - block_size: string; - header?: HeaderAmino; - num_txs: string; -} -export interface BlockMetaAminoMsg { - type: "/tendermint.types.BlockMeta"; - value: BlockMetaAmino; -} -export interface BlockMetaSDKType { - block_id: BlockIDSDKType; - block_size: Long; - header: HeaderSDKType; - num_txs: Long; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProof { - rootHash: Uint8Array; - data: Uint8Array; - proof: Proof; -} -export interface TxProofProtoMsg { - typeUrl: "/tendermint.types.TxProof"; - value: Uint8Array; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofAmino { - root_hash: Uint8Array; - data: Uint8Array; - proof?: ProofAmino; -} -export interface TxProofAminoMsg { - type: "/tendermint.types.TxProof"; - value: TxProofAmino; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofSDKType { - root_hash: Uint8Array; - data: Uint8Array; - proof: ProofSDKType; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/validator.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/validator.ts deleted file mode 100644 index 226fae745..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/types/validator.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { Long } from "../../helpers"; -export interface ValidatorSet { - validators: Validator[]; - proposer: Validator; - totalVotingPower: Long; -} -export interface ValidatorSetProtoMsg { - typeUrl: "/tendermint.types.ValidatorSet"; - value: Uint8Array; -} -export interface ValidatorSetAmino { - validators: ValidatorAmino[]; - proposer?: ValidatorAmino; - total_voting_power: string; -} -export interface ValidatorSetAminoMsg { - type: "/tendermint.types.ValidatorSet"; - value: ValidatorSetAmino; -} -export interface ValidatorSetSDKType { - validators: ValidatorSDKType[]; - proposer: ValidatorSDKType; - total_voting_power: Long; -} -export interface Validator { - address: Uint8Array; - pubKey: PublicKey; - votingPower: Long; - proposerPriority: Long; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.types.Validator"; - value: Uint8Array; -} -export interface ValidatorAmino { - address: Uint8Array; - pub_key?: PublicKeyAmino; - voting_power: string; - proposer_priority: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.types.Validator"; - value: ValidatorAmino; -} -export interface ValidatorSDKType { - address: Uint8Array; - pub_key: PublicKeySDKType; - voting_power: Long; - proposer_priority: Long; -} -export interface SimpleValidator { - pubKey: PublicKey; - votingPower: Long; -} -export interface SimpleValidatorProtoMsg { - typeUrl: "/tendermint.types.SimpleValidator"; - value: Uint8Array; -} -export interface SimpleValidatorAmino { - pub_key?: PublicKeyAmino; - voting_power: string; -} -export interface SimpleValidatorAminoMsg { - type: "/tendermint.types.SimpleValidator"; - value: SimpleValidatorAmino; -} -export interface SimpleValidatorSDKType { - pub_key: PublicKeySDKType; - voting_power: Long; -} diff --git a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/version/types.ts b/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/version/types.ts deleted file mode 100644 index 312e351c4..000000000 --- a/Cheqd/cheqd-starter/src/types/proto-interfaces/tendermint/version/types.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { Long } from "../../helpers"; -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface App { - protocol: Long; - software: string; -} -export interface AppProtoMsg { - typeUrl: "/tendermint.version.App"; - value: Uint8Array; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppAmino { - protocol: string; - software: string; -} -export interface AppAminoMsg { - type: "/tendermint.version.App"; - value: AppAmino; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppSDKType { - protocol: Long; - software: string; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface Consensus { - block: Long; - app: Long; -} -export interface ConsensusProtoMsg { - typeUrl: "/tendermint.version.Consensus"; - value: Uint8Array; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusAmino { - block: string; - app: string; -} -export interface ConsensusAminoMsg { - type: "/tendermint.version.Consensus"; - value: ConsensusAmino; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusSDKType { - block: Long; - app: Long; -} diff --git a/Cheqd/cheqd-starter/tsconfig.json b/Cheqd/cheqd-starter/tsconfig.json index bf13cef77..f3019d720 100644 --- a/Cheqd/cheqd-starter/tsconfig.json +++ b/Cheqd/cheqd-starter/tsconfig.json @@ -12,5 +12,9 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": [ + "src/**/*", + "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts" + ] } diff --git a/Comdex/comdex-starter/.gitignore b/Comdex/comdex-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Comdex/comdex-starter/.gitignore +++ b/Comdex/comdex-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Comdex/comdex-starter/docker-compose.yml b/Comdex/comdex-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Comdex/comdex-starter/docker-compose.yml +++ b/Comdex/comdex-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Comdex/comdex-starter/package.json b/Comdex/comdex-starter/package.json index 3b38433cf..9ac3d6510 100644 --- a/Comdex/comdex-starter/package.json +++ b/Comdex/comdex-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Comdex/comdex-starter/project.ts b/Comdex/comdex-starter/project.ts new file mode 100644 index 000000000..4777d08ed --- /dev/null +++ b/Comdex/comdex-starter/project.ts @@ -0,0 +1,73 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "comdex-starter", + description: + "This project can be use as a starting point for developing your Cosmos Comdex based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "comdex-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc-comdex.zenchainlabs.io/"], + chaintypes: new Map([ // This feature allows support for any Cosmos chain by importing the correct protobuf messages + [ + "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", { //CIRCUMVENTING VIA ORDER + file: "./proto/cosmos/distribution/v1beta1/tx.proto", + messages: [ + "MsgWithdrawDelegatorReward" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'coin_spent', + messageFilter: { + type: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward" + } + } + }, + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Comdex/comdex-starter/project.yaml b/Comdex/comdex-starter/project.yaml deleted file mode 100644 index 6e4de4ea9..000000000 --- a/Comdex/comdex-starter/project.yaml +++ /dev/null @@ -1,45 +0,0 @@ -specVersion: 1.0.0 -name: comdex-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Comdex) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: comdex-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://rpc-comdex.zenchainlabs.io/"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: #CIRCUMVENTING VIA ORDER - file: ./proto/cosmos/distribution/v1beta1/tx.proto - messages: - - MsgWithdrawDelegatorReward -dataSources: - - kind: cosmos/Runtime - startBlock: 1 - mapping: - file: ./dist/index.js - handlers: - #- handler: handleMessage - # kind: cosmos/MessageHandler - # filter: - # type: /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward - - handler: handleEvent - kind: cosmos/EventHandler - # An example of https://www.mintscan.io/comdex/txs/6DB31FF17697FDB422EC885E184917C3EFAE1D522E47C654A093B6C7A62AD94D - filter: - type: coin_spent - messageFilter: - type: /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward diff --git a/Comdex/comdex-starter/tsconfig.json b/Comdex/comdex-starter/tsconfig.json index bf13cef77..f3019d720 100644 --- a/Comdex/comdex-starter/tsconfig.json +++ b/Comdex/comdex-starter/tsconfig.json @@ -12,5 +12,9 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": [ + "src/**/*", + "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts" + ] } diff --git a/CosmosHub/cosmoshub-starter/.gitignore b/CosmosHub/cosmoshub-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/CosmosHub/cosmoshub-starter/.gitignore +++ b/CosmosHub/cosmoshub-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/CosmosHub/cosmoshub-starter/docker-compose.yml b/CosmosHub/cosmoshub-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/CosmosHub/cosmoshub-starter/docker-compose.yml +++ b/CosmosHub/cosmoshub-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/CosmosHub/cosmoshub-starter/package.json b/CosmosHub/cosmoshub-starter/package.json index f9e654317..24e358875 100644 --- a/CosmosHub/cosmoshub-starter/package.json +++ b/CosmosHub/cosmoshub-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/CosmosHub/cosmoshub-starter/project.ts b/CosmosHub/cosmoshub-starter/project.ts new file mode 100644 index 000000000..11fb70502 --- /dev/null +++ b/CosmosHub/cosmoshub-starter/project.ts @@ -0,0 +1,98 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "cosmoshub-starter", + description: + "This project can be use as a starting point for developing your Cosmos CosmosHub based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: + "cosmoshub-4", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://cosmos-mainnet-archive.allthatnode.com:26657"], + dictionary: "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary", + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], + [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 5200791, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'transfer', + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/CosmosHub/cosmoshub-starter/project.yaml b/CosmosHub/cosmoshub-starter/project.yaml deleted file mode 100644 index 632dcf083..000000000 --- a/CosmosHub/cosmoshub-starter/project.yaml +++ /dev/null @@ -1,59 +0,0 @@ -specVersion: 1.0.0 -name: cosmoshub-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Cosmos - Hub) based SubQuery project -repository: "https://github.com/subquery/juno-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: cosmoshub-4 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://cosmos-mainnet-archive.allthatnode.com:26657"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 5200791 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/CosmosHub/cosmoshub-starter/tsconfig.json b/CosmosHub/cosmoshub-starter/tsconfig.json index bf13cef77..f3019d720 100644 --- a/CosmosHub/cosmoshub-starter/tsconfig.json +++ b/CosmosHub/cosmoshub-starter/tsconfig.json @@ -12,5 +12,9 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": [ + "src/**/*", + "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts" + ] } diff --git a/Cronos/cronos-evm-starter-via-eth/.gitignore b/Cronos/cronos-evm-starter-via-eth/.gitignore index 4a94e1b9b..040e1989c 100644 --- a/Cronos/cronos-evm-starter-via-eth/.gitignore +++ b/Cronos/cronos-evm-starter-via-eth/.gitignore @@ -23,10 +23,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Cronos/cronos-evm-starter-via-eth/docker-compose.yml b/Cronos/cronos-evm-starter-via-eth/docker-compose.yml index b8bd524e0..7d994ef22 100644 --- a/Cronos/cronos-evm-starter-via-eth/docker-compose.yml +++ b/Cronos/cronos-evm-starter-via-eth/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Cronos/cronos-evm-starter-via-eth/package.json b/Cronos/cronos-evm-starter-via-eth/package.json index e631719cd..1b5ced701 100644 --- a/Cronos/cronos-evm-starter-via-eth/package.json +++ b/Cronos/cronos-evm-starter-via-eth/package.json @@ -31,6 +31,6 @@ "@subql/testing": "latest", "@subql/node-cosmos": "latest", "@subql/types": "latest", - "typescript": "4.5.5" + "typescript": "^5.2.2" } } diff --git a/Cronos/cronos-evm-starter-via-eth/project.ts b/Cronos/cronos-evm-starter-via-eth/project.ts new file mode 100644 index 000000000..efc74ee45 --- /dev/null +++ b/Cronos/cronos-evm-starter-via-eth/project.ts @@ -0,0 +1,85 @@ +import { + EthereumProject, + EthereumDatasourceKind, + EthereumHandlerKind, +} from "@subql/types-ethereum"; + +// Can expand the Datasource processor types via the generic param +const project: EthereumProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "cronos-evm-starter-via-eth", + description: "This project can be use as a starting point for developing your Cosmos (Cronos) based SubQuery project via the Etheruem API", + runner: { + node: { + name: "@subql/node-ethereum", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + chainId: "25", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://evm.cronos.org/"], + dictionary: "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary" + }, + dataSources: [ + { + kind: EthereumDatasourceKind.Runtime, + // Contract creation of Pangolin Token https://snowtrace.io/tx/0xfab84552e997848a43f05e440998617d641788d355e3195b6882e9006996d8f9 + startBlock: 446, + options: { + // Must be a key of assets + abi:'erc20', + address:'0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23', + // Wrapped CRO https://cronos.org/explorer/address/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23 + }, + assets: new Map([ + ['erc20', { file: "./erc20.abi.json" }], + ]), + mapping: { + file: "./dist/index.js", + handlers: [ + { + kind: EthereumHandlerKind.Call, + handler: "handleTransaction", + filter: { + /** + * The function can either be the function fragment or signature + * function: '0x095ea7b3' + * function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' + */ + function: "approve(address guy, uint256 wad)", + }, + }, + { + kind: EthereumHandlerKind.Event, + handler: "handleLog", + filter: { + /** + * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ + * address: "0x60781C2586D68229fde47564546784ab3fACA982" + */ + topics: ["Transfer(address src, address dst, uint256 wad)"], + }, + }, + ], + }, + }, + ], + repository: "https://github.com/subquery/ethereum-subql-starter" +}; + +export default project; \ No newline at end of file diff --git a/Cronos/cronos-evm-starter-via-eth/project.yaml b/Cronos/cronos-evm-starter-via-eth/project.yaml deleted file mode 100644 index b44e113a9..000000000 --- a/Cronos/cronos-evm-starter-via-eth/project.yaml +++ /dev/null @@ -1,59 +0,0 @@ -specVersion: 1.0.0 - -name: cronos-evm-starter-via-eth -version: 0.0.1 -runner: - node: - name: "@subql/node-ethereum" - version: "*" - query: - name: "@subql/query" - version: "*" -description: "This project can be use as a starting point for developing your Cosmos (Cronos) based SubQuery project via the Etheruem API" -repository: "https://github.com/subquery/cosmos-subql-starter/tree/main/Cronos/cronos-evm-starter-via-eth" -schema: - file: ./schema.graphql -network: - chainId: "25" - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # Take a look here for some Cronos endpoints https://moonflow.solutions/rpc-servers - endpoint: ["https://evm.cronos.org/"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary" -dataSources: - - kind: ethereum/Runtime - startBlock: 446 # Block that this contract was created - options: - abi: erc20 - address: "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23" # Wrapped CRO https://cronos.org/explorer/address/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23 - assets: - erc20: - file: "erc20.abi.json" - mapping: - file: "./dist/index.js" - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: ethereum/BlockHandler - - handler: handleTransaction - kind: ethereum/TransactionHandler - filter: - ## The function can either be the function fragment or signature - ## https://docs.ethers.io/v5/api/utils/abi/fragments/#FunctionFragment - # function: '0x095ea7b3' - # function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - function: approve(address guy, uint256 wad) - - handler: handleLog - kind: ethereum/LogHandler - filter: - topics: - # The topics filter follows the Ethereum JSON-PRC log filters - # https://docs.ethers.io/v5/concepts/events - # Example valid values: - # - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' - # - Transfer(address,address,u256) - - Transfer(address src, address dst, uint256 wad) - # address: "0x60781C2586D68229fde47564546784ab3fACA982" diff --git a/Cronos/cronos-evm-starter-via-rpc/.gitignore b/Cronos/cronos-evm-starter-via-rpc/.gitignore index 958a76126..af37ddbf4 100644 --- a/Cronos/cronos-evm-starter-via-rpc/.gitignore +++ b/Cronos/cronos-evm-starter-via-rpc/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Cronos/cronos-evm-starter-via-rpc/docker-compose.yml b/Cronos/cronos-evm-starter-via-rpc/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Cronos/cronos-evm-starter-via-rpc/docker-compose.yml +++ b/Cronos/cronos-evm-starter-via-rpc/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Cronos/cronos-evm-starter-via-rpc/package.json b/Cronos/cronos-evm-starter-via-rpc/package.json index 6363ba434..66f9eb42a 100644 --- a/Cronos/cronos-evm-starter-via-rpc/package.json +++ b/Cronos/cronos-evm-starter-via-rpc/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/ethermint-evm-processor": "latest", diff --git a/Cronos/cronos-evm-starter-via-rpc/project.ts b/Cronos/cronos-evm-starter-via-rpc/project.ts new file mode 100644 index 000000000..691e3b843 --- /dev/null +++ b/Cronos/cronos-evm-starter-via-rpc/project.ts @@ -0,0 +1,109 @@ +import {CosmosProject} from "@subql/types-cosmos"; +import {EthermintEvmDatasource} from "@subql/ethermint-evm-processor"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "cronos-rpc-starter", + description: + "This project can be use as a starting point for developing your Cosmos Cronos based SubQuery project via Cosmos RPC API", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "cronosmainnet_25-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc.cronos.org/"], + dictionary: "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary", + chaintypes: new Map([ + [ + "ethermint.evm.v1", { + file: "./proto/ethermint/evm/v1/tx.proto", + messages: [ + "MsgEthereumTx", + "LegacyTx", + "AccessListTx", + "DynamicFeeTx", + ] + } + ], + [ + "ethermint.evm.v12", { + file: "./proto/ethermint/evm/v1/evm.proto", + messages: [ + "AccessTuple" + ] + } + ], + [ + "google.protobuf", { + file: "./proto/google/protobuf/any.proto", + messages: [ + "Any" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: 'cosmos/EthermintEvm', + startBlock: 446, + processor: { + file: './node_modules/@subql/ethermint-evm-processor/dist/bundle.js', + options: { + abi: 'erc20', + address: "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23" // Wrapped CRO + } + }, + assets: new Map([['erc20', { file: './erc20.abi.json' }]]), + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEthermintEvmCall', + kind: 'cosmos/EthermintEvmCall', + filter: { + // Either Function Signature strings or the function `sighash` to filter the function called on the contract + // https://docs.ethers.io/v5/api/utils/abi/fragments/#FunctionFragment + method: 'approve(address guy, uint256 wad)' + } + }, + { + handler: 'handleEthermintEvmEvent', + kind: 'cosmos/EthermintEvmEvent', + filter: { + // The topics filter follows the Ethereum JSON-PRC log filters + // https://docs.ethers.io/v5/concepts/events + // Example valid values: + // - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' + // - Transfer(address,address,u256) + topics: ['Transfer(address src, address dst, uint256 wad)'] + } + } + ] + }, + }, + ], +}; + +export default project; diff --git a/Cronos/cronos-evm-starter-via-rpc/project.yaml b/Cronos/cronos-evm-starter-via-rpc/project.yaml deleted file mode 100644 index c8b848d95..000000000 --- a/Cronos/cronos-evm-starter-via-rpc/project.yaml +++ /dev/null @@ -1,74 +0,0 @@ -specVersion: 1.0.0 -name: cronos-evm-starter-via-rpc -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: "This project can be use as a starting point for developing your Cosmos (Cronos) based SubQuery project via the Ethermint RPC API" -repository: "https://github.com/subquery/cosmos-subql-starter/tree/main/Cronos/cronos-evm-starter-via-rpc" -schema: - file: ./schema.graphql -network: - chainId: cronosmainnet_25-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # Take a look here for some Cronos endpoints https://moonflow.solutions/rpc-servers - endpoint: ["https://rpc.cronos.org/"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cosmos-cronos-dictionary" - chainTypes: - ethermint.evm.v1: - file: "./proto/ethermint/evm/v1/tx.proto" - messages: - - "MsgEthereumTx" - - "LegacyTx" - - "AccessListTx" - - "DynamicFeeTx" - ethermint.evm.v12: - file: "./proto/ethermint/evm/v1/evm.proto" - messages: - - "AccessTuple" - google.protobuf: - file: "./proto/google/protobuf/any.proto" - messages: - - "Any" - -dataSources: - - kind: cosmos/EthermintEvm - startBlock: 446 # Block that this contract was created - processor: - file: "./node_modules/@subql/ethermint-evm-processor/dist/bundle.js" - options: - abi: erc20 - address: "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23" # Wrapped CRO - assets: - erc20: - file: "./erc20.abi.json" - mapping: - file: "./dist/index.js" - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - - handler: handleEthermintEvmCall - kind: cosmos/EthermintEvmCall - filter: - # Either Function Signature strings or the function `sighash` to filter the function called on the contract - # ](https://docs.ethers.io/v5/api/utils/abi/fragments/#FunctionFragment) - method: approve(address guy, uint256 wad) - - handler: handleEthermintEvmEvent - kind: cosmos/EthermintEvmEvent - filter: - topics: - # The topics filter follows the Ethereum JSON-PRC log filters - # https://docs.ethers.io/v5/concepts/events - # Example valid values: - # - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' - # - Transfer(address,address,u256) - - Transfer(address src, address dst, uint256 wad) diff --git a/Cronos/cronos-evm-starter-via-rpc/tsconfig.json b/Cronos/cronos-evm-starter-via-rpc/tsconfig.json index 4be11b624..4f31d0750 100644 --- a/Cronos/cronos-evm-starter-via-rpc/tsconfig.json +++ b/Cronos/cronos-evm-starter-via-rpc/tsconfig.json @@ -11,5 +11,5 @@ "rootDir": "src", "target": "es2017" }, - "include": ["src/**/*", "node_modules/@subql/types/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts", "node_modules/@subql/types-core/dist/global.d.ts"] } diff --git a/Evmos/evmos-starter/.gitignore b/Evmos/evmos-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Evmos/evmos-starter/.gitignore +++ b/Evmos/evmos-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Evmos/evmos-starter/docker-compose.yml b/Evmos/evmos-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Evmos/evmos-starter/docker-compose.yml +++ b/Evmos/evmos-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Evmos/evmos-starter/package.json b/Evmos/evmos-starter/package.json index 839fcd4cc..042c638ef 100644 --- a/Evmos/evmos-starter/package.json +++ b/Evmos/evmos-starter/package.json @@ -24,7 +24,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Evmos/evmos-starter/project.ts b/Evmos/evmos-starter/project.ts new file mode 100644 index 000000000..4aa4b104f --- /dev/null +++ b/Evmos/evmos-starter/project.ts @@ -0,0 +1,96 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "Evmos-starter", + description: + "This project can be use as a starting point for developing your Cosmos Evmos based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "evmos_9001-2", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://evmos.api.onfinality.io/public"], + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], + [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 58701, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'transfer', + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Evmos/evmos-starter/project.yaml b/Evmos/evmos-starter/project.yaml deleted file mode 100644 index d6aaddb78..000000000 --- a/Evmos/evmos-starter/project.yaml +++ /dev/null @@ -1,62 +0,0 @@ -specVersion: 1.0.0 -name: evmos-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos - (Evmos) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: evmos_9001-2 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["https://evmos.api.onfinality.io/public"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - #dictionary: "https://api.subquery.network/sq/subquery/cosmos-evmos-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 58701 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # kind: cosmos/TransactionHandler - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Evmos/evmos-starter/tsconfig.json b/Evmos/evmos-starter/tsconfig.json index bf13cef77..f3019d720 100644 --- a/Evmos/evmos-starter/tsconfig.json +++ b/Evmos/evmos-starter/tsconfig.json @@ -12,5 +12,9 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": [ + "src/**/*", + "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts" + ] } diff --git a/Evmos/evmos-testnet-starter/.gitignore b/Evmos/evmos-testnet-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Evmos/evmos-testnet-starter/.gitignore +++ b/Evmos/evmos-testnet-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Evmos/evmos-testnet-starter/docker-compose.yml b/Evmos/evmos-testnet-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Evmos/evmos-testnet-starter/docker-compose.yml +++ b/Evmos/evmos-testnet-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Evmos/evmos-testnet-starter/package.json b/Evmos/evmos-testnet-starter/package.json index 877933996..6eccab14d 100644 --- a/Evmos/evmos-testnet-starter/package.json +++ b/Evmos/evmos-testnet-starter/package.json @@ -24,7 +24,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Evmos/evmos-testnet-starter/project.ts b/Evmos/evmos-testnet-starter/project.ts new file mode 100644 index 000000000..a866f7c7b --- /dev/null +++ b/Evmos/evmos-testnet-starter/project.ts @@ -0,0 +1,96 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "emvos-testnet-starter", + description: + "This project can be use as a starting point for developing your Cosmos Evmos Testnet based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "evmos_9000-4", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://eth.bd.evmos.dev"], + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], + [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 58701, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'transfer', + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Evmos/evmos-testnet-starter/project.yaml b/Evmos/evmos-testnet-starter/project.yaml deleted file mode 100644 index a664f61ff..000000000 --- a/Evmos/evmos-testnet-starter/project.yaml +++ /dev/null @@ -1,60 +0,0 @@ -specVersion: 1.0.0 -name: evmos-testnet-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos - (Evmos Testnet) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: evmos_9000-4 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["https://eth.bd.evmos.dev"] - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 58701 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # kind: cosmos/TransactionHandler - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Evmos/evmos-testnet-starter/tsconfig.json b/Evmos/evmos-testnet-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Evmos/evmos-testnet-starter/tsconfig.json +++ b/Evmos/evmos-testnet-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Fetch.ai/fetchhub-starter/.gitignore b/Fetch.ai/fetchhub-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Fetch.ai/fetchhub-starter/.gitignore +++ b/Fetch.ai/fetchhub-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Fetch.ai/fetchhub-starter/docker-compose.yml b/Fetch.ai/fetchhub-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Fetch.ai/fetchhub-starter/docker-compose.yml +++ b/Fetch.ai/fetchhub-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Fetch.ai/fetchhub-starter/package.json b/Fetch.ai/fetchhub-starter/package.json index cea583740..517117cc2 100644 --- a/Fetch.ai/fetchhub-starter/package.json +++ b/Fetch.ai/fetchhub-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Fetch.ai/fetchhub-starter/project.ts b/Fetch.ai/fetchhub-starter/project.ts new file mode 100644 index 000000000..f983a015c --- /dev/null +++ b/Fetch.ai/fetchhub-starter/project.ts @@ -0,0 +1,97 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "Fetchhub-starter", + description: + "This project can be use as a starting point for developing your Cosmos Fetchhub based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "fetchhub-4", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc-fetchhub.fetch.ai"], + dictionary: "https://api.subquery.network/sq/subquery/cosmos-fetch-ai-dictionary", + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], + [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 5300201, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'transfer', + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Fetch.ai/fetchhub-starter/project.yaml b/Fetch.ai/fetchhub-starter/project.yaml deleted file mode 100644 index b7ae51ef1..000000000 --- a/Fetch.ai/fetchhub-starter/project.yaml +++ /dev/null @@ -1,60 +0,0 @@ -specVersion: 1.0.0 -name: fetchhub-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos - (Fetch.ai) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: fetchhub-4 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://rpc-fetchhub.fetch.ai"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cosmos-fetch-ai-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 5300201 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # kind: cosmos/TransactionHandler - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Fetch.ai/fetchhub-starter/tsconfig.json b/Fetch.ai/fetchhub-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Fetch.ai/fetchhub-starter/tsconfig.json +++ b/Fetch.ai/fetchhub-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Injective/injective-starter/.gitignore b/Injective/injective-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Injective/injective-starter/.gitignore +++ b/Injective/injective-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Injective/injective-starter/docker-compose.yml b/Injective/injective-starter/docker-compose.yml index ff79fb3fa..1e6a1daf6 100644 --- a/Injective/injective-starter/docker-compose.yml +++ b/Injective/injective-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Injective/injective-starter/package.json b/Injective/injective-starter/package.json index c0c31fd1c..ba3af2d6c 100644 --- a/Injective/injective-starter/package.json +++ b/Injective/injective-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Injective/injective-starter/project.ts b/Injective/injective-starter/project.ts new file mode 100644 index 000000000..5be62747c --- /dev/null +++ b/Injective/injective-starter/project.ts @@ -0,0 +1,79 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "Injective-starter", + description: + "This project can be use as a starting point for developing your Cosmos Injective based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "injective-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["http://archival-sentry-equinix-2.injective.dev:26657"], + chaintypes: new Map([ + [ + // Key is not used, it matches the one above and is inferred from the fil + "injective.exchange.v1beta1.MsgCreateSpotLimitOrder", { + file: "./proto/injective/exchange/v1beta1/tx.proto", + messages: [ + "MsgCreateSpotLimitOrder" + ] + } + ], + [ + "injective.exchange.v1beta1.SpotOrder", { + file: "./proto/injective/exchange/v1beta1/exchange.proto", + messages: [ + "SpotOrder" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 22186475, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: '/injective.exchange.v1beta1.MsgCreateSpotLimitOrder' + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Injective/injective-starter/project.yaml b/Injective/injective-starter/project.yaml deleted file mode 100644 index 1f3f9113b..000000000 --- a/Injective/injective-starter/project.yaml +++ /dev/null @@ -1,54 +0,0 @@ -specVersion: 1.0.0 -name: injective-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Injective) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: injective-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["http://archival-sentry-equinix-2.injective.dev:26657"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/injective-hub-dictionary" - chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages - injective.exchange.v1beta1.MsgCreateSpotLimitOrder: # Key is not used, it matches the one above and is inferred from the file - file: ./proto/injective/exchange/v1beta1/tx.proto - messages: - - MsgCreateSpotLimitOrder - injective.exchange.v1beta1.SpotOrder: - file: ./proto/injective/exchange/v1beta1/exchange.proto - messages: - - SpotOrder -dataSources: - - kind: cosmos/Runtime - startBlock: 22186475 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # - handler: handleEvent - # kind: cosmos/EventHandler - # filter: - # type: transfer - # messageFilter: - # type: /injective.exchange.v1beta1.MsgCreateSpotLimitOrder - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /injective.exchange.v1beta1.MsgCreateSpotLimitOrder diff --git a/Injective/injective-starter/tsconfig.json b/Injective/injective-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Injective/injective-starter/tsconfig.json +++ b/Injective/injective-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Juno/juno-starter/.gitignore b/Juno/juno-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Juno/juno-starter/.gitignore +++ b/Juno/juno-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Juno/juno-starter/docker-compose.yml b/Juno/juno-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Juno/juno-starter/docker-compose.yml +++ b/Juno/juno-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Juno/juno-starter/package.json b/Juno/juno-starter/package.json index 1b10db7b2..a3ad1a474 100644 --- a/Juno/juno-starter/package.json +++ b/Juno/juno-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Juno/juno-starter/project.ts b/Juno/juno-starter/project.ts new file mode 100644 index 000000000..be6820287 --- /dev/null +++ b/Juno/juno-starter/project.ts @@ -0,0 +1,71 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "juno-starter", + description: + "This project can be use as a starting point for developing your Cosmos juno based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "juno-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc-juno.whispernode.com"], + dictionary: "https://api.subquery.network/sq/subquery/cosmos-juno-dictionary", + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 9700000, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'execute', + messageFilter: { + type: "/cosmwasm.wasm.v1.MsgExecuteContract" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmwasm.wasm.v1.MsgExecuteContract" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Juno/juno-starter/project.yaml b/Juno/juno-starter/project.yaml deleted file mode 100644 index 6e38a04ec..000000000 --- a/Juno/juno-starter/project.yaml +++ /dev/null @@ -1,61 +0,0 @@ -specVersion: 1.0.0 -name: juno-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Juno) based SubQuery project -repository: https://github.com/subquery/juno-subql-starter -schema: - file: ./schema.graphql - -network: - chainId: juno-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # You can get them from OnFinality for free https://app.onfinality.io - # https://documentation.onfinality.io/support/the-enhanced-api-service - endpoint: ["https://rpc-juno.whispernode.com"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cosmos-juno-dictionary" - # chainTypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages - # cosmos.slashing.v1beta1: - # file: "./proto/cosmos/slashing/v1beta1/tx.proto" - # messages: - # - "MsgUnjail" -dataSources: - - kind: cosmos/Runtime - startBlock: 9700000 # Set this to the start block - mapping: - file: "./dist/index.js" - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # kind: cosmos/TransactionHandler - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: execute - messageFilter: - type: "/cosmwasm.wasm.v1.MsgExecuteContract" - # contractCall field can be specified here too - #values: # A set of key/value pairs that are present in the message data - #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: "/cosmwasm.wasm.v1.MsgExecuteContract" - # Filter to only messages with the provide_liquidity function call - #contractCall: "provide_liquidity" # The name of the contract function that was called - #values: # A set of key/value pairs that are present in the message data - #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" diff --git a/Juno/juno-starter/tsconfig.json b/Juno/juno-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Juno/juno-starter/tsconfig.json +++ b/Juno/juno-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Kava/kava-starter/.gitignore b/Kava/kava-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Kava/kava-starter/.gitignore +++ b/Kava/kava-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Kava/kava-starter/docker-compose.yml b/Kava/kava-starter/docker-compose.yml index 00dfa7b29..8abdd1350 100644 --- a/Kava/kava-starter/docker-compose.yml +++ b/Kava/kava-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Kava/kava-starter/package.json b/Kava/kava-starter/package.json index e5ba90c44..ea3ea76e4 100644 --- a/Kava/kava-starter/package.json +++ b/Kava/kava-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Kava/kava-starter/project.ts b/Kava/kava-starter/project.ts new file mode 100644 index 000000000..19bda9c6b --- /dev/null +++ b/Kava/kava-starter/project.ts @@ -0,0 +1,81 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "kava-starter", + description: + "This project can be use as a starting point for developing your Cosmos kava based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "kava_2222-10", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://kava-rpc.ibs.team"], + chaintypes: new Map([ + [ + "cosmos.bank.v1beta1.MsgSend", { + file: "./proto/cosmos/bank/v1beta1/tx.proto", + messages: [ + "MsgSend", + ] + } + ], + [ + "cosmos.base.v1beta1.Coin", { + file: "./proto/cosmos/base/v1beta1/coin.proto", + messages: [ + "Coin" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 5397233, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'coin_spent', + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Kava/kava-starter/project.yaml b/Kava/kava-starter/project.yaml deleted file mode 100644 index 73f3cfeee..000000000 --- a/Kava/kava-starter/project.yaml +++ /dev/null @@ -1,49 +0,0 @@ -specVersion: 1.0.0 -name: kava-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: Indexing Cosmos chain (Kava) (with contribution from Tony) -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: kava_2222-10 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://kava-rpc.ibs.team"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/injective-hub-dictionary" - chainTypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages - cosmos.bank.v1beta1.MsgSend: # Key is not used, it matches the one above and is inferred from the file - file: ./proto/cosmos/bank/v1beta1/tx.proto - messages: - - MsgSend - cosmos.base.v1beta1.Coin: - file: ./proto/cosmos/base/v1beta1/coin.proto - messages: - - Coin -dataSources: - - kind: cosmos/Runtime - startBlock: 5397233 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: coin_spent - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Kava/kava-starter/tsconfig.json b/Kava/kava-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Kava/kava-starter/tsconfig.json +++ b/Kava/kava-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Mars/mars-starter/.gitignore b/Mars/mars-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Mars/mars-starter/.gitignore +++ b/Mars/mars-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Mars/mars-starter/docker-compose.yml b/Mars/mars-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Mars/mars-starter/docker-compose.yml +++ b/Mars/mars-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Mars/mars-starter/package.json b/Mars/mars-starter/package.json index 7e0db9de4..888424dd6 100644 --- a/Mars/mars-starter/package.json +++ b/Mars/mars-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Mars/mars-starter/project.ts b/Mars/mars-starter/project.ts new file mode 100644 index 000000000..ac53b1094 --- /dev/null +++ b/Mars/mars-starter/project.ts @@ -0,0 +1,97 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "Mars-starter", + description: + "This project can be use as a starting point for developing your Cosmos Mars based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "mars-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://mars-rpc.publicnode.com"], + dictionary: "https://api.subquery.network/sq/subquery/mars-dictionary", + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], + [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 3169377, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'transfer', + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Mars/mars-starter/project.yaml b/Mars/mars-starter/project.yaml deleted file mode 100644 index 44360ffe1..000000000 --- a/Mars/mars-starter/project.yaml +++ /dev/null @@ -1,58 +0,0 @@ -specVersion: 1.0.0 -name: mars-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (%NETWORK_NAME%) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: mars-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://mars-rpc.publicnode.com"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/mars-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 3169377 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Mars/mars-starter/tsconfig.json b/Mars/mars-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Mars/mars-starter/tsconfig.json +++ b/Mars/mars-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Migaloo/migaloo-starter/.gitignore b/Migaloo/migaloo-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Migaloo/migaloo-starter/.gitignore +++ b/Migaloo/migaloo-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Migaloo/migaloo-starter/docker-compose.yml b/Migaloo/migaloo-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Migaloo/migaloo-starter/docker-compose.yml +++ b/Migaloo/migaloo-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Migaloo/migaloo-starter/package.json b/Migaloo/migaloo-starter/package.json index 5b8f5752d..ec27b1986 100644 --- a/Migaloo/migaloo-starter/package.json +++ b/Migaloo/migaloo-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Migaloo/migaloo-starter/project.ts b/Migaloo/migaloo-starter/project.ts new file mode 100644 index 000000000..de9b3b3d6 --- /dev/null +++ b/Migaloo/migaloo-starter/project.ts @@ -0,0 +1,98 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "migaloo-starter", + description: + "This project can be use as a starting point for developing your Cosmos migaloo based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "migaloo-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://migaloo-rpc.cosmosrescue.com"], +// # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/migaloo-dictionary", + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], + [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 3082328, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'transfer', + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Migaloo/migaloo-starter/project.yaml b/Migaloo/migaloo-starter/project.yaml deleted file mode 100644 index 3ac4cca8b..000000000 --- a/Migaloo/migaloo-starter/project.yaml +++ /dev/null @@ -1,58 +0,0 @@ -specVersion: 1.0.0 -name: migaloo-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Migaloo) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: migaloo-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://migaloo-rpc.cosmosrescue.com"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/migaloo-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 3082328 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Migaloo/migaloo-starter/tsconfig.json b/Migaloo/migaloo-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Migaloo/migaloo-starter/tsconfig.json +++ b/Migaloo/migaloo-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Neutron/neutron-starter/.gitignore b/Neutron/neutron-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Neutron/neutron-starter/.gitignore +++ b/Neutron/neutron-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Neutron/neutron-starter/package.json b/Neutron/neutron-starter/package.json index ddb7801a6..82a672331 100644 --- a/Neutron/neutron-starter/package.json +++ b/Neutron/neutron-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/node-cosmos": "latest", "@subql/testing": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Neutron/neutron-starter/project.ts b/Neutron/neutron-starter/project.ts new file mode 100644 index 000000000..af7e53d90 --- /dev/null +++ b/Neutron/neutron-starter/project.ts @@ -0,0 +1,68 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "neutron-starter", + description: + "This project can be use as a starting point for developing your Cosmos neutron based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "neutron-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: [ + "https://rpc-kralum.neutron-1.neutron.org", + "https://neutron-rpc.lavenderfive.com", + "https://rpc-neutron.whispernode.com", + ], + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 1, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleAirdropClaim', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmwasm.wasm.v1.MsgExecuteContract", + contractCall: "claim", + values: { + contract: "neutron198sxsrjvt2v2lln2ajn82ks76k97mj72mtgl7309jehd0vy8rezs7e6c56" + } + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Neutron/neutron-starter/project.yaml b/Neutron/neutron-starter/project.yaml deleted file mode 100644 index 53441c9e3..000000000 --- a/Neutron/neutron-starter/project.yaml +++ /dev/null @@ -1,62 +0,0 @@ -specVersion: 1.0.0 -name: neutron-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Neutron) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: neutron-1 - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: - [ - "https://rpc-kralum.neutron-1.neutron.org", - "https://neutron-rpc.lavenderfive.com", - "https://rpc-neutron.whispernode.com", - ] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/cosmos-neutron-dictionary" - # chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages - # cosmwasm.wasm.v1.MsgSetContractMetadata: - # file: ./proto/archway/rewards/v1/tx.proto - # messages: - #- MsgSetContractMetadata -dataSources: - - kind: cosmos/Runtime - startBlock: 1 # This contract was instantiated at genesis - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # kind: cosmos/TransactionHandler - # - handler: handleEvent - # kind: cosmos/EventHandler - # filter: - # type: "/cosmwasm.wasm.v1.MsgExecuteContract" - # contractCall field can be specified here too - # values: # A set of key/value pairs that are present in the message data - # contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" - - handler: handleAirdropClaim - kind: cosmos/MessageHandler - filter: - # Filter to only messages with the MsgSetContractMetadata function call - # e.g. https://www.mintscan.io/neutron/txs/156FE31585BD75E06EE337CEA908C37EA0434CC49943B4860E7AABE2475B6B01?height=1437614 - type: "/cosmwasm.wasm.v1.MsgExecuteContract" - contractCall: "claim" - values: # A set of key/value pairs that are present in the message data - # This is the neutron airdrop contract - contract: "neutron198sxsrjvt2v2lln2ajn82ks76k97mj72mtgl7309jehd0vy8rezs7e6c56" diff --git a/Neutron/neutron-starter/tsconfig.json b/Neutron/neutron-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Neutron/neutron-starter/tsconfig.json +++ b/Neutron/neutron-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/OKX/okx-starter/.gitignore b/OKX/okx-starter/.gitignore index 4a94e1b9b..040e1989c 100644 --- a/OKX/okx-starter/.gitignore +++ b/OKX/okx-starter/.gitignore @@ -23,10 +23,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/OKX/okx-starter/docker-compose.yml b/OKX/okx-starter/docker-compose.yml index b8bd524e0..7d994ef22 100644 --- a/OKX/okx-starter/docker-compose.yml +++ b/OKX/okx-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/OKX/okx-starter/package.json b/OKX/okx-starter/package.json index 4b2d52520..60ae8dec5 100644 --- a/OKX/okx-starter/package.json +++ b/OKX/okx-starter/package.json @@ -31,6 +31,6 @@ "@subql/testing": "latest", "@subql/node-cosmos": "latest", "@subql/types": "latest", - "typescript": "4.5.5" + "typescript": "^5.2.2" } } diff --git a/OKX/okx-starter/project.ts b/OKX/okx-starter/project.ts new file mode 100644 index 000000000..f3dc990cc --- /dev/null +++ b/OKX/okx-starter/project.ts @@ -0,0 +1,88 @@ +import { + EthereumProject, + EthereumDatasourceKind, + EthereumHandlerKind, +} from "@subql/types-ethereum"; + +// Can expand the Datasource processor types via the generic param +const project: EthereumProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "OKX-starter-via-eth", + description: "This project can be use as a starting point for developing your Cosmos (OKX) based SubQuery project via the Etheruem API", + runner: { + node: { + name: "@subql/node-ethereum", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + chainId: "66", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://exchainrpc.okex.org/"], + // dictionary: "https://api.subquery.network/sq/subquery/cosmos-okx-dictionary" +}, + dataSources: [ + { + kind: EthereumDatasourceKind.Runtime, + // Contract creation of Pangolin Token https://snowtrace.io/tx/0xfab84552e997848a43f05e440998617d641788d355e3195b6882e9006996d8f9 + startBlock: 446, + options: { + // Must be a key of assets + abi:'erc20', + address:'0x382bb369d343125bfb2117af9c149795c6c65c50', // USDT https://www.oklink.com/en/okc/address/0x382bb369d343125bfb2117af9c149795c6c65c50 + }, + assets: new Map([ + ['erc20', { file: "./erc20.abi.json" }], + ]), + mapping: { + file: "./dist/index.js", + handlers: [ + { + kind: EthereumHandlerKind.Call, + handler: "handleTransaction", + filter: { + /** + * The function can either be the function fragment or signature + * function: '0x095ea7b3' + * function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' + */ + function: "approve(address spender, uint256 value)", + }, + }, + { + kind: EthereumHandlerKind.Event, + handler: "handleLog", + filter: { + /** + * Follows standard log filters https://docs.ethers.io/v5/concepts/events/ + # The topics filter follows the Ethereum JSON-PRC log filters + # https://docs.ethers.io/v5/concepts/events + # Example valid values: + # - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' + # - Transfer(address,address,u256) + */ + topics: ["Transfer(address from, address to, uint256 value)"], + }, + }, + ], + }, + }, + ], + repository: "https://github.com/subquery/ethereum-subql-starter" +}; + +export default project; \ No newline at end of file diff --git a/OKX/okx-starter/project.yaml b/OKX/okx-starter/project.yaml deleted file mode 100644 index aabaeae41..000000000 --- a/OKX/okx-starter/project.yaml +++ /dev/null @@ -1,59 +0,0 @@ -specVersion: 1.0.0 - -name: okx-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-ethereum" - version: "*" - query: - name: "@subql/query" - version: "*" -description: "This project can be use as a starting point for developing your Cosmos (Cronos) based SubQuery project via the Etheruem API" -repository: "https://github.com/subquery/cosmos-subql-starter/tree/main/Cronos/cronos-evm-starter-via-eth" -schema: - file: ./schema.graphql -network: - chainId: "66" - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - # Take a look here for some Cronos endpoints https://moonflow.solutions/rpc-servers - endpoint: ["https://exchainrpc.okex.org/"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/cosmos-okx-dictionary" -dataSources: - - kind: ethereum/Runtime - startBlock: 2348876 # Block that this contract was created - options: - abi: erc20 - address: "0x382bb369d343125bfb2117af9c149795c6c65c50" # USDT https://www.oklink.com/en/okc/address/0x382bb369d343125bfb2117af9c149795c6c65c50 - assets: - erc20: - file: "erc20.abi.json" - mapping: - file: "./dist/index.js" - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: ethereum/BlockHandler - - handler: handleTransaction - kind: ethereum/TransactionHandler - filter: - ## The function can either be the function fragment or signature - ## https://docs.ethers.io/v5/api/utils/abi/fragments/#FunctionFragment - # function: '0x095ea7b3' - # function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000' - function: approve(address spender, uint256 value) - - handler: handleLog - kind: ethereum/LogHandler - filter: - topics: - # The topics filter follows the Ethereum JSON-PRC log filters - # https://docs.ethers.io/v5/concepts/events - # Example valid values: - # - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' - # - Transfer(address,address,u256) - - Transfer(address from, address to, uint256 value) - # address: "0x60781C2586D68229fde47564546784ab3fACA982" diff --git a/Omniflixhub/omniflixhub-starter/.gitignore b/Omniflixhub/omniflixhub-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Omniflixhub/omniflixhub-starter/.gitignore +++ b/Omniflixhub/omniflixhub-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Omniflixhub/omniflixhub-starter/docker-compose.yml b/Omniflixhub/omniflixhub-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Omniflixhub/omniflixhub-starter/docker-compose.yml +++ b/Omniflixhub/omniflixhub-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Omniflixhub/omniflixhub-starter/package.json b/Omniflixhub/omniflixhub-starter/package.json index c9cf8eaf7..f2ad736b9 100644 --- a/Omniflixhub/omniflixhub-starter/package.json +++ b/Omniflixhub/omniflixhub-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Omniflixhub/omniflixhub-starter/project.ts b/Omniflixhub/omniflixhub-starter/project.ts new file mode 100644 index 000000000..08affe02a --- /dev/null +++ b/Omniflixhub/omniflixhub-starter/project.ts @@ -0,0 +1,99 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "omniflixhub-starter", + description: + "This project can be use as a starting point for developing your Cosmos omniflixhub based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "omniflixhub-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://omniflix.rpc.stake2.me"], + +// # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/omniflixhub-dictionary", + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], + [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 8279252, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'transfer', + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Omniflixhub/omniflixhub-starter/project.yaml b/Omniflixhub/omniflixhub-starter/project.yaml deleted file mode 100644 index a83411824..000000000 --- a/Omniflixhub/omniflixhub-starter/project.yaml +++ /dev/null @@ -1,58 +0,0 @@ -specVersion: 1.0.0 -name: omniflixhub-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (%NETWORK_NAME%) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: omniflixhub-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://omniflix.rpc.stake2.me"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/omniflixhub-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 8279252 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Omniflixhub/omniflixhub-starter/tsconfig.json b/Omniflixhub/omniflixhub-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Omniflixhub/omniflixhub-starter/tsconfig.json +++ b/Omniflixhub/omniflixhub-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Osmosis/osmosis-starter/.gitignore b/Osmosis/osmosis-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Osmosis/osmosis-starter/.gitignore +++ b/Osmosis/osmosis-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Osmosis/osmosis-starter/docker-compose.yml b/Osmosis/osmosis-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Osmosis/osmosis-starter/docker-compose.yml +++ b/Osmosis/osmosis-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Osmosis/osmosis-starter/package.json b/Osmosis/osmosis-starter/package.json index 0b7815904..cecafc126 100644 --- a/Osmosis/osmosis-starter/package.json +++ b/Osmosis/osmosis-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/node-cosmos": "latest", "@subql/testing": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Osmosis/osmosis-starter/project.ts b/Osmosis/osmosis-starter/project.ts new file mode 100644 index 000000000..d4e0b9824 --- /dev/null +++ b/Osmosis/osmosis-starter/project.ts @@ -0,0 +1,88 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "osmosis-starter", + description: + "This project can be use as a starting point for developing your Cosmos osmosis based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "osmosis-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://osmosis.api.onfinality.io/public"], +// # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cosmos-osmosis-dictionary", + chaintypes: new Map([ + [ + "osmosis.gamm.v1beta1", { + file: "./proto/osmosis/gamm/v1beta1/tx.proto", + messages: [ + "MsgSwapExactAmountIn" + ] + } + ], + [ + " osmosis.poolmanager.v1beta1", { // needed by MsgSwapExactAmountIn + file: "./proto/osmosis/poolmanager/v1beta1/swap_route.proto", + messages: [ + "SwapAmountInRoute" + ] + } + ], + [ + "cosmos.base.v1beta1", { // needed by MsgSwapExactAmountIn + file: "./proto/cosmos/base/v1beta1/coin.proto", + messages: [ + "Coin" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 9798050, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/osmosis.gamm.v1beta1.MsgSwapExactAmountIn" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Osmosis/osmosis-starter/project.yaml b/Osmosis/osmosis-starter/project.yaml deleted file mode 100644 index ba9db1f14..000000000 --- a/Osmosis/osmosis-starter/project.yaml +++ /dev/null @@ -1,59 +0,0 @@ -specVersion: 1.0.0 -name: osmosis-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos - (Osmosis) based SubQuery project. This Cosmos Example Project indexes all swaps on Osmosis' on chain DEX -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: osmosis-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime. - # This is a public node that is rate limited, which will affect indexing speed. - # When developing your project we strongly suggest getting a private API key. - endpoint: ["https://osmosis.api.onfinality.io/public"] - dictionary: "https://api.subquery.network/sq/subquery/cosmos-osmosis-dictionary" - chainTypes: - osmosis.gamm.v1beta1: - file: "./proto/osmosis/gamm/v1beta1/tx.proto" - messages: - - MsgSwapExactAmountIn - osmosis.poolmanager.v1beta1: # needed by MsgSwapExactAmountIn - file: "./proto/osmosis/poolmanager/v1beta1/swap_route.proto" - messages: - - SwapAmountInRoute - cosmos.base.v1beta1: # needed by MsgSwapExactAmountIn - file: "./proto/cosmos/base/v1beta1/coin.proto" - messages: - - "Coin" -dataSources: - - kind: cosmos/Runtime - startBlock: 9798050 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every transaction - # - handler: handleTransaction - # kind: cosmos/TransactionHandler - # - handler: handleEvent - # kind: cosmos/EventHandler - # filter: - # type: token_swapped - # messageFilter: - # type: /osmosis.gamm.v1beta1.MsgSwapExactAmountIn - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /osmosis.gamm.v1beta1.MsgSwapExactAmountIn diff --git a/Osmosis/osmosis-starter/tsconfig.json b/Osmosis/osmosis-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Osmosis/osmosis-starter/tsconfig.json +++ b/Osmosis/osmosis-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Persistence/persistence-starter/.gitignore b/Persistence/persistence-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Persistence/persistence-starter/.gitignore +++ b/Persistence/persistence-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Persistence/persistence-starter/docker-compose.yml b/Persistence/persistence-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Persistence/persistence-starter/docker-compose.yml +++ b/Persistence/persistence-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Persistence/persistence-starter/package.json b/Persistence/persistence-starter/package.json index f1b876e7d..e48b01f4e 100644 --- a/Persistence/persistence-starter/package.json +++ b/Persistence/persistence-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Persistence/persistence-starter/project.ts b/Persistence/persistence-starter/project.ts new file mode 100644 index 000000000..7a4f78eb5 --- /dev/null +++ b/Persistence/persistence-starter/project.ts @@ -0,0 +1,74 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "persistence-starter", + description: + "This project can be use as a starting point for developing your Cosmos persistence based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "core-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc-persistent-ia.cosmosia.notional.ventures/"], +// # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + chaintypes: new Map([ + [ + "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", { // CIRCUMVENTING VIA ORDER + file: "./proto/cosmos/distribution/v1beta1/tx.proto", + messages: [ + "MsgWithdrawDelegatorReward" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 10737679, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: "coin_spent", + messageFilter:{ + type: '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward' + } + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Persistence/persistence-starter/project.yaml b/Persistence/persistence-starter/project.yaml deleted file mode 100644 index a1f5ae292..000000000 --- a/Persistence/persistence-starter/project.yaml +++ /dev/null @@ -1,45 +0,0 @@ -specVersion: 1.0.0 -name: persistence-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Persistence) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: core-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://rpc-persistent-ia.cosmosia.notional.ventures/"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: #CIRCUMVENTING VIA ORDER - file: ./proto/cosmos/distribution/v1beta1/tx.proto - messages: - - MsgWithdrawDelegatorReward -dataSources: - - kind: cosmos/Runtime - startBlock: 10737679 - mapping: - file: ./dist/index.js - handlers: - #- handler: handleMessage - # kind: cosmos/MessageHandler - # filter: - # type: /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward - - handler: handleEvent - kind: cosmos/EventHandler - # An example of https://www.mintscan.io/comdex/txs/6DB31FF17697FDB422EC885E184917C3EFAE1D522E47C654A093B6C7A62AD94D - filter: - type: coin_spent - messageFilter: - type: /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward diff --git a/Persistence/persistence-starter/tsconfig.json b/Persistence/persistence-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Persistence/persistence-starter/tsconfig.json +++ b/Persistence/persistence-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Sei/sei-starter/.gitignore b/Sei/sei-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Sei/sei-starter/.gitignore +++ b/Sei/sei-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Sei/sei-starter/package.json b/Sei/sei-starter/package.json index 2706973af..5eb7267ca 100644 --- a/Sei/sei-starter/package.json +++ b/Sei/sei-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/node-cosmos": "latest", "@subql/testing": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Sei/sei-starter/project.ts b/Sei/sei-starter/project.ts new file mode 100644 index 000000000..c7b4f2472 --- /dev/null +++ b/Sei/sei-starter/project.ts @@ -0,0 +1,85 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "sei-starter", + description: + "This project can be use as a starting point for developing your Cosmos sei based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "atlantic-2", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc-sei-testnet.rhinostake.com/"], + // Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary", + chaintypes: new Map([ // This feature allows support for any Cosmos chain by importing the correct protobuf messages + [ + "cosmos.bank.v1beta1.MsgSend", { + file: "./proto/cosmos/bank/v1beta1/tx.proto", + messages: [ + "MsgSend" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 24596905, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleFundingRateChangeEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { // https://sei.explorers.guru/transaction/9A5D1FB99CDFB03282459355E4C7221D93D9971160AE79E201FA2B2895952878 + type: "wasm-funding-rate-change", + messageFilter:{ + type: '/cosmwasm.wasm.v1.MsgExecuteContract' + } + } + }, + { + handler: 'handleSpotPriceEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: "wasm-spot-price", + messageFilter:{ + type: '/cosmwasm.wasm.v1.MsgExecuteContract' + } + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Sei/sei-starter/project.yaml b/Sei/sei-starter/project.yaml deleted file mode 100644 index 524358a28..000000000 --- a/Sei/sei-starter/project.yaml +++ /dev/null @@ -1,65 +0,0 @@ -specVersion: 1.0.0 -name: sei-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Sei) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - #chainId: sei-devnet-3 - chainId: atlantic-2 - # This endpoint must be a public non-pruned archive node - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://rpc-sei-testnet.rhinostake.com/"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cosmos-sei-dictionary" - chainTypes: # This feature allows support for any Cosmos chain by importing the correct protobuf messages - cosmos.bank.v1beta1.MsgSend: - file: ./proto/cosmos/bank/v1beta1/tx.proto - messages: - - MsgSend -dataSources: - - kind: cosmos/Runtime - startBlock: 24596905 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # kind: cosmos/TransactionHandler - - handler: handleFundingRateChangeEvent - kind: cosmos/EventHandler - # https://sei.explorers.guru/transaction/9A5D1FB99CDFB03282459355E4C7221D93D9971160AE79E201FA2B2895952878 - filter: - type: wasm-funding-rate-change - messageFilter: - type: "/cosmwasm.wasm.v1.MsgExecuteContract" - # contractCall field can be specified here too - #values: # A set of key/value pairs that are present in the message data - #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" - - handler: handleSpotPriceEvent - kind: cosmos/EventHandler - filter: - type: wasm-spot-price - messageFilter: - type: "/cosmwasm.wasm.v1.MsgExecuteContract" - # - handler: handleMessage - # kind: cosmos/MessageHandler - # filter: - # type: "/cosmwasm.wasm.v1.MsgExecuteContract" - # Filter to only messages with the provide_liquidity function call - #contractCall: "provide_liquidity" # The name of the contract function that was called - #values: # A set of key/value pairs that are present in the message data - #contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0" diff --git a/Sei/sei-starter/tsconfig.json b/Sei/sei-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Sei/sei-starter/tsconfig.json +++ b/Sei/sei-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Stargaze/stargaze-starter/.gitignore b/Stargaze/stargaze-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Stargaze/stargaze-starter/.gitignore +++ b/Stargaze/stargaze-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Stargaze/stargaze-starter/docker-compose.yml b/Stargaze/stargaze-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Stargaze/stargaze-starter/docker-compose.yml +++ b/Stargaze/stargaze-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Stargaze/stargaze-starter/package.json b/Stargaze/stargaze-starter/package.json index ca13975f0..58732a378 100644 --- a/Stargaze/stargaze-starter/package.json +++ b/Stargaze/stargaze-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Stargaze/stargaze-starter/project.ts b/Stargaze/stargaze-starter/project.ts new file mode 100644 index 000000000..35cae48d9 --- /dev/null +++ b/Stargaze/stargaze-starter/project.ts @@ -0,0 +1,103 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "stargaze-starter", + description: + "This project can be use as a starting point for developing your Cosmos persistence based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "stargaze-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc-persistent-ia.cosmosia.notional.ventures/"], +// # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], [ + "publicawesome.stargaze.claim.v1beta1", { + file: "./proto/stargaze/claim/v1beta1/tx.proto", + messages: [ + "MsgInitialClaim" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 6000000, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: "execute", + messageFilter:{ + type: '/cosmwasm.wasm.v1.MsgExecuteContract' + } + } + }, + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmwasm.wasm.v1.MsgExecuteContract", + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Stargaze/stargaze-starter/project.yaml b/Stargaze/stargaze-starter/project.yaml deleted file mode 100644 index 4148f27c2..000000000 --- a/Stargaze/stargaze-starter/project.yaml +++ /dev/null @@ -1,64 +0,0 @@ -specVersion: 1.0.0 -name: stargaze-subql-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos - (Stargaze) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: stargaze-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["http://nodes.stargaze-1.publicawesome.dev:26657/"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/cosmos-stargaze-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption - publicawesome.stargaze.claim.v1beta1: - file: ./proto/stargaze/claim/v1beta1/tx.proto - messages: - - MsgInitialClaim -dataSources: - - kind: cosmos/Runtime - startBlock: 6000000 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # kind: cosmos/TransactionHandler - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: execute - messageFilter: - type: /cosmwasm.wasm.v1.MsgExecuteContract - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmwasm.wasm.v1.MsgExecuteContract diff --git a/Stargaze/stargaze-starter/tsconfig.json b/Stargaze/stargaze-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Stargaze/stargaze-starter/tsconfig.json +++ b/Stargaze/stargaze-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Thorchain/thorchain-starter/.gitignore b/Thorchain/thorchain-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Thorchain/thorchain-starter/.gitignore +++ b/Thorchain/thorchain-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Thorchain/thorchain-starter/docker-compose.yml b/Thorchain/thorchain-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Thorchain/thorchain-starter/docker-compose.yml +++ b/Thorchain/thorchain-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Thorchain/thorchain-starter/package.json b/Thorchain/thorchain-starter/package.json index f68e91aaa..bdf8d105c 100644 --- a/Thorchain/thorchain-starter/package.json +++ b/Thorchain/thorchain-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Thorchain/thorchain-starter/project.ts b/Thorchain/thorchain-starter/project.ts new file mode 100644 index 000000000..e9184ee73 --- /dev/null +++ b/Thorchain/thorchain-starter/project.ts @@ -0,0 +1,92 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "thorchain-starter", + description: + "This project can be use as a starting point for developing your Cosmos thorchain based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "thorchain-mainnet-v1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc.ninerealms.com/"], + chaintypes: new Map([ // This feature allows support for any Cosmos chain by importing the correct protobuf messages + [ + "thorchain.message.observed.out", { + file: "./proto/thorchain/v1/x/thorchain/types/msg_observed_txout.proto", + messages: [ + "MsgObservedTxOut" + ] + } + ], + [ + "thorchain.message.deposit", { + file: "./proto/thorchain/v1/x/thorchain/types/msg_deposit.proto", + messages: [ + "MsgDeposit" + ] + } + ], [ + "thorchain.types.observed.out", { + file: "./proto/thorchain/v1/x/thorchain/types/type_observed_tx.proto", + messages: [ + "ObservedTx" + ] + } + ], [ + "common.Common", { + file: "./proto/thorchain/v1/common/common.proto", + messages: [ + "Tx" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 7960001, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/types.MsgDeposit", + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Thorchain/thorchain-starter/project.yaml b/Thorchain/thorchain-starter/project.yaml deleted file mode 100644 index 4b48f8b13..000000000 --- a/Thorchain/thorchain-starter/project.yaml +++ /dev/null @@ -1,62 +0,0 @@ -specVersion: 1.0.0 -name: thorchain-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (Thorchain) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: thorchain-mainnet-v1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://rpc.ninerealms.com/"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - # dictionary: "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary" - chainTypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages - thorchain.message.observed.out: # Key is not used, it matches the one above and is inferred from the file - file: ./proto/thorchain/v1/x/thorchain/types/msg_observed_txout.proto - messages: - - MsgObservedTxOut - thorchain.message.deposit: # Key is not used, it matches the one above and is inferred from the file - file: ./proto/thorchain/v1/x/thorchain/types/msg_deposit.proto - messages: - - MsgDeposit - thorchain.types.observed.out: # Key is not used, it matches the one above and is inferred from the file - file: ./proto/thorchain/v1/x/thorchain/types/type_observed_tx.proto - messages: - - ObservedTx - common.Common: # Key is not used, it matches the one above and is inferred from the file - file: ./proto/thorchain/v1/common/common.proto - messages: - - Tx -dataSources: - - kind: cosmos/Runtime - startBlock: 7960001 # This is the lowest height on the current version of Thorchain - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - # - handler: handleEvent - # kind: cosmos/EventHandler - # filter: - # type: swap - # messageFilter: - # type: swap - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /types.MsgDeposit diff --git a/Thorchain/thorchain-starter/tsconfig.json b/Thorchain/thorchain-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Thorchain/thorchain-starter/tsconfig.json +++ b/Thorchain/thorchain-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/Umee/umee-starter/.gitignore b/Umee/umee-starter/.gitignore index 958a76126..af37ddbf4 100644 --- a/Umee/umee-starter/.gitignore +++ b/Umee/umee-starter/.gitignore @@ -24,10 +24,11 @@ package-lock.json # Package files *.jar -# Maven +# Generated files target/ dist/ src/types +project.yaml # JetBrains IDE .idea/ diff --git a/Umee/umee-starter/docker-compose.yml b/Umee/umee-starter/docker-compose.yml index 6fe9b54e2..7b482279b 100644 --- a/Umee/umee-starter/docker-compose.yml +++ b/Umee/umee-starter/docker-compose.yml @@ -32,7 +32,7 @@ services: volumes: - ./:/app command: - - ${SUB_COMMAND} # set SUB_COMMAND env variable to "test" to run tests + - ${SUB_COMMAND:-} # set SUB_COMMAND env variable to "test" to run tests - -f=/app - --db-schema=app - --workers=4 diff --git a/Umee/umee-starter/package.json b/Umee/umee-starter/package.json index d5b9f3aa6..5d3dc3f4d 100644 --- a/Umee/umee-starter/package.json +++ b/Umee/umee-starter/package.json @@ -25,7 +25,7 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/node-cosmos": "latest", - "typescript": "^4.7.4" + "typescript": "^5.2.2" }, "dependencies": { "@subql/types-cosmos": "latest", diff --git a/Umee/umee-starter/project.ts b/Umee/umee-starter/project.ts new file mode 100644 index 000000000..fd53aca8b --- /dev/null +++ b/Umee/umee-starter/project.ts @@ -0,0 +1,97 @@ +import { + SubqlCosmosDatasourceKind, + SubqlCosmosHandlerKind, + CosmosProject +} from "@subql/types-cosmos"; + + +// Can expand the Datasource processor types via the genreic param +const project: CosmosProject = { + specVersion: "1.0.0", + version: "0.0.1", + name: "Umee-starter", + description: + "This project can be use as a starting point for developing your Cosmos Umee based SubQuery project", + runner: { + node: { + name: "@subql/node-cosmos", + version: ">=3.0.0", + }, + query: { + name: "@subql/query", + version: "*", + }, + }, + schema: { + file: "./schema.graphql", + }, + network: { + /* The genesis hash of the network (hash of block 0) */ + chainId: "umee-1", + /** + * This endpoint must be a public non-pruned archive node + * Public nodes may be rate limited, which can affect indexing speed + * When developing your project we suggest getting a private API key + * You can get them from OnFinality for free https://app.onfinality.io + * https://documentation.onfinality.io/support/the-enhanced-api-service + */ + endpoint: ["https://rpc-1.umee.nodes.guru"], + dictionary: "https://api.subquery.network/sq/subquery/umee-dictionary", + chaintypes: new Map([ + [ + "cosmos.slashing.v1beta1", { + file: "./proto/cosmos/slashing/v1beta1/tx.proto", + messages: [ + "MsgUnjail" + ] + } + ], + [ + "cosmos.gov.v1beta1", { + file: "./proto/cosmos/gov/v1beta1/tx.proto", + messages: [ + "MsgVoteWeighted" + ] + } + ], + [ + "cosmos.gov.v1beta1.gov", { + file: "./proto/cosmos/gov/v1beta1/gov.proto", + messages: [ + "WeightedVoteOption" + ] + } + ], + ]) + }, + dataSources: [ + { + kind: SubqlCosmosDatasourceKind.Runtime, + startBlock: 8148041, + mapping: { + file: './dist/index.js', + handlers: [ + { + handler: 'handleEvent', + kind: SubqlCosmosHandlerKind.Event, + filter: { + type: 'transfer', + messageFilter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + }, + { + handler: 'handleMessage', + kind: SubqlCosmosHandlerKind.Message, + filter: { + type: "/cosmos.bank.v1beta1.MsgSend" + } + } + ] + }, + }, + ], +}; + +export default project; \ No newline at end of file diff --git a/Umee/umee-starter/project.yaml b/Umee/umee-starter/project.yaml deleted file mode 100644 index 835ab5893..000000000 --- a/Umee/umee-starter/project.yaml +++ /dev/null @@ -1,58 +0,0 @@ -specVersion: 1.0.0 -name: umee-starter -version: 0.0.1 -runner: - node: - name: "@subql/node-cosmos" - version: "*" - query: - name: "@subql/query" - version: "*" -description: >- - This project can be use as a starting point for developing your Cosmos (%NETWORK_NAME%) based SubQuery project -repository: "https://github.com/subquery/cosmos-subql-starter" -schema: - file: ./schema.graphql -network: - chainId: umee-1 - # This endpoint must be a public non-pruned archive node - # We recommend providing more than one endpoint for improved reliability, performance, and uptime - # Public nodes may be rate limited, which can affect indexing speed - # When developing your project we suggest getting a private API key - endpoint: ["https://rpc-1.umee.nodes.guru"] - # Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing - dictionary: "https://api.subquery.network/sq/subquery/umee-dictionary" - chainTypes: - cosmos.slashing.v1beta1: - file: ./proto/cosmos/slashing/v1beta1/tx.proto - messages: - - MsgUnjail - cosmos.gov.v1beta1: - file: ./proto/cosmos/gov/v1beta1/tx.proto - messages: - - MsgVoteWeighted - cosmos.gov.v1beta1.gov: - file: ./proto/cosmos/gov/v1beta1/gov.proto - messages: - - WeightedVoteOption -dataSources: - - kind: cosmos/Runtime - startBlock: 8148041 - mapping: - file: ./dist/index.js - handlers: - # Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to - # - handler: handleBlock - # kind: cosmos/BlockHandler - # Using transaction handlers without filters slows your project down as they can be executed with each and every block - # - handler: handleTransaction - - handler: handleEvent - kind: cosmos/EventHandler - filter: - type: transfer - messageFilter: - type: /cosmos.bank.v1beta1.MsgSend - - handler: handleMessage - kind: cosmos/MessageHandler - filter: - type: /cosmos.bank.v1beta1.MsgSend diff --git a/Umee/umee-starter/tsconfig.json b/Umee/umee-starter/tsconfig.json index bf13cef77..3e88c9d01 100644 --- a/Umee/umee-starter/tsconfig.json +++ b/Umee/umee-starter/tsconfig.json @@ -12,5 +12,6 @@ "target": "es2017", "strict": true }, - "include": ["src/**/*", "node_modules/@subql/types-cosmos/dist/global.d.ts"] + "include": ["src/**/*", "node_modules/@subql/types-core/dist/global.d.ts", + "node_modules/@subql/types-cosmos/dist/global.d.ts"] } diff --git a/package.json b/package.json new file mode 100644 index 000000000..945b4cd8a --- /dev/null +++ b/package.json @@ -0,0 +1,34 @@ +{ + "name": "cosmos-subql-starters", + "private": true, + "workspaces": [ + "Agoric/*", + "Archway/*", + "Cheqd/*", + "CosmosHub/*", + "Evmos/*", + "Injective/*", + "Kava/*", + "Migaloo/*", + "OKX/*", + "Osmosis/*", + "Sei/*", + "Thorchain/*", + "Akash/*", + "Axelar/*", + "Comdex/*", + "Cronos/*", + "Fetch.ai/*", + "Juno/*", + "Mars/*", + "Neutron/*", + "Omniflixhub/*", + "Persistence/*", + "Stargaze/*", + "Umee/*" + ], + "scripts": { + "codegen": "yarn workspaces run codegen", + "build": "yarn workspaces run build" + } +} \ No newline at end of file