@agoric/smart-wallet 0.5.4-upgrade-19-devnet-dev-5428c4d.0 → 0.5.4-upgrade-21-dev-07d4845.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 +28 -28
- package/src/invitations.d.ts +2 -2
- package/src/invitations.d.ts.map +1 -1
- package/src/invitations.js +5 -2
- package/src/offerWatcher.d.ts +3 -1
- package/src/offerWatcher.d.ts.map +1 -1
- package/src/offerWatcher.js +1 -0
- package/src/offers.d.ts +4 -0
- package/src/offers.d.ts.map +1 -1
- package/src/offers.js +4 -0
- package/src/smartWallet.d.ts +8 -0
- package/src/smartWallet.d.ts.map +1 -1
- package/src/smartWallet.js +2 -0
- package/src/types.d.ts +2 -1
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +3 -3
- package/src/walletFactory.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/smart-wallet",
|
|
3
|
-
"version": "0.5.4-upgrade-
|
|
3
|
+
"version": "0.5.4-upgrade-21-dev-07d4845.0+07d4845",
|
|
4
4
|
"description": "Wallet contract",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "yarn build:bundles",
|
|
9
9
|
"build:bundles": "node ./scripts/build-bundles.js",
|
|
10
|
-
"prepack": "tsc --build tsconfig.build.json",
|
|
10
|
+
"prepack": "yarn run -T tsc --build tsconfig.build.json",
|
|
11
11
|
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
|
|
12
12
|
"test": "ava",
|
|
13
13
|
"test:xs": "exit 0",
|
|
14
|
-
"lint": "run-s --continue-on-error lint:*",
|
|
14
|
+
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
15
15
|
"lint-fix": "yarn lint:eslint --fix",
|
|
16
|
-
"lint:types": "tsc",
|
|
17
|
-
"lint:eslint": "eslint ."
|
|
16
|
+
"lint:types": "yarn run -T tsc",
|
|
17
|
+
"lint:eslint": "yarn run -T eslint ."
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@agoric/casting": "
|
|
21
|
-
"@agoric/cosmic-proto": "
|
|
22
|
-
"@agoric/swingset-vat": "
|
|
23
|
-
"@endo/bundle-source": "^
|
|
24
|
-
"@endo/captp": "^4.4.
|
|
25
|
-
"@endo/init": "^1.1.
|
|
20
|
+
"@agoric/casting": "workspace:*",
|
|
21
|
+
"@agoric/cosmic-proto": "workspace:*",
|
|
22
|
+
"@agoric/swingset-vat": "workspace:*",
|
|
23
|
+
"@endo/bundle-source": "^4.0.0",
|
|
24
|
+
"@endo/captp": "^4.4.5",
|
|
25
|
+
"@endo/init": "^1.1.9",
|
|
26
26
|
"ava": "^5.3.0",
|
|
27
27
|
"import-meta-resolve": "^4.1.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@agoric/ertp": "
|
|
31
|
-
"@agoric/internal": "
|
|
32
|
-
"@agoric/notifier": "
|
|
33
|
-
"@agoric/store": "
|
|
34
|
-
"@agoric/vat-data": "
|
|
35
|
-
"@agoric/vats": "
|
|
36
|
-
"@agoric/vow": "
|
|
37
|
-
"@agoric/zoe": "
|
|
38
|
-
"@agoric/zone": "
|
|
39
|
-
"@endo/errors": "^1.2.
|
|
40
|
-
"@endo/eventual-send": "^1.3.
|
|
41
|
-
"@endo/far": "^1.1.
|
|
42
|
-
"@endo/marshal": "^1.6.
|
|
43
|
-
"@endo/nat": "^5.0
|
|
44
|
-
"@endo/promise-kit": "^1.1.
|
|
30
|
+
"@agoric/ertp": "workspace:*",
|
|
31
|
+
"@agoric/internal": "workspace:*",
|
|
32
|
+
"@agoric/notifier": "workspace:*",
|
|
33
|
+
"@agoric/store": "workspace:*",
|
|
34
|
+
"@agoric/vat-data": "workspace:*",
|
|
35
|
+
"@agoric/vats": "workspace:*",
|
|
36
|
+
"@agoric/vow": "workspace:*",
|
|
37
|
+
"@agoric/zoe": "workspace:*",
|
|
38
|
+
"@agoric/zone": "workspace:*",
|
|
39
|
+
"@endo/errors": "^1.2.10",
|
|
40
|
+
"@endo/eventual-send": "^1.3.1",
|
|
41
|
+
"@endo/far": "^1.1.11",
|
|
42
|
+
"@endo/marshal": "^1.6.4",
|
|
43
|
+
"@endo/nat": "^5.1.0",
|
|
44
|
+
"@endo/promise-kit": "^1.1.10"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"src/"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
72
|
"typeCoverage": {
|
|
73
|
-
"atLeast": 94.
|
|
73
|
+
"atLeast": 94.51
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "07d4845c9599083aecbf807668443865d0de0498"
|
|
76
76
|
}
|
package/src/invitations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeInvitationsHelper(zoe: ERef<ZoeService>, agoricNames: ERef<import("@agoric/vats").NameHub>, invitationBrand: Brand<"set">, invitationsPurse: Purse<"set", InvitationDetails>, getInvitationContinuation: (fromOfferId: string) => import("./types.js").InvitationMakers): (spec: InvitationSpec) => ERef<Invitation>;
|
|
1
|
+
export function makeInvitationsHelper(zoe: ERef<ZoeService>, agoricNames: ERef<import("@agoric/vats").NameHub>, invitationBrand: Brand<"set">, invitationsPurse: Purse<"set", import("@agoric/zoe").InvitationDetails>, getInvitationContinuation: (fromOfferId: string) => import("./types.js").InvitationMakers): (spec: InvitationSpec) => ERef<Invitation>;
|
|
2
2
|
/**
|
|
3
3
|
* Specify how to produce an invitation. See each type in the union for details.
|
|
4
4
|
*/
|
|
@@ -45,5 +45,5 @@ export type ContinuingInvitationSpec = {
|
|
|
45
45
|
invitationMakerName: string;
|
|
46
46
|
invitationArgs?: any[];
|
|
47
47
|
};
|
|
48
|
-
export type InvitationsPurseQuery = Pick<InvitationDetails, "description" | "instance">;
|
|
48
|
+
export type InvitationsPurseQuery = Pick<import("@agoric/zoe").InvitationDetails, "description" | "instance">;
|
|
49
49
|
//# 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":"AA0EO,2CANI,IAAI,CAAC,UAAU,CAAC,eAChB,IAAI,CAAC,OAAO,cAAc,EAAE,OAAO,CAAC,mBACpC,KAAK,CAAC,KAAK,CAAC,oBACZ,KAAK,CAAC,KAAK,EAAE,OAAO,aAAa,EAAE,iBAAiB,CAAC,6BACrD,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,YAAY,EAAE,gBAAgB,UAoFrD,cAAc,KAAK,IAAI,CAAC,UAAU,CAAC,CAgBtD;;;;6BAjKY,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,QAAQ,CAAC;IACnB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC;CACxB;;;;;;;kCAGS;IACR,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;;;;;uCAOS;IACR,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,EAAE,OAAO,aAAa,EAAE,OAAO,CAAC;IAC7C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC;CACxB;oCAMS,IAAI,CAChB,OAAW,aAAa,EAAE,iBAAiB,EAC3C,aAAiB,GAAG,UAAU,CAC3B"}
|
package/src/invitations.js
CHANGED
|
@@ -59,14 +59,17 @@ const MAX_PIPE_LENGTH = 2;
|
|
|
59
59
|
*/
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* @typedef {Pick<
|
|
62
|
+
* @typedef {Pick<
|
|
63
|
+
* import('@agoric/zoe').InvitationDetails,
|
|
64
|
+
* 'description' | 'instance'
|
|
65
|
+
* >} InvitationsPurseQuery
|
|
63
66
|
*/
|
|
64
67
|
|
|
65
68
|
/**
|
|
66
69
|
* @param {ERef<ZoeService>} zoe
|
|
67
70
|
* @param {ERef<import('@agoric/vats').NameHub>} agoricNames
|
|
68
71
|
* @param {Brand<'set'>} invitationBrand
|
|
69
|
-
* @param {Purse<'set', InvitationDetails>} invitationsPurse
|
|
72
|
+
* @param {Purse<'set', import('@agoric/zoe').InvitationDetails>} invitationsPurse
|
|
70
73
|
* @param {(fromOfferId: string) => import('./types.js').InvitationMakers} getInvitationContinuation
|
|
71
74
|
*/
|
|
72
75
|
export const makeInvitationsHelper = (
|
package/src/offerWatcher.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function makeWatchOfferOutcomes(vowTools: VowTools): (watchers: OutcomeWatchers, seat: UserSeat) => Promise<any[]>;
|
|
2
2
|
export function prepareOfferWatcher(baggage: Baggage, vowTools: VowTools): (walletHelper: any, deposit: {
|
|
3
3
|
receive: (payment: Payment) => Promise<Amount>;
|
|
4
|
-
}, offerSpec: OfferSpec, address: string, invitationAmount: import("@agoric/ertp").SetAmount<import("@endo/patterns").Key>, seatRef: UserSeat
|
|
4
|
+
}, offerSpec: OfferSpec, address: string, invitationAmount: import("@agoric/ertp").SetAmount<import("@endo/patterns").Key>, seatRef: UserSeat) => import("@endo/exo").GuardedKit<{
|
|
5
5
|
helper: {
|
|
6
6
|
/**
|
|
7
7
|
* @param {Record<string, unknown>} offerStatusUpdates
|
|
@@ -44,9 +44,11 @@ export type OutcomeWatchers = {
|
|
|
44
44
|
export type MakeOfferWatcher = ReturnType<typeof prepareOfferWatcher>;
|
|
45
45
|
export type OfferWatcher = ReturnType<MakeOfferWatcher>;
|
|
46
46
|
import type { VowTools } from '@agoric/vow';
|
|
47
|
+
import type { UserSeat } from '@agoric/zoe';
|
|
47
48
|
import type { Baggage } from '@agoric/vat-data';
|
|
48
49
|
import type { OfferSpec } from './offers.js';
|
|
49
50
|
import type { Passable } from '@endo/pass-style';
|
|
50
51
|
import type { ContinuingOfferResult } from './types.js';
|
|
51
52
|
import type { PromiseWatcher } from '@agoric/swingset-liveslots';
|
|
53
|
+
import type { PaymentPKeywordRecord } from '@agoric/zoe';
|
|
52
54
|
//# sourceMappingURL=offerWatcher.d.ts.map
|
|
@@ -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":"AAyEO,iDADK,QAAQ,cAKP,eAAe,QACf,QAAQ,oBAiBpB;AAmCM,6CAHI,OAAO,YACP,QAAQ;aAWO,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC;;;QAgBvD;;WAEG;yCADQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;QAQlC;;;;;WAKG;sCAJQ,MAAM,oBACN,MAAM,CAAC,KAAK,CAAC,oBACb,OAAO,YAAY,EAAE,gBAAgB,qBACrC,OAAO,YAAY,EAAE,iBAAiB;QAkBjD,uDAAuD;8BAA3C,QAAQ,GAAG,qBAAqB;QAoC5C;;;;;;WAMG;yBADQ,KAAK;;IAclB,gDAAgD;oBAArC,eAAe,CAAC,gBAAgB,CAAC;IA+B5C,+CAA+C;mBAApC,eAAe,CAAC,eAAe,CAAC;IA0B3C,iDAAiD;qBAAtC,eAAe,CAAC,iBAAiB,CAAC;GA2BlD;;;;gCA5SkB,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;+BAsSU,UAAU,CAAC,OAAO,mBAAmB,CAAC;2BACtC,UAAU,CAAC,gBAAgB,CAAC;8BArTV,aAAa;8BAC2B,aAAa;6BAF3D,kBAAkB;+BAJhB,aAAa;8BAEd,kBAAkB;2CADL,YAAY;oCAEnB,4BAA4B;2CAGW,aAAa"}
|
package/src/offerWatcher.js
CHANGED
|
@@ -19,6 +19,7 @@ import { UNPUBLISHED_RESULT } from './offers.js';
|
|
|
19
19
|
* @import {PromiseWatcher} from '@agoric/swingset-liveslots';
|
|
20
20
|
* @import {Baggage} from '@agoric/vat-data';
|
|
21
21
|
* @import {Vow, VowTools} from '@agoric/vow';
|
|
22
|
+
* @import {PaymentPKeywordRecord, Proposal, UserSeat, ZoeService} from '@agoric/zoe';
|
|
22
23
|
*/
|
|
23
24
|
|
|
24
25
|
/**
|
package/src/offers.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {InvitationDetails, Proposal} from '@agoric/zoe';
|
|
3
|
+
*/
|
|
1
4
|
/**
|
|
2
5
|
* @typedef {number | string} OfferId
|
|
3
6
|
*/
|
|
@@ -24,4 +27,5 @@ export type OfferStatus = OfferSpec & {
|
|
|
24
27
|
result?: unknown | typeof UNPUBLISHED_RESULT;
|
|
25
28
|
payouts?: AmountKeywordRecord;
|
|
26
29
|
};
|
|
30
|
+
import type { Proposal } from '@agoric/zoe';
|
|
27
31
|
//# 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;;GAEG;AAEH;;;;;;;GAOG;AAEH,kEAAkE;AAClE,iCAAkC,aAAa,CAAC;sBAbnC,MAAM,GAAG,MAAM;wBAIf;IACR,EAAE,EAAE,OAAO,CAAC;IACZ,cAAc,EAAE,OAAO,kBAAkB,EAAE,cAAc,CAAC;IAC1D,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;0BAOS,SAAS,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,kBAAkB,CAAC;IAC7C,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B"}
|
|
1
|
+
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["offers.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AAEH;;;;;;;GAOG;AAEH,kEAAkE;AAClE,iCAAkC,aAAa,CAAC;sBAbnC,MAAM,GAAG,MAAM;wBAIf;IACR,EAAE,EAAE,OAAO,CAAC;IACZ,cAAc,EAAE,OAAO,kBAAkB,EAAE,cAAc,CAAC;IAC1D,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;0BAOS,SAAS,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,kBAAkB,CAAC;IAC7C,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;8BAzB0C,aAAa"}
|
package/src/offers.js
CHANGED
package/src/smartWallet.d.ts
CHANGED
|
@@ -200,8 +200,16 @@ export type PurseRecord = BrandDescriptor & {
|
|
|
200
200
|
};
|
|
201
201
|
export type MutableState = {};
|
|
202
202
|
export type SmartWallet = EReturn<EReturn<typeof prepareSmartWallet>>;
|
|
203
|
+
import type { Payment } from '@agoric/ertp';
|
|
204
|
+
import type { Amount } from '@agoric/ertp';
|
|
203
205
|
import type { OfferId } from './offers.js';
|
|
206
|
+
import type { Proposal } from '@agoric/zoe';
|
|
207
|
+
import type { Brand } from '@agoric/ertp';
|
|
204
208
|
import type { OfferStatus } from './offers.js';
|
|
209
|
+
import type { Issuer } from '@agoric/ertp';
|
|
210
|
+
import type { InvitationDetails } from '@agoric/zoe';
|
|
211
|
+
import type { Purse } from '@agoric/ertp';
|
|
205
212
|
import type { MapStore } from '@agoric/store';
|
|
213
|
+
import type { UserSeat } from '@agoric/zoe';
|
|
206
214
|
import type { EReturn } from '@endo/far';
|
|
207
215
|
//# sourceMappingURL=smartWallet.d.ts.map
|
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":"AAkQA,kCAAmC,eAAe,CAAC;AAiB5C,4CAHI,OAAO,kBAAkB,EAAE,OAAO,UAClC,YAAY,6BAi1BV,IAAI,CACV,YAAY,EAChB,oBAAwB,GAAG,mBAAmB,CAC3C,GAAG;IACF,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;CACtC;IAzGE;;;;;;;;OAQG;sCAJQ,OAAO,eAAe,EAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,aAE9C,OAAO,GACL,OAAO,CAAC,IAAI,CAAC;;QApR1B;;;;;;;;;WASG;yBAJQ,OAAO,GACL,OAAO,CAAC,MAAM,CAAC;;;QA8H5B;;;;;;;;;WASG;gCALQ,SAAS,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,EAAE,gBAAgB,CACtC,CAAC;IACF,4BAA4B,EAAE,SAAS,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACvE,qBAAqB,EAAE,SAAS,MAAM,EAAE,OAAO,KAAK,CAAC,CAAC,CAAC;IACvD,aAAa,EAAE,SAAS,KAAK,EAAE,MAAM,CAAC,CAAC;IACvC,iBAAiB,EAAE,OAAO,6CAA6C,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACnG,kBAAkB,EAAE,OAAO,6CAA6C,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC3G,UAAU,EAAE,SAAS,OAAO,EAAE,WAAW,CAAC,CAAC;IAC3C,cAAc,EAAE,SAAS,OAAO,EAAE,SAAS,OAAO,CAAC,CAAC,CAAC;IACrD,iBAAiB,EAAE,SAAS,OAAO,EAAE,SAAS,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;CAChE,CACF;0BAGS,eAAe,GAAG;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE;2BAElC,EAAE;0BA+5BD,QAAQ,QAAQ,OAAO,kBAAkB,CAAC,CAAC;6BA1kCD,cAAc;4BAAd,cAAc;6BAI/B,aAAa;8BAF2B,aAAa;2BAFpC,cAAc;iCAI/B,aAAa;4BAJI,cAAc;uCAES,aAAa;2BAFpC,cAAc;8BAC7B,eAAe;8BACuB,aAAa;6BAClE,WAAW"}
|
package/src/smartWallet.js
CHANGED
|
@@ -46,7 +46,9 @@ import { objectMapStoragePath } from './utils.js';
|
|
|
46
46
|
import { prepareOfferWatcher, makeWatchOfferOutcomes } from './offerWatcher.js';
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
+
* @import {Amount, Brand, Issuer, Payment, Purse} from '@agoric/ertp';
|
|
49
50
|
* @import {WeakMapStore, MapStore} from '@agoric/store'
|
|
51
|
+
* @import {InvitationDetails, PaymentPKeywordRecord, Proposal, UserSeat} from '@agoric/zoe';
|
|
50
52
|
* @import {EReturn} from '@endo/far';
|
|
51
53
|
* @import {OfferId, OfferStatus} from './offers.js';
|
|
52
54
|
*/
|
package/src/types.d.ts
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* Similar to types.js but in TypeScript syntax because some types here need it.
|
|
5
5
|
* Downside is it can't reference any ambient types, which most of agoric-sdk type are presently.
|
|
6
6
|
*/
|
|
7
|
+
import type { Payment } from '@agoric/ertp';
|
|
7
8
|
import type { AgoricNamesRemotes } from '@agoric/vats/tools/board-utils.js';
|
|
9
|
+
import type { InvitationDetails } from '@agoric/zoe';
|
|
8
10
|
import type { PublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
9
|
-
import type { Payment } from '@agoric/ertp';
|
|
10
11
|
import type { OfferSpec } from './offers.js';
|
|
11
12
|
type Invitation = Payment<'set', InvitationDetails>;
|
|
12
13
|
/**
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,KAAK,UAAU,GAAG,OAAO,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,MAAM,CACnC,MAAM,EACN,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,UAAU,CAAC,CACxC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;AAED,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI;IACpB,GAAG,EAAE,MAAM,CAAC,CAAC;IACb,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG,oBAAoB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CACvB,WAAW,EAAE,kBAAkB,EAC/B,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,SAAS,CAAC"}
|
package/src/types.ts
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* Downside is it can't reference any ambient types, which most of agoric-sdk type are presently.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- fails to notice the @see uses
|
|
8
9
|
import type { agoric } from '@agoric/cosmic-proto/agoric/bundle.js';
|
|
10
|
+
import type { Payment } from '@agoric/ertp';
|
|
9
11
|
import type { AgoricNamesRemotes } from '@agoric/vats/tools/board-utils.js';
|
|
12
|
+
import type { InvitationDetails } from '@agoric/zoe';
|
|
10
13
|
import type { PublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
11
|
-
import type { Payment } from '@agoric/ertp';
|
|
12
14
|
import type { OfferSpec } from './offers.js';
|
|
13
15
|
|
|
14
|
-
declare const CapDataShape: unique symbol;
|
|
15
|
-
|
|
16
16
|
// Match the type in Zoe, which can't be imported because it's ambient.
|
|
17
17
|
// This omits the parameters that aren't used in this module.
|
|
18
18
|
type Invitation = Payment<'set', InvitationDetails>;
|
package/src/walletFactory.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export namespace customTermsShape {
|
|
2
|
-
let agoricNames:
|
|
3
|
-
let board:
|
|
4
|
-
let assetPublisher:
|
|
2
|
+
let agoricNames: Pattern;
|
|
3
|
+
let board: Pattern;
|
|
4
|
+
let assetPublisher: Pattern;
|
|
5
5
|
}
|
|
6
6
|
export const privateArgsShape: import("@endo/patterns").Matcher;
|
|
7
7
|
export function publishDepositFacet(address: string, wallet: import("./smartWallet.js").SmartWallet, namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>): Promise<unknown>;
|