agoric 0.21.2-dev-3c22e86.0 → 0.21.2-dev-b6b074d.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/inter.js +1 -1
- package/src/commands/test-upgrade.js +7 -1
- package/src/lib/format.js +6 -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-b6b074d.0+b6b074d",
|
|
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-b6b074d.0+b6b074d",
|
|
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-b6b074d.0+b6b074d",
|
|
37
|
+
"@agoric/assert": "0.6.1-dev-b6b074d.0+b6b074d",
|
|
38
|
+
"@agoric/cache": "0.3.3-dev-b6b074d.0+b6b074d",
|
|
39
|
+
"@agoric/casting": "0.4.3-dev-b6b074d.0+b6b074d",
|
|
40
|
+
"@agoric/cosmic-proto": "0.3.1-dev-b6b074d.0+b6b074d",
|
|
41
|
+
"@agoric/ertp": "0.16.3-dev-b6b074d.0+b6b074d",
|
|
42
|
+
"@agoric/inter-protocol": "0.16.2-dev-b6b074d.0+b6b074d",
|
|
43
|
+
"@agoric/internal": "0.3.3-dev-b6b074d.0+b6b074d",
|
|
44
|
+
"@agoric/smart-wallet": "0.5.4-dev-b6b074d.0+b6b074d",
|
|
45
|
+
"@agoric/store": "0.9.3-dev-b6b074d.0+b6b074d",
|
|
46
|
+
"@agoric/swingset-vat": "0.32.3-dev-b6b074d.0+b6b074d",
|
|
47
|
+
"@agoric/vats": "0.15.2-dev-b6b074d.0+b6b074d",
|
|
48
|
+
"@agoric/zoe": "0.26.3-dev-b6b074d.0+b6b074d",
|
|
49
|
+
"@agoric/zone": "0.2.3-dev-b6b074d.0+b6b074d",
|
|
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": "b6b074d1ab4d645e78f357043bf7c56aabfcaf38"
|
|
96
96
|
}
|
package/src/commands/inter.js
CHANGED
|
@@ -107,7 +107,7 @@ const makeFormatters = assets => {
|
|
|
107
107
|
* Dynamic check that an OfferStatus is also a BidSpec.
|
|
108
108
|
*
|
|
109
109
|
* @param {import('@agoric/smart-wallet/src/offers.js').OfferStatus} offerStatus
|
|
110
|
-
* @param {
|
|
110
|
+
* @param {import('../lib/wallet.js').AgoricNamesRemotes} agoricNames
|
|
111
111
|
* @param {typeof console.warn} warn
|
|
112
112
|
* returns null if offerStatus is not a BidSpec
|
|
113
113
|
*/
|
|
@@ -82,7 +82,13 @@ export const makeTestCommand = (
|
|
|
82
82
|
publicInvitationMaker: 'makeInvitation',
|
|
83
83
|
},
|
|
84
84
|
proposal: {
|
|
85
|
-
want: {
|
|
85
|
+
want: {
|
|
86
|
+
Tokens: {
|
|
87
|
+
// @ts-expect-error BoardRemote not a Brand object
|
|
88
|
+
brand: agoricNames.brand.GoodStuff,
|
|
89
|
+
value: 32n,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
86
92
|
},
|
|
87
93
|
};
|
|
88
94
|
const result = await sendAction(
|
package/src/lib/format.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import { makeBoardRemote } from '@agoric/vats/tools/board-utils.js';
|
|
3
|
-
// eslint-disable-next-line no-unused-vars -- typeof below
|
|
4
|
-
import { makeAgoricNames } from './rpc.js';
|
|
5
2
|
|
|
6
3
|
// ambient types
|
|
7
4
|
import '@agoric/ertp/src/types-ambient.js';
|
|
5
|
+
import { makeBoardRemote } from '@agoric/vats/tools/board-utils.js';
|
|
8
6
|
|
|
9
7
|
/** @typedef {import('@agoric/vats/tools/board-utils.js').BoardRemote} BoardRemote */
|
|
10
8
|
|
|
@@ -30,16 +28,15 @@ export const Natural = str => {
|
|
|
30
28
|
*/
|
|
31
29
|
export const bigintReplacer = (k, v) => (typeof v === 'bigint' ? `${v}` : v);
|
|
32
30
|
|
|
33
|
-
/** @type {import('@agoric/vats/tools/board-utils.js').VBankAssetDetail} */
|
|
31
|
+
/** @type {Partial<import('@agoric/vats/tools/board-utils.js').VBankAssetDetail>} */
|
|
34
32
|
// eslint-disable-next-line no-unused-vars
|
|
35
33
|
const exampleAsset = {
|
|
36
|
-
// @ts-expect-error cast
|
|
37
34
|
brand: makeBoardRemote({ boardId: 'board0425', iface: 'Alleged: BLD brand' }),
|
|
38
35
|
displayInfo: { assetKind: 'nat', decimalPlaces: 6 },
|
|
39
|
-
// @ts-expect-error cast
|
|
40
36
|
issuer: makeBoardRemote({ boardId: null, iface: undefined }),
|
|
41
|
-
|
|
37
|
+
proposedName: 'Agoric staking token',
|
|
42
38
|
};
|
|
39
|
+
|
|
43
40
|
/** @typedef {import('@agoric/vats/tools/board-utils.js').VBankAssetDetail } AssetDescriptor */
|
|
44
41
|
|
|
45
42
|
/**
|
|
@@ -122,7 +119,7 @@ export const fmtRecordOfLines = record => {
|
|
|
122
119
|
* Summarize the offerStatuses of the state as user-facing informative tuples
|
|
123
120
|
*
|
|
124
121
|
* @param {import('@agoric/smart-wallet/src/utils.js').CoalescedWalletState} state
|
|
125
|
-
* @param {
|
|
122
|
+
* @param {import('./wallet.js').AgoricNamesRemotes} agoricNames
|
|
126
123
|
*/
|
|
127
124
|
export const offerStatusTuples = (state, agoricNames) => {
|
|
128
125
|
const { offerStatuses } = state;
|
|
@@ -179,7 +176,7 @@ export const offerStatusTuples = (state, agoricNames) => {
|
|
|
179
176
|
/**
|
|
180
177
|
* @param {import('@agoric/smart-wallet/src/smartWallet').CurrentWalletRecord} current
|
|
181
178
|
* @param {ReturnType<import('@agoric/smart-wallet/src/utils.js').makeWalletStateCoalescer>['state']} coalesced
|
|
182
|
-
* @param {
|
|
179
|
+
* @param {import('./wallet.js').AgoricNamesRemotes} agoricNames
|
|
183
180
|
*/
|
|
184
181
|
export const summarize = (current, coalesced, agoricNames) => {
|
|
185
182
|
return {
|