agoric 0.21.2-dev-f5f34f4.0 → 0.21.2-dev-3c22e86.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 +17 -17
- package/src/commands/auction.js +5 -1
- package/src/commands/inter.js +1 -1
- package/src/commands/psm.js +11 -9
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-3c22e86.0+3c22e86",
|
|
4
4
|
"description": "Manage the Agoric Javascript smart contract platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.js",
|
|
@@ -28,25 +28,25 @@
|
|
|
28
28
|
"lint:eslint": "eslint ."
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
31
|
+
"@agoric/deploy-script-support": "0.10.4-dev-3c22e86.0+3c22e86",
|
|
32
32
|
"ava": "^5.3.0",
|
|
33
33
|
"c8": "^7.13.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/access-token": "0.4.22-dev-
|
|
37
|
-
"@agoric/assert": "0.6.1-dev-
|
|
38
|
-
"@agoric/cache": "0.3.3-dev-
|
|
39
|
-
"@agoric/casting": "0.4.3-dev-
|
|
40
|
-
"@agoric/cosmic-proto": "0.3.1-dev-
|
|
41
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
42
|
-
"@agoric/inter-protocol": "0.16.2-dev-
|
|
43
|
-
"@agoric/internal": "0.3.3-dev-
|
|
44
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
45
|
-
"@agoric/store": "0.9.3-dev-
|
|
46
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
47
|
-
"@agoric/vats": "0.15.2-dev-
|
|
48
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
49
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/access-token": "0.4.22-dev-3c22e86.0+3c22e86",
|
|
37
|
+
"@agoric/assert": "0.6.1-dev-3c22e86.0+3c22e86",
|
|
38
|
+
"@agoric/cache": "0.3.3-dev-3c22e86.0+3c22e86",
|
|
39
|
+
"@agoric/casting": "0.4.3-dev-3c22e86.0+3c22e86",
|
|
40
|
+
"@agoric/cosmic-proto": "0.3.1-dev-3c22e86.0+3c22e86",
|
|
41
|
+
"@agoric/ertp": "0.16.3-dev-3c22e86.0+3c22e86",
|
|
42
|
+
"@agoric/inter-protocol": "0.16.2-dev-3c22e86.0+3c22e86",
|
|
43
|
+
"@agoric/internal": "0.3.3-dev-3c22e86.0+3c22e86",
|
|
44
|
+
"@agoric/smart-wallet": "0.5.4-dev-3c22e86.0+3c22e86",
|
|
45
|
+
"@agoric/store": "0.9.3-dev-3c22e86.0+3c22e86",
|
|
46
|
+
"@agoric/swingset-vat": "0.32.3-dev-3c22e86.0+3c22e86",
|
|
47
|
+
"@agoric/vats": "0.15.2-dev-3c22e86.0+3c22e86",
|
|
48
|
+
"@agoric/zoe": "0.26.3-dev-3c22e86.0+3c22e86",
|
|
49
|
+
"@agoric/zone": "0.2.3-dev-3c22e86.0+3c22e86",
|
|
50
50
|
"@confio/relayer": "^0.9.0",
|
|
51
51
|
"@cosmjs/crypto": "^0.30.1",
|
|
52
52
|
"@cosmjs/encoding": "^0.30.1",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"timeout": "2m",
|
|
93
93
|
"workerThreads": false
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "3c22e864350b333eb1bc0f5f5c64be0ff528a7e7"
|
|
96
96
|
}
|
package/src/commands/auction.js
CHANGED
|
@@ -7,7 +7,11 @@ import { outputActionAndHint } from '../lib/wallet.js';
|
|
|
7
7
|
const { Fail } = assert;
|
|
8
8
|
|
|
9
9
|
/** @typedef {import('@agoric/governance/src/contractGovernance/typedParamManager.js').ParamTypesMap} ParamTypesMap */
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @template {ParamStateRecord} M
|
|
13
|
+
* @typedef {import('@agoric/governance/src/contractGovernance/typedParamManager.js').ParamTypesMapFromRecord<M>} ParamTypesMapFromRecord
|
|
14
|
+
*/
|
|
11
15
|
|
|
12
16
|
/**
|
|
13
17
|
* @template {ParamTypesMap} M
|
package/src/commands/inter.js
CHANGED
|
@@ -87,7 +87,7 @@ const makeFormatters = assets => {
|
|
|
87
87
|
* @param {(_: T) => string} f
|
|
88
88
|
* @returns { (x: T | null | undefined ) => string | undefined }
|
|
89
89
|
*/
|
|
90
|
-
const maybe = f => x => x ? f(x) : undefined;
|
|
90
|
+
const maybe = f => x => (x ? f(x) : undefined);
|
|
91
91
|
|
|
92
92
|
return {
|
|
93
93
|
amount,
|
package/src/commands/psm.js
CHANGED
|
@@ -151,15 +151,17 @@ export const makePsmCommand = logger => {
|
|
|
151
151
|
.option('--giveMinted <DOLLARS>', 'amount of minted tokens to give', Number)
|
|
152
152
|
.option('--feePct [%]', 'Gas fee percentage', Number)
|
|
153
153
|
.option('--offerId <string>', 'Offer id', String, `swap-${Date.now()}`)
|
|
154
|
-
.action(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
154
|
+
.action(
|
|
155
|
+
async function (
|
|
156
|
+
/** @type {Parameters<typeof Offers.psm.swap>[2]} */ opts,
|
|
157
|
+
) {
|
|
158
|
+
console.warn('running with options', opts);
|
|
159
|
+
const { agoricNames, lookupPsmInstance } = await rpcTools();
|
|
160
|
+
const instance = await lookupPsmInstance(opts.pair);
|
|
161
|
+
const offer = Offers.psm.swap(agoricNames, instance, opts);
|
|
162
|
+
outputExecuteOfferAction(offer);
|
|
163
|
+
},
|
|
164
|
+
);
|
|
163
165
|
|
|
164
166
|
psm
|
|
165
167
|
.command('proposePauseOffers')
|