juno-network 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/main/codegen/JunoSwap.client.js +1 -1
  2. package/main/codegen/cosmos/authz/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  3. package/main/codegen/cosmos/bank/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  4. package/main/codegen/cosmos/bundle.js +8 -8
  5. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +1 -1
  6. package/main/codegen/cosmos/distribution/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  7. package/main/codegen/cosmos/gov/v1/query.lcd.js +2 -2
  8. package/main/codegen/cosmos/gov/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  9. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +2 -2
  10. package/main/codegen/cosmos/gov/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  11. package/main/codegen/cosmos/rpc.query.js +8 -8
  12. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +2 -2
  13. package/main/codegen/cosmos/staking/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  14. package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +4 -4
  15. package/main/codegen/cosmos/tx/v1beta1/{service.rpc.svc.js → service.rpc.Service.js} +8 -8
  16. package/main/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  17. package/main/codegen/cosmwasm/bundle.js +1 -1
  18. package/main/codegen/cosmwasm/rpc.query.js +9 -9
  19. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +2 -2
  20. package/main/codegen/cosmwasm/wasm/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  21. package/main/codegen/google/protobuf/descriptor.js +18 -18
  22. package/main/codegen/helpers.js +29 -18
  23. package/main/codegen/ibc/applications/transfer/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  24. package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +1 -1
  25. package/main/codegen/ibc/bundle.js +4 -4
  26. package/main/codegen/ibc/core/channel/v1/query.lcd.js +5 -5
  27. package/main/codegen/ibc/core/channel/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  28. package/main/codegen/ibc/core/client/v1/query.lcd.js +1 -1
  29. package/main/codegen/ibc/core/client/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  30. package/main/codegen/ibc/core/connection/v1/query.lcd.js +1 -1
  31. package/main/codegen/ibc/core/connection/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  32. package/main/codegen/ibc/rpc.query.js +12 -12
  33. package/main/codegen/juno/bundle.js +1 -1
  34. package/main/codegen/juno/mint/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  35. package/main/codegen/juno/rpc.query.js +9 -9
  36. package/module/codegen/JunoSwap.client.js +1 -1
  37. package/module/codegen/contracts.js +1 -1
  38. package/module/codegen/cosmos/authz/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  39. package/module/codegen/cosmos/bank/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  40. package/module/codegen/cosmos/bundle.js +8 -8
  41. package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +1 -1
  42. package/module/codegen/cosmos/distribution/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  43. package/module/codegen/cosmos/gov/v1/query.lcd.js +2 -2
  44. package/module/codegen/cosmos/gov/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  45. package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +2 -2
  46. package/module/codegen/cosmos/gov/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  47. package/module/codegen/cosmos/rpc.query.js +8 -8
  48. package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +2 -2
  49. package/module/codegen/cosmos/staking/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  50. package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +4 -4
  51. package/module/codegen/cosmos/tx/v1beta1/{service.rpc.svc.js → service.rpc.Service.js} +2 -2
  52. package/module/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  53. package/module/codegen/cosmwasm/bundle.js +1 -1
  54. package/module/codegen/cosmwasm/rpc.query.js +9 -9
  55. package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +2 -2
  56. package/module/codegen/cosmwasm/wasm/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  57. package/module/codegen/google/protobuf/descriptor.js +18 -18
  58. package/module/codegen/helpers.js +18 -10
  59. package/module/codegen/ibc/applications/transfer/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  60. package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +1 -1
  61. package/module/codegen/ibc/bundle.js +4 -4
  62. package/module/codegen/ibc/core/channel/v1/query.lcd.js +5 -5
  63. package/module/codegen/ibc/core/channel/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  64. package/module/codegen/ibc/core/client/v1/query.lcd.js +1 -1
  65. package/module/codegen/ibc/core/client/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  66. package/module/codegen/ibc/core/connection/v1/query.lcd.js +1 -1
  67. package/module/codegen/ibc/core/connection/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  68. package/module/codegen/ibc/rpc.query.js +12 -12
  69. package/module/codegen/index.js +1 -1
  70. package/module/codegen/juno/bundle.js +1 -1
  71. package/module/codegen/juno/mint/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  72. package/module/codegen/juno/rpc.query.js +9 -9
  73. package/package.json +3 -3
  74. package/src/codegen/JunoSwap.client.ts +1 -1
  75. package/src/codegen/JunoSwap.types.ts +1 -1
  76. package/src/codegen/contracts.ts +1 -1
  77. package/src/codegen/cosmos/authz/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  78. package/src/codegen/cosmos/bank/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  79. package/src/codegen/cosmos/bundle.ts +8 -8
  80. package/src/codegen/cosmos/client.ts +3 -2
  81. package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +1 -1
  82. package/src/codegen/cosmos/distribution/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  83. package/src/codegen/cosmos/gov/v1/query.lcd.ts +2 -2
  84. package/src/codegen/cosmos/gov/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  85. package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +2 -2
  86. package/src/codegen/cosmos/gov/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  87. package/src/codegen/cosmos/rpc.query.ts +10 -10
  88. package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +2 -2
  89. package/src/codegen/cosmos/staking/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  90. package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +4 -4
  91. package/src/codegen/cosmos/tx/v1beta1/{service.rpc.svc.ts → service.rpc.Service.ts} +2 -2
  92. package/src/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  93. package/src/codegen/cosmwasm/bundle.ts +1 -1
  94. package/src/codegen/cosmwasm/client.ts +3 -2
  95. package/src/codegen/cosmwasm/rpc.query.ts +11 -11
  96. package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +2 -2
  97. package/src/codegen/cosmwasm/wasm/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  98. package/src/codegen/google/protobuf/descriptor.ts +18 -18
  99. package/src/codegen/helpers.ts +24 -16
  100. package/src/codegen/ibc/applications/transfer/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  101. package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +1 -1
  102. package/src/codegen/ibc/bundle.ts +4 -4
  103. package/src/codegen/ibc/client.ts +3 -2
  104. package/src/codegen/ibc/core/channel/v1/query.lcd.ts +5 -5
  105. package/src/codegen/ibc/core/channel/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  106. package/src/codegen/ibc/core/client/v1/query.lcd.ts +1 -1
  107. package/src/codegen/ibc/core/client/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  108. package/src/codegen/ibc/core/connection/v1/query.lcd.ts +1 -1
  109. package/src/codegen/ibc/core/connection/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  110. package/src/codegen/ibc/rpc.query.ts +14 -14
  111. package/src/codegen/index.ts +1 -1
  112. package/src/codegen/juno/bundle.ts +1 -1
  113. package/src/codegen/juno/mint/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  114. package/src/codegen/juno/rpc.query.ts +11 -11
  115. package/types/codegen/JunoSwap.client.d.ts +1 -1
  116. package/types/codegen/JunoSwap.types.d.ts +1 -1
  117. package/types/codegen/contracts.d.ts +1 -1
  118. package/types/codegen/cosmos/authz/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  119. package/types/codegen/cosmos/bank/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  120. package/types/codegen/cosmos/bundle.d.ts +281 -19593
  121. package/types/codegen/cosmos/distribution/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  122. package/types/codegen/cosmos/gov/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  123. package/types/codegen/cosmos/gov/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  124. package/types/codegen/cosmos/staking/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  125. package/types/codegen/cosmos/tx/v1beta1/{service.rpc.svc.d.ts → service.rpc.Service.d.ts} +1 -1
  126. package/types/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  127. package/types/codegen/cosmwasm/bundle.d.ts +59 -4177
  128. package/types/codegen/cosmwasm/wasm/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  129. package/types/codegen/google/bundle.d.ts +106 -7632
  130. package/types/codegen/helpers.d.ts +3 -3
  131. package/types/codegen/ibc/applications/transfer/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  132. package/types/codegen/ibc/bundle.d.ts +257 -18220
  133. package/types/codegen/ibc/core/channel/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  134. package/types/codegen/ibc/core/client/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  135. package/types/codegen/ibc/core/connection/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  136. package/types/codegen/index.d.ts +1 -1
  137. package/types/codegen/juno/bundle.d.ts +8 -505
  138. package/types/codegen/juno/mint/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  139. package/types/codegen/tendermint/bundle.d.ts +248 -17856
