@agoric/cosmic-proto 0.4.1-dev-aa68d8f.0 → 0.4.1-dev-651b051.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/helpers.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { QueryAllBalancesRequest } from './codegen/cosmos/bank/v1beta1/query.js';
2
- import type { MsgSend } from './codegen/cosmos/bank/v1beta1/tx.js';
3
- import type { MsgDelegate } from './codegen/cosmos/staking/v1beta1/tx.js';
1
+ import type { QueryAllBalancesRequest, QueryAllBalancesResponse } from './codegen/cosmos/bank/v1beta1/query.js';
2
+ import type { MsgSend, MsgSendResponse } from './codegen/cosmos/bank/v1beta1/tx.js';
3
+ import type { MsgDelegate, MsgDelegateResponse } from './codegen/cosmos/staking/v1beta1/tx.js';
4
4
  import { RequestQuery } from './codegen/tendermint/abci/types.js';
5
5
  import type { Any } from './codegen/google/protobuf/any.js';
6
6
  /**
@@ -14,8 +14,16 @@ export type AnyJson = {
14
14
  };
15
15
  export type Proto3Shape = {
16
16
  '/cosmos.bank.v1beta1.MsgSend': MsgSend;
17
+ '/cosmos.bank.v1beta1.MsgSendResponse': MsgSendResponse;
17
18
  '/cosmos.bank.v1beta1.QueryAllBalancesRequest': QueryAllBalancesRequest;
19
+ '/cosmos.bank.v1beta1.QueryAllBalancesResponse': QueryAllBalancesResponse;
18
20
  '/cosmos.staking.v1beta1.MsgDelegate': MsgDelegate;
21
+ '/cosmos.staking.v1beta1.MsgDelegateResponse': MsgDelegateResponse;
22
+ };
23
+ type ResponseMap = {
24
+ '/cosmos.bank.v1beta1.MsgSend': '/cosmos.bank.v1beta1.MsgSendResponse';
25
+ '/cosmos.bank.v1beta1.QueryAllBalancesRequest': '/cosmos.bank.v1beta1.QueryAllBalancesResponse';
26
+ '/cosmos.staking.v1beta1.MsgDelegate': '/cosmos.staking.v1beta1.MsgDelegateResponse';
19
27
  };
20
28
  /**
21
29
  * The encoding introduced in Protobuf 3 for Any that can be serialized to JSON.
@@ -24,11 +32,12 @@ export type Proto3Shape = {
24
32
  * more accurately "JSON-ifiable" but we don't expect anyone to confuse this
25
33
  * type with a string.
26
34
  */
27
- export type TypedJson<T extends unknown | keyof Proto3Shape = unknown> = T extends unknown ? {
28
- '@type': string;
29
- } : T extends keyof Proto3Shape ? Proto3Shape[T] & {
35
+ export type TypedJson<T extends unknown | keyof Proto3Shape = unknown> = T extends keyof Proto3Shape ? Proto3Shape[T] & {
30
36
  '@type': T;
31
- } : never;
37
+ } : {
38
+ '@type': string;
39
+ };
40
+ export type ResponseTo<T extends TypedJson> = T['@type'] extends keyof ResponseMap ? TypedJson<ResponseMap[T['@type']]> : TypedJson;
32
41
  export declare const typedJson: <T extends keyof Proto3Shape>(typeStr: T, obj: Proto3Shape[T]) => TypedJson<T>;
33
42
  /**
34
43
  * Proto Any with arrays encoded as base64
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAiClE,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,OAAU,EACV,GAAmB,EACnB,EAAE;IACF,OAAO;QACL,OAAO,EAAE,OAAO;QAChB,GAAG,GAAG;KACS,CAAC;AACpB,CAAC,CAAC;AA+BF,MAAM,oBAAoB,GACxB,mEAAmE,CAAC;AAEtE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAuB,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAClD,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,SAAS,CACjB,oBAAoB,OAAO,4BAA4B,CACxD,CAAC;IACJ,CAAC;IACD,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,MAAM,CAA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AAiB,CAAC,GAAG,CAAC,OAAO,CAAC;IACpC,IAAI,EAAE,GAAG,CAAC,KAAK;IACf,GAAG,IAAI;CACR,CAAC,CACiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/cosmic-proto",
3
- "version": "0.4.1-dev-aa68d8f.0+aa68d8f",
3
+ "version": "0.4.1-dev-651b051.0+651b051",
4
4
  "description": "Protobuf stubs for the Agoric cosmos-sdk module",
5
5
  "keywords": [],
6
6
  "author": "Agoric",
@@ -122,11 +122,12 @@
122
122
  "access": "public"
123
123
  },
124
124
  "devDependencies": {
125
- "@agoric/cosmos": "0.34.2-dev-aa68d8f.0+aa68d8f",
125
+ "@agoric/cosmos": "0.34.2-dev-651b051.0+651b051",
126
126
  "@ava/typescript": "^4.1.0",
127
127
  "@cosmology/telescope": "^1.5.3",
128
128
  "ava": "^5.3.1",
129
129
  "rimraf": "^5.0.0",
130
+ "tsd": "^0.30.7",
130
131
  "tsimp": "^2.0.11",
131
132
  "typescript": "^5.5.0-beta"
132
133
  },
@@ -136,8 +137,8 @@
136
137
  "@cosmjs/proto-signing": "^0.32.3",
137
138
  "@cosmjs/stargate": "^0.32.3",
138
139
  "@cosmjs/tendermint-rpc": "^0.32.3",
139
- "@endo/base64": "^1.0.3",
140
- "@endo/init": "^1.1.1"
140
+ "@endo/base64": "^1.0.5",
141
+ "@endo/init": "^1.1.2"
141
142
  },
142
143
  "resolutions": {
143
144
  "**/axios": "^1.6.7",
@@ -154,5 +155,5 @@
154
155
  "test/**/test-*.js"
155
156
  ]
156
157
  },
157
- "gitHead": "aa68d8fba19087b3a2c72bd59f6f9e47e34ffe1b"
158
+ "gitHead": "651b05136f236230c67c8b40224540c585beaa54"
158
159
  }