diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 30c5c054..df0b6d3c 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -11434,140 +11434,6 @@ paths: type: string tags: - Query - /cosmos/mint/v1beta1/annual_provisions: - get: - summary: AnnualProvisions current minting annual provisions value. - operationId: CosmosMintV1Beta1AnnualProvisions - responses: - '200': - description: A successful response. - schema: - type: object - properties: - annual_provisions: - type: string - format: byte - description: >- - annual_provisions is the current minting annual provisions - value. - description: |- - QueryAnnualProvisionsResponse is the response type for the - Query/AnnualProvisions RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /cosmos/mint/v1beta1/inflation: - get: - summary: Inflation returns the current minting inflation value. - operationId: CosmosMintV1Beta1Inflation - responses: - '200': - description: A successful response. - schema: - type: object - properties: - inflation: - type: string - format: byte - description: inflation is the current minting inflation value. - description: >- - QueryInflationResponse is the response type for the - Query/Inflation RPC - - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /cosmos/mint/v1beta1/params: - get: - summary: Params returns the total set of minting parameters. - operationId: CosmosMintV1Beta1Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - mint_denom: - type: string - title: type of coin to mint - inflation_rate_change: - type: string - title: maximum annual change in inflation rate - inflation_max: - type: string - title: maximum inflation rate - inflation_min: - type: string - title: minimum inflation rate - goal_bonded: - type: string - title: goal of percent bonded atoms - blocks_per_year: - type: string - format: uint64 - title: expected blocks per year - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query /cosmos/params/v1beta1/params: get: summary: |- @@ -30287,16 +30153,6 @@ paths: in: query required: false type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query '/sixnft/evmsupport/address_binding/{ethAddress}/{nativeAddress}': @@ -33531,16 +33387,6 @@ paths: in: query required: false type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query '/sixnft/nftoracle/action_request/{id}': @@ -33832,16 +33678,6 @@ paths: in: query required: false type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query '/sixnft/nftoracle/mint_request/{id}': @@ -43072,76 +42908,6 @@ definitions: WeightedVoteOption defines a unit of vote for vote split. Since: cosmos-sdk 0.43 - cosmos.mint.v1beta1.Params: - type: object - properties: - mint_denom: - type: string - title: type of coin to mint - inflation_rate_change: - type: string - title: maximum annual change in inflation rate - inflation_max: - type: string - title: maximum inflation rate - inflation_min: - type: string - title: minimum inflation rate - goal_bonded: - type: string - title: goal of percent bonded atoms - blocks_per_year: - type: string - format: uint64 - title: expected blocks per year - description: Params holds parameters for the mint module. - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse: - type: object - properties: - annual_provisions: - type: string - format: byte - description: annual_provisions is the current minting annual provisions value. - description: |- - QueryAnnualProvisionsResponse is the response type for the - Query/AnnualProvisions RPC method. - cosmos.mint.v1beta1.QueryInflationResponse: - type: object - properties: - inflation: - type: string - format: byte - description: inflation is the current minting inflation value. - description: |- - QueryInflationResponse is the response type for the Query/Inflation RPC - method. - cosmos.mint.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - mint_denom: - type: string - title: type of coin to mint - inflation_rate_change: - type: string - title: maximum annual change in inflation rate - inflation_max: - type: string - title: maximum inflation rate - inflation_min: - type: string - title: minimum inflation rate - goal_bonded: - type: string - title: goal of percent bonded atoms - blocks_per_year: - type: string - format: uint64 - title: expected blocks per year - description: QueryParamsResponse is the response type for the Query/Params RPC method. cosmos.params.v1beta1.ParamChange: type: object properties: diff --git a/scripts/menu_local.sh b/scripts/menu_local.sh index 0b53c70c..18273893 100755 --- a/scripts/menu_local.sh +++ b/scripts/menu_local.sh @@ -13,6 +13,7 @@ echo "## 5. Set NFT Attribute ##" echo "## 6. Oracle - Create Mint Request ##" echo "## 7. Oracle - Get Mint Request ##" echo "## 8. Oracle - Submit Mint Response ##" +echo "## 9. Add Attribute ##" echo "## Your choice: ##" echo "## ##" echo "#############################################" @@ -118,6 +119,15 @@ case $choice in sixnftd tx nftoracle submit-mint-response ${mint_request_id} ${BASE64_ORIGINDATA} --from ${oracle_key_name} --gas auto --gas-adjustment 1.5 --gas-prices 0.1stake -y ;; + 9) echo "Add Attribute" + read -p "Enter Schema Code: " schema_code + if [ -z "$schema_code" ]; then + schema_code=$default_schema_code + fi + BASE64_ATTRIBUTE=`cat new-attribute.json | base64 | tr -d '\n'` + sixnftd tx nftmngr add-attribute ${schema_code} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 0.1stake -y \ + ${BASE64_ATTRIBUTE} + ;; *) echo "Invalid choice" ;; esac \ No newline at end of file diff --git a/scripts/new-attribute.json b/scripts/new-attribute.json new file mode 100644 index 00000000..c45aa8fa --- /dev/null +++ b/scripts/new-attribute.json @@ -0,0 +1,18 @@ +{ + "name": "new_attribute", + "default_mint_value": { + "boolean_attribute_value": { + "value": false + } + }, + "data_type": "boolean", + "required": true, + "display_value_field": "value", + "display_option": { + "bool_true_value": "Yes", + "bool_false_value": "No", + "opensea": { + "trait_type": "New Attribute" + } + } +} \ No newline at end of file diff --git a/vue/src/store/generated/index.ts b/vue/src/store/generated/index.ts index 35b9f813..69a70570 100644 --- a/vue/src/store/generated/index.ts +++ b/vue/src/store/generated/index.ts @@ -1,16 +1,66 @@ // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. -import SixnftEvmsupport from './sixnft.evmsupport' -import SixnftNftadmin from './sixnft.nftadmin' -import SixnftNftmngr from './sixnft.nftmngr' -import SixnftNftoracle from './sixnft.nftoracle' +import CosmosCosmosSdkCosmosAuthV1Beta1 from './cosmos/cosmos-sdk/cosmos.auth.v1beta1' +import CosmosCosmosSdkCosmosBankV1Beta1 from './cosmos/cosmos-sdk/cosmos.bank.v1beta1' +import CosmosCosmosSdkCosmosBaseTendermintV1Beta1 from './cosmos/cosmos-sdk/cosmos.base.tendermint.v1beta1' +import CosmosCosmosSdkCosmosCrisisV1Beta1 from './cosmos/cosmos-sdk/cosmos.crisis.v1beta1' +import CosmosCosmosSdkCosmosDistributionV1Beta1 from './cosmos/cosmos-sdk/cosmos.distribution.v1beta1' +import CosmosCosmosSdkCosmosEvidenceV1Beta1 from './cosmos/cosmos-sdk/cosmos.evidence.v1beta1' +import CosmosCosmosSdkCosmosFeegrantV1Beta1 from './cosmos/cosmos-sdk/cosmos.feegrant.v1beta1' +import CosmosCosmosSdkCosmosGovV1Beta1 from './cosmos/cosmos-sdk/cosmos.gov.v1beta1' +import CosmosCosmosSdkCosmosMintV1Beta1 from './cosmos/cosmos-sdk/cosmos.mint.v1beta1' +import CosmosCosmosSdkCosmosParamsV1Beta1 from './cosmos/cosmos-sdk/cosmos.params.v1beta1' +import CosmosCosmosSdkCosmosSlashingV1Beta1 from './cosmos/cosmos-sdk/cosmos.slashing.v1beta1' +import CosmosCosmosSdkCosmosStakingV1Beta1 from './cosmos/cosmos-sdk/cosmos.staking.v1beta1' +import CosmosCosmosSdkCosmosTxV1Beta1 from './cosmos/cosmos-sdk/cosmos.tx.v1beta1' +import CosmosCosmosSdkCosmosUpgradeV1Beta1 from './cosmos/cosmos-sdk/cosmos.upgrade.v1beta1' +import CosmosCosmosSdkCosmosVestingV1Beta1 from './cosmos/cosmos-sdk/cosmos.vesting.v1beta1' +import CosmosIbcGoIbcApplicationsTransferV1 from './cosmos/ibc-go/ibc.applications.transfer.v1' +import CosmosIbcGoIbcCoreChannelV1 from './cosmos/ibc-go/ibc.core.channel.v1' +import CosmosIbcGoIbcCoreClientV1 from './cosmos/ibc-go/ibc.core.client.v1' +import CosmosIbcGoIbcCoreConnectionV1 from './cosmos/ibc-go/ibc.core.connection.v1' +import CosmosIbcGoIbcCorePortV1 from './cosmos/ibc-go/ibc.core.port.v1' +import SixnftSixnftAdmin from './sixnft/sixnft.admin' +import SixnftSixnftEvmsupport from './sixnft/sixnft.evmsupport' +import SixnftSixnftNftmngr from './sixnft/sixnft.nftmngr' +import SixnftSixnftNftoracle from './sixnft/sixnft.nftoracle' +import ThesixnetworkSixnftSixnftAdmin from './thesixnetwork/sixnft/sixnft.admin' +import ThesixnetworkSixnftSixnftEvmsupport from './thesixnetwork/sixnft/sixnft.evmsupport' +import ThesixnetworkSixnftSixnftNftadmin from './thesixnetwork/sixnft/sixnft.nftadmin' +import ThesixnetworkSixnftSixnftNftmngr from './thesixnetwork/sixnft/sixnft.nftmngr' +import ThesixnetworkSixnftSixnftNftoracle from './thesixnetwork/sixnft/sixnft.nftoracle' export default { - SixnftEvmsupport: load(SixnftEvmsupport, 'sixnft.evmsupport'), - SixnftNftadmin: load(SixnftNftadmin, 'sixnft.nftadmin'), - SixnftNftmngr: load(SixnftNftmngr, 'sixnft.nftmngr'), - SixnftNftoracle: load(SixnftNftoracle, 'sixnft.nftoracle'), + CosmosCosmosSdkCosmosAuthV1Beta1: load(CosmosCosmosSdkCosmosAuthV1Beta1, 'cosmos.auth.v1beta1'), + CosmosCosmosSdkCosmosBankV1Beta1: load(CosmosCosmosSdkCosmosBankV1Beta1, 'cosmos.bank.v1beta1'), + CosmosCosmosSdkCosmosBaseTendermintV1Beta1: load(CosmosCosmosSdkCosmosBaseTendermintV1Beta1, 'cosmos.base.tendermint.v1beta1'), + CosmosCosmosSdkCosmosCrisisV1Beta1: load(CosmosCosmosSdkCosmosCrisisV1Beta1, 'cosmos.crisis.v1beta1'), + CosmosCosmosSdkCosmosDistributionV1Beta1: load(CosmosCosmosSdkCosmosDistributionV1Beta1, 'cosmos.distribution.v1beta1'), + CosmosCosmosSdkCosmosEvidenceV1Beta1: load(CosmosCosmosSdkCosmosEvidenceV1Beta1, 'cosmos.evidence.v1beta1'), + CosmosCosmosSdkCosmosFeegrantV1Beta1: load(CosmosCosmosSdkCosmosFeegrantV1Beta1, 'cosmos.feegrant.v1beta1'), + CosmosCosmosSdkCosmosGovV1Beta1: load(CosmosCosmosSdkCosmosGovV1Beta1, 'cosmos.gov.v1beta1'), + CosmosCosmosSdkCosmosMintV1Beta1: load(CosmosCosmosSdkCosmosMintV1Beta1, 'cosmos.mint.v1beta1'), + CosmosCosmosSdkCosmosParamsV1Beta1: load(CosmosCosmosSdkCosmosParamsV1Beta1, 'cosmos.params.v1beta1'), + CosmosCosmosSdkCosmosSlashingV1Beta1: load(CosmosCosmosSdkCosmosSlashingV1Beta1, 'cosmos.slashing.v1beta1'), + CosmosCosmosSdkCosmosStakingV1Beta1: load(CosmosCosmosSdkCosmosStakingV1Beta1, 'cosmos.staking.v1beta1'), + CosmosCosmosSdkCosmosTxV1Beta1: load(CosmosCosmosSdkCosmosTxV1Beta1, 'cosmos.tx.v1beta1'), + CosmosCosmosSdkCosmosUpgradeV1Beta1: load(CosmosCosmosSdkCosmosUpgradeV1Beta1, 'cosmos.upgrade.v1beta1'), + CosmosCosmosSdkCosmosVestingV1Beta1: load(CosmosCosmosSdkCosmosVestingV1Beta1, 'cosmos.vesting.v1beta1'), + CosmosIbcGoIbcApplicationsTransferV1: load(CosmosIbcGoIbcApplicationsTransferV1, 'ibc.applications.transfer.v1'), + CosmosIbcGoIbcCoreChannelV1: load(CosmosIbcGoIbcCoreChannelV1, 'ibc.core.channel.v1'), + CosmosIbcGoIbcCoreClientV1: load(CosmosIbcGoIbcCoreClientV1, 'ibc.core.client.v1'), + CosmosIbcGoIbcCoreConnectionV1: load(CosmosIbcGoIbcCoreConnectionV1, 'ibc.core.connection.v1'), + CosmosIbcGoIbcCorePortV1: load(CosmosIbcGoIbcCorePortV1, 'ibc.core.port.v1'), + SixnftSixnftAdmin: load(SixnftSixnftAdmin, 'sixnft.admin'), + SixnftSixnftEvmsupport: load(SixnftSixnftEvmsupport, 'sixnft.evmsupport'), + SixnftSixnftNftmngr: load(SixnftSixnftNftmngr, 'sixnft.nftmngr'), + SixnftSixnftNftoracle: load(SixnftSixnftNftoracle, 'sixnft.nftoracle'), + ThesixnetworkSixnftSixnftAdmin: load(ThesixnetworkSixnftSixnftAdmin, 'sixnft.admin'), + ThesixnetworkSixnftSixnftEvmsupport: load(ThesixnetworkSixnftSixnftEvmsupport, 'sixnft.evmsupport'), + ThesixnetworkSixnftSixnftNftadmin: load(ThesixnetworkSixnftSixnftNftadmin, 'sixnft.nftadmin'), + ThesixnetworkSixnftSixnftNftmngr: load(ThesixnetworkSixnftSixnftNftmngr, 'sixnft.nftmngr'), + ThesixnetworkSixnftSixnftNftoracle: load(ThesixnetworkSixnftSixnftNftoracle, 'sixnft.nftoracle'), } @@ -30,4 +80,4 @@ function load(mod, fullns) { }) } } -} \ No newline at end of file +} diff --git a/vue/src/store/generated/package.json b/vue/src/store/generated/package.json index 66b60ff5..343a2b57 100644 --- a/vue/src/store/generated/package.json +++ b/vue/src/store/generated/package.json @@ -1,8 +1,8 @@ { - "name": "thesixnetwork-sixnft-vue", - "version": "0.0.1", - "description": "Autogenerated Vue Utils", - "author": "Ignite Codegen ", + "name": "thesixnetwork-sixnft-js", + "version": "0.1.0", + "description": "Autogenerated cosmos modules vuex store", + "author": "Starport Codegen ", "license": "Apache-2.0", "licenses": [ { @@ -10,17 +10,8 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "main": "index.ts", + "main": "index.js", "publishConfig": { "access": "public" - }, - "dependencies": { - "thesixnetwork-sixnft-client": "0.0.1", - "buffer": "^6.0.3" - }, - "peerDependencies": { - "@cosmjs/proto-signing": "0.27.0", - "@cosmjs/stargate": "0.27.0", - "vue": "3.2.31" } } diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/index.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/index.ts index 9138170b..1c8b2a9e 100755 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/index.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/index.ts @@ -199,60 +199,60 @@ export default { }, - async sendMsgRemoveBinding({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgBindAddress({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRemoveBinding(value) + const msg = await txClient.msgBindAddress(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgRemoveBinding:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgBindAddress:Init Could not initialize signing client. Wallet is required.') }else{ - throw new Error('TxClient:MsgRemoveBinding:Send Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgBindAddress:Send Could not broadcast Tx: '+ e.message) } } }, - async sendMsgBindAddress({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRemoveBinding({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgBindAddress(value) + const msg = await txClient.msgRemoveBinding(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgBindAddress:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgRemoveBinding:Init Could not initialize signing client. Wallet is required.') }else{ - throw new Error('TxClient:MsgBindAddress:Send Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgRemoveBinding:Send Could not broadcast Tx: '+ e.message) } } }, - async MsgRemoveBinding({ rootGetters }, { value }) { + async MsgBindAddress({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRemoveBinding(value) + const msg = await txClient.msgBindAddress(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgRemoveBinding:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgBindAddress:Init Could not initialize signing client. Wallet is required.') } else{ - throw new Error('TxClient:MsgRemoveBinding:Create Could not create message: ' + e.message) + throw new Error('TxClient:MsgBindAddress:Create Could not create message: ' + e.message) } } }, - async MsgBindAddress({ rootGetters }, { value }) { + async MsgRemoveBinding({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgBindAddress(value) + const msg = await txClient.msgRemoveBinding(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgBindAddress:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgRemoveBinding:Init Could not initialize signing client. Wallet is required.') } else{ - throw new Error('TxClient:MsgBindAddress:Create Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveBinding:Create Could not create message: ' + e.message) } } }, diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/index.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/index.ts index 3ec17061..96e66a8c 100755 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/index.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/index.ts @@ -4,13 +4,13 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgRemoveBinding } from "./types/evmsupport/tx"; import { MsgBindAddress } from "./types/evmsupport/tx"; +import { MsgRemoveBinding } from "./types/evmsupport/tx"; const types = [ - ["/sixnft.evmsupport.MsgRemoveBinding", MsgRemoveBinding], ["/sixnft.evmsupport.MsgBindAddress", MsgBindAddress], + ["/sixnft.evmsupport.MsgRemoveBinding", MsgRemoveBinding], ]; export const MissingWalletError = new Error("wallet is required"); @@ -43,8 +43,8 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), - msgRemoveBinding: (data: MsgRemoveBinding): EncodeObject => ({ typeUrl: "/sixnft.evmsupport.MsgRemoveBinding", value: MsgRemoveBinding.fromPartial( data ) }), msgBindAddress: (data: MsgBindAddress): EncodeObject => ({ typeUrl: "/sixnft.evmsupport.MsgBindAddress", value: MsgBindAddress.fromPartial( data ) }), + msgRemoveBinding: (data: MsgRemoveBinding): EncodeObject => ({ typeUrl: "/sixnft.evmsupport.MsgRemoveBinding", value: MsgRemoveBinding.fromPartial( data ) }), }; }; diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/rest.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/rest.ts index b5d789aa..a1659b5f 100644 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/rest.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/rest.ts @@ -104,13 +104,6 @@ export interface V1Beta1PageRequest { * 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; } /** @@ -340,7 +333,6 @@ export class Api extends HttpClient diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/types/cosmos/base/query/v1beta1/pagination.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/types/cosmos/base/query/v1beta1/pagination.ts index 9c87ac0c..0bc568f4 100644 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/types/cosmos/base/query/v1beta1/pagination.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.evmsupport/module/types/cosmos/base/query/v1beta1/pagination.ts @@ -38,12 +38,6 @@ export interface PageRequest { * 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; } /** @@ -68,12 +62,7 @@ export interface PageResponse { total: number; } -const basePageRequest: object = { - offset: 0, - limit: 0, - count_total: false, - reverse: false, -}; +const basePageRequest: object = { offset: 0, limit: 0, count_total: false }; export const PageRequest = { encode(message: PageRequest, writer: Writer = Writer.create()): Writer { @@ -89,9 +78,6 @@ export const PageRequest = { if (message.count_total === true) { writer.uint32(32).bool(message.count_total); } - if (message.reverse === true) { - writer.uint32(40).bool(message.reverse); - } return writer; }, @@ -114,9 +100,6 @@ export const PageRequest = { case 4: message.count_total = reader.bool(); break; - case 5: - message.reverse = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -145,11 +128,6 @@ export const PageRequest = { } else { message.count_total = false; } - if (object.reverse !== undefined && object.reverse !== null) { - message.reverse = Boolean(object.reverse); - } else { - message.reverse = false; - } return message; }, @@ -163,7 +141,6 @@ export const PageRequest = { message.limit !== undefined && (obj.limit = message.limit); message.count_total !== undefined && (obj.count_total = message.count_total); - message.reverse !== undefined && (obj.reverse = message.reverse); return obj; }, @@ -189,11 +166,6 @@ export const PageRequest = { } else { message.count_total = false; } - if (object.reverse !== undefined && object.reverse !== null) { - message.reverse = object.reverse; - } else { - message.reverse = false; - } return message; }, }; diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/index.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/index.ts index 040d30bd..4425496e 100755 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/index.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/index.ts @@ -170,18 +170,18 @@ export default { }, - async sendMsgMint({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgBurn({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgMint(value) + const msg = await txClient.msgBurn(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgMint:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgBurn:Init Could not initialize signing client. Wallet is required.') }else{ - throw new Error('TxClient:MsgMint:Send Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgBurn:Send Could not broadcast Tx: '+ e.message) } } }, @@ -200,47 +200,47 @@ export default { } } }, - async sendMsgRevokePermission({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgMint({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRevokePermission(value) + const msg = await txClient.msgMint(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgRevokePermission:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgMint:Init Could not initialize signing client. Wallet is required.') }else{ - throw new Error('TxClient:MsgRevokePermission:Send Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgMint:Send Could not broadcast Tx: '+ e.message) } } }, - async sendMsgBurn({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRevokePermission({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgBurn(value) + const msg = await txClient.msgRevokePermission(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgBurn:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgRevokePermission:Init Could not initialize signing client. Wallet is required.') }else{ - throw new Error('TxClient:MsgBurn:Send Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgRevokePermission:Send Could not broadcast Tx: '+ e.message) } } }, - async MsgMint({ rootGetters }, { value }) { + async MsgBurn({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgMint(value) + const msg = await txClient.msgBurn(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgMint:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgBurn:Init Could not initialize signing client. Wallet is required.') } else{ - throw new Error('TxClient:MsgMint:Create Could not create message: ' + e.message) + throw new Error('TxClient:MsgBurn:Create Could not create message: ' + e.message) } } }, @@ -257,29 +257,29 @@ export default { } } }, - async MsgRevokePermission({ rootGetters }, { value }) { + async MsgMint({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRevokePermission(value) + const msg = await txClient.msgMint(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgRevokePermission:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgMint:Init Could not initialize signing client. Wallet is required.') } else{ - throw new Error('TxClient:MsgRevokePermission:Create Could not create message: ' + e.message) + throw new Error('TxClient:MsgMint:Create Could not create message: ' + e.message) } } }, - async MsgBurn({ rootGetters }, { value }) { + async MsgRevokePermission({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgBurn(value) + const msg = await txClient.msgRevokePermission(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgBurn:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgRevokePermission:Init Could not initialize signing client. Wallet is required.') } else{ - throw new Error('TxClient:MsgBurn:Create Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokePermission:Create Could not create message: ' + e.message) } } }, diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/module/index.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/module/index.ts index 649e3fa5..8213695e 100755 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/module/index.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/module/index.ts @@ -4,17 +4,17 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgMint } from "./types/nftadmin/tx"; +import { MsgBurn } from "./types/nftadmin/tx"; import { MsgGrantPermission } from "./types/nftadmin/tx"; +import { MsgMint } from "./types/nftadmin/tx"; import { MsgRevokePermission } from "./types/nftadmin/tx"; -import { MsgBurn } from "./types/nftadmin/tx"; const types = [ - ["/sixnft.nftadmin.MsgMint", MsgMint], + ["/sixnft.nftadmin.MsgBurn", MsgBurn], ["/sixnft.nftadmin.MsgGrantPermission", MsgGrantPermission], + ["/sixnft.nftadmin.MsgMint", MsgMint], ["/sixnft.nftadmin.MsgRevokePermission", MsgRevokePermission], - ["/sixnft.nftadmin.MsgBurn", MsgBurn], ]; export const MissingWalletError = new Error("wallet is required"); @@ -47,10 +47,10 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), - msgMint: (data: MsgMint): EncodeObject => ({ typeUrl: "/sixnft.nftadmin.MsgMint", value: MsgMint.fromPartial( data ) }), + msgBurn: (data: MsgBurn): EncodeObject => ({ typeUrl: "/sixnft.nftadmin.MsgBurn", value: MsgBurn.fromPartial( data ) }), msgGrantPermission: (data: MsgGrantPermission): EncodeObject => ({ typeUrl: "/sixnft.nftadmin.MsgGrantPermission", value: MsgGrantPermission.fromPartial( data ) }), + msgMint: (data: MsgMint): EncodeObject => ({ typeUrl: "/sixnft.nftadmin.MsgMint", value: MsgMint.fromPartial( data ) }), msgRevokePermission: (data: MsgRevokePermission): EncodeObject => ({ typeUrl: "/sixnft.nftadmin.MsgRevokePermission", value: MsgRevokePermission.fromPartial( data ) }), - msgBurn: (data: MsgBurn): EncodeObject => ({ typeUrl: "/sixnft.nftadmin.MsgBurn", value: MsgBurn.fromPartial( data ) }), }; }; diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/module/types/cosmos/base/query/v1beta1/pagination.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/module/types/cosmos/base/query/v1beta1/pagination.ts index 9c87ac0c..0bc568f4 100644 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/module/types/cosmos/base/query/v1beta1/pagination.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftadmin/module/types/cosmos/base/query/v1beta1/pagination.ts @@ -38,12 +38,6 @@ export interface PageRequest { * 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; } /** @@ -68,12 +62,7 @@ export interface PageResponse { total: number; } -const basePageRequest: object = { - offset: 0, - limit: 0, - count_total: false, - reverse: false, -}; +const basePageRequest: object = { offset: 0, limit: 0, count_total: false }; export const PageRequest = { encode(message: PageRequest, writer: Writer = Writer.create()): Writer { @@ -89,9 +78,6 @@ export const PageRequest = { if (message.count_total === true) { writer.uint32(32).bool(message.count_total); } - if (message.reverse === true) { - writer.uint32(40).bool(message.reverse); - } return writer; }, @@ -114,9 +100,6 @@ export const PageRequest = { case 4: message.count_total = reader.bool(); break; - case 5: - message.reverse = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -145,11 +128,6 @@ export const PageRequest = { } else { message.count_total = false; } - if (object.reverse !== undefined && object.reverse !== null) { - message.reverse = Boolean(object.reverse); - } else { - message.reverse = false; - } return message; }, @@ -163,7 +141,6 @@ export const PageRequest = { message.limit !== undefined && (obj.limit = message.limit); message.count_total !== undefined && (obj.count_total = message.count_total); - message.reverse !== undefined && (obj.reverse = message.reverse); return obj; }, @@ -189,11 +166,6 @@ export const PageRequest = { } else { message.count_total = false; } - if (object.reverse !== undefined && object.reverse !== null) { - message.reverse = object.reverse; - } else { - message.reverse = false; - } return message; }, }; diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftmngr/index.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftmngr/index.ts index 6d7566e1..79f5aa2f 100755 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftmngr/index.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftmngr/index.ts @@ -440,21 +440,6 @@ export default { } } }, - async sendMsgCreateNFTSchema({ rootGetters }, { value, fee = [], memo = '' }) { - try { - const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCreateNFTSchema(value) - const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, - gas: "200000" }, memo}) - return result - } catch (e) { - if (e == MissingWalletError) { - throw new Error('TxClient:MsgCreateNFTSchema:Init Could not initialize signing client. Wallet is required.') - }else{ - throw new Error('TxClient:MsgCreateNFTSchema:Send Could not broadcast Tx: '+ e.message) - } - } - }, async sendMsgAddAttribute({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) @@ -470,18 +455,18 @@ export default { } } }, - async sendMsgSetNFTAttribute({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgCreateNFTSchema({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgSetNFTAttribute(value) + const msg = await txClient.msgCreateNFTSchema(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgSetNFTAttribute:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgCreateNFTSchema:Init Could not initialize signing client. Wallet is required.') }else{ - throw new Error('TxClient:MsgSetNFTAttribute:Send Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgCreateNFTSchema:Send Could not broadcast Tx: '+ e.message) } } }, @@ -515,6 +500,21 @@ export default { } } }, + async sendMsgSetNFTAttribute({ rootGetters }, { value, fee = [], memo = '' }) { + try { + const txClient=await initTxClient(rootGetters) + const msg = await txClient.msgSetNFTAttribute(value) + const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, + gas: "200000" }, memo}) + return result + } catch (e) { + if (e == MissingWalletError) { + throw new Error('TxClient:MsgSetNFTAttribute:Init Could not initialize signing client. Wallet is required.') + }else{ + throw new Error('TxClient:MsgSetNFTAttribute:Send Could not broadcast Tx: '+ e.message) + } + } + }, async sendMsgPerformActionByAdmin({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) @@ -544,19 +544,6 @@ export default { } } }, - async MsgCreateNFTSchema({ rootGetters }, { value }) { - try { - const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCreateNFTSchema(value) - return msg - } catch (e) { - if (e == MissingWalletError) { - throw new Error('TxClient:MsgCreateNFTSchema:Init Could not initialize signing client. Wallet is required.') - } else{ - throw new Error('TxClient:MsgCreateNFTSchema:Create Could not create message: ' + e.message) - } - } - }, async MsgAddAttribute({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) @@ -570,16 +557,16 @@ export default { } } }, - async MsgSetNFTAttribute({ rootGetters }, { value }) { + async MsgCreateNFTSchema({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgSetNFTAttribute(value) + const msg = await txClient.msgCreateNFTSchema(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgSetNFTAttribute:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgCreateNFTSchema:Init Could not initialize signing client. Wallet is required.') } else{ - throw new Error('TxClient:MsgSetNFTAttribute:Create Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateNFTSchema:Create Could not create message: ' + e.message) } } }, @@ -609,6 +596,19 @@ export default { } } }, + async MsgSetNFTAttribute({ rootGetters }, { value }) { + try { + const txClient=await initTxClient(rootGetters) + const msg = await txClient.msgSetNFTAttribute(value) + return msg + } catch (e) { + if (e == MissingWalletError) { + throw new Error('TxClient:MsgSetNFTAttribute:Init Could not initialize signing client. Wallet is required.') + } else{ + throw new Error('TxClient:MsgSetNFTAttribute:Create Could not create message: ' + e.message) + } + } + }, async MsgPerformActionByAdmin({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftmngr/module/index.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftmngr/module/index.ts index 7b2c08bc..b43d9925 100755 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftmngr/module/index.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftmngr/module/index.ts @@ -5,21 +5,21 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; import { MsgAddAction } from "./types/nftmngr/tx"; -import { MsgCreateNFTSchema } from "./types/nftmngr/tx"; import { MsgAddAttribute } from "./types/nftmngr/tx"; -import { MsgSetNFTAttribute } from "./types/nftmngr/tx"; +import { MsgCreateNFTSchema } from "./types/nftmngr/tx"; import { MsgAddTokenAttribute } from "./types/nftmngr/tx"; import { MsgCreateMetadata } from "./types/nftmngr/tx"; +import { MsgSetNFTAttribute } from "./types/nftmngr/tx"; import { MsgPerformActionByAdmin } from "./types/nftmngr/tx"; const types = [ ["/sixnft.nftmngr.MsgAddAction", MsgAddAction], - ["/sixnft.nftmngr.MsgCreateNFTSchema", MsgCreateNFTSchema], ["/sixnft.nftmngr.MsgAddAttribute", MsgAddAttribute], - ["/sixnft.nftmngr.MsgSetNFTAttribute", MsgSetNFTAttribute], + ["/sixnft.nftmngr.MsgCreateNFTSchema", MsgCreateNFTSchema], ["/sixnft.nftmngr.MsgAddTokenAttribute", MsgAddTokenAttribute], ["/sixnft.nftmngr.MsgCreateMetadata", MsgCreateMetadata], + ["/sixnft.nftmngr.MsgSetNFTAttribute", MsgSetNFTAttribute], ["/sixnft.nftmngr.MsgPerformActionByAdmin", MsgPerformActionByAdmin], ]; @@ -54,11 +54,11 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), msgAddAction: (data: MsgAddAction): EncodeObject => ({ typeUrl: "/sixnft.nftmngr.MsgAddAction", value: MsgAddAction.fromPartial( data ) }), - msgCreateNFTSchema: (data: MsgCreateNFTSchema): EncodeObject => ({ typeUrl: "/sixnft.nftmngr.MsgCreateNFTSchema", value: MsgCreateNFTSchema.fromPartial( data ) }), msgAddAttribute: (data: MsgAddAttribute): EncodeObject => ({ typeUrl: "/sixnft.nftmngr.MsgAddAttribute", value: MsgAddAttribute.fromPartial( data ) }), - msgSetNFTAttribute: (data: MsgSetNFTAttribute): EncodeObject => ({ typeUrl: "/sixnft.nftmngr.MsgSetNFTAttribute", value: MsgSetNFTAttribute.fromPartial( data ) }), + msgCreateNFTSchema: (data: MsgCreateNFTSchema): EncodeObject => ({ typeUrl: "/sixnft.nftmngr.MsgCreateNFTSchema", value: MsgCreateNFTSchema.fromPartial( data ) }), msgAddTokenAttribute: (data: MsgAddTokenAttribute): EncodeObject => ({ typeUrl: "/sixnft.nftmngr.MsgAddTokenAttribute", value: MsgAddTokenAttribute.fromPartial( data ) }), msgCreateMetadata: (data: MsgCreateMetadata): EncodeObject => ({ typeUrl: "/sixnft.nftmngr.MsgCreateMetadata", value: MsgCreateMetadata.fromPartial( data ) }), + msgSetNFTAttribute: (data: MsgSetNFTAttribute): EncodeObject => ({ typeUrl: "/sixnft.nftmngr.MsgSetNFTAttribute", value: MsgSetNFTAttribute.fromPartial( data ) }), msgPerformActionByAdmin: (data: MsgPerformActionByAdmin): EncodeObject => ({ typeUrl: "/sixnft.nftmngr.MsgPerformActionByAdmin", value: MsgPerformActionByAdmin.fromPartial( data ) }), }; diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/index.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/index.ts index 96cee26d..a77a94b1 100755 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/index.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/index.ts @@ -288,48 +288,48 @@ export default { } } }, - async sendMsgSubmitMintResponse({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgCreateActionRequest({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgSubmitMintResponse(value) + const msg = await txClient.msgCreateActionRequest(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgSubmitMintResponse:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgCreateActionRequest:Init Could not initialize signing client. Wallet is required.') }else{ - throw new Error('TxClient:MsgSubmitMintResponse:Send Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgCreateActionRequest:Send Could not broadcast Tx: '+ e.message) } } }, - async sendMsgSubmitActionResponse({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgSubmitMintResponse({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgSubmitActionResponse(value) + const msg = await txClient.msgSubmitMintResponse(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgSubmitActionResponse:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgSubmitMintResponse:Init Could not initialize signing client. Wallet is required.') }else{ - throw new Error('TxClient:MsgSubmitActionResponse:Send Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgSubmitMintResponse:Send Could not broadcast Tx: '+ e.message) } } }, - async sendMsgCreateActionRequest({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgSubmitActionResponse({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCreateActionRequest(value) + const msg = await txClient.msgSubmitActionResponse(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgCreateActionRequest:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgSubmitActionResponse:Init Could not initialize signing client. Wallet is required.') }else{ - throw new Error('TxClient:MsgCreateActionRequest:Send Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgSubmitActionResponse:Send Could not broadcast Tx: '+ e.message) } } }, @@ -347,42 +347,42 @@ export default { } } }, - async MsgSubmitMintResponse({ rootGetters }, { value }) { + async MsgCreateActionRequest({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgSubmitMintResponse(value) + const msg = await txClient.msgCreateActionRequest(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgSubmitMintResponse:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgCreateActionRequest:Init Could not initialize signing client. Wallet is required.') } else{ - throw new Error('TxClient:MsgSubmitMintResponse:Create Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateActionRequest:Create Could not create message: ' + e.message) } } }, - async MsgSubmitActionResponse({ rootGetters }, { value }) { + async MsgSubmitMintResponse({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgSubmitActionResponse(value) + const msg = await txClient.msgSubmitMintResponse(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgSubmitActionResponse:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgSubmitMintResponse:Init Could not initialize signing client. Wallet is required.') } else{ - throw new Error('TxClient:MsgSubmitActionResponse:Create Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitMintResponse:Create Could not create message: ' + e.message) } } }, - async MsgCreateActionRequest({ rootGetters }, { value }) { + async MsgSubmitActionResponse({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCreateActionRequest(value) + const msg = await txClient.msgSubmitActionResponse(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new Error('TxClient:MsgCreateActionRequest:Init Could not initialize signing client. Wallet is required.') + throw new Error('TxClient:MsgSubmitActionResponse:Init Could not initialize signing client. Wallet is required.') } else{ - throw new Error('TxClient:MsgCreateActionRequest:Create Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitActionResponse:Create Could not create message: ' + e.message) } } }, diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/index.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/index.ts index c3e973fb..a4efb3be 100755 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/index.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/index.ts @@ -5,16 +5,16 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; import { MsgCreateMintRequest } from "./types/nftoracle/tx"; +import { MsgCreateActionRequest } from "./types/nftoracle/tx"; import { MsgSubmitMintResponse } from "./types/nftoracle/tx"; import { MsgSubmitActionResponse } from "./types/nftoracle/tx"; -import { MsgCreateActionRequest } from "./types/nftoracle/tx"; const types = [ ["/sixnft.nftoracle.MsgCreateMintRequest", MsgCreateMintRequest], + ["/sixnft.nftoracle.MsgCreateActionRequest", MsgCreateActionRequest], ["/sixnft.nftoracle.MsgSubmitMintResponse", MsgSubmitMintResponse], ["/sixnft.nftoracle.MsgSubmitActionResponse", MsgSubmitActionResponse], - ["/sixnft.nftoracle.MsgCreateActionRequest", MsgCreateActionRequest], ]; export const MissingWalletError = new Error("wallet is required"); @@ -48,9 +48,9 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), msgCreateMintRequest: (data: MsgCreateMintRequest): EncodeObject => ({ typeUrl: "/sixnft.nftoracle.MsgCreateMintRequest", value: MsgCreateMintRequest.fromPartial( data ) }), + msgCreateActionRequest: (data: MsgCreateActionRequest): EncodeObject => ({ typeUrl: "/sixnft.nftoracle.MsgCreateActionRequest", value: MsgCreateActionRequest.fromPartial( data ) }), msgSubmitMintResponse: (data: MsgSubmitMintResponse): EncodeObject => ({ typeUrl: "/sixnft.nftoracle.MsgSubmitMintResponse", value: MsgSubmitMintResponse.fromPartial( data ) }), msgSubmitActionResponse: (data: MsgSubmitActionResponse): EncodeObject => ({ typeUrl: "/sixnft.nftoracle.MsgSubmitActionResponse", value: MsgSubmitActionResponse.fromPartial( data ) }), - msgCreateActionRequest: (data: MsgCreateActionRequest): EncodeObject => ({ typeUrl: "/sixnft.nftoracle.MsgCreateActionRequest", value: MsgCreateActionRequest.fromPartial( data ) }), }; }; diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/rest.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/rest.ts index 7b9385b8..01f9fc6b 100644 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/rest.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/rest.ts @@ -214,6 +214,13 @@ export interface V1Beta1PageRequest { * 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; } /** @@ -443,6 +450,7 @@ export class Api extends HttpClient @@ -484,6 +492,7 @@ export class Api extends HttpClient diff --git a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/types/cosmos/base/query/v1beta1/pagination.ts b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/types/cosmos/base/query/v1beta1/pagination.ts index 0bc568f4..9c87ac0c 100644 --- a/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/types/cosmos/base/query/v1beta1/pagination.ts +++ b/vue/src/store/generated/thesixnetwork/sixnft/sixnft.nftoracle/module/types/cosmos/base/query/v1beta1/pagination.ts @@ -38,6 +38,12 @@ export interface PageRequest { * 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; } /** @@ -62,7 +68,12 @@ export interface PageResponse { total: number; } -const basePageRequest: object = { offset: 0, limit: 0, count_total: false }; +const basePageRequest: object = { + offset: 0, + limit: 0, + count_total: false, + reverse: false, +}; export const PageRequest = { encode(message: PageRequest, writer: Writer = Writer.create()): Writer { @@ -78,6 +89,9 @@ export const PageRequest = { if (message.count_total === true) { writer.uint32(32).bool(message.count_total); } + if (message.reverse === true) { + writer.uint32(40).bool(message.reverse); + } return writer; }, @@ -100,6 +114,9 @@ export const PageRequest = { case 4: message.count_total = reader.bool(); break; + case 5: + message.reverse = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -128,6 +145,11 @@ export const PageRequest = { } else { message.count_total = false; } + if (object.reverse !== undefined && object.reverse !== null) { + message.reverse = Boolean(object.reverse); + } else { + message.reverse = false; + } return message; }, @@ -141,6 +163,7 @@ export const PageRequest = { message.limit !== undefined && (obj.limit = message.limit); message.count_total !== undefined && (obj.count_total = message.count_total); + message.reverse !== undefined && (obj.reverse = message.reverse); return obj; }, @@ -166,6 +189,11 @@ export const PageRequest = { } else { message.count_total = false; } + if (object.reverse !== undefined && object.reverse !== null) { + message.reverse = object.reverse; + } else { + message.reverse = false; + } return message; }, };