@agoric/vats 0.15.2-dev-369fa7c.0 → 0.15.2-dev-ddf71d7.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/localchain.d.ts +10 -4
- package/src/localchain.d.ts.map +1 -1
- package/src/localchain.js +10 -4
- package/src/types.d.ts +3 -3
- package/src/vat-localchain.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vats",
|
|
3
|
-
"version": "0.15.2-dev-
|
|
3
|
+
"version": "0.15.2-dev-ddf71d7.0+ddf71d7",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
26
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
27
|
-
"@agoric/governance": "0.10.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/network": "0.1.1-dev-
|
|
30
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
31
|
-
"@agoric/store": "0.9.3-dev-
|
|
32
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
33
|
-
"@agoric/time": "0.3.3-dev-
|
|
34
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
35
|
-
"@agoric/vow": "0.1.1-dev-
|
|
36
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
37
|
-
"@agoric/zone": "0.2.3-dev-
|
|
25
|
+
"@agoric/cosmic-proto": "0.4.1-dev-ddf71d7.0+ddf71d7",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-ddf71d7.0+ddf71d7",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-ddf71d7.0+ddf71d7",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-ddf71d7.0+ddf71d7",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-ddf71d7.0+ddf71d7",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-ddf71d7.0+ddf71d7",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-ddf71d7.0+ddf71d7",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-ddf71d7.0+ddf71d7",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-ddf71d7.0+ddf71d7",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-ddf71d7.0+ddf71d7",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-ddf71d7.0+ddf71d7",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-ddf71d7.0+ddf71d7",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-ddf71d7.0+ddf71d7",
|
|
38
38
|
"@endo/errors": "^1.2.4",
|
|
39
39
|
"@endo/far": "^1.1.4",
|
|
40
40
|
"@endo/import-bundle": "^1.2.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"jessie.js": "^0.3.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
49
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-ddf71d7.0+ddf71d7",
|
|
50
50
|
"@endo/bundle-source": "^3.3.0",
|
|
51
51
|
"@endo/init": "^1.1.3",
|
|
52
52
|
"ava": "^5.3.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"typeCoverage": {
|
|
79
79
|
"atLeast": 91.52
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "ddf71d7221ba2991cae7b52cceabb0262803f16b"
|
|
82
82
|
}
|
package/src/localchain.d.ts
CHANGED
|
@@ -81,10 +81,14 @@ export function prepareLocalChainAccountKit(zone: import("@agoric/base-zone").Zo
|
|
|
81
81
|
*/
|
|
82
82
|
withdraw(amount: Amount<"nat">): PromiseVow<Payment<"nat">>;
|
|
83
83
|
/**
|
|
84
|
-
* Execute a batch of messages
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
84
|
+
* Execute a batch of messages on the local chain. Note in particular,
|
|
85
|
+
* that for IBC `MsgTransfer`, execution only queues a packet for the
|
|
86
|
+
* local chain's IBC stack, and returns a `MsgTransferResponse`
|
|
87
|
+
* immediately, not waiting for the confirmation on the other chain.
|
|
88
|
+
*
|
|
89
|
+
* Messages are executed in order as a single atomic transaction and
|
|
90
|
+
* returns the responses. If any of the messages fails, the entire batch
|
|
91
|
+
* will be rolled back on the local chain.
|
|
88
92
|
*
|
|
89
93
|
* @template {TypedJson[]} MT messages tuple (use const with multiple
|
|
90
94
|
* elements or it will be a mixed array)
|
|
@@ -92,6 +96,8 @@ export function prepareLocalChainAccountKit(zone: import("@agoric/base-zone").Zo
|
|
|
92
96
|
* @returns {PromiseVowOfTupleMappedToGenerics<{
|
|
93
97
|
* [K in keyof MT]: JsonSafe<ResponseTo<MT[K]>>;
|
|
94
98
|
* }>}
|
|
99
|
+
* @see {typedJson} which can be used on arguments to get typed return
|
|
100
|
+
* values.
|
|
95
101
|
*/
|
|
96
102
|
executeTx<MT extends TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: JsonSafe<ResponseTo<MT[K]>>; }>;
|
|
97
103
|
/**
|
package/src/localchain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAaG;AAMI,kDAHI,OAAO,mBAAmB,EAAE,IAAI,aAChC,QAAQ;;QA2BX;;;;;;WAMG;2BALQ,KAAK,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AAsB,CAAC;yBACzC,UAAU,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;8BAlUpB,aAAa;gCAAb,aAAa;+BADF,sBAAsB;gCAAtB,sBAAsB;8BAAtB,sBAAsB;+BAExB,oBAAoB;wCAApB,oBAAoB;yCAE9B,YAAY;0BADd,eAAe;iCAAf,eAAe"}
|
package/src/localchain.js
CHANGED
|
@@ -151,10 +151,14 @@ export const prepareLocalChainAccountKit = (zone, { watch }) =>
|
|
|
151
151
|
return E(purse).withdraw(amount);
|
|
152
152
|
},
|
|
153
153
|
/**
|
|
154
|
-
* Execute a batch of messages
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
154
|
+
* Execute a batch of messages on the local chain. Note in particular,
|
|
155
|
+
* that for IBC `MsgTransfer`, execution only queues a packet for the
|
|
156
|
+
* local chain's IBC stack, and returns a `MsgTransferResponse`
|
|
157
|
+
* immediately, not waiting for the confirmation on the other chain.
|
|
158
|
+
*
|
|
159
|
+
* Messages are executed in order as a single atomic transaction and
|
|
160
|
+
* returns the responses. If any of the messages fails, the entire batch
|
|
161
|
+
* will be rolled back on the local chain.
|
|
158
162
|
*
|
|
159
163
|
* @template {TypedJson[]} MT messages tuple (use const with multiple
|
|
160
164
|
* elements or it will be a mixed array)
|
|
@@ -162,6 +166,8 @@ export const prepareLocalChainAccountKit = (zone, { watch }) =>
|
|
|
162
166
|
* @returns {PromiseVowOfTupleMappedToGenerics<{
|
|
163
167
|
* [K in keyof MT]: JsonSafe<ResponseTo<MT[K]>>;
|
|
164
168
|
* }>}
|
|
169
|
+
* @see {typedJson} which can be used on arguments to get typed return
|
|
170
|
+
* values.
|
|
165
171
|
*/
|
|
166
172
|
async executeTx(messages) {
|
|
167
173
|
const { address, system } = this.state;
|
package/src/types.d.ts
CHANGED
|
@@ -142,9 +142,9 @@ export type IBCPacket = {
|
|
|
142
142
|
source_port: IBCPortID;
|
|
143
143
|
destination_channel: IBCChannelID;
|
|
144
144
|
destination_port: IBCPortID;
|
|
145
|
-
sequence?:
|
|
146
|
-
timeout_height?:
|
|
147
|
-
timeout_timestamp?:
|
|
145
|
+
sequence?: PacketSDKType['sequence'];
|
|
146
|
+
timeout_height?: PacketSDKType['timeout_height'];
|
|
147
|
+
timeout_timestamp?: PacketSDKType['timeout_timestamp'];
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
export type IBCCounterParty = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-localchain.d.ts","sourceRoot":"","sources":["vat-localchain.js"],"names":[],"mappings":"AAOO;IASH;;;;;OAKG;2BADQ,OAAO,iBAAiB,EAAE,gBAAgB;;;;;
|
|
1
|
+
{"version":3,"file":"vat-localchain.d.ts","sourceRoot":"","sources":["vat-localchain.js"],"names":[],"mappings":"AAOO;IASH;;;;;OAKG;2BADQ,OAAO,iBAAiB,EAAE,gBAAgB;;;;;oCASoxQ,sBAAsB;iBAAwK,CAAC;;;;;IAbxgR;;;;;OAKG;2BADQ,OAAO,iBAAiB,EAAE,gBAAgB;;;;;;iBASk9Q,CAAC;;;;GAH3gR;4BAEa,UAAU,CAAC,OAAO,eAAe,CAAC"}
|