@agoric/smart-wallet 0.5.4-dev-1145be3.0.1145be3 → 0.5.4-dev-b084a06.0.b084a06
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 +15 -15
- package/src/index.js +0 -4
- package/src/invitations.d.ts +8 -2
- package/src/invitations.d.ts.map +1 -1
- package/src/invitations.js +7 -3
- package/src/marshal-contexts.d.ts +5 -3
- package/src/marshal-contexts.d.ts.map +1 -1
- package/src/marshal-contexts.js +2 -0
- package/src/offerWatcher.d.ts +2 -0
- package/src/offerWatcher.d.ts.map +1 -1
- package/src/offerWatcher.js +2 -0
- package/src/offers.d.ts +2 -1
- package/src/offers.d.ts.map +1 -1
- package/src/offers.js +1 -1
- package/src/proposals/upgrade-wallet-factory2-proposal.js +6 -1
- package/src/proposals/upgrade-walletFactory-proposal.js +3 -0
- package/src/smartWallet.d.ts +9 -4
- package/src/smartWallet.d.ts.map +1 -1
- package/src/smartWallet.js +5 -1
- package/src/utils.d.ts +12 -2
- package/src/utils.d.ts.map +1 -1
- package/src/utils.js +5 -0
- package/src/walletFactory.d.ts +6 -0
- package/src/walletFactory.d.ts.map +1 -1
- package/src/walletFactory.js +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/smart-wallet",
|
|
3
|
-
"version": "0.5.4-dev-
|
|
3
|
+
"version": "0.5.4-dev-b084a06.0.b084a06",
|
|
4
4
|
"description": "Wallet contract",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"lint:eslint": "yarn run -T eslint ."
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@agoric/casting": "0.4.3-dev-
|
|
22
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
23
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
21
|
+
"@agoric/casting": "0.4.3-dev-b084a06.0.b084a06",
|
|
22
|
+
"@agoric/cosmic-proto": "0.4.1-dev-b084a06.0.b084a06",
|
|
23
|
+
"@agoric/swingset-vat": "0.32.3-dev-b084a06.0.b084a06",
|
|
24
24
|
"@endo/bundle-source": "^4.1.2",
|
|
25
25
|
"@endo/captp": "^4.4.8",
|
|
26
26
|
"@endo/init": "^1.1.12",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"import-meta-resolve": "^4.1.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
32
|
-
"@agoric/internal": "0.3.3-dev-
|
|
33
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
34
|
-
"@agoric/store": "0.9.3-dev-
|
|
35
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
36
|
-
"@agoric/vats": "0.15.2-dev-
|
|
37
|
-
"@agoric/vow": "0.1.1-dev-
|
|
38
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
39
|
-
"@agoric/zone": "0.2.3-dev-
|
|
31
|
+
"@agoric/ertp": "0.16.3-dev-b084a06.0.b084a06",
|
|
32
|
+
"@agoric/internal": "0.3.3-dev-b084a06.0.b084a06",
|
|
33
|
+
"@agoric/notifier": "0.6.3-dev-b084a06.0.b084a06",
|
|
34
|
+
"@agoric/store": "0.9.3-dev-b084a06.0.b084a06",
|
|
35
|
+
"@agoric/vat-data": "0.5.3-dev-b084a06.0.b084a06",
|
|
36
|
+
"@agoric/vats": "0.15.2-dev-b084a06.0.b084a06",
|
|
37
|
+
"@agoric/vow": "0.1.1-dev-b084a06.0.b084a06",
|
|
38
|
+
"@agoric/zoe": "0.26.3-dev-b084a06.0.b084a06",
|
|
39
|
+
"@agoric/zone": "0.2.3-dev-b084a06.0.b084a06",
|
|
40
40
|
"@endo/errors": "^1.2.13",
|
|
41
41
|
"@endo/eventual-send": "^1.3.4",
|
|
42
42
|
"@endo/far": "^1.1.14",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
74
|
"typeCoverage": {
|
|
75
|
-
"atLeast": 93.
|
|
75
|
+
"atLeast": 93.84
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": "^20.9 || ^22.11"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "b084a067b866127f7d05c66e6865750132c4a7d8"
|
|
81
81
|
}
|
package/src/index.js
CHANGED
package/src/invitations.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type AgoricContractInvitationSpec = {
|
|
|
20
20
|
*/
|
|
21
21
|
export type ContractInvitationSpec = {
|
|
22
22
|
source: "contract";
|
|
23
|
-
instance: Instance
|
|
23
|
+
instance: Instance<any>;
|
|
24
24
|
publicInvitationMaker: string;
|
|
25
25
|
invitationArgs?: any[];
|
|
26
26
|
};
|
|
@@ -32,7 +32,7 @@ export type ContractInvitationSpec = {
|
|
|
32
32
|
*/
|
|
33
33
|
export type PurseInvitationSpec = {
|
|
34
34
|
source: "purse";
|
|
35
|
-
instance: Instance
|
|
35
|
+
instance: Instance<any>;
|
|
36
36
|
description: string;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
@@ -46,8 +46,14 @@ export type ContinuingInvitationSpec = {
|
|
|
46
46
|
invitationArgs?: any[];
|
|
47
47
|
};
|
|
48
48
|
export type InvitationsPurseQuery = Pick<InvitationDetails, "description" | "instance">;
|
|
49
|
+
import type { ZoeService } from '@agoric/zoe';
|
|
50
|
+
import type { ERef } from '@agoric/vow';
|
|
49
51
|
import type { NameHub } from '@agoric/vats';
|
|
52
|
+
import type { Brand } from '@agoric/ertp';
|
|
50
53
|
import type { InvitationDetails } from '@agoric/zoe';
|
|
54
|
+
import type { Purse } from '@agoric/ertp';
|
|
51
55
|
import type { InvitationMakers } from './types.js';
|
|
56
|
+
import type { Invitation } from '@agoric/zoe';
|
|
57
|
+
import type { Instance } from '@agoric/zoe/src/zoeService/utils.js';
|
|
52
58
|
import type { OfferId } from './offers.js';
|
|
53
59
|
//# sourceMappingURL=invitations.d.ts.map
|
package/src/invitations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["invitations.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["invitations.js"],"names":[],"mappings":"AAkFO,2CANI,KAAK,UAAU,CAAC,eAChB,KAAK,OAAO,CAAC,mBACb,MAAM,KAAK,CAAC,oBACZ,MAAM,KAAK,EAAE,iBAAiB,CAAC,6BAC/B,CAAC,WAAW,EAAE,MAAM,KAAK,gBAAgB,UAoFhC,cAAc,KAAK,KAAK,UAAU,CAAC,CAgBtD;;;;6BA9JY,4BAA4B,GAClC,sBAAsB,GACtB,mBAAmB,GACnB,wBAAwB;;;;;;;;2CAKlB;IACR,MAAM,EAAE,gBAAgB,CAAC;IACzB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;CACtD;;;;qCAQS;IACR,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC;CACxB;;;;;;;kCAGS;IACR,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;;;;;uCAOS;IACR,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC;CACxB;oCAMS,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,UAAU,CAAC;gCA/DJ,aAAa;0BAIlD,aAAa;6BAHV,cAAc;2BAIhB,cAAc;uCALsB,aAAa;2BAMjD,cAAc;sCAJH,YAAY;gCAFa,aAAa;8BAG9C,qCAAqC;6BAJtC,aAAa"}
|
package/src/invitations.js
CHANGED
|
@@ -7,9 +7,13 @@ import { shape } from './typeGuards.js';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @import {OfferId} from './offers.js';
|
|
10
|
-
* @import {InvitationDetails} from '@agoric/zoe';
|
|
10
|
+
* @import {Invitation, InvitationDetails, ZoeService} from '@agoric/zoe';
|
|
11
11
|
* @import {NameHub} from '@agoric/vats';
|
|
12
12
|
* @import {InvitationMakers} from './types.js';
|
|
13
|
+
* @import {Instance} from '@agoric/zoe/src/zoeService/utils.js';
|
|
14
|
+
* @import {ERef} from '@agoric/vow';
|
|
15
|
+
* @import {Brand} from '@agoric/ertp';
|
|
16
|
+
* @import {Purse} from '@agoric/ertp';
|
|
13
17
|
*/
|
|
14
18
|
|
|
15
19
|
// A safety limit
|
|
@@ -38,7 +42,7 @@ const MAX_PIPE_LENGTH = 2;
|
|
|
38
42
|
*
|
|
39
43
|
* @typedef {{
|
|
40
44
|
* source: 'contract';
|
|
41
|
-
* instance: Instance
|
|
45
|
+
* instance: Instance<any>;
|
|
42
46
|
* publicInvitationMaker: string;
|
|
43
47
|
* invitationArgs?: any[];
|
|
44
48
|
* }} ContractInvitationSpec
|
|
@@ -46,7 +50,7 @@ const MAX_PIPE_LENGTH = 2;
|
|
|
46
50
|
*
|
|
47
51
|
* @typedef {{
|
|
48
52
|
* source: 'purse';
|
|
49
|
-
* instance: Instance
|
|
53
|
+
* instance: Instance<any>;
|
|
50
54
|
* description: string;
|
|
51
55
|
* }} PurseInvitationSpec
|
|
52
56
|
* the invitation is already in your Zoe "invitation" purse so we need to query
|
|
@@ -3,14 +3,14 @@ export function makeExportContext(): {
|
|
|
3
3
|
fromCapData: import("@endo/marshal").FromCapData<string>;
|
|
4
4
|
serialize: import("@endo/marshal").ToCapData<string>;
|
|
5
5
|
unserialize: import("@endo/marshal").FromCapData<string>;
|
|
6
|
-
savePurseActions: (val:
|
|
7
|
-
savePaymentActions: (val:
|
|
6
|
+
savePurseActions: (val: Purse) => void;
|
|
7
|
+
savePaymentActions: (val: Payment) => void;
|
|
8
8
|
/**
|
|
9
9
|
* @param {number} id
|
|
10
10
|
* @param {Purse} purse
|
|
11
11
|
*/
|
|
12
12
|
initPurseId: (id: number, purse: Purse) => void;
|
|
13
|
-
purseEntries: (keyPatt?: import("@endo/patterns").Pattern, valuePatt?: import("@endo/patterns").Pattern) => Iterable<[number,
|
|
13
|
+
purseEntries: (keyPatt?: import("@endo/patterns").Pattern, valuePatt?: import("@endo/patterns").Pattern) => Iterable<[number, Purse]>;
|
|
14
14
|
/**
|
|
15
15
|
* @param {BoardId} id
|
|
16
16
|
* @param {RemotableObject} val
|
|
@@ -84,6 +84,8 @@ export type IdTable<Slot extends Key, Val extends PassableCap> = {
|
|
|
84
84
|
};
|
|
85
85
|
export type ExportContext = ReturnType<typeof makeExportContext>;
|
|
86
86
|
export type ImportContext = ReturnType<typeof makeImportContext>;
|
|
87
|
+
import type { Purse } from '@agoric/ertp';
|
|
88
|
+
import type { Payment } from '@agoric/ertp';
|
|
87
89
|
import type { BoardId } from '@agoric/vats/src/lib-board.js';
|
|
88
90
|
import type { RemotableObject } from '@endo/marshal';
|
|
89
91
|
import type { PassableCap } from '@endo/marshal';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marshal-contexts.d.ts","sourceRoot":"","sources":["marshal-contexts.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"marshal-contexts.d.ts","sourceRoot":"","sources":["marshal-contexts.js"],"names":[],"mappings":"AA0HO;;;;;;;IAoFH;;;OAGG;sBAFQ,MAAM,SACN,KAAK;;IAMhB;;;OAGG;sBAFQ,OAAO,OACP,eAAe;IAK1B;;;OAGG;wBAFQ,OAAO,OACP,eAAe;EAW7B;AAcM,iDAFI,CAAC,KAAK,EAAE,MAAM,KAAK,WAAW;IA8FrC;;;OAGG;sBAFQ,OAAO,OACP,WAAW;IAKtB;;;OAGG;wBAFQ,OAAO,OACP,WAAW;;;;;;;;;;;;;;;;;;;;;;;EAYzB;AA4BM,2CAHI,MAAM,OACN,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,OAapC;;;;uBAlXgD,CAAC,SAApC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAE,IACnC,GAAG,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,EAAE;;;;qBAGtB,CAAC,SAAV,MAAQ,IACR,GAAG,CAAC,IAAI,MAAM,EAAE;;;;;sBA0CoB,CAAC,SAApC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAE,IACnC,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO;;;;;qBAGvB,GAAG,GAAG,IAAI,GAAG,KAAK;;;;oBAKZ,IAAI,SAAV,GAAK,EACS,GAAG,SAAjB,WAAa,IACb;IACR,MAAM,EAAE,SAAS,IAAI,EAAE,GAAG,CAAC,CAAC;IAC5B,KAAK,EAAE,SAAS,GAAG,EAAE,IAAI,CAAC,CAAC;CAC5B;4BAgJU,UAAU,CAAC,OAAO,iBAAiB,CAAC;4BA+HpC,UAAU,CAAC,OAAO,iBAAiB,CAAC;2BA7V1B,cAAc;6BACZ,cAAc;6BAFd,+BAA+B;qCAHV,eAAe;iCAAf,eAAe;yBACxC,gBAAgB;8BACX,4BAA4B"}
|
package/src/marshal-contexts.js
CHANGED
|
@@ -11,6 +11,8 @@ import { DEFAULT_PREFIX } from '@agoric/vats/src/lib-board.js';
|
|
|
11
11
|
* @import {Key} from '@endo/patterns';
|
|
12
12
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
13
13
|
* @import {BoardId} from '@agoric/vats/src/lib-board.js';
|
|
14
|
+
* @import {Purse} from '@agoric/ertp';
|
|
15
|
+
* @import {Payment} from '@agoric/ertp';
|
|
14
16
|
*/
|
|
15
17
|
|
|
16
18
|
/**
|
package/src/offerWatcher.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ import type { UserSeat } from '@agoric/zoe';
|
|
|
48
48
|
import type { PaymentPKeywordRecord } from '@agoric/zoe';
|
|
49
49
|
import type { Baggage } from '@agoric/vat-data';
|
|
50
50
|
import type { Zone } from '@agoric/base-zone';
|
|
51
|
+
import type { Payment } from '@agoric/ertp';
|
|
52
|
+
import type { Amount } from '@agoric/ertp';
|
|
51
53
|
import type { OfferSpec } from './offers.js';
|
|
52
54
|
import type { InvitationMakers } from './types.js';
|
|
53
55
|
import type { PublicSubscribers } from './types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offerWatcher.d.ts","sourceRoot":"","sources":["offerWatcher.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"offerWatcher.d.ts","sourceRoot":"","sources":["offerWatcher.js"],"names":[],"mappings":"AAwGO,iDADK,QAAQ,cAKP,eAAe,QACf,QAAQ,uDAiBpB;AAoCM,6CAJI,OAAO,YACP,QAAQ,QACR,IAAI;aAkDW,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC;;;QAgBvD;;WAEG;yCADQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;QAQlC;;;;;WAKG;sCAJQ,MAAM,oBACN,OAAO,KAAK,CAAC,oBACb,gBAAgB,qBAChB,iBAAiB;QAkB5B,uDAAuD;8BAA3C,QAAQ,GAAG,qBAAqB;QAoC5C;;;;;;WAMG;yBADQ,KAAK;;IAclB,gDAAgD;oBAArC,eAAe,CAAC,gBAAgB,CAAC;IA8B5C,+CAA+C;mBAApC,eAAe,CAAC,eAAe,CAAC;IAsC3C,iDAAiD;qBAAtC,eAAe,CAAC,iBAAiB,CAAC;GA6BlD;;;;gCAvXkB,CAAC,oBACP,eAAe,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;8BAI7B;IACR,aAAa,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC7C,eAAe,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC7C,cAAc,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;CAC5D;+BAiXU,UAAU,CAAC,OAAO,mBAAmB,CAAC;2BACtC,UAAU,CAAC,gBAAgB,CAAC;8BAtYV,aAAa;8BAE2B,aAAa;2CAAb,aAAa;6BAH3D,kBAAkB;0BAErB,mBAAmB;6BAKhB,cAAc;4BACf,cAAc;+BAZX,aAAa;sCAQN,YAAY;uCACX,YAAY;8BAPrB,kBAAkB;2CADL,YAAY;oCAEnB,4BAA4B"}
|
package/src/offerWatcher.js
CHANGED
|
@@ -27,6 +27,8 @@ import { UNPUBLISHED_RESULT } from './offers.js';
|
|
|
27
27
|
* @import {InvitationMakers} from './types.js';
|
|
28
28
|
* @import {PublicSubscribers} from './types.js';
|
|
29
29
|
* @import {UpgradeDisconnection} from '@agoric/internal/src/upgrade-api.js';
|
|
30
|
+
* @import {Payment} from '@agoric/ertp';
|
|
31
|
+
* @import {Amount} from '@agoric/ertp';
|
|
30
32
|
*/
|
|
31
33
|
|
|
32
34
|
/**
|
package/src/offers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @import {Proposal} from '@agoric/zoe';
|
|
2
|
+
* @import {AmountKeywordRecord, Proposal} from '@agoric/zoe';
|
|
3
3
|
* @import {Passable} from '@endo/pass-style';
|
|
4
4
|
* @import {InvitationSpec} from './invitations.js';
|
|
5
5
|
*/
|
|
@@ -80,4 +80,5 @@ export type OfferStatus = OfferSpec & {
|
|
|
80
80
|
import type { Passable } from '@endo/pass-style';
|
|
81
81
|
import type { InvitationSpec } from './invitations.js';
|
|
82
82
|
import type { Proposal } from '@agoric/zoe';
|
|
83
|
+
import type { AmountKeywordRecord } from '@agoric/zoe';
|
|
83
84
|
//# sourceMappingURL=offers.d.ts.map
|
package/src/offers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["offers.js"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AAEH;;;;;;GAMG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;;;;GAWG;AAEH,kEAAkE;AAClE,iCAAkC,aAAa,CAAC;sBAnCnC,MAAM,GAAG,MAAM;;;;;UAKd,MAAM;;;;;;;;iCAOP;IACR,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB;;;;;;wBAIS;IACR,EAAE,EAAE,OAAO,CAAC;IACZ,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;0BAUS,SAAS,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EACH,OAAO,GACP,OAAO,kBAAkB,GACzB;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;8BAnDuB,kBAAkB;oCACZ,kBAAkB;
|
|
1
|
+
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["offers.js"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AAEH;;;;;;GAMG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;;;;GAWG;AAEH,kEAAkE;AAClE,iCAAkC,aAAa,CAAC;sBAnCnC,MAAM,GAAG,MAAM;;;;;UAKd,MAAM;;;;;;;;iCAOP;IACR,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB;;;;;;wBAIS;IACR,EAAE,EAAE,OAAO,CAAC;IACZ,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;0BAUS,SAAS,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EACH,OAAO,GACP,OAAO,kBAAkB,GACzB;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;8BAnDuB,kBAAkB;oCACZ,kBAAkB;8BAFH,aAAa;yCAAb,aAAa"}
|
package/src/offers.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
/// <reference types="@agoric/vats/src/core/types-ambient.js" />
|
|
3
2
|
|
|
4
3
|
import { E } from '@endo/far';
|
|
5
4
|
import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
|
|
6
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
8
|
+
* @import {ChainBootstrapSpace} from '@agoric/vats/src/core/types.js';
|
|
9
|
+
* @import {VatSourceRef} from '@agoric/vats/src/core/types.js';
|
|
10
|
+
*/
|
|
11
|
+
|
|
7
12
|
/**
|
|
8
13
|
* @param {BootstrapPowers & ChainBootstrapSpace} powers
|
|
9
14
|
* @param {object} options
|
|
@@ -7,6 +7,9 @@ import { allValues } from '@agoric/internal';
|
|
|
7
7
|
/**
|
|
8
8
|
* @import {NameHub} from '@agoric/vats';
|
|
9
9
|
* @import {BootstrapManifest} from '@agoric/vats/src/core/lib-boot.js';
|
|
10
|
+
* @import {ERef} from '@agoric/vow';
|
|
11
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
12
|
+
* @import {VatSourceRef} from '@agoric/vats/src/core/types.js';
|
|
10
13
|
*/
|
|
11
14
|
|
|
12
15
|
console.warn('upgrade-walletFactory-proposal.js module evaluating');
|
package/src/smartWallet.d.ts
CHANGED
|
@@ -53,18 +53,18 @@ export function prepareSmartWallet(baggage: Baggage, shared: SharedParams, setTe
|
|
|
53
53
|
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
54
54
|
}>;
|
|
55
55
|
/** @deprecated use getPublicTopics */
|
|
56
|
-
getCurrentSubscriber():
|
|
56
|
+
getCurrentSubscriber(): import("@agoric/notifier").Subscriber<CurrentWalletRecord>;
|
|
57
57
|
/** @deprecated use getPublicTopics */
|
|
58
|
-
getUpdatesSubscriber():
|
|
58
|
+
getUpdatesSubscriber(): import("@agoric/notifier").Subscriber<UpdateRecord>;
|
|
59
59
|
getPublicTopics(): {
|
|
60
60
|
current: {
|
|
61
61
|
description: string;
|
|
62
|
-
subscriber:
|
|
62
|
+
subscriber: import("@agoric/notifier").Subscriber<CurrentWalletRecord>;
|
|
63
63
|
storagePath: Promise<string>;
|
|
64
64
|
};
|
|
65
65
|
updates: {
|
|
66
66
|
description: string;
|
|
67
|
-
subscriber:
|
|
67
|
+
subscriber: import("@agoric/notifier").Subscriber<UpdateRecord>;
|
|
68
68
|
storagePath: Promise<string>;
|
|
69
69
|
};
|
|
70
70
|
};
|
|
@@ -223,6 +223,7 @@ export type SmartWalletTestJig = {
|
|
|
223
223
|
export type SmartWallet = EReturn<EReturn<typeof prepareSmartWallet>>;
|
|
224
224
|
import type { Baggage } from '@agoric/vat-data';
|
|
225
225
|
import type { SetTestJig } from '@agoric/zoe';
|
|
226
|
+
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
226
227
|
import type { ERemote } from '@agoric/internal';
|
|
227
228
|
import type { CapData } from '@endo/marshal';
|
|
228
229
|
import type { Payment } from '@agoric/ertp';
|
|
@@ -231,8 +232,11 @@ import type { InvokeEntryMessage } from './offers.js';
|
|
|
231
232
|
import type { OfferSpec } from './offers.js';
|
|
232
233
|
import type { OfferId } from './offers.js';
|
|
233
234
|
import type { MakeOfferWatcher } from './offerWatcher.js';
|
|
235
|
+
import type { Invitation } from '@agoric/zoe';
|
|
236
|
+
import type { ERef } from '@agoric/vow';
|
|
234
237
|
import type { Brand } from '@agoric/ertp';
|
|
235
238
|
import type { OfferStatus } from './offers.js';
|
|
239
|
+
import type { DisplayInfo } from '@agoric/ertp';
|
|
236
240
|
import type { Issuer } from '@agoric/ertp';
|
|
237
241
|
import type { Petname } from './types.js';
|
|
238
242
|
import type { Bank } from '@agoric/vats/src/vat-bank.js';
|
|
@@ -242,6 +246,7 @@ import type { Purse } from '@agoric/ertp';
|
|
|
242
246
|
import type { MapStore } from '@agoric/store';
|
|
243
247
|
import type { NameHub } from '@agoric/vats';
|
|
244
248
|
import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
249
|
+
import type { ZoeService } from '@agoric/zoe';
|
|
245
250
|
import type { InvitationMakers } from './types.js';
|
|
246
251
|
import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
247
252
|
import type { UserSeat } from '@agoric/zoe';
|
package/src/smartWallet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartWallet.d.ts","sourceRoot":"","sources":["smartWallet.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"smartWallet.d.ts","sourceRoot":"","sources":["smartWallet.js"],"names":[],"mappings":"AAuRA,4CAA6C,wBAAwB,CAAC;AA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AkB;gCAV8G,aAAa;iCAczI,0CAA0C;6BAnBtC,kBAAkB;6BAiB1B,eAAe;6BAfe,cAAc;4BAAd,cAAc;wCAMY,aAAa;+BAAb,aAAa;6BAAb,aAAa;sCAC5D,mBAAmB;gCAJoG,aAAa;0BAehJ,aAAa;2BAlBoB,cAAc;iCAMY,aAAa;iCAUjE,cAAc;4BAhBY,cAAc;6BAQ5C,YAAY;0BACf,8BAA8B;4BAXnB,kBAAkB;uCAKsG,aAAa;2BAH/G,cAAc;8BAC7B,eAAe;6BAS9B,cAAc;iCAXV,iDAAiD;gCAI2E,aAAa;sCAQpI,YAAY;iCACjB,6CAA6C;8BAT+E,aAAa;6BAE7I,WAAW"}
|
package/src/smartWallet.js
CHANGED
|
@@ -51,7 +51,8 @@ import { prepareOfferWatcher, makeWatchOfferOutcomes } from './offerWatcher.js';
|
|
|
51
51
|
* @import {EMarshaller} from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
52
52
|
* @import {Amount, Brand, Issuer, Payment, Purse} from '@agoric/ertp';
|
|
53
53
|
* @import {WeakMapStore, MapStore} from '@agoric/store'
|
|
54
|
-
* @import {
|
|
54
|
+
* @import {Notifier} from '@agoric/notifier';
|
|
55
|
+
* @import {InvitationAmount, InvitationDetails, PaymentPKeywordRecord, Proposal, UserSeat, SetTestJig, Invitation, AmountKeywordRecord, ZoeService} from '@agoric/zoe';
|
|
55
56
|
* @import {CopyRecord} from '@endo/pass-style';
|
|
56
57
|
* @import {EReturn} from '@endo/far';
|
|
57
58
|
* @import {OfferId, OfferStatus, OfferSpec, InvokeEntryMessage, ResultPlan} from './offers.js';
|
|
@@ -64,6 +65,9 @@ import { prepareOfferWatcher, makeWatchOfferOutcomes } from './offerWatcher.js';
|
|
|
64
65
|
* @import {Baggage} from '@agoric/vat-data';
|
|
65
66
|
* @import {PublicSubscribers} from './types.js';
|
|
66
67
|
* @import {CapData} from '@endo/marshal';
|
|
68
|
+
* @import {DisplayInfo} from '@agoric/ertp';
|
|
69
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
70
|
+
* @import {ERef} from '@agoric/vow';
|
|
67
71
|
*/
|
|
68
72
|
|
|
69
73
|
const trace = makeTracer('SmrtWlt');
|
package/src/utils.d.ts
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
* @import {OfferId, OfferStatus} from './offers.js';
|
|
3
3
|
* @import {UpdateRecord} from './smartWallet.js';
|
|
4
4
|
* @import {Follower} from '@agoric/casting';
|
|
5
|
+
* @import {Subscriber} from '@agoric/notifier';
|
|
5
6
|
* @import {PublicSubscribers} from './types.js';
|
|
6
7
|
* @import {TopicsRecord} from '@agoric/zoe/src/contractSupport/index.js';
|
|
8
|
+
* @import {Instance} from '@agoric/zoe';
|
|
9
|
+
* @import {Brand} from '@agoric/ertp';
|
|
10
|
+
* @import {Amount} from '@agoric/ertp';
|
|
11
|
+
* @import {ERef} from '@agoric/vow';
|
|
7
12
|
*/
|
|
8
13
|
export const NO_SMART_WALLET_ERROR: "no smart wallet";
|
|
9
14
|
export function makeWalletStateCoalescer(invitationBrand?: Brand<"set">): {
|
|
@@ -14,7 +19,7 @@ export function makeWalletStateCoalescer(invitationBrand?: Brand<"set">): {
|
|
|
14
19
|
instance: Instance;
|
|
15
20
|
}>;
|
|
16
21
|
offerStatuses: Map<OfferId, OfferStatus>;
|
|
17
|
-
balances: Map<
|
|
22
|
+
balances: Map<Brand, Amount>;
|
|
18
23
|
};
|
|
19
24
|
update: (updateRecord: UpdateRecord | {}) => void;
|
|
20
25
|
};
|
|
@@ -25,14 +30,19 @@ export function coalesceUpdates(updates: ERef<Subscriber<UpdateRecord>>, invitat
|
|
|
25
30
|
instance: Instance;
|
|
26
31
|
}>;
|
|
27
32
|
offerStatuses: Map<OfferId, OfferStatus>;
|
|
28
|
-
balances: Map<
|
|
33
|
+
balances: Map<Brand, Amount>;
|
|
29
34
|
};
|
|
30
35
|
export function assertHasData(follower: Follower<any>): Promise<void>;
|
|
31
36
|
export function objectMapStoragePath(subscribers?: PublicSubscribers | TopicsRecord): ERef<Record<string, string>> | null;
|
|
32
37
|
export type CoalescedWalletState = ReturnType<typeof makeWalletStateCoalescer>["state"];
|
|
38
|
+
import type { Brand } from '@agoric/ertp';
|
|
33
39
|
import type { OfferId } from './offers.js';
|
|
40
|
+
import type { Instance } from '@agoric/zoe';
|
|
34
41
|
import type { OfferStatus } from './offers.js';
|
|
42
|
+
import type { Amount } from '@agoric/ertp';
|
|
35
43
|
import type { UpdateRecord } from './smartWallet.js';
|
|
44
|
+
import type { Subscriber } from '@agoric/notifier';
|
|
45
|
+
import type { ERef } from '@agoric/vow';
|
|
36
46
|
import type { Follower } from '@agoric/casting';
|
|
37
47
|
import type { PublicSubscribers } from './types.js';
|
|
38
48
|
import type { TopicsRecord } from '@agoric/zoe/src/contractSupport/index.js';
|
package/src/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,oCAAqC,iBAAiB,CAAC;AAKhD,2DADK,MAAM,KAAK,CAAC;;;wBAaH,OAAO;yBACN,MAAM;sBACT,QAAQ;;;;;2BAOd,YAAY,GAAG,EAAE;EA+D7B;AAaM,yCAHI,KAAK,WAAW,YAAY,CAAC,CAAC,oBAC9B,MAAM,KAAK,CAAC;;oBAnFF,OAAO;qBACN,MAAM;kBACT,QAAQ;;;;EA4F1B;AAMM,wCAHI,SAAS,GAAG,CAAC,iBAYvB;AAQM,mDAHI,iBAAiB,GAAG,YAAY,GAC9B,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAY/C;mCAtDa,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,OAAO,CAAC;2BA/F1C,cAAc;6BAPC,aAAa;8BAMzB,aAAa;iCAND,aAAa;4BAQ3B,cAAc;kCAPR,kBAAkB;gCAEpB,kBAAkB;0BAMxB,aAAa;8BAPT,iBAAiB;uCAER,YAAY;kCACjB,0CAA0C"}
|
package/src/utils.js
CHANGED
|
@@ -6,8 +6,13 @@ import { E } from '@endo/far';
|
|
|
6
6
|
* @import {OfferId, OfferStatus} from './offers.js';
|
|
7
7
|
* @import {UpdateRecord} from './smartWallet.js';
|
|
8
8
|
* @import {Follower} from '@agoric/casting';
|
|
9
|
+
* @import {Subscriber} from '@agoric/notifier';
|
|
9
10
|
* @import {PublicSubscribers} from './types.js';
|
|
10
11
|
* @import {TopicsRecord} from '@agoric/zoe/src/contractSupport/index.js';
|
|
12
|
+
* @import {Instance} from '@agoric/zoe';
|
|
13
|
+
* @import {Brand} from '@agoric/ertp';
|
|
14
|
+
* @import {Amount} from '@agoric/ertp';
|
|
15
|
+
* @import {ERef} from '@agoric/vow';
|
|
11
16
|
*/
|
|
12
17
|
|
|
13
18
|
export const NO_SMART_WALLET_ERROR = 'no smart wallet';
|
package/src/walletFactory.d.ts
CHANGED
|
@@ -55,7 +55,12 @@ export type WalletReviver = {
|
|
|
55
55
|
export type start = typeof prepare;
|
|
56
56
|
import type { SmartWallet } from './smartWallet.js';
|
|
57
57
|
import type { NameAdmin } from '@agoric/vats';
|
|
58
|
+
import type { ERef } from '@agoric/vow';
|
|
59
|
+
import type { Brand } from '@agoric/ertp';
|
|
60
|
+
import type { DisplayInfo } from '@agoric/ertp';
|
|
61
|
+
import type { Issuer } from '@agoric/ertp';
|
|
58
62
|
import type { Petname } from './types.js';
|
|
63
|
+
import type { ZCF } from '@agoric/zoe';
|
|
59
64
|
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
60
65
|
import type { ERemote } from '@agoric/internal';
|
|
61
66
|
import type { ScopedBridgeManager } from '@agoric/vats';
|
|
@@ -64,4 +69,5 @@ import type { Bank } from '@agoric/vats/src/vat-bank.js';
|
|
|
64
69
|
import type { NameHub } from '@agoric/vats';
|
|
65
70
|
import type { Board } from '@agoric/vats';
|
|
66
71
|
import type { AssetDescriptor } from '@agoric/vats/src/vat-bank.js';
|
|
72
|
+
import type { IterableEachTopic } from '@agoric/notifier';
|
|
67
73
|
//# sourceMappingURL=walletFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletFactory.d.ts","sourceRoot":"","sources":["walletFactory.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"walletFactory.d.ts","sourceRoot":"","sources":["walletFactory.js"],"names":[],"mappings":";;;;;AAoDA,gEAKE;AAYK,6CAJI,MAAM,UACN,WAAW,uBACX,KAAK,SAAS,CAAC,oBAezB;AAWM,kDAFI,cAAc;IAyCrB,2BAA2B;iBAAf,KAAK;IAEjB,2BAA2B;iBAAf,KAAK;eArCP,KAAK;qBACC,WAAW;gBAChB,MAAM;iBACL,OAAO;;;eAHT,KAAK;qBACC,WAAW;gBAChB,MAAM;iBACL,OAAO;;EAuCtB;AAmCM,6BARI,IAAI,wBAAwB,CAAC,eAC7B;IACN,WAAW,EAAE,QAAQ,WAAW,CAAC,CAAC;IAClC,mBAAmB,CAAC,EAAE,KAAK,oBAAoB,QAAQ,CAAC,CAAC,CAAC;IAC1D,aAAa,CAAC,EAAE,KAAK,aAAa,CAAC,CAAC;CACrC,WACO,OAAO;;QAyHZ;;;;;;;WAOG;oCANQ,MAAM,QACN,KAAK,IAAI,CAAC,uBACV,KAAK,SAAS,CAAC,GACb,OAAO,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;;GAyDhE;uCApNY;IACR,WAAW,EAAE,KAAK,OAAO,CAAC,CAAC;IAC3B,KAAK,EAAE,KAAK,KAAK,CAAC,CAAC;IACnB,cAAc,EAAE,cAAc,CAAC;CAChC;6BAGS;IACR,oBAAoB,EAAE,MAAM,KAAK,kBAAkB,eAAe,CAAC,CAAC,CAAC;CACtE;uBAGS,OAAO;4BAEP;IACR,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;IACxD,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,CAAC;CAC1C;oBAwMU,OAAO,OAAO;iCA5UsB,kBAAkB;+BACxC,cAAc;0BAUnB,aAAa;2BACZ,cAAc;iCACR,cAAc;4BACnB,cAAc;6BAZb,YAAY;yBAQhB,aAAa;iCAdL,0CAA0C;6BAD9C,kBAAkB;yCAUN,cAAc;6BAC1B,kBAAkB;0BAErB,8BAA8B;6BAV3B,cAAc;2BAKhB,cAAc;qCACJ,8BAA8B;uCAL5B,kBAAkB"}
|
package/src/walletFactory.js
CHANGED
|
@@ -24,6 +24,7 @@ import { shape } from './typeGuards.js';
|
|
|
24
24
|
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
25
25
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
26
26
|
* @import {NameHub} from '@agoric/vats';
|
|
27
|
+
* @import {IterableEachTopic} from '@agoric/notifier';
|
|
27
28
|
* @import {SmartWallet, SmartWalletTestJig} from './smartWallet.js';
|
|
28
29
|
* @import {NameAdmin} from '@agoric/vats';
|
|
29
30
|
* @import {Petname} from './types.js';
|
|
@@ -34,6 +35,11 @@ import { shape } from './typeGuards.js';
|
|
|
34
35
|
* @import {WalletBridgeMsg} from './types.js';
|
|
35
36
|
* @import {Bank} from '@agoric/vats/src/vat-bank.js';
|
|
36
37
|
* @import {TestJigKit} from '@agoric/zoe/src/contractSupport/testJigHelpers.js';
|
|
38
|
+
* @import {ZCF} from '@agoric/zoe';
|
|
39
|
+
* @import {ERef} from '@agoric/vow';
|
|
40
|
+
* @import {Brand} from '@agoric/ertp';
|
|
41
|
+
* @import {DisplayInfo} from '@agoric/ertp';
|
|
42
|
+
* @import {Issuer} from '@agoric/ertp';
|
|
37
43
|
*/
|
|
38
44
|
|
|
39
45
|
const trace = makeTracer('WltFct');
|