agoric 0.21.2-dev-1b6f03b.0 → 0.21.2-dev-9380cfe.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 +20 -20
- package/src/commands/oracle.js +3 -2
- package/src/commands/psm.js +0 -4
- package/src/commands/vaults.js +3 -3
- package/src/lib/wallet.js +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agoric",
|
|
3
|
-
"version": "0.21.2-dev-
|
|
3
|
+
"version": "0.21.2-dev-9380cfe.0+9380cfe",
|
|
4
4
|
"description": "Manage the Agoric Javascript smart contract platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.js",
|
|
@@ -28,29 +28,29 @@
|
|
|
28
28
|
"lint:eslint": "eslint ."
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@agoric/cosmic-swingset": "0.41.4-dev-
|
|
32
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
31
|
+
"@agoric/cosmic-swingset": "0.41.4-dev-9380cfe.0+9380cfe",
|
|
32
|
+
"@agoric/deploy-script-support": "0.10.4-dev-9380cfe.0+9380cfe",
|
|
33
33
|
"ava": "^5.3.0",
|
|
34
34
|
"c8": "^7.13.0",
|
|
35
35
|
"dd-trace": "^4.11.1"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@agoric/access-token": "0.4.22-dev-
|
|
39
|
-
"@agoric/assert": "0.6.1-dev-
|
|
40
|
-
"@agoric/cache": "0.3.3-dev-
|
|
41
|
-
"@agoric/casting": "0.4.3-dev-
|
|
42
|
-
"@agoric/cosmic-proto": "0.3.1-dev-
|
|
43
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
44
|
-
"@agoric/governance": "0.10.4-dev-
|
|
45
|
-
"@agoric/inter-protocol": "0.16.2-dev-
|
|
46
|
-
"@agoric/internal": "0.3.3-dev-
|
|
47
|
-
"@agoric/network": "0.1.1-dev-
|
|
48
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
49
|
-
"@agoric/store": "0.9.3-dev-
|
|
50
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
51
|
-
"@agoric/vats": "0.15.2-dev-
|
|
52
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
53
|
-
"@agoric/zone": "0.2.3-dev-
|
|
38
|
+
"@agoric/access-token": "0.4.22-dev-9380cfe.0+9380cfe",
|
|
39
|
+
"@agoric/assert": "0.6.1-dev-9380cfe.0+9380cfe",
|
|
40
|
+
"@agoric/cache": "0.3.3-dev-9380cfe.0+9380cfe",
|
|
41
|
+
"@agoric/casting": "0.4.3-dev-9380cfe.0+9380cfe",
|
|
42
|
+
"@agoric/cosmic-proto": "0.3.1-dev-9380cfe.0+9380cfe",
|
|
43
|
+
"@agoric/ertp": "0.16.3-dev-9380cfe.0+9380cfe",
|
|
44
|
+
"@agoric/governance": "0.10.4-dev-9380cfe.0+9380cfe",
|
|
45
|
+
"@agoric/inter-protocol": "0.16.2-dev-9380cfe.0+9380cfe",
|
|
46
|
+
"@agoric/internal": "0.3.3-dev-9380cfe.0+9380cfe",
|
|
47
|
+
"@agoric/network": "0.1.1-dev-9380cfe.0+9380cfe",
|
|
48
|
+
"@agoric/smart-wallet": "0.5.4-dev-9380cfe.0+9380cfe",
|
|
49
|
+
"@agoric/store": "0.9.3-dev-9380cfe.0+9380cfe",
|
|
50
|
+
"@agoric/swingset-vat": "0.32.3-dev-9380cfe.0+9380cfe",
|
|
51
|
+
"@agoric/vats": "0.15.2-dev-9380cfe.0+9380cfe",
|
|
52
|
+
"@agoric/zoe": "0.26.3-dev-9380cfe.0+9380cfe",
|
|
53
|
+
"@agoric/zone": "0.2.3-dev-9380cfe.0+9380cfe",
|
|
54
54
|
"@confio/relayer": "^0.9.0",
|
|
55
55
|
"@cosmjs/crypto": "^0.30.1",
|
|
56
56
|
"@cosmjs/encoding": "^0.30.1",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"typeCoverage": {
|
|
99
99
|
"atLeast": 77.53
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "9380cfe04661eaed6de168e65a96730a8798bffb"
|
|
102
102
|
}
|
package/src/commands/oracle.js
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
makeWalletUtils,
|
|
16
16
|
outputAction,
|
|
17
17
|
sendAction,
|
|
18
|
+
sendHint,
|
|
18
19
|
} from '../lib/wallet.js';
|
|
19
20
|
import { bigintReplacer } from '../lib/format.js';
|
|
20
21
|
|
|
@@ -128,7 +129,7 @@ export const makeOracleCommand = (logger, io = {}) => {
|
|
|
128
129
|
offer,
|
|
129
130
|
});
|
|
130
131
|
|
|
131
|
-
console.warn(
|
|
132
|
+
console.warn(sendHint);
|
|
132
133
|
});
|
|
133
134
|
|
|
134
135
|
oracle
|
|
@@ -163,7 +164,7 @@ export const makeOracleCommand = (logger, io = {}) => {
|
|
|
163
164
|
offer,
|
|
164
165
|
});
|
|
165
166
|
|
|
166
|
-
console.warn(
|
|
167
|
+
console.warn(sendHint);
|
|
167
168
|
});
|
|
168
169
|
|
|
169
170
|
const findOracleCap = async (instance, from, readLatestHead) => {
|
package/src/commands/psm.js
CHANGED
|
@@ -216,8 +216,6 @@ export const makePsmCommand = logger => {
|
|
|
216
216
|
};
|
|
217
217
|
|
|
218
218
|
outputExecuteOfferAction(offer);
|
|
219
|
-
|
|
220
|
-
console.warn('Now execute the prepared offer');
|
|
221
219
|
});
|
|
222
220
|
|
|
223
221
|
psm
|
|
@@ -272,8 +270,6 @@ export const makePsmCommand = logger => {
|
|
|
272
270
|
};
|
|
273
271
|
|
|
274
272
|
outputExecuteOfferAction(offer);
|
|
275
|
-
|
|
276
|
-
console.warn('Now execute the prepared offer');
|
|
277
273
|
});
|
|
278
274
|
|
|
279
275
|
return psm;
|
package/src/commands/vaults.js
CHANGED
|
@@ -54,7 +54,7 @@ export const makeVaultsCommand = logger => {
|
|
|
54
54
|
|
|
55
55
|
vaults
|
|
56
56
|
.command('open')
|
|
57
|
-
.description('open a new vault')
|
|
57
|
+
.description('Prepare an offer to open a new vault')
|
|
58
58
|
.requiredOption('--giveCollateral <number>', 'Collateral to give', Number)
|
|
59
59
|
.requiredOption('--wantMinted <number>', 'Minted wants', Number)
|
|
60
60
|
.option('--offerId <string>', 'Offer id', String, `openVault-${Date.now()}`)
|
|
@@ -76,7 +76,7 @@ export const makeVaultsCommand = logger => {
|
|
|
76
76
|
|
|
77
77
|
vaults
|
|
78
78
|
.command('adjust')
|
|
79
|
-
.description('adjust an existing vault')
|
|
79
|
+
.description('Prepare an offer to adjust an existing vault')
|
|
80
80
|
.requiredOption(
|
|
81
81
|
'--from <address>',
|
|
82
82
|
'wallet address literal or name',
|
|
@@ -121,7 +121,7 @@ export const makeVaultsCommand = logger => {
|
|
|
121
121
|
|
|
122
122
|
vaults
|
|
123
123
|
.command('close')
|
|
124
|
-
.description('close an existing vault')
|
|
124
|
+
.description('Prepare an offer to close an existing vault')
|
|
125
125
|
.requiredOption(
|
|
126
126
|
'--from <address>',
|
|
127
127
|
'wallet address literal or name',
|
package/src/lib/wallet.js
CHANGED
|
@@ -75,7 +75,7 @@ export const outputAction = (bridgeAction, stdout = process.stdout) => {
|
|
|
75
75
|
stdout.write('\n');
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
const sendHint =
|
|
78
|
+
export const sendHint =
|
|
79
79
|
'Now use `agoric wallet send ...` to sign and broadcast the offer.\n';
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -93,14 +93,20 @@ export const outputActionAndHint = (bridgeAction, { stdout, stderr }) => {
|
|
|
93
93
|
/**
|
|
94
94
|
* @param {import('@agoric/smart-wallet/src/offers.js').OfferSpec} offer
|
|
95
95
|
* @param {Pick<import('stream').Writable,'write'>} [stdout]
|
|
96
|
+
* @param {Pick<import('stream').Writable,'write'>} [stderr]
|
|
96
97
|
*/
|
|
97
|
-
export const outputExecuteOfferAction = (
|
|
98
|
+
export const outputExecuteOfferAction = (
|
|
99
|
+
offer,
|
|
100
|
+
stdout = process.stdout,
|
|
101
|
+
stderr = process.stderr,
|
|
102
|
+
) => {
|
|
98
103
|
/** @type {import('@agoric/smart-wallet/src/smartWallet').BridgeAction} */
|
|
99
104
|
const spendAction = {
|
|
100
105
|
method: 'executeOffer',
|
|
101
106
|
offer,
|
|
102
107
|
};
|
|
103
108
|
outputAction(spendAction, stdout);
|
|
109
|
+
stderr.write(sendHint);
|
|
104
110
|
};
|
|
105
111
|
|
|
106
112
|
/**
|