@agoric/cosmic-proto 0.4.1-dev-c0e811e.0 → 0.4.1-dev-4c65fc2.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 +15 -0
- package/dist/helpers.js.map +1 -1
- package/package.json +7 -3
package/dist/helpers.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { QueryAllBalancesRequest } from './codegen/cosmos/bank/v1beta1/query.js';
|
|
2
2
|
import type { MsgSend } from './codegen/cosmos/bank/v1beta1/tx.js';
|
|
3
3
|
import type { MsgDelegate } from './codegen/cosmos/staking/v1beta1/tx.js';
|
|
4
|
+
/**
|
|
5
|
+
* The result of Any.toJSON(). The type in cosms-types says it returns
|
|
6
|
+
* `unknown` but it's actually this. The `value` string is a base64 encoding of
|
|
7
|
+
* the bytes array.
|
|
8
|
+
*/
|
|
9
|
+
export type AnyJson = {
|
|
10
|
+
typeUrl: string;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
4
13
|
export type Proto3Shape = {
|
|
5
14
|
'/cosmos.bank.v1beta1.MsgSend': MsgSend;
|
|
6
15
|
'/cosmos.bank.v1beta1.QueryAllBalancesRequest': QueryAllBalancesRequest;
|
|
@@ -19,3 +28,9 @@ export type TypedJson<T extends unknown | keyof Proto3Shape = unknown> = T exten
|
|
|
19
28
|
'@type': T;
|
|
20
29
|
} : never;
|
|
21
30
|
export declare const typedJson: <T extends keyof Proto3Shape>(typeStr: T, obj: Proto3Shape[T]) => TypedJson<T>;
|
|
31
|
+
/**
|
|
32
|
+
* Proto Any with arrays encoded as base64
|
|
33
|
+
*/
|
|
34
|
+
export type Base64Any<T> = {
|
|
35
|
+
[Prop in keyof T]: T[Prop] extends Uint8Array ? string : T[Prop];
|
|
36
|
+
};
|
package/dist/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAkCA,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmic-proto",
|
|
3
|
-
"version": "0.4.1-dev-
|
|
3
|
+
"version": "0.4.1-dev-4c65fc2.0+4c65fc2",
|
|
4
4
|
"description": "Protobuf stubs for the Agoric cosmos-sdk module",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Agoric",
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
"types": "./dist/codegen/cosmos/staking/v1beta1/tx.d.ts",
|
|
33
33
|
"default": "./dist/codegen/cosmos/staking/v1beta1/tx.js"
|
|
34
34
|
},
|
|
35
|
+
"./google/protobuf/any": {
|
|
36
|
+
"types": "./dist/codegen/google/protobuf/any.d.ts",
|
|
37
|
+
"default": "./dist/codegen/google/protobuf/any.js"
|
|
38
|
+
},
|
|
35
39
|
"./swingset/msgs.js": {
|
|
36
40
|
"types": "./dist/codegen/agoric/swingset/msgs.d.ts",
|
|
37
41
|
"default": "./dist/codegen/agoric/swingset/msgs.js"
|
|
@@ -83,7 +87,7 @@
|
|
|
83
87
|
"access": "public"
|
|
84
88
|
},
|
|
85
89
|
"devDependencies": {
|
|
86
|
-
"@agoric/cosmos": "0.34.2-dev-
|
|
90
|
+
"@agoric/cosmos": "0.34.2-dev-4c65fc2.0+4c65fc2",
|
|
87
91
|
"@ava/typescript": "^4.1.0",
|
|
88
92
|
"@cosmology/telescope": "^1.5.3",
|
|
89
93
|
"ava": "^5.3.1",
|
|
@@ -115,5 +119,5 @@
|
|
|
115
119
|
"test/**/test-*.js"
|
|
116
120
|
]
|
|
117
121
|
},
|
|
118
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "4c65fc27a3e151be82ad228d58a7610d51b3c4a2"
|
|
119
123
|
}
|