@agoric/orchestration 0.1.1-dev-2561fb9.0 → 0.1.1-dev-47bebb8.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/package.json +16 -16
- package/src/typeGuards.d.ts +1 -2
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +17 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-47bebb8.0+47bebb8",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/network": "0.1.1-dev-
|
|
41
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
45
|
-
"@agoric/vats": "0.15.2-dev-
|
|
46
|
-
"@agoric/vow": "0.1.1-dev-
|
|
47
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
48
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/async-flow": "0.1.1-dev-47bebb8.0+47bebb8",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-47bebb8.0+47bebb8",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-47bebb8.0+47bebb8",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-47bebb8.0+47bebb8",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-47bebb8.0+47bebb8",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-47bebb8.0+47bebb8",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-47bebb8.0+47bebb8",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-47bebb8.0+47bebb8",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-47bebb8.0+47bebb8",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-47bebb8.0+47bebb8",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-47bebb8.0+47bebb8",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-47bebb8.0+47bebb8",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-47bebb8.0+47bebb8",
|
|
49
49
|
"@endo/base64": "^1.0.8",
|
|
50
50
|
"@endo/errors": "^1.2.7",
|
|
51
51
|
"@endo/far": "^1.1.8",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@noble/hashes": "^1.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
57
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-47bebb8.0+47bebb8",
|
|
58
58
|
"@chain-registry/client": "^1.47.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.3",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"typeCoverage": {
|
|
96
96
|
"atLeast": 97.23
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "47bebb8357715f60a699a6f7627dac3d2cf26db7"
|
|
99
99
|
}
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import {TypedPattern} from '@agoric/internal';
|
|
3
|
-
* @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount,
|
|
3
|
+
* @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount, DenomInfo, AmountArg, CosmosValidatorAddress} from './types.js';
|
|
4
4
|
* @import {Any as Proto3Msg} from '@agoric/cosmic-proto/google/protobuf/any.js';
|
|
5
|
-
* @import {Delegation} from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
|
|
6
5
|
* @import {TxBody} from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
7
6
|
* @import {TypedJson} from '@agoric/cosmic-proto';
|
|
8
7
|
*/
|
package/src/typeGuards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH;;;;GAIG;AACH;;;GAQE;AAEF,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CAKnC;AAGF,sCAAsC;AACtC,0BADW,aAAa,SAAS,CAAC,CACoC;AAGtE,gBAAgB;AAChB,uEAUE;AAEF,gBAAgB;AAChB,iEAA4C;AAE5C,gBAAgB;AAChB,mEAQG;AAEH,gBAAgB;AAChB,oEAA+C;AAE/C,gBAAgB;AAChB,sEASG;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CASrC;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CAYtC;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CAG/B;AACH,0DAAqC;AAErC,gDAAgD;AAChD,6BADW,aAAa,UAAU,GAAG,EAAE,GAAG,CAAC,CAAC,CAM1C;AAGF,wCAAwC;AACxC,+BADW,aAAa,WAAW,CAAC,CACkC;AAGtE,0CAA0C;AAC1C,gCADW,aAAa,MAAM,CAAC,KAAK,CAAC,CAAC,CAIpC;AAGF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CACsC;AAExE;;;;;GAKG;AACH,8BALU,aAAa;IAClB,SAAS,EAAE,sBAAsB,CAAC;IAClC,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC,CAQH;AAEF,sCAAsC;AACtC,2DAGE;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CACmC;;;;;;;;;AAmBrE;;;;GAIG;AACH,+DAQE;AAEF;;;GAGG;AACH,mEAGE;kCA/L4I,YAAY;kCAD3H,kBAAkB;sCAEd,6CAA6C;qCAD8D,YAAY;qCAAZ,YAAY;+BAAZ,YAAY;+BAAZ,YAAY;iCAAZ,YAAY;+BAAZ,YAAY;4CAAZ,YAAY;+BAG9H,sBAAsB"}
|
package/src/typeGuards.js
CHANGED
|
@@ -3,9 +3,8 @@ import { M } from '@endo/patterns';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @import {TypedPattern} from '@agoric/internal';
|
|
6
|
-
* @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount,
|
|
6
|
+
* @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount, DenomInfo, AmountArg, CosmosValidatorAddress} from './types.js';
|
|
7
7
|
* @import {Any as Proto3Msg} from '@agoric/cosmic-proto/google/protobuf/any.js';
|
|
8
|
-
* @import {Delegation} from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
|
|
9
8
|
* @import {TxBody} from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
10
9
|
* @import {TypedJson} from '@agoric/cosmic-proto';
|
|
11
10
|
*/
|
|
@@ -31,12 +30,11 @@ export const ChainAddressShape = {
|
|
|
31
30
|
encoding: M.string(),
|
|
32
31
|
value: M.string(),
|
|
33
32
|
};
|
|
33
|
+
harden(ChainAddressShape);
|
|
34
34
|
|
|
35
35
|
/** @type {TypedPattern<Proto3Msg>} */
|
|
36
|
-
export const Proto3Shape = {
|
|
37
|
-
|
|
38
|
-
value: M.string(),
|
|
39
|
-
};
|
|
36
|
+
export const Proto3Shape = { typeUrl: M.string(), value: M.string() };
|
|
37
|
+
harden(ChainAddressShape);
|
|
40
38
|
|
|
41
39
|
/** @internal */
|
|
42
40
|
export const IBCTransferOptionsShape = M.splitRecord(
|
|
@@ -53,6 +51,7 @@ export const IBCTransferOptionsShape = M.splitRecord(
|
|
|
53
51
|
|
|
54
52
|
/** @internal */
|
|
55
53
|
export const IBCChannelIDShape = M.string();
|
|
54
|
+
|
|
56
55
|
/** @internal */
|
|
57
56
|
export const IBCChannelInfoShape = M.splitRecord({
|
|
58
57
|
portId: M.string(),
|
|
@@ -63,8 +62,10 @@ export const IBCChannelInfoShape = M.splitRecord({
|
|
|
63
62
|
state: M.scalar(), // XXX
|
|
64
63
|
version: M.string(),
|
|
65
64
|
});
|
|
65
|
+
|
|
66
66
|
/** @internal */
|
|
67
67
|
export const IBCConnectionIDShape = M.string();
|
|
68
|
+
|
|
68
69
|
/** @internal */
|
|
69
70
|
export const IBCConnectionInfoShape = M.splitRecord({
|
|
70
71
|
id: IBCConnectionIDShape,
|
|
@@ -115,15 +116,18 @@ export const DenomInfoShape = {
|
|
|
115
116
|
brand: M.or(M.remotable('Brand'), M.undefined()),
|
|
116
117
|
baseDenom: M.string(),
|
|
117
118
|
};
|
|
119
|
+
harden(DenomInfoShape);
|
|
118
120
|
|
|
119
121
|
/** @type {TypedPattern<DenomAmount>} */
|
|
120
122
|
export const DenomAmountShape = { denom: DenomShape, value: M.nat() };
|
|
123
|
+
harden(DenomAmountShape);
|
|
121
124
|
|
|
122
125
|
/** @type {TypedPattern<Amount<'nat'>>} */
|
|
123
|
-
export const AnyNatAmountShape =
|
|
126
|
+
export const AnyNatAmountShape = {
|
|
124
127
|
brand: M.remotable('Brand'),
|
|
125
128
|
value: M.nat(),
|
|
126
|
-
}
|
|
129
|
+
};
|
|
130
|
+
harden(AnyNatAmountShape);
|
|
127
131
|
|
|
128
132
|
/** @type {TypedPattern<AmountArg>} */
|
|
129
133
|
export const AmountArgShape = M.or(AnyNatAmountShape, DenomAmountShape);
|
|
@@ -152,10 +156,11 @@ export const ICQMsgShape = M.splitRecord(
|
|
|
152
156
|
export const TypedJsonShape = M.splitRecord({ '@type': M.string() });
|
|
153
157
|
|
|
154
158
|
/** @see {Chain} */
|
|
155
|
-
export const chainFacadeMethods =
|
|
159
|
+
export const chainFacadeMethods = {
|
|
156
160
|
getChainInfo: M.call().returns(VowShape),
|
|
157
161
|
makeAccount: M.call().returns(VowShape),
|
|
158
|
-
}
|
|
162
|
+
};
|
|
163
|
+
harden(chainFacadeMethods);
|
|
159
164
|
|
|
160
165
|
/**
|
|
161
166
|
* for google/protobuf/timestamp.proto, not to be confused with TimestampShape
|
|
@@ -165,6 +170,7 @@ export const chainFacadeMethods = harden({
|
|
|
165
170
|
* string
|
|
166
171
|
*/
|
|
167
172
|
export const TimestampProtoShape = { seconds: M.string(), nanos: M.number() };
|
|
173
|
+
harden(TimestampProtoShape);
|
|
168
174
|
|
|
169
175
|
/**
|
|
170
176
|
* see {@link TxBody} for more details
|
|
@@ -187,6 +193,5 @@ export const TxBodyOptsShape = M.splitRecord(
|
|
|
187
193
|
*/
|
|
188
194
|
export const AnyNatAmountsRecord = M.and(
|
|
189
195
|
M.recordOf(M.string(), AnyNatAmountShape),
|
|
190
|
-
M.not(
|
|
196
|
+
M.not({}),
|
|
191
197
|
);
|
|
192
|
-
harden(AnyNatAmountsRecord);
|