@agoric/smart-wallet 0.5.4-dev-247cc9b.0 → 0.5.4-dev-3c1b9a2.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 +13 -13
- package/src/invitations.d.ts +1 -1
- package/src/invitations.d.ts.map +1 -1
- package/src/marshal-contexts.d.ts.map +1 -1
- package/src/proposals/upgrade-wallet-factory2-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-walletFactory-proposal.d.ts.map +1 -1
- package/src/smartWallet.d.ts +5 -5
- package/src/smartWallet.d.ts.map +1 -1
- package/src/utils.d.ts +1 -1
- package/src/utils.d.ts.map +1 -1
- package/src/walletFactory.d.ts +23 -101
- package/src/walletFactory.d.ts.map +1 -1
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-3c1b9a2.0+3c1b9a2",
|
|
4
4
|
"description": "Wallet contract",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"lint:eslint": "eslint ."
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
20
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
19
|
+
"@agoric/cosmic-proto": "0.4.1-dev-3c1b9a2.0+3c1b9a2",
|
|
20
|
+
"@agoric/swingset-vat": "0.32.3-dev-3c1b9a2.0+3c1b9a2",
|
|
21
21
|
"@endo/bundle-source": "^3.2.1",
|
|
22
22
|
"@endo/captp": "^4.1.0",
|
|
23
23
|
"@endo/init": "^1.1.0",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"import-meta-resolve": "^2.2.1"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@agoric/assert": "0.6.1-dev-
|
|
29
|
-
"@agoric/casting": "0.4.3-dev-
|
|
30
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
31
|
-
"@agoric/internal": "0.3.3-dev-
|
|
32
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
33
|
-
"@agoric/store": "0.9.3-dev-
|
|
34
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
35
|
-
"@agoric/vats": "0.15.2-dev-
|
|
36
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
28
|
+
"@agoric/assert": "0.6.1-dev-3c1b9a2.0+3c1b9a2",
|
|
29
|
+
"@agoric/casting": "0.4.3-dev-3c1b9a2.0+3c1b9a2",
|
|
30
|
+
"@agoric/ertp": "0.16.3-dev-3c1b9a2.0+3c1b9a2",
|
|
31
|
+
"@agoric/internal": "0.3.3-dev-3c1b9a2.0+3c1b9a2",
|
|
32
|
+
"@agoric/notifier": "0.6.3-dev-3c1b9a2.0+3c1b9a2",
|
|
33
|
+
"@agoric/store": "0.9.3-dev-3c1b9a2.0+3c1b9a2",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-3c1b9a2.0+3c1b9a2",
|
|
35
|
+
"@agoric/vats": "0.15.2-dev-3c1b9a2.0+3c1b9a2",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-3c1b9a2.0+3c1b9a2",
|
|
37
37
|
"@endo/eventual-send": "^1.2.0",
|
|
38
38
|
"@endo/far": "^1.1.0",
|
|
39
39
|
"@endo/marshal": "^1.4.0",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"typeCoverage": {
|
|
70
70
|
"atLeast": 93.76
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "3c1b9a228963557eda54de21ef1db9cecff08c6f"
|
|
73
73
|
}
|
package/src/invitations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeInvitationsHelper(zoe: ERef<ZoeService>, agoricNames: ERef<import(
|
|
1
|
+
export function makeInvitationsHelper(zoe: ERef<ZoeService>, agoricNames: ERef<import("@agoric/vats").NameHub>, invitationBrand: Brand<'set'>, invitationsPurse: Purse<'set'>, getInvitationContinuation: (fromOfferId: string) => import('./types.js').InvitationMakers): (spec: InvitationSpec) => ERef<Invitation<unknown, undefined>>;
|
|
2
2
|
/**
|
|
3
3
|
* Specify how to produce an invitation. See each type in the union for details.
|
|
4
4
|
*/
|
package/src/invitations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["invitations.js"],"names":[],"mappings":"AA+DO,
|
|
1
|
+
{"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["invitations.js"],"names":[],"mappings":"AA+DO,iIAJI,MAAM,KAAK,CAAC,oBACZ,MAAM,KAAK,CAAC,6BACZ,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,YAAY,EAAE,gBAAgB,UAsFrD,cAAc,0CAgBjC;;;;6BAvJY,4BAA4B,GAAG,sBAAsB,GAAG,mBAAmB,GAAG,wBAAwB;;;;;;;2CAKtG;IACZ,MAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAU,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;CACzD;;;;qCAMS;IACZ,MAAQ,EAAE,UAAU,CAAC;IACrB,QAAU,EAAE,QAAQ,CAAC;IACrB,qBAAuB,EAAE,MAAM,CAAC;IAChC,cAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB;;;;;kCAGS;IACZ,MAAQ,EAAE,OAAO,CAAC;IAClB,QAAU,EAAE,QAAQ,CAAC;IACrB,WAAa,EAAE,MAAM,CAAC;CACnB;;;;uCAIS;IACZ,MAAQ,EAAE,YAAY,CAAC;IACvB,aAAe,EAAE,OAAO,aAAa,EAAE,OAAO,CAAC;IAC/C,mBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB;oCAKS,KAAK,iBAAiB,EAAE,aAAa,GAAG,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marshal-contexts.d.ts","sourceRoot":"","sources":["marshal-contexts.js"],"names":[],"mappings":"AAmHO;;;;;;;IAqFH;;;OAGG;sBAFQ,MAAM,SACN,KAAK;;IAMhB;;;OAGG;sBAFQ,OAAO,OACP,OAAO;IAKlB;;;OAGG;wBAFQ,OAAO,OACP,OAAO;EAWrB;AAcM,0DAFY,MAAM,KAAK,OAAO;IA8FjC;;;OAGG;sBAFQ,OAAO,OACP,OAAO;IAKlB;;;OAGG;wBAFQ,OAAO,OACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;EAYrB;AAwBM,2CAHI,MAAM,
|
|
1
|
+
{"version":3,"file":"marshal-contexts.d.ts","sourceRoot":"","sources":["marshal-contexts.js"],"names":[],"mappings":"AAmHO;;;;;;;IAqFH;;;OAGG;sBAFQ,MAAM,SACN,KAAK;;IAMhB;;;OAGG;sBAFQ,OAAO,OACP,OAAO;IAKlB;;;OAGG;wBAFQ,OAAO,OACP,OAAO;EAWrB;AAcM,0DAFY,MAAM,KAAK,OAAO;IA8FjC;;;OAGG;sBAFQ,OAAO,OACP,OAAO;IAKlB;;;OAGG;wBAFQ,OAAO,OACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;EAYrB;AAwBM,2CAHI,MAAM,OACN,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,OAapC;sBA9Xa,OAAO,+BAA+B,EAAE,OAAO;;;;sEAiBhD,GAAG,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,EAAE;;;;yCAI/B,GAAG,CAAC,IAAI,MAAM,EAAE;;;;qEA2ChB,WAAW,CAAC,CAAC,GAAG,OAAO;;;;;;qBAGvB,GAAG,GAAG,IAAI,GAAG,KAAK;;;;iCASlB;IACZ,MAAU,EAAE,SAAS,IAAI,EAAE,GAAG,CAAC,CAAC;IAChC,KAAS,EAAE,SAAS,GAAG,EAAE,IAAI,CAAC,CAAC;CAC5B;4BA8IU,WAAW,wBAAwB,CAAC;4BA+HpC,WAAW,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-wallet-factory2-proposal.d.ts","sourceRoot":"","sources":["upgrade-wallet-factory2-proposal.js"],"names":[],"mappings":"AASO,qKAJI,eAAe,GAAG,mBAAmB
|
|
1
|
+
{"version":3,"file":"upgrade-wallet-factory2-proposal.d.ts","sourceRoot":"","sources":["upgrade-wallet-factory2-proposal.js"],"names":[],"mappings":"AASO,qKAJI,eAAe,GAAG,mBAAmB;IAEA,OAAO,EAA5C;QAAE,SAAS,EAAE,YAAY,CAAA;KAAE;kBAoCrC;AAEM;;;;;;;;;;;;;;;;EAYL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-walletFactory-proposal.d.ts","sourceRoot":"","sources":["upgrade-walletFactory-proposal.js"],"names":[],"mappings":"AAqBO,yOALK,eAAe
|
|
1
|
+
{"version":3,"file":"upgrade-walletFactory-proposal.d.ts","sourceRoot":"","sources":["upgrade-walletFactory-proposal.js"],"names":[],"mappings":"AAqBO,yOALK,eAAe;IAGkD,OAAO,EAAzE;QAAE,gBAAgB,EAAE,YAAY,GAAG;YAAE,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;kBAkDnE;AAMM,mGAFK,eAAe,iBAwB1B;AAyBM;;;;;;;EAKN"}
|
package/src/smartWallet.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export type ExecutorPowers = {
|
|
|
76
76
|
error: (...args: any[]) => void;
|
|
77
77
|
};
|
|
78
78
|
makeOfferWatcher: import('./offerWatcher.js').MakeOfferWatcher;
|
|
79
|
-
invitationFromSpec: ERef<Invitation
|
|
79
|
+
invitationFromSpec: ERef<Invitation<unknown, undefined>>;
|
|
80
80
|
};
|
|
81
81
|
export type ExecuteOfferAction = {
|
|
82
82
|
method: 'executeOffer';
|
|
@@ -109,9 +109,9 @@ export type CurrentWalletRecord = {
|
|
|
109
109
|
balance: Amount;
|
|
110
110
|
}>;
|
|
111
111
|
offerToUsedInvitation: Array<[offerId: string, usedInvitation: Amount]>;
|
|
112
|
-
offerToPublicSubscriberPaths: [offerId: string, publicTopics: {
|
|
112
|
+
offerToPublicSubscriberPaths: Array<[offerId: string, publicTopics: {
|
|
113
113
|
[subscriberName: string]: string;
|
|
114
|
-
}]
|
|
114
|
+
}]>;
|
|
115
115
|
liveOffers: Array<[OfferId, import('./offers.js').OfferStatus]>;
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
@@ -149,14 +149,14 @@ export type BrandDescriptor = {
|
|
|
149
149
|
};
|
|
150
150
|
export type UniqueParams = {
|
|
151
151
|
address: string;
|
|
152
|
-
bank: ERef<import(
|
|
152
|
+
bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>;
|
|
153
153
|
currentStorageNode: StorageNode;
|
|
154
154
|
invitationPurse: Purse<'set'>;
|
|
155
155
|
walletStorageNode: StorageNode;
|
|
156
156
|
};
|
|
157
157
|
export type BrandDescriptorRegistry = Pick<MapStore<Brand, BrandDescriptor>, 'has' | 'get' | 'values'>;
|
|
158
158
|
export type SharedParams = {
|
|
159
|
-
agoricNames: ERef<import(
|
|
159
|
+
agoricNames: ERef<import("@agoric/vats").NameHub>;
|
|
160
160
|
registry: BrandDescriptorRegistry;
|
|
161
161
|
invitationIssuer: Issuer<'set'>;
|
|
162
162
|
invitationBrand: Brand<'set'>;
|
package/src/smartWallet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartWallet.d.ts","sourceRoot":"","sources":["smartWallet.js"],"names":[],"mappings":"AAiOA,kDAAmD;AAiB5C,4CAHI,OAAO,kBAAkB,EAAE,OAAO,UAClC,YAAY
|
|
1
|
+
{"version":3,"file":"sm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,EAAE,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3E,qBAAyB,EAAE,SAAS,MAAM,EAAE,OAAO,KAAK,CAAC,CAAC,CAAC;IAC3D,aAAiB,EAAE,SAAS,KAAK,EAAE,MAAM,CAAC,CAAC;IAC3C,iBAAqB,EAAE,OAAO,6CAA6C,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACvG,kBAAsB,EAAE,OAAO,6CAA6C,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC/G,UAAc,EAAE,SAAS,OAAO,EAAE,OAAO,aAAa,EAAE,WAAW,CAAC,CAAC;IACrE,cAAkB,EAAE,SAAS,OAAO,EAAE,SAAS,OAAO,CAAC,CAAC,CAAC;IACzD,iBAAqB,EAAE,SAAS,OAAO,EAAE,SAAS,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;CAChE,CAAC;0BAEQ,eAAe,GAAG;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE;2BAClC,EACT;0BAm/BU,QAAQ,WAAW,WAAW,yBAAyB,CAAC,CAAC,CAAC"}
|
package/src/utils.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export function makeWalletStateCoalescer(invitationBrand?: Brand<"set"> | undefi
|
|
|
11
11
|
};
|
|
12
12
|
update: (updateRecord: import('./smartWallet.js').UpdateRecord | {}) => void;
|
|
13
13
|
};
|
|
14
|
-
export function coalesceUpdates(updates: ERef<Subscriber<import(
|
|
14
|
+
export function coalesceUpdates(updates: ERef<Subscriber<import("./smartWallet.js").UpdateRecord>>, invitationBrand?: Brand<"set"> | undefined): {
|
|
15
15
|
invitationsReceived: Map<import("./offers.js").OfferId, {
|
|
16
16
|
acceptedIn: import('./offers.js').OfferId;
|
|
17
17
|
description: string;
|
package/src/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAIA,sDAAuD;AAKhD;;;wBASsD,OAAO,aAAa,EAAE,OAAO;yBAAe,MAAM;sBAAY,QAAQ;;;;;2BAIrH,OAAO,kBAAkB,EAAE,YAAY,GAAG,EAAE;EA8DzD;AAaM
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAIA,sDAAuD;AAKhD;;;wBASsD,OAAO,aAAa,EAAE,OAAO;yBAAe,MAAM;sBAAY,QAAQ;;;;;2BAIrH,OAAO,kBAAkB,EAAE,YAAY,GAAG,EAAE;EA8DzD;AAaM;;oBA/EsD,OAAO,aAAa,EAAE,OAAO;qBAAe,MAAM;kBAAY,QAAQ;;;;EAwFlI;AAMM,wCAHI,OAAO,iBAAiB,EAAE,QAAQ,CAAC,GAAG,CAAC,iBAYjD;AAQM,+MASN;mCArDa,WAAW,+BAA+B,CAAC,CAAC,OAAO,CAAC"}
|
package/src/walletFactory.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export namespace customTermsShape {
|
|
|
4
4
|
let assetPublisher: any;
|
|
5
5
|
}
|
|
6
6
|
export const privateArgsShape: import("@endo/patterns").Matcher;
|
|
7
|
-
export function publishDepositFacet(address: string, wallet: import('./smartWallet.js').SmartWallet, namesByAddressAdmin: ERef<import(
|
|
7
|
+
export function publishDepositFacet(address: string, wallet: import('./smartWallet.js').SmartWallet, namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>): Promise<unknown>;
|
|
8
8
|
export function makeAssetRegistry(assetPublisher: AssetPublisher): {
|
|
9
9
|
/** @param {Brand} brand */
|
|
10
10
|
has: (brand: Brand) => boolean;
|
|
@@ -36,113 +36,35 @@ export function prepare(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
|
|
|
36
36
|
* along with a flag to distinguish between looking up an existing wallet
|
|
37
37
|
* and creating a new one.
|
|
38
38
|
*/
|
|
39
|
-
provideSmartWallet(address: string, bank: ERef<import(
|
|
40
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
41
|
-
getDepositFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
42
|
-
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
43
|
-
}>;
|
|
44
|
-
getOffersFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
45
|
-
executeOffer(offerSpec: import("./smartWallet.js").OfferSpec): Promise<void>;
|
|
46
|
-
tryExitOffer(offerId: import("./smartWallet.js").OfferId): Promise<void>;
|
|
47
|
-
}>;
|
|
48
|
-
getCurrentSubscriber(): Subscriber<import("./smartWallet.js").CurrentWalletRecord>;
|
|
49
|
-
getUpdatesSubscriber(): Subscriber<import("./smartWallet.js").UpdateRecord>;
|
|
50
|
-
getPublicTopics(): {
|
|
51
|
-
current: {
|
|
52
|
-
description: string;
|
|
53
|
-
subscriber: Subscriber<import("./smartWallet.js").CurrentWalletRecord>;
|
|
54
|
-
storagePath: Promise<string>;
|
|
55
|
-
};
|
|
56
|
-
updates: {
|
|
57
|
-
description: string;
|
|
58
|
-
subscriber: Subscriber<import("./smartWallet.js").UpdateRecord>;
|
|
59
|
-
storagePath: Promise<string>;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
repairWalletForIncarnation2(key: any): void;
|
|
63
|
-
} & import("@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
64
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
65
|
-
getDepositFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
66
|
-
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
67
|
-
}>;
|
|
68
|
-
getOffersFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
69
|
-
executeOffer(offerSpec: import("./smartWallet.js").OfferSpec): Promise<void>;
|
|
70
|
-
tryExitOffer(offerId: import("./smartWallet.js").OfferId): Promise<void>;
|
|
71
|
-
}>;
|
|
72
|
-
getCurrentSubscriber(): Subscriber<import("./smartWallet.js").CurrentWalletRecord>;
|
|
73
|
-
getUpdatesSubscriber(): Subscriber<import("./smartWallet.js").UpdateRecord>;
|
|
74
|
-
getPublicTopics(): {
|
|
75
|
-
current: {
|
|
76
|
-
description: string;
|
|
77
|
-
subscriber: Subscriber<import("./smartWallet.js").CurrentWalletRecord>;
|
|
78
|
-
storagePath: Promise<string>;
|
|
79
|
-
};
|
|
80
|
-
updates: {
|
|
81
|
-
description: string;
|
|
82
|
-
subscriber: Subscriber<import("./smartWallet.js").UpdateRecord>;
|
|
83
|
-
storagePath: Promise<string>;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
repairWalletForIncarnation2(key: any): void;
|
|
87
|
-
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
88
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
89
|
-
getDepositFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
90
|
-
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
91
|
-
}>;
|
|
92
|
-
getOffersFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
93
|
-
executeOffer(offerSpec: import("./smartWallet.js").OfferSpec): Promise<void>;
|
|
94
|
-
tryExitOffer(offerId: import("./smartWallet.js").OfferId): Promise<void>;
|
|
95
|
-
}>;
|
|
96
|
-
getCurrentSubscriber(): Subscriber<import("./smartWallet.js").CurrentWalletRecord>;
|
|
97
|
-
getUpdatesSubscriber(): Subscriber<import("./smartWallet.js").UpdateRecord>;
|
|
98
|
-
getPublicTopics(): {
|
|
99
|
-
current: {
|
|
100
|
-
description: string;
|
|
101
|
-
subscriber: Subscriber<import("./smartWallet.js").CurrentWalletRecord>;
|
|
102
|
-
storagePath: Promise<string>;
|
|
103
|
-
};
|
|
104
|
-
updates: {
|
|
105
|
-
description: string;
|
|
106
|
-
subscriber: Subscriber<import("./smartWallet.js").UpdateRecord>;
|
|
107
|
-
storagePath: Promise<string>;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
repairWalletForIncarnation2(key: any): void;
|
|
111
|
-
} & import("@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
112
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
113
|
-
getDepositFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
114
|
-
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
115
|
-
}>;
|
|
116
|
-
getOffersFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
117
|
-
executeOffer(offerSpec: import("./smartWallet.js").OfferSpec): Promise<void>;
|
|
118
|
-
tryExitOffer(offerId: import("./smartWallet.js").OfferId): Promise<void>;
|
|
119
|
-
}>;
|
|
120
|
-
getCurrentSubscriber(): Subscriber<import("./smartWallet.js").CurrentWalletRecord>;
|
|
121
|
-
getUpdatesSubscriber(): Subscriber<import("./smartWallet.js").UpdateRecord>;
|
|
122
|
-
getPublicTopics(): {
|
|
123
|
-
current: {
|
|
124
|
-
description: string;
|
|
125
|
-
subscriber: Subscriber<import("./smartWallet.js").CurrentWalletRecord>;
|
|
126
|
-
storagePath: Promise<string>;
|
|
127
|
-
};
|
|
128
|
-
updates: {
|
|
129
|
-
description: string;
|
|
130
|
-
subscriber: Subscriber<import("./smartWallet.js").UpdateRecord>;
|
|
131
|
-
storagePath: Promise<string>;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
repairWalletForIncarnation2(key: any): void;
|
|
135
|
-
}>>, isNew: boolean]>;
|
|
39
|
+
provideSmartWallet(address: string, bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>): Promise<[wallet: import('./smartWallet.js').SmartWallet, isNew: boolean]>;
|
|
136
40
|
}>;
|
|
137
41
|
}>;
|
|
138
42
|
export type SmartWalletContractTerms = {
|
|
139
|
-
agoricNames: ERef<NameHub>;
|
|
140
|
-
board: ERef<import(
|
|
43
|
+
agoricNames: ERef<import("@agoric/vats").NameHub>;
|
|
44
|
+
board: ERef<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
45
|
+
getId(value: any): string;
|
|
46
|
+
getValue(id: string): any;
|
|
47
|
+
lookup(...path: string[]): Promise<any>;
|
|
48
|
+
has(val: any): boolean;
|
|
49
|
+
ids(): string[];
|
|
50
|
+
getPublishingMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
51
|
+
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
52
|
+
fromCapData(data: any): any;
|
|
53
|
+
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
54
|
+
unserialize(data: any): any;
|
|
55
|
+
}>;
|
|
56
|
+
getReadonlyMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
57
|
+
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
58
|
+
fromCapData(data: any): any;
|
|
59
|
+
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
60
|
+
unserialize(data: any): any;
|
|
61
|
+
}>;
|
|
62
|
+
}>>;
|
|
141
63
|
assetPublisher: AssetPublisher;
|
|
142
64
|
};
|
|
143
65
|
export type NameHub = import('@agoric/vats').NameHub;
|
|
144
66
|
export type AssetPublisher = {
|
|
145
|
-
getAssetSubscription: () => ERef<IterableEachTopic<import(
|
|
67
|
+
getAssetSubscription: () => ERef<IterableEachTopic<import("@agoric/vats/src/vat-bank.js").AssetDescriptor>>;
|
|
146
68
|
};
|
|
147
69
|
export type isRevive = boolean;
|
|
148
70
|
export type WalletReviver = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletFactory.d.ts","sourceRoot":"","sources":["walletFactory.js"],"names":[],"mappings":";;;;;AA2BA,gEAKE;AAaK,6CAJI,MAAM,UACN,OAAO,kBAAkB,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"walletFactory.d.ts","sourceRoot":"","sources":["walletFactory.js"],"names":[],"mappings":";;;;;AA2BA,gEAKE;AAaK,6CAJI,MAAM,UACN,OAAO,kBAAkB,EAAE,WAAW,iFAgBhD;AAWM,kDAFI,cAAc;IAwCrB,2BAA2B;iBAAf,KAAK;IAEjB,2BAA2B;iBAAf,KAAK;eApCP,KAAK;qBACC,WAAW;gBAChB,MAAM;iBACL,OAAO,YAAY,EAAE,OAAO;;;eAH9B,KAAK;qBACC,WAAW;gBAChB,MAAM;iBACL,OAAO,YAAY,EAAE,OAAO;;EAsC3C;AAmCM,6BARI,IAAI,wBAAwB,CAAC;;;;YAM7B,OAAO,kBAAkB,EAAE,OAAO;;QAuIvC;;;;;;;WAOG;oCANQ,MAAM,yHAGJ,QAAQ,CAAC,MAAM,EAAE,OAAO,kBAAkB,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;;GAmD3F;;;;;;;;;;;;;;;;;;;;;;oBAzNoB,cAAc;;sBAGtB,OAAO,cAAc,EAAE,OAAO;;;;uBAO9B,OAAO;4BACP;IACZ,YAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,OAAO,kBAAkB,EAAE,WAAW,CAAC,CAAC;IACvF,SAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,CAAC;CAC1C;oBAgNU,cAAc"}
|