@agoric/cosmic-proto 0.4.1-dev-35d20eb.0 → 0.4.1-dev-96dbb12.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
2
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  //@ts-nocheck
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
3
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
2
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  //@ts-nocheck
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
3
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
2
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  //@ts-nocheck
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
3
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
@@ -1,8 +1,8 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
2
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
6
6
  export type JsonSafe<T> = {
7
- [Prop in keyof T]: T[Prop] extends Uint8Array ? string : T[Prop] extends bigint ? string : T[Prop];
7
+ [Prop in keyof T]: T[Prop] extends Uint8Array | bigint | Date ? string : T[Prop];
8
8
  };
@@ -1,6 +1,6 @@
1
1
  //@ts-nocheck
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
3
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
2
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  //@ts-nocheck
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
3
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
2
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  //@ts-nocheck
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.0
3
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
package/dist/helpers.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { Bech32PrefixRequest, Bech32PrefixResponse } from './codegen/cosmos/auth/v1beta1/query.js';
1
2
  import type { QueryAllBalancesRequest, QueryAllBalancesResponse, QueryBalanceRequestProtoMsg } from './codegen/cosmos/bank/v1beta1/query.js';
2
3
  import type { MsgSend, MsgSendResponse } from './codegen/cosmos/bank/v1beta1/tx.js';
3
4
  import type { MsgDelegate, MsgDelegateResponse, MsgUndelegate, MsgUndelegateResponse } from './codegen/cosmos/staking/v1beta1/tx.js';
@@ -21,13 +22,8 @@ export type Proto3Shape = {
21
22
  '/cosmos.staking.v1beta1.MsgUndelegateResponse': MsgUndelegateResponse;
22
23
  '/ibc.applications.transfer.v1.MsgTransfer': MsgTransfer;
23
24
  '/ibc.applications.transfer.v1.MsgTransferResponse': MsgTransferResponse;
24
- };
25
- type ResponseMap = {
26
- '/cosmos.bank.v1beta1.MsgSend': '/cosmos.bank.v1beta1.MsgSendResponse';
27
- '/cosmos.bank.v1beta1.QueryAllBalancesRequest': '/cosmos.bank.v1beta1.QueryAllBalancesResponse';
28
- '/cosmos.staking.v1beta1.MsgDelegate': '/cosmos.staking.v1beta1.MsgDelegateResponse';
29
- '/ibc.applications.transfer.v1.MsgTransfer': '/ibc.applications.transfer.v1.MsgTransferResponse';
30
- '/cosmos.staking.v1beta1.MsgUndelegate': '/cosmos.staking.v1beta1.MsgUndelegateResponse';
25
+ '/cosmos.auth.v1beta1.Bech32PrefixRequest': Bech32PrefixRequest;
26
+ '/cosmos.auth.v1beta1.Bech32PrefixResponse': Bech32PrefixResponse;
31
27
  };
32
28
  /**
33
29
  * The encoding introduced in Protobuf 3 for Any that can be serialized to JSON.
@@ -41,7 +37,11 @@ export type TypedJson<T extends unknown | keyof Proto3Shape = unknown> = T exten
41
37
  } : {
42
38
  '@type': string;
43
39
  };
44
- export type ResponseTo<T extends TypedJson> = T['@type'] extends keyof ResponseMap ? TypedJson<ResponseMap[T['@type']]> : TypedJson;
40
+ /** General pattern for Request that has a corresponding Response */
41
+ type RequestTypeUrl<Base extends string> = `/${Base}Request`;
42
+ /** Pattern specific to Msg sends, in which "Msg" without "Response" implies it's a request */
43
+ type TxMessageTypeUrl<Package extends string, Name extends Capitalize<string>> = `/${Package}.Msg${Name}`;
44
+ export type ResponseTo<T extends TypedJson> = T['@type'] extends RequestTypeUrl<infer Base> ? TypedJson<`/${Base}Response`> : T['@type'] extends TxMessageTypeUrl<infer Package, infer Name> ? TypedJson<`/${Package}.Msg${Name}Response`> : TypedJson;
45
45
  export declare const typedJson: <T extends keyof Proto3Shape>(typeStr: T, obj: Proto3Shape[T]) => TypedJson<T>;
46
46
  export declare const typeUrlToGrpcPath: (typeUrl: Any["typeUrl"]) => string;
47
47
  type RequestQueryOpts = Partial<Omit<RequestQuery, 'path' | 'data'>>;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAkDlE,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,OAAU,EACV,GAAmB,EACnB,EAAE;IACF,OAAO;QACL,OAAO,EAAE,OAAO;QAChB,GAAG,GAAG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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,CAAC;IACjD,OAAO,IAAI,WAAW,UAAU,UAAU,EAAE,CAAC;AAC/C,CAAC,CAAC;AAIF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,GAAgC,EAChC,OAAyB,EAAE,EAC3B,EAAE,CACF,YAAY,CAAC,MAAM,CACjB,YAAY,CAAC,WAAW,CAAC;IACvB,IAAI,EAAE,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC;IACpC,IAAI,EAAE,GAAG,CAAC,KAAK;IACf,GAAG,IAAI;CACR,CAAC,CACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/cosmic-proto",
3
- "version": "0.4.1-dev-35d20eb.0+35d20eb",
3
+ "version": "0.4.1-dev-96dbb12.0+96dbb12",
4
4
  "description": "Protobuf stubs for the Agoric cosmos-sdk module",
5
5
  "keywords": [],
6
6
  "author": "Agoric",
@@ -130,9 +130,9 @@
130
130
  "access": "public"
131
131
  },
132
132
  "devDependencies": {
133
- "@agoric/cosmos": "0.34.2-dev-35d20eb.0+35d20eb",
133
+ "@agoric/cosmos": "0.34.2-dev-96dbb12.0+96dbb12",
134
134
  "@ava/typescript": "^4.1.0",
135
- "@cosmology/telescope": "^1.7.0",
135
+ "@cosmology/telescope": "^1.7.1",
136
136
  "ava": "^5.3.1",
137
137
  "rimraf": "^5.0.0",
138
138
  "tsd": "^0.30.7",
@@ -163,5 +163,5 @@
163
163
  "test/**/*.test.*"
164
164
  ]
165
165
  },
166
- "gitHead": "35d20ebc6d57520d19faea3f6e507e6f9bf1682e"
166
+ "gitHead": "96dbb12270373863270e7efa724f9835ca1316c1"
167
167
  }