@@ -113,7 +113,7 @@ export const AminoConverter = {
113
113
  },
114
114
  value: {
115
115
  denom: value.denom,
116
- amount: Long.fromNumber(value.amount).toString()
116
+ amount: Long.fromValue(value.amount).toString()
117
117
  }
118
118
  };
119
119
  },
@@ -206,7 +206,7 @@ export const AminoConverter = {
206
206
  validator_address: validatorAddress,
207
207
  amount: {
208
208
  denom: amount.denom,
209
- amount: Long.fromNumber(amount.amount).toString()
209
+ amount: Long.fromValue(amount.amount).toString()
210
210
  }
211
211
  };
212
212
  },
@@ -239,7 +239,7 @@ export const AminoConverter = {
239
239
  validator_dst_address: validatorDstAddress,
240
240
  amount: {
241
241
  denom: amount.denom,
242
- amount: Long.fromNumber(amount.amount).toString()
242
+ amount: Long.fromValue(amount.amount).toString()
243
243
  }
244
244
  };
245
245
  },
@@ -272,7 +272,7 @@ export const AminoConverter = {
272
272
  validator_address: validatorAddress,
273
273
  amount: {
274
274
  denom: amount.denom,
275
- amount: Long.fromNumber(amount.amount).toString()
275
+ amount: Long.fromValue(amount.amount).toString()
276
276
  }
277
277
  };
278
278
  },
@@ -24,7 +24,7 @@ export interface Service {
24
24
 
25
25
  getBlockWithTxs(request: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponse>;
26
26
  }
27
- export class QueryClientImpl implements Service {
27
+ export class ServiceClientImpl implements Service {
28
28
  private readonly rpc: Rpc;
29
29
 
30
30
  constructor(rpc: Rpc) {
@@ -69,7 +69,7 @@ export class QueryClientImpl implements Service {
69
69
  }
70
70
  export const createRpcQueryExtension = (base: QueryClient) => {
71
71
  const rpc = createProtobufRpcClient(base);
72
- const queryService = new QueryClientImpl(rpc);
72
+ const queryService = new ServiceClientImpl(rpc);
73
73
  return {
74
74
  simulate(request: SimulateRequest): Promise<SimulateResponse> {
75
75
  return queryService.simulate(request);
@@ -7,7 +7,7 @@ import * as _50 from "./wasm/v1/types";
7
7
  import * as _128 from "./wasm/v1/tx.amino";
8
8
  import * as _129 from "./wasm/v1/tx.registry";
9
9
  import * as _130 from "./wasm/v1/query.lcd";
10
- import * as _131 from "./wasm/v1/query.rpc.query";
10
+ import * as _131 from "./wasm/v1/query.rpc.Query";
11
11
  import * as _132 from "./wasm/v1/tx.rpc.msg";
12
12
  import * as _158 from "./lcd";
13
13
  import * as _159 from "./rpc.query";
@@ -1,5 +1,6 @@
1
- import { OfflineSigner, GeneratedType, Registry } from "@cosmjs/proto-signing";
1
+ import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
2
2
  import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
3
+ import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
3
4
  import * as cosmwasmWasmV1TxRegistry from "./wasm/v1/tx.registry";
4
5
  import * as cosmwasmWasmV1TxAmino from "./wasm/v1/tx.amino";
5
6
  export const cosmwasmAminoConverters = { ...cosmwasmWasmV1TxAmino.AminoConverter
@@ -26,7 +27,7 @@ export const getSigningCosmwasmClient = async ({
26
27
  signer,
27
28
  defaultTypes = defaultRegistryTypes
28
29
  }: {
29
- rpcEndpoint: string;
30
+ rpcEndpoint: string | HttpEndpoint;
30
31
  signer: OfflineSigner;
31
32
  defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
32
33
  }) => {
@@ -1,40 +1,40 @@
1
- import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
1
+ import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
2
2
  import { QueryClient } from "@cosmjs/stargate";
3
3
  export const createRPCQueryClient = async ({
4
4
  rpcEndpoint
5
5
  }: {
6
- rpcEndpoint: string;
6
+ rpcEndpoint: string | HttpEndpoint;
7
7
  }) => {
8
8
  const tmClient = await Tendermint34Client.connect(rpcEndpoint);
9
9
  const client = new QueryClient(tmClient);
10
10
  return {
11
11
  cosmos: {
12
12
  authz: {
13
- v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
13
+ v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
14
14
  },
15
15
  bank: {
16
- v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
16
+ v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
17
17
  },
18
18
  distribution: {
19
- v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
19
+ v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
20
20
  },
21
21
  gov: {
22
- v1: (await import("../cosmos/gov/v1/query.rpc.query")).createRpcQueryExtension(client),
23
- v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
22
+ v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client),
23
+ v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
24
24
  },
25
25
  staking: {
26
- v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
26
+ v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
27
27
  },
28
28
  tx: {
29
- v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.svc")).createRpcQueryExtension(client)
29
+ v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client)
30
30
  },
31
31
  upgrade: {
32
- v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
32
+ v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
33
33
  }
34
34
  },
35
35
  cosmwasm: {
36
36
  wasm: {
37
- v1: (await import("./wasm/v1/query.rpc.query")).createRpcQueryExtension(client)
37
+ v1: (await import("./wasm/v1/query.rpc.Query")).createRpcQueryExtension(client)
38
38
  }
39
39
  }
40
40
  };
@@ -76,14 +76,14 @@ export class LCDQueryClient {
76
76
 
77
77
 
78
78
  async rawContractState(params: QueryRawContractStateRequest): Promise<QueryRawContractStateResponseSDKType> {
79
- const endpoint = `wasm/v1/contract/${params.address}raw/${params.queryData}`;
79
+ const endpoint = `wasm/v1/contract/${params.address}/raw/${params.queryData}`;
80
80
  return await this.req.get<QueryRawContractStateResponseSDKType>(endpoint);
81
81
  }
82
82
  /* SmartContractState get smart query result from the contract */
83
83
 
84
84
 
85
85
  async smartContractState(params: QuerySmartContractStateRequest): Promise<QuerySmartContractStateResponseSDKType> {
86
- const endpoint = `wasm/v1/contract/${params.address}smart/${params.queryData}`;
86
+ const endpoint = `wasm/v1/contract/${params.address}/smart/${params.queryData}`;
87
87
  return await this.req.get<QuerySmartContractStateResponseSDKType>(endpoint);
88
88
  }
89
89
  /* Code gets the binary code and metadata for a singe wasm code */
@@ -2603,8 +2603,8 @@ function createBaseFieldDescriptorProto(): FieldDescriptorProto {
2603
2603
  return {
2604
2604
  name: "",
2605
2605
  number: 0,
2606
- label: 0,
2607
- type: 0,
2606
+ label: 1,
2607
+ type: 1,
2608
2608
  typeName: "",
2609
2609
  extendee: "",
2610
2610
  defaultValue: "",
@@ -2624,11 +2624,11 @@ export const FieldDescriptorProto = {
2624
2624
  writer.uint32(24).int32(message.number);
2625
2625
  }
2626
2626
 
2627
- if (message.label !== 0) {
2627
+ if (message.label !== 1) {
2628
2628
  writer.uint32(32).int32(message.label);
2629
2629
  }
2630
2630
 
2631
- if (message.type !== 0) {
2631
+ if (message.type !== 1) {
2632
2632
  writer.uint32(40).int32(message.type);
2633
2633
  }
2634
2634
 
@@ -2721,8 +2721,8 @@ export const FieldDescriptorProto = {
2721
2721
  const message = createBaseFieldDescriptorProto();
2722
2722
  message.name = object.name ?? "";
2723
2723
  message.number = object.number ?? 0;
2724
- message.label = object.label ?? 0;
2725
- message.type = object.type ?? 0;
2724
+ message.label = object.label ?? 1;
2725
+ message.type = object.type ?? 1;
2726
2726
  message.typeName = object.typeName ?? "";
2727
2727
  message.extendee = object.extendee ?? "";
2728
2728
  message.defaultValue = object.defaultValue ?? "";
@@ -3161,7 +3161,7 @@ function createBaseFileOptions(): FileOptions {
3161
3161
  javaMultipleFiles: false,
3162
3162
  javaGenerateEqualsAndHash: false,
3163
3163
  javaStringCheckUtf8: false,
3164
- optimizeFor: 0,
3164
+ optimizeFor: 1,
3165
3165
  goPackage: "",
3166
3166
  ccGenericServices: false,
3167
3167
  javaGenericServices: false,
@@ -3202,7 +3202,7 @@ export const FileOptions = {
3202
3202
  writer.uint32(216).bool(message.javaStringCheckUtf8);
3203
3203
  }
3204
3204
 
3205
- if (message.optimizeFor !== 0) {
3205
+ if (message.optimizeFor !== 1) {
3206
3206
  writer.uint32(72).int32(message.optimizeFor);
3207
3207
  }
3208
3208
 
@@ -3378,7 +3378,7 @@ export const FileOptions = {
3378
3378
  message.javaMultipleFiles = object.javaMultipleFiles ?? false;
3379
3379
  message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false;
3380
3380
  message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false;
3381
- message.optimizeFor = object.optimizeFor ?? 0;
3381
+ message.optimizeFor = object.optimizeFor ?? 1;
3382
3382
  message.goPackage = object.goPackage ?? "";
3383
3383
  message.ccGenericServices = object.ccGenericServices ?? false;
3384
3384
  message.javaGenericServices = object.javaGenericServices ?? false;
@@ -3486,9 +3486,9 @@ export const MessageOptions = {
3486
3486
 
3487
3487
  function createBaseFieldOptions(): FieldOptions {
3488
3488
  return {
3489
- ctype: 0,
3489
+ ctype: 1,
3490
3490
  packed: false,
3491
- jstype: 0,
3491
+ jstype: 1,
3492
3492
  lazy: false,
3493
3493
  deprecated: false,
3494
3494
  weak: false,
@@ -3498,7 +3498,7 @@ function createBaseFieldOptions(): FieldOptions {
3498
3498
 
3499
3499
  export const FieldOptions = {
3500
3500
  encode(message: FieldOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3501
- if (message.ctype !== 0) {
3501
+ if (message.ctype !== 1) {
3502
3502
  writer.uint32(8).int32(message.ctype);
3503
3503
  }
3504
3504
 
@@ -3506,7 +3506,7 @@ export const FieldOptions = {
3506
3506
  writer.uint32(16).bool(message.packed);
3507
3507
  }
3508
3508
 
3509
- if (message.jstype !== 0) {
3509
+ if (message.jstype !== 1) {
3510
3510
  writer.uint32(48).int32(message.jstype);
3511
3511
  }
3512
3512
 
@@ -3577,9 +3577,9 @@ export const FieldOptions = {
3577
3577
 
3578
3578
  fromPartial(object: DeepPartial<FieldOptions>): FieldOptions {
3579
3579
  const message = createBaseFieldOptions();
3580
- message.ctype = object.ctype ?? 0;
3580
+ message.ctype = object.ctype ?? 1;
3581
3581
  message.packed = object.packed ?? false;
3582
- message.jstype = object.jstype ?? 0;
3582
+ message.jstype = object.jstype ?? 1;
3583
3583
  message.lazy = object.lazy ?? false;
3584
3584
  message.deprecated = object.deprecated ?? false;
3585
3585
  message.weak = object.weak ?? false;
@@ -3812,7 +3812,7 @@ export const ServiceOptions = {
3812
3812
  function createBaseMethodOptions(): MethodOptions {
3813
3813
  return {
3814
3814
  deprecated: false,
3815
- idempotencyLevel: 0,
3815
+ idempotencyLevel: 1,
3816
3816
  uninterpretedOption: []
3817
3817
  };
3818
3818
  }
@@ -3823,7 +3823,7 @@ export const MethodOptions = {
3823
3823
  writer.uint32(264).bool(message.deprecated);
3824
3824
  }
3825
3825
 
3826
- if (message.idempotencyLevel !== 0) {
3826
+ if (message.idempotencyLevel !== 1) {
3827
3827
  writer.uint32(272).int32(message.idempotencyLevel);
3828
3828
  }
3829
3829
 
@@ -3867,7 +3867,7 @@ export const MethodOptions = {
3867
3867
  fromPartial(object: DeepPartial<MethodOptions>): MethodOptions {
3868
3868
  const message = createBaseMethodOptions();
3869
3869
  message.deprecated = object.deprecated ?? false;
3870
- message.idempotencyLevel = object.idempotencyLevel ?? 0;
3870
+ message.idempotencyLevel = object.idempotencyLevel ?? 1;
3871
3871
  message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
3872
3872
  return message;
3873
3873
  }
@@ -1,12 +1,13 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @osmonauts/telescope@0.59.0
2
+ * This file and any referenced files were automatically generated by @osmonauts/telescope@0.76.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or yarn proto command to regenerate this bundle.
5
5
  */
6
6
 
7
7
  import * as _m0 from "protobufjs/minimal";
8
- import * as Long from 'long';
8
+ import Long from 'long';
9
9
 
10
+ // @ts-ignore
10
11
  if (_m0.util.Long !== Long) {
11
12
  _m0.util.Long = (Long as any);
12
13
 
@@ -97,7 +98,7 @@ export function toDuration(duration: string): Duration {
97
98
  };
98
99
 
99
100
  export function fromDuration(duration: Duration): string {
100
- return (parseInt(duration.seconds) * 1000000000 + duration.nanos).toString();
101
+ return (parseInt(duration.seconds.toString()) * 1000000000 + duration.nanos).toString();
101
102
  };
102
103
 
103
104
  export function isSet(value: any): boolean {
@@ -144,12 +145,12 @@ export const setPaginationParams = (options: Params, pagination?: PageRequest) =
144
145
  // Uint8Array to String
145
146
  options.params['pagination.key'] = Buffer.from(pagination.key).toString('base64');
146
147
  }
147
- if (typeof pagination?.offset !== "undefined") {
148
- options.params['pagination.limit'] = Long.toString(pagination.limit);
149
- }
150
148
  if (typeof pagination?.limit !== "undefined") {
151
- options.params['pagination.offset'] = Long.toString(pagination.offset);
149
+ options.params["pagination.limit"] = pagination.limit.toString()
152
150
  }
151
+ if (typeof pagination?.offset !== "undefined") {
152
+ options.params["pagination.offset"] = pagination.offset.toString()
153
+ }
153
154
  if (typeof pagination?.reverse !== "undefined") {
154
155
  options.params['pagination.reverse'] = pagination.reverse;
155
156
  }
@@ -217,16 +218,23 @@ const fromJSON = (object: any): Timestamp => {
217
218
  };
218
219
  };
219
220
 
220
- export function fromJsonTimestamp(o: any): Date {
221
- if (o instanceof Date) {
222
- return o;
223
- } else if (typeof o === "string") {
224
- return new Date(o);
225
- } else {
226
- return fromTimestamp(fromJSON(o));
227
- }
221
+ const timestampFromJSON = (object: any): Timestamp => {
222
+ return {
223
+ seconds: isSet(object.seconds) ? Long.fromValue(object.seconds) : Long.ZERO,
224
+ nanos: isSet(object.nanos) ? Number(object.nanos) : 0,
225
+ };
228
226
  }
229
-
227
+
228
+ export function fromJsonTimestamp(o: any): Timestamp {
229
+ if (o instanceof Date) {
230
+ return toTimestamp(o);
231
+ } else if (typeof o === "string") {
232
+ return toTimestamp(new Date(o));
233
+ } else {
234
+ return timestampFromJSON(o);
235
+ }
236
+ }
237
+
230
238
  function numberToLong(number: number) {
231
239
  return Long.fromNumber(number);
232
240
  }
@@ -33,7 +33,7 @@ export const AminoConverter = {
33
33
  source_channel: sourceChannel,
34
34
  token: {
35
35
  denom: token.denom,
36
- amount: Long.fromNumber(token.amount).toString()
36
+ amount: Long.fromValue(token.amount).toString()
37
37
  },
38
38
  sender,
39
39
  receiver,
@@ -32,10 +32,10 @@ import * as _141 from "./applications/transfer/v1/query.lcd";
32
32
  import * as _142 from "./core/channel/v1/query.lcd";
33
33
  import * as _143 from "./core/client/v1/query.lcd";
34
34
  import * as _144 from "./core/connection/v1/query.lcd";
35
- import * as _145 from "./applications/transfer/v1/query.rpc.query";
36
- import * as _146 from "./core/channel/v1/query.rpc.query";
37
- import * as _147 from "./core/client/v1/query.rpc.query";
38
- import * as _148 from "./core/connection/v1/query.rpc.query";
35
+ import * as _145 from "./applications/transfer/v1/query.rpc.Query";
36
+ import * as _146 from "./core/channel/v1/query.rpc.Query";
37
+ import * as _147 from "./core/client/v1/query.rpc.Query";
38
+ import * as _148 from "./core/connection/v1/query.rpc.Query";
39
39
  import * as _149 from "./applications/transfer/v1/tx.rpc.msg";
40
40
  import * as _150 from "./core/channel/v1/tx.rpc.msg";
41
41
  import * as _151 from "./core/client/v1/tx.rpc.msg";
@@ -1,5 +1,6 @@
1
- import { OfflineSigner, GeneratedType, Registry } from "@cosmjs/proto-signing";
1
+ import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
2
2
  import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
3
+ import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
3
4
  import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1/tx.registry";
4
5
  import * as ibcCoreChannelV1TxRegistry from "./core/channel/v1/tx.registry";
5
6
  import * as ibcCoreClientV1TxRegistry from "./core/client/v1/tx.registry";
@@ -35,7 +36,7 @@ export const getSigningIbcClient = async ({
35
36
  signer,
36
37
  defaultTypes = defaultRegistryTypes
37
38
  }: {
38
- rpcEndpoint: string;
39
+ rpcEndpoint: string | HttpEndpoint;
39
40
  signer: OfflineSigner;
40
41
  defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
41
42
  }) => {
@@ -28,7 +28,7 @@ export class LCDQueryClient {
28
28
 
29
29
 
30
30
  async channel(params: QueryChannelRequest): Promise<QueryChannelResponseSDKType> {
31
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}ports/${params.portId}`;
31
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}`;
32
32
  return await this.req.get<QueryChannelResponseSDKType>(endpoint);
33
33
  }
34
34
  /* Channels queries all the IBC channels of a chain. */
@@ -77,14 +77,14 @@ export class LCDQueryClient {
77
77
 
78
78
 
79
79
  async channelConsensusState(params: QueryChannelConsensusStateRequest): Promise<QueryChannelConsensusStateResponseSDKType> {
80
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
80
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
81
81
  return await this.req.get<QueryChannelConsensusStateResponseSDKType>(endpoint);
82
82
  }
83
83
  /* PacketCommitment queries a stored packet commitment hash. */
84
84
 
85
85
 
86
86
  async packetCommitment(params: QueryPacketCommitmentRequest): Promise<QueryPacketCommitmentResponseSDKType> {
87
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_commitments/${params.sequence}`;
87
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments/${params.sequence}`;
88
88
  return await this.req.get<QueryPacketCommitmentResponseSDKType>(endpoint);
89
89
  }
90
90
  /* PacketCommitments returns all the packet commitments hashes associated
@@ -108,14 +108,14 @@ export class LCDQueryClient {
108
108
 
109
109
 
110
110
  async packetReceipt(params: QueryPacketReceiptRequest): Promise<QueryPacketReceiptResponseSDKType> {
111
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_receipts/${params.sequence}`;
111
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_receipts/${params.sequence}`;
112
112
  return await this.req.get<QueryPacketReceiptResponseSDKType>(endpoint);
113
113
  }
114
114
  /* PacketAcknowledgement queries a stored packet acknowledgement hash. */
115
115
 
116
116
 
117
117
  async packetAcknowledgement(params: QueryPacketAcknowledgementRequest): Promise<QueryPacketAcknowledgementResponseSDKType> {
118
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_acks/${params.sequence}`;
118
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_acks/${params.sequence}`;
119
119
  return await this.req.get<QueryPacketAcknowledgementResponseSDKType>(endpoint);
120
120
  }
121
121
  /* PacketAcknowledgements returns all the packet acknowledgements associated
@@ -56,7 +56,7 @@ export class LCDQueryClient {
56
56
  options.params.latest_height = params.latestHeight;
57
57
  }
58
58
 
59
- const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}height/${params.revisionHeight}`;
59
+ const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
60
60
  return await this.req.get<QueryConsensusStateResponseSDKType>(endpoint, options);
61
61
  }
62
62
  /* ConsensusStates queries all the consensus state associated with a given
@@ -61,7 +61,7 @@ export class LCDQueryClient {
61
61
 
62
62
 
63
63
  async connectionConsensusState(params: QueryConnectionConsensusStateRequest): Promise<QueryConnectionConsensusStateResponseSDKType> {
64
- const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
64
+ const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
65
65
  return await this.req.get<QueryConnectionConsensusStateResponseSDKType>(endpoint);
66
66
  }
67
67
 
@@ -1,52 +1,52 @@
1
- import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
1
+ import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
2
2
  import { QueryClient } from "@cosmjs/stargate";
3
3
  export const createRPCQueryClient = async ({
4
4
  rpcEndpoint
5
5
  }: {
6
- rpcEndpoint: string;
6
+ rpcEndpoint: string | HttpEndpoint;
7
7
  }) => {
8
8
  const tmClient = await Tendermint34Client.connect(rpcEndpoint);
9
9
  const client = new QueryClient(tmClient);
10
10
  return {
11
11
  cosmos: {
12
12
  authz: {
13
- v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
13
+ v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
14
14
  },
15
15
  bank: {
16
- v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
16
+ v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
17
17
  },
18
18
  distribution: {
19
- v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
19
+ v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
20
20
  },
21
21
  gov: {
22
- v1: (await import("../cosmos/gov/v1/query.rpc.query")).createRpcQueryExtension(client),
23
- v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
22
+ v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client),
23
+ v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
24
24
  },
25
25
  staking: {
26
- v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
26
+ v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
27
27
  },
28
28
  tx: {
29
- v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.svc")).createRpcQueryExtension(client)
29
+ v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client)
30
30
  },
31
31
  upgrade: {
32
- v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
32
+ v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
33
33
  }
34
34
  },
35
35
  ibc: {
36
36
  applications: {
37
37
  transfer: {
38
- v1: (await import("./applications/transfer/v1/query.rpc.query")).createRpcQueryExtension(client)
38
+ v1: (await import("./applications/transfer/v1/query.rpc.Query")).createRpcQueryExtension(client)
39
39
  }
40
40
  },
41
41
  core: {
42
42
  channel: {
43
- v1: (await import("./core/channel/v1/query.rpc.query")).createRpcQueryExtension(client)
43
+ v1: (await import("./core/channel/v1/query.rpc.Query")).createRpcQueryExtension(client)
44
44
  },
45
45
  client: {
46
- v1: (await import("./core/client/v1/query.rpc.query")).createRpcQueryExtension(client)
46
+ v1: (await import("./core/client/v1/query.rpc.Query")).createRpcQueryExtension(client)
47
47
  },
48
48
  connection: {
49
- v1: (await import("./core/connection/v1/query.rpc.query")).createRpcQueryExtension(client)
49
+ v1: (await import("./core/connection/v1/query.rpc.Query")).createRpcQueryExtension(client)
50
50
  }
51
51
  }
52
52
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @osmonauts/telescope@0.59.0
2
+ * This file and any referenced files were automatically generated by @osmonauts/telescope@0.76.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or yarn proto command to regenerate this bundle.
5
5
  */
@@ -2,7 +2,7 @@ import * as _79 from "./mint/genesis";
2
2
  import * as _80 from "./mint/mint";
3
3
  import * as _81 from "./mint/query";
4
4
  import * as _153 from "./mint/query.lcd";
5
- import * as _154 from "./mint/query.rpc.query";
5
+ import * as _154 from "./mint/query.rpc.Query";
6
6
  import * as _164 from "./lcd";
7
7
  import * as _165 from "./rpc.query";
8
8
  export namespace juno {
@@ -1,39 +1,39 @@
1
- import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
1
+ import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
2
2
  import { QueryClient } from "@cosmjs/stargate";
3
3
  export const createRPCQueryClient = async ({
4
4
  rpcEndpoint
5
5
  }: {
6
- rpcEndpoint: string;
6
+ rpcEndpoint: string | HttpEndpoint;
7
7
  }) => {
8
8
  const tmClient = await Tendermint34Client.connect(rpcEndpoint);
9
9
  const client = new QueryClient(tmClient);
10
10
  return {
11
11
  cosmos: {
12
12
  authz: {
13
- v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
13
+ v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
14
14
  },
15
15
  bank: {
16
- v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
16
+ v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
17
17
  },
18
18
  distribution: {
19
- v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
19
+ v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
20
20
  },
21
21
  gov: {
22
- v1: (await import("../cosmos/gov/v1/query.rpc.query")).createRpcQueryExtension(client),
23
- v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
22
+ v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client),
23
+ v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
24
24
  },
25
25
  staking: {
26
- v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
26
+ v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
27
27
  },
28
28
  tx: {
29
- v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.svc")).createRpcQueryExtension(client)
29
+ v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client)
30
30
  },
31
31
  upgrade: {
32
- v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
32
+ v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
33
33
  }
34
34
  },
35
35
  juno: {
36
- mint: (await import("./mint/query.rpc.query")).createRpcQueryExtension(client)
36
+ mint: (await import("./mint/query.rpc.Query")).createRpcQueryExtension(client)
37
37
  }
38
38
  };
39
39
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was automatically generated by @cosmwasm/ts-codegen@0.17.0.
2
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.20.0.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run the @cosmwasm/ts-codegen generate command to regenerate this file.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was automatically generated by @cosmwasm/ts-codegen@0.17.0.
2
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.20.0.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run the @cosmwasm/ts-codegen generate command to regenerate this file.
5
5
  */