@agoric/zoe 0.26.3-dev-de2008a.0 → 0.26.3-dev-9d7a377.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/bundles/bundle-contractFacet-js-meta.json +195 -195
- package/package.json +14 -14
- package/src/contractFacet/vatRoot.d.ts +2 -2
- package/src/contractFacet/zcfMint.d.ts +2 -2
- package/src/contractFacet/zcfMint.d.ts.map +1 -1
- package/src/contractFacet/zcfZygote.d.ts +1 -1
- package/src/contractSupport/durability.d.ts +1 -1
- package/src/contractSupport/durability.d.ts.map +1 -1
- package/src/contractSupport/prepare-ownable.d.ts +2 -2
- package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
- package/src/contractSupport/priceAuthority.d.ts +3 -3
- package/src/contractSupport/priceAuthorityInitial.d.ts +1 -1
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts +1 -1
- package/src/contractSupport/priceAuthorityTransform.d.ts +7 -7
- package/src/contractSupport/priceQuote.d.ts +2 -2
- package/src/contractSupport/recorder.d.ts +8 -8
- package/src/contractSupport/recorder.d.ts.map +1 -1
- package/src/contractSupport/safeMath.d.ts.map +1 -1
- package/src/contractSupport/statistics.d.ts +1 -1
- package/src/contractSupport/statistics.d.ts.map +1 -1
- package/src/contractSupport/topics.d.ts.map +1 -1
- package/src/contractSupport/types.d.ts +3 -3
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/contracts/auction/index.d.ts +1 -1
- package/src/contracts/callSpread/calculateShares.d.ts +1 -1
- package/src/contracts/callSpread/calculateShares.d.ts.map +1 -1
- package/src/contracts/callSpread/percent.d.ts +2 -2
- package/src/contracts/callSpread/percent.d.ts.map +1 -1
- package/src/contracts/callSpread/position.d.ts +2 -2
- package/src/contracts/callSpread/pricedCallSpread.d.ts +4 -4
- package/src/contracts/callSpread/types.d.ts +2 -2
- package/src/contracts/coveredCall-durable.d.ts +1 -1
- package/src/contracts/loan/types.d.ts +10 -10
- package/src/contracts/otcDesk.d.ts +2 -2
- package/src/contracts/priceAggregator.d.ts +4 -4
- package/src/contracts/priceAggregatorTypes.d.ts +1 -1
- package/src/contracts/scaledPriceAuthority.d.ts +1 -1
- package/src/contracts/sellItems.d.ts +1 -1
- package/src/instanceRecordStorage.d.ts +1 -1
- package/src/internal-types.d.ts +8 -8
- package/src/issuerRecord.d.ts +1 -1
- package/src/issuerRecord.d.ts.map +1 -1
- package/src/issuerStorage.d.ts +3 -3
- package/src/issuerStorage.d.ts.map +1 -1
- package/src/makeHandle.d.ts.map +1 -1
- package/src/types.d.ts +1 -1
- package/src/zoeService/escrowStorage.d.ts +1 -1
- package/src/zoeService/feeMint.d.ts +1 -1
- package/src/zoeService/installationStorage.d.ts +2 -2
- package/src/zoeService/instanceAdminStorage.d.ts +2 -2
- package/src/zoeService/internal-types.d.ts +8 -8
- package/src/zoeService/makeInvitation.d.ts +1 -1
- package/src/zoeService/originalZoeSeat.d.ts +1 -1
- package/src/zoeService/startInstance.d.ts +2 -2
- package/src/zoeService/types.d.ts +19 -19
- package/src/zoeService/types.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.d.ts +1 -1
- package/src/zoeService/zoeStorageManager.d.ts +1 -1
- package/tools/fakePriceAuthority.d.ts +2 -2
- package/tools/fakeVatAdmin.d.ts +3 -3
- package/tools/manualPriceAuthority.d.ts +3 -3
- package/tools/manualTimer.d.ts +1 -1
- package/tools/scriptedOracle.d.ts +1 -1
- package/tools/scriptedOracle.d.ts.map +1 -1
- package/tools/setup-zoe.d.ts.map +1 -1
- package/tools/types-ambient.d.ts +18 -18
- package/tools/types.d.ts +18 -18
package/src/issuerRecord.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export function makeIssuerRecord<K extends globalThis.AssetKind>(brand:
|
|
1
|
+
export function makeIssuerRecord<K extends globalThis.AssetKind>(brand: Brand<K>, issuer: Issuer<K>, displayInfo: DisplayInfo<K>): IssuerRecord<K>;
|
|
2
2
|
export function assertFullIssuerRecord(issuerRecord: IssuerRecord): asserts issuerRecord is Required<IssuerRecord>;
|
|
3
3
|
//# sourceMappingURL=issuerRecord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issuerRecord.d.ts","sourceRoot":"","sources":["issuerRecord.js"],"names":[],"mappings":"AAaO,iCAFmB,CAAC,
|
|
1
|
+
{"version":3,"file":"issuerRecord.d.ts","sourceRoot":"","sources":["issuerRecord.js"],"names":[],"mappings":"AAaO,iCAFmB,CAAC,sCAHhB,KAAK,CAGU,CAAC,AAHT,CAAC,UACR,MAAM,CAES,CAAC,AAFR,CAAC,eACT,WAAW,CACI,CAAC,AADH,CAAC,GACZ,YAAY,CAAC,CAAC,CAAC,CAQxB;AAMG,qDAHI,YAAY,GACV,OAAO,CAAC,YAAY,IAAI,QAAQ,CAAC,YAAY,CAAC,CAM1D"}
|
package/src/issuerStorage.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function provideIssuerStorage(zcfBaggage: import(
|
|
1
|
+
export function provideIssuerStorage(zcfBaggage: import("@agoric/vat-data").Baggage): {
|
|
2
2
|
storeIssuerKeywordRecord: (uncleanIssuerKeywordRecord: IssuerKeywordRecord) => Promise<{
|
|
3
3
|
issuers: IssuerKeywordRecord;
|
|
4
4
|
brands: BrandKeywordRecord;
|
|
@@ -6,8 +6,8 @@ export function provideIssuerStorage(zcfBaggage: import('@agoric/vat-data').Bagg
|
|
|
6
6
|
storeIssuer: (issuerP: ERef<globalThis.Issuer>) => Promise<IssuerRecord>;
|
|
7
7
|
storeIssuerRecord: (issuerRecord: IssuerRecord) => IssuerRecord;
|
|
8
8
|
getAssetKindByBrand: GetAssetKindByBrand;
|
|
9
|
-
getBrandForIssuer: <K extends globalThis.AssetKind>(issuer:
|
|
10
|
-
getIssuerForBrand: <K_1 extends globalThis.AssetKind>(brand:
|
|
9
|
+
getBrandForIssuer: <K extends globalThis.AssetKind>(issuer: Issuer<K>) => Brand<K>;
|
|
10
|
+
getIssuerForBrand: <K_1 extends globalThis.AssetKind>(brand: Brand<K_1>) => Issuer<K_1>;
|
|
11
11
|
getIssuerRecords: IssuerStorageGetIssuerRecords;
|
|
12
12
|
instantiate: (issuerRecords?: any[]) => void;
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"AAgBO,iDAFI,OAAO,kBAAkB,EAAE,OAAO;2DAwHhC,mBAAmB,KACjB,OAAO,CAAC;QAAE,OAAO,EAAE,mBAAmB,CAAC;QACnD,MAA4B,EAAE,kBAAkB,CAAA;KAAE,CAAC;uDAlDvC,OAAO,CAAC,YAAY,CAAC;sCAzBvB,YAAY,KACV,YAAY;;wBA2FN,CAAC;
|
|
1
|
+
{"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"AAgBO,iDAFI,OAAO,kBAAkB,EAAE,OAAO;2DAwHhC,mBAAmB,KACjB,OAAO,CAAC;QAAE,OAAO,EAAE,mBAAmB,CAAC;QACnD,MAA4B,EAAE,kBAAkB,CAAA;KAAE,CAAC;uDAlDvC,OAAO,CAAC,YAAY,CAAC;sCAzBvB,YAAY,KACV,YAAY;;wBA2FN,CAAC,uCADT,MAAM,CACE,CAAC,AADD,CAAC,KACP,KAAK,CAAC,CAAC,CAAC;wBAWD,GAAC,sCADV,KAAK,CACI,GAAC,AADH,CAAC,KACN,MAAM,CAAC,GAAC,CAAC;;;EAgCvB"}
|
package/src/makeHandle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeHandle.d.ts","sourceRoot":"","sources":["makeHandle.js"],"names":[],"mappings":"AAkBO,oCAF2D,CAAC,
|
|
1
|
+
{"version":3,"file":"makeHandle.d.ts","sourceRoot":"","sources":["makeHandle.js"],"names":[],"mappings":"AAkBO,oCAF2D,CAAC,+CAAD,CAAC,AADvD,GACsD,CAAC,AAArD,SAAS,UAAU,GAAG,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,CAAC,CAAC,CAanE;AAUM,2BAF+C,CAAC,6BAAD,CAAC,AAD3C,GAC0C,CAAC,AAAzC,SAAS,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,CAOvD;6BAlC0B,kBAAkB"}
|
package/src/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ type Keyword = string;
|
|
|
9
9
|
/**
|
|
10
10
|
* - an opaque handle for an invitation
|
|
11
11
|
*/
|
|
12
|
-
type InvitationHandle = Handle<
|
|
12
|
+
type InvitationHandle = Handle<"Invitation">;
|
|
13
13
|
type IssuerKeywordRecord = Record<Keyword, Issuer<any>>;
|
|
14
14
|
type IssuerPKeywordRecord = {
|
|
15
15
|
[x: string]: ERef<globalThis.Issuer<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function provideEscrowStorage(baggage: import(
|
|
1
|
+
export function provideEscrowStorage(baggage: import("@agoric/vat-data").Baggage): {
|
|
2
2
|
createPurse: CreatePurse;
|
|
3
3
|
provideLocalPurse: ProvideLocalPurse;
|
|
4
4
|
withdrawPayments: WithdrawPayments;
|
|
@@ -12,7 +12,7 @@ export namespace defaultFeeIssuerConfig {
|
|
|
12
12
|
* @param {FeeIssuerConfig} feeIssuerConfig
|
|
13
13
|
* @param {import('@agoric/swingset-vat').ShutdownWithFailure} shutdownZoeVat
|
|
14
14
|
*/
|
|
15
|
-
export function prepareFeeMint(zoeBaggage: import(
|
|
15
|
+
export function prepareFeeMint(zoeBaggage: import("@agoric/vat-data").Baggage, feeIssuerConfig: FeeIssuerConfig, shutdownZoeVat: import("@agoric/swingset-vat").ShutdownWithFailure): import("@endo/exo").GuardedKit<{
|
|
16
16
|
feeMint: {
|
|
17
17
|
getFeeIssuerKit(allegedFeeMintAccess: any): globalThis.IssuerKit<"nat">;
|
|
18
18
|
getFeeIssuer(): globalThis.Issuer<"nat">;
|
|
@@ -14,7 +14,7 @@ export function makeInstallationStorage(getBundleCapForID: GetBundleCapForID, zo
|
|
|
14
14
|
};
|
|
15
15
|
getBundleIDFromInstallation(allegedInstallation: any): any;
|
|
16
16
|
}>;
|
|
17
|
-
export type BundleCap = import(
|
|
18
|
-
export type BundleID = import(
|
|
17
|
+
export type BundleCap = import("@agoric/swingset-vat").BundleCap;
|
|
18
|
+
export type BundleID = import("@agoric/swingset-vat").BundleID;
|
|
19
19
|
import type { Baggage } from '@agoric/vat-data';
|
|
20
20
|
//# sourceMappingURL=installationStorage.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeInstanceAdminStorage(baggage: import(
|
|
1
|
+
export function makeInstanceAdminStorage(baggage: import("@agoric/vat-data").Baggage): import("@endo/exo").GuardedKit<{
|
|
2
2
|
accessor: {
|
|
3
3
|
getPublicFacet(instance: any): any;
|
|
4
4
|
getBrands(instance: any): any;
|
|
@@ -13,7 +13,7 @@ export function makeInstanceAdminStorage(baggage: import('@agoric/vat-data').Bag
|
|
|
13
13
|
deleteInstanceAdmin(instance: any): any;
|
|
14
14
|
};
|
|
15
15
|
}>;
|
|
16
|
-
export function makeInstanceAdminMaker(zoeBaggage: import(
|
|
16
|
+
export function makeInstanceAdminMaker(zoeBaggage: import("@agoric/vat-data").Baggage, seatHandleToZoeSeatAdmin: WeakMapStore<SeatHandle, ZoeSeatAdmin>): (instanceHandle: any, zoeInstanceStorageManager: any, adminNode: any) => import("@agoric/swingset-liveslots").KindFacet<{
|
|
17
17
|
getPublicFacet: ({ state }: {
|
|
18
18
|
state: any;
|
|
19
19
|
}) => any;
|
|
@@ -35,7 +35,7 @@ type ZoeInstanceStorageManager = {
|
|
|
35
35
|
getTerms: InstanceStateGetTerms;
|
|
36
36
|
getIssuers: InstanceRecordGetIssuers;
|
|
37
37
|
getBrands: InstanceRecordGetBrands;
|
|
38
|
-
saveIssuer: ZCF[
|
|
38
|
+
saveIssuer: ZCF["saveIssuer"];
|
|
39
39
|
makeZoeMint: MakeZoeMint;
|
|
40
40
|
registerFeeMint: RegisterFeeMint;
|
|
41
41
|
getInstanceRecord: GetInstanceRecord;
|
|
@@ -51,7 +51,7 @@ type ZoeInstanceStorageManager = {
|
|
|
51
51
|
/**
|
|
52
52
|
* of CreateVatResults
|
|
53
53
|
*/
|
|
54
|
-
getAdminNode: () => import(
|
|
54
|
+
getAdminNode: () => import("@agoric/swingset-vat").VatAdminFacet;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
57
57
|
* Create a storage manager for a particular contract instance. The
|
|
@@ -59,21 +59,21 @@ type ZoeInstanceStorageManager = {
|
|
|
59
59
|
* issuerStorage and escrowStorage from Zoe, and stores the
|
|
60
60
|
* instance-specific terms
|
|
61
61
|
*/
|
|
62
|
-
type MakeZoeInstanceStorageManager = (instanceBaggage: import(
|
|
62
|
+
type MakeZoeInstanceStorageManager = (instanceBaggage: import("@agoric/vat-data").Baggage, installation: Installation, customTerms: object, uncleanIssuerKeywordRecord: IssuerKeywordRecord, instance: Instance, contractBundleCap: any, instanceLabel: string) => Promise<ZoeInstanceStorageManager>;
|
|
63
63
|
type GetBundleCapForID = (id: string) => Promise<any>;
|
|
64
64
|
type GetProposalShapeForInvitation = (invitationHandle: InvitationHandle) => Pattern | undefined;
|
|
65
65
|
type ZoeStorageManager = {
|
|
66
66
|
makeZoeInstanceStorageManager: MakeZoeInstanceStorageManager;
|
|
67
67
|
getAssetKindByBrand: GetAssetKindByBrand;
|
|
68
68
|
depositPayments: DepositPayments;
|
|
69
|
-
invitationIssuer: Issuer<
|
|
69
|
+
invitationIssuer: Issuer<"set">;
|
|
70
70
|
installBundle: InstallBundle;
|
|
71
71
|
installBundleID: InstallBundleID;
|
|
72
72
|
getBundleIDFromInstallation: GetBundleIDFromInstallation;
|
|
73
|
-
getPublicFacet: import(
|
|
73
|
+
getPublicFacet: import("./utils.js").GetPublicFacet;
|
|
74
74
|
getBrands: GetBrands;
|
|
75
75
|
getIssuers: GetIssuers;
|
|
76
|
-
getTerms: import(
|
|
76
|
+
getTerms: import("./utils.js").GetTerms;
|
|
77
77
|
getOfferFilter: GetOfferFilter;
|
|
78
78
|
setOfferFilter: SetOfferFilter;
|
|
79
79
|
getInstallationForInstance: GetInstallationForInstance;
|
|
@@ -85,6 +85,6 @@ type ZoeStorageManager = {
|
|
|
85
85
|
* Use VatAdminSvc to create a new vat, but only with the code of the
|
|
86
86
|
* ZCF bundle
|
|
87
87
|
*/
|
|
88
|
-
type CreateZCFVat = (contractBundleCap: any, contractLabel: string) => Promise<import(
|
|
89
|
-
type GetFeeIssuerKit = (feeMintAccess: FeeMintAccess) => IssuerKit<
|
|
88
|
+
type CreateZCFVat = (contractBundleCap: any, contractLabel: string) => Promise<import("@agoric/swingset-vat").CreateVatResults>;
|
|
89
|
+
type GetFeeIssuerKit = (feeMintAccess: FeeMintAccess) => IssuerKit<"nat">;
|
|
90
90
|
//# sourceMappingURL=internal-types.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function prepareInvitationKit(baggage: import(
|
|
1
|
+
export function prepareInvitationKit(baggage: import("@agoric/vat-data").Baggage, shutdownZoeVat?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined): {
|
|
2
2
|
invitationIssuer: globalThis.Issuer<"set">;
|
|
3
3
|
invitationKit: globalThis.IssuerKit<"set">;
|
|
4
4
|
};
|
|
@@ -30,5 +30,5 @@ export namespace OriginalZoeSeatIKit {
|
|
|
30
30
|
}>;
|
|
31
31
|
export { ZoeUserSeatShape as userSeat };
|
|
32
32
|
}
|
|
33
|
-
export function declareOldZoeSeatAdminKind(baggage: import(
|
|
33
|
+
export function declareOldZoeSeatAdminKind(baggage: import("@agoric/vat-data").Baggage, makeDurablePublishKit: () => PublishKit<any>): void;
|
|
34
34
|
//# sourceMappingURL=originalZoeSeat.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeStartInstance(startInstanceAccess: Pick<ZoeStorageManager,
|
|
2
|
-
export type BundleCap = import(
|
|
1
|
+
export function makeStartInstance(startInstanceAccess: Pick<ZoeStorageManager, "makeZoeInstanceStorageManager" | "unwrapInstallation">, getZcfBundleCapP: () => any, getBundleCapByIdNow: (id: string) => BundleCap, zoeBaggage: Baggage): import("./utils.js").StartInstance;
|
|
2
|
+
export type BundleCap = import("@agoric/swingset-vat").BundleCap;
|
|
3
3
|
import type { Baggage } from '@agoric/vat-data';
|
|
4
4
|
//# sourceMappingURL=startInstance.d.ts.map
|
|
@@ -23,12 +23,12 @@ type ZoeService = {
|
|
|
23
23
|
getInvitationIssuer: GetInvitationIssuer;
|
|
24
24
|
install: InstallBundle;
|
|
25
25
|
installBundleID: InstallBundleID;
|
|
26
|
-
startInstance: import(
|
|
26
|
+
startInstance: import("./utils.js").StartInstance;
|
|
27
27
|
offer: Offer;
|
|
28
|
-
getPublicFacet: import(
|
|
28
|
+
getPublicFacet: import("./utils.js").GetPublicFacet;
|
|
29
29
|
getIssuers: GetIssuers;
|
|
30
30
|
getBrands: GetBrands;
|
|
31
|
-
getTerms: import(
|
|
31
|
+
getTerms: import("./utils.js").GetTerms;
|
|
32
32
|
getOfferFilter: GetOfferFilter;
|
|
33
33
|
getInstallationForInstance: GetInstallationForInstance;
|
|
34
34
|
getInstance: GetInstance;
|
|
@@ -43,17 +43,17 @@ type ZoeService = {
|
|
|
43
43
|
getBundleIDFromInstallation: GetBundleIDFromInstallation;
|
|
44
44
|
getProposalShapeForInvitation: (invitationHandle: InvitationHandle) => Pattern | undefined;
|
|
45
45
|
};
|
|
46
|
-
type GetInvitationIssuer = () => Promise<Issuer<
|
|
47
|
-
type GetFeeIssuer = () => Promise<Issuer<
|
|
46
|
+
type GetInvitationIssuer = () => Promise<Issuer<"set">>;
|
|
47
|
+
type GetFeeIssuer = () => Promise<Issuer<"nat">>;
|
|
48
48
|
type GetConfiguration = () => {
|
|
49
49
|
feeIssuerConfig: FeeIssuerConfig;
|
|
50
50
|
};
|
|
51
|
-
type GetIssuers = (instance: import(
|
|
52
|
-
type GetBrands = (instance: import(
|
|
53
|
-
type GetOfferFilter = (instance: import(
|
|
51
|
+
type GetIssuers = (instance: import("./utils.js").Instance<any>) => Promise<IssuerKeywordRecord>;
|
|
52
|
+
type GetBrands = (instance: import("./utils.js").Instance<any>) => Promise<BrandKeywordRecord>;
|
|
53
|
+
type GetOfferFilter = (instance: import("./utils.js").Instance<any>) => string[];
|
|
54
54
|
type SetOfferFilter = (instance: Instance, strings: string[]) => any;
|
|
55
|
-
type GetInstallationForInstance = (instance: import(
|
|
56
|
-
type GetInstance = (invitation: ERef<Invitation<unknown, undefined>>) => Promise<import(
|
|
55
|
+
type GetInstallationForInstance = (instance: import("./utils.js").Instance<any>) => Promise<Installation>;
|
|
56
|
+
type GetInstance = (invitation: ERef<Invitation<unknown, undefined>>) => Promise<import("./utils.js").Instance<any>>;
|
|
57
57
|
type GetInstallation = (invitation: ERef<Invitation<unknown, undefined>>) => Promise<Installation>;
|
|
58
58
|
type GetInvitationDetails = (invitation: ERef<Invitation<any, any>>) => Promise<InvitationDetails>;
|
|
59
59
|
/**
|
|
@@ -85,7 +85,7 @@ type GetBundleIDFromInstallation = (allegedInstallation: ERef<Installation<any>>
|
|
|
85
85
|
* values are the actual payments to be escrowed. A payment is
|
|
86
86
|
* expected for every rule under `give`.
|
|
87
87
|
*/
|
|
88
|
-
type Offer = <Result, Args = undefined>(invitation: ERef<Invitation<Result, Args>>, proposal?: Proposal, paymentKeywordRecord?: PaymentPKeywordRecord, offerArgs?: Args
|
|
88
|
+
type Offer = <Result, Args = undefined>(invitation: ERef<Invitation<Result, Args>>, proposal?: Proposal, paymentKeywordRecord?: PaymentPKeywordRecord, offerArgs?: Args) => Promise<UserSeat<Result>>;
|
|
89
89
|
/**
|
|
90
90
|
* Zoe uses seats to access or manipulate offers. They let contracts and users
|
|
91
91
|
* interact with them. Zoe has two kinds of seats. ZCFSeats are used within
|
|
@@ -173,8 +173,8 @@ type WaivedExitRule = {
|
|
|
173
173
|
};
|
|
174
174
|
type AfterDeadlineExitRule = {
|
|
175
175
|
afterDeadline: {
|
|
176
|
-
timer: import(
|
|
177
|
-
deadline: import(
|
|
176
|
+
timer: import("@agoric/time").TimerService;
|
|
177
|
+
deadline: import("@agoric/time").Timestamp;
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -186,9 +186,9 @@ type AfterDeadlineExitRule = {
|
|
|
186
186
|
* `{ afterDeadline: { timer :Timer<Deadline>, deadline :Deadline } }`
|
|
187
187
|
*/
|
|
188
188
|
type ExitRule = OnDemandExitRule | WaivedExitRule | AfterDeadlineExitRule;
|
|
189
|
-
type Instance = import(
|
|
189
|
+
type Instance = import("./utils.js").Instance<any>;
|
|
190
190
|
type ZCFSpec = {
|
|
191
|
-
bundleCap: import(
|
|
191
|
+
bundleCap: import("@agoric/swingset-vat").BundleCap;
|
|
192
192
|
} | {
|
|
193
193
|
name: string;
|
|
194
194
|
} | {
|
|
@@ -204,13 +204,13 @@ type PaymentPKeywordRecord = {
|
|
|
204
204
|
type PaymentKeywordRecord = Record<Keyword, Payment<any>>;
|
|
205
205
|
type InvitationDetails = {
|
|
206
206
|
installation: Installation;
|
|
207
|
-
instance: import(
|
|
207
|
+
instance: import("./utils.js").Instance<any>;
|
|
208
208
|
handle: InvitationHandle;
|
|
209
209
|
description: string;
|
|
210
210
|
customDetails?: Record<string, any> | undefined;
|
|
211
211
|
};
|
|
212
|
-
type Installation<SF = any> = import(
|
|
213
|
-
type InstallationStart<I extends Installation<any>> = import(
|
|
212
|
+
type Installation<SF = any> = import("./utils.js").Installation<SF>;
|
|
213
|
+
type InstallationStart<I extends Installation<any>> = import("./utils.js").InstallationStart<I>;
|
|
214
214
|
type FeeIssuerConfig = {
|
|
215
215
|
name: string;
|
|
216
216
|
assetKind: AssetKind;
|
|
@@ -219,6 +219,6 @@ type FeeIssuerConfig = {
|
|
|
219
219
|
type ZoeFeesConfig = {
|
|
220
220
|
getPublicFacetFee: NatValue;
|
|
221
221
|
};
|
|
222
|
-
type FeeMintAccess = Handle<
|
|
222
|
+
type FeeMintAccess = Handle<"feeMintAccess">;
|
|
223
223
|
import type { VatAdminSvc } from '@agoric/swingset-vat';
|
|
224
224
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;yBAmBc,mBAAmB;aASnB,aAAa;qBACb,eAAe;mBACf,OAAO,YAAY,EAAE,aAAa;WAClC,KAAK;oBACL,OAAO,YAAY,EAAE,cAAc;gBACnC,UAAU;eACV,SAAS;cACT,OAAO,YAAY,EAAE,QAAQ;oBAC7B,cAAc;gCACd,0BAA0B;iBAC1B,WAAW;qBACX,eAAe;;;;;0BACf,oBAAoB;kBAGpB,YAAY;sBACZ,gBAAgB;iCAChB,2BAA2B;mCAC3B,CAAC,gBAAgB,EAAE,gBAAgB,KAAK,OAAO,GAAG,SAAS;;iCAK5D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;0BAKtB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;8BAKtB;IACZ,eAAmB,EAAE,eAAe,CAAC;CAClC;6BAKO,OAAO,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,KAChC,OAAO,CAAC,mBAAmB,CAAC;4BAK9B,OAAO,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,KAChC,OAAO,CAAC,kBAAkB,CAAC;iCAK7B,OAAO,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,KAChC,MAAM,EAAE;iCAKV,QAAQ,WACR,MAAM,EAAE;6CAKR,OAAO,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,KAChC,OAAO,CAAC,YAAY,CAAC;yEAMrB,OAAO,CAAC,OAAO,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;6EAM3C,OAAO,CAAC,YAAY,CAAC;wEAMrB,OAAO,CAAC,iBAAiB,CAAC;;;;;4FAa1B,OAAO,CAAC,YAAY,CAAC;;;;+EAYrB,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;cAmBP,MAAM,EADhB,IAAI,qEAFL,QAAQ,yBACI,qBAAqB;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeZoeSeatAdminFactory(baggage: import(
|
|
1
|
+
export function makeZoeSeatAdminFactory(baggage: import("@agoric/vat-data").Baggage): (initialAllocation: Allocation, proposal: ProposalRecord, instanceAdminHelper: InstanceAdminHelper, withdrawFacet: WithdrawFacet, exitObj?: ERef<ExitObj> | undefined, offerResultIsUndefined?: boolean | undefined) => {
|
|
2
2
|
userSeat: import("@endo/exo").Guarded<{
|
|
3
3
|
getProposal(): Promise<any>;
|
|
4
4
|
getPayouts(): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapForID: GetBundleCapForID, shutdownZoeVat: import(
|
|
1
|
+
export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapForID: GetBundleCapForID, shutdownZoeVat: import("@agoric/swingset-vat").ShutdownWithFailure, feeMint: {
|
|
2
2
|
getFeeIssuerKit: GetFeeIssuerKit;
|
|
3
3
|
getFeeIssuer: () => Issuer;
|
|
4
4
|
getFeeBrand: () => Brand;
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
*/
|
|
19
19
|
export function makeFakePriceAuthority(options: FakePriceAuthorityOptions): Promise<PriceAuthority>;
|
|
20
20
|
export type FakePriceAuthorityOptions = {
|
|
21
|
-
actualBrandIn: Brand<
|
|
22
|
-
actualBrandOut: Brand<
|
|
21
|
+
actualBrandIn: Brand<"nat">;
|
|
22
|
+
actualBrandOut: Brand<"nat">;
|
|
23
23
|
priceList?: number[] | undefined;
|
|
24
24
|
tradeList?: [number, number][] | undefined;
|
|
25
25
|
timer: ERef<TimerService>;
|
package/tools/fakeVatAdmin.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const zcfBundleCap: any;
|
|
2
2
|
export default fakeVatAdmin;
|
|
3
|
-
export type BundleID = import(
|
|
4
|
-
export type EndoZipBase64Bundle = import(
|
|
5
|
-
export type BundleCap = import(
|
|
3
|
+
export type BundleID = import("@agoric/swingset-vat").BundleID;
|
|
4
|
+
export type EndoZipBase64Bundle = import("@agoric/swingset-vat").EndoZipBase64Bundle;
|
|
5
|
+
export type BundleCap = import("@agoric/swingset-vat").BundleCap;
|
|
6
6
|
declare const fakeVatAdmin: {
|
|
7
7
|
getBundleCap: (bundleID: any) => Promise<any>;
|
|
8
8
|
waitForBundleCap: (bundleID: any) => Promise<any>;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* @returns {PriceAuthority & { setPrice: (Ratio) => void; disable: () => void }}
|
|
9
9
|
*/
|
|
10
10
|
export function makeManualPriceAuthority(options: {
|
|
11
|
-
actualBrandIn: Brand<
|
|
12
|
-
actualBrandOut: Brand<
|
|
11
|
+
actualBrandIn: Brand<"nat">;
|
|
12
|
+
actualBrandOut: Brand<"nat">;
|
|
13
13
|
initialPrice: Ratio;
|
|
14
|
-
timer: import(
|
|
14
|
+
timer: import("@agoric/time").TimerService;
|
|
15
15
|
quoteIssuerKit?: globalThis.IssuerKit<"set"> | undefined;
|
|
16
16
|
}): PriceAuthority & {
|
|
17
17
|
setPrice: (Ratio: any) => void;
|
package/tools/manualTimer.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @param {ZoeService} zoe
|
|
15
15
|
* @param {Issuer} feeIssuer
|
|
16
16
|
*/
|
|
17
|
-
export function makeScriptedOracle(script: Record<string, any>, oracleInstallation: Installation<import(
|
|
17
|
+
export function makeScriptedOracle(script: Record<string, any>, oracleInstallation: Installation<import("../src/contracts/oracle.js").OracleStart>, timer: import("@agoric/time").TimerService, zoe: ZoeService, feeIssuer: Issuer): Promise<{
|
|
18
18
|
publicFacet: {
|
|
19
19
|
query(query: OracleQuery): Promise<unknown>;
|
|
20
20
|
makeQueryInvitation(query: OracleQuery): Promise<Invitation<unknown, never>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scriptedOracle.d.ts","sourceRoot":"","sources":["scriptedOracle.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,2CANW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,sBACnB,YAAY,CAAC,OAAO,4BAA4B,EAAE,WAAW,CAAC,SAC9D,OAAO,cAAc,EAAE,YAAY,OACnC,UAAU,aACV,MAAM
|
|
1
|
+
{"version":3,"file":"scriptedOracle.d.ts","sourceRoot":"","sources":["scriptedOracle.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,2CANW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,sBACnB,YAAY,CAAC,OAAO,4BAA4B,EAAE,WAAW,CAAC,SAC9D,OAAO,cAAc,EAAE,YAAY,OACnC,UAAU,aACV,MAAM;;qBA6B6B,WAAW;mCAS+T,WAAW;;;;;;GADlY"}
|
package/tools/setup-zoe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AASO;;;;;;;EAKN;AAKM,kFACoC;AAYpC,gCALU,CAAC;IAAoB,MAAM,
|
|
1
|
+
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AASO;;;;;;;EAKN;AAKM,kFACoC;AAYpC,gCALU,CAAC;IAAoB,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;;;;;;;;;;;;;;;;;;GA+BzC"}
|
package/tools/types-ambient.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ type PriceQuote = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Amount whose value is a PriceQuoteValue
|
|
4
4
|
*/
|
|
5
|
-
quoteAmount: Amount<
|
|
5
|
+
quoteAmount: Amount<"set">;
|
|
6
6
|
/**
|
|
7
7
|
* The `quoteAmount` wrapped as a payment
|
|
8
8
|
*/
|
|
@@ -20,19 +20,19 @@ type PriceDescription = {
|
|
|
20
20
|
/**
|
|
21
21
|
* The amount supplied to a trade
|
|
22
22
|
*/
|
|
23
|
-
amountIn: Amount<
|
|
23
|
+
amountIn: Amount<"nat">;
|
|
24
24
|
/**
|
|
25
25
|
* The quoted result of trading `amountIn`
|
|
26
26
|
*/
|
|
27
|
-
amountOut: Amount<
|
|
27
|
+
amountOut: Amount<"nat">;
|
|
28
28
|
/**
|
|
29
29
|
* The service that gave the `timestamp`
|
|
30
30
|
*/
|
|
31
|
-
timer: import(
|
|
31
|
+
timer: import("@agoric/time").TimerService;
|
|
32
32
|
/**
|
|
33
33
|
* A timestamp according to `timer` for the quote
|
|
34
34
|
*/
|
|
35
|
-
timestamp: import(
|
|
35
|
+
timestamp: import("@agoric/time").TimestampRecord;
|
|
36
36
|
/**
|
|
37
37
|
* Additional conditions for the quote
|
|
38
38
|
*/
|
|
@@ -49,7 +49,7 @@ type PriceAuthorityKit = {
|
|
|
49
49
|
};
|
|
50
50
|
type MutableQuote = {
|
|
51
51
|
cancel: (reason?: any) => void;
|
|
52
|
-
updateLevel: (amountIn: Amount<
|
|
52
|
+
updateLevel: (amountIn: Amount<"nat">, amountOut: Amount<"nat">) => void;
|
|
53
53
|
getPromise: () => ERef<PriceQuote>;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
@@ -70,28 +70,28 @@ type PriceAuthority = {
|
|
|
70
70
|
* `amountIn`. The rate at which these are issued may be very different between
|
|
71
71
|
* `priceAuthorities`.
|
|
72
72
|
*/
|
|
73
|
-
makeQuoteNotifier: (amountIn: Amount<
|
|
73
|
+
makeQuoteNotifier: (amountIn: Amount<"nat">, brandOut: Brand<"nat">) => ERef<Notifier<PriceQuote>>;
|
|
74
74
|
/**
|
|
75
75
|
* Resolves after `deadline` passes on the
|
|
76
76
|
* priceAuthority's timerService with the price quote of `amountIn` at that time
|
|
77
77
|
*/
|
|
78
|
-
quoteAtTime: (deadline: import(
|
|
78
|
+
quoteAtTime: (deadline: import("@agoric/time").Timestamp, amountIn: Amount<"nat">, brandOut: Brand<"nat">) => Promise<PriceQuote>;
|
|
79
79
|
/**
|
|
80
80
|
* Get a quote corresponding to the specified amountIn
|
|
81
81
|
*/
|
|
82
|
-
quoteGiven: (amountIn: Amount<
|
|
82
|
+
quoteGiven: (amountIn: Amount<"nat">, brandOut: Brand<"nat">) => Promise<PriceQuote>;
|
|
83
83
|
/**
|
|
84
84
|
* Get a quote corresponding to the specified amountOut
|
|
85
85
|
*/
|
|
86
|
-
quoteWanted: (brandIn: Brand<
|
|
86
|
+
quoteWanted: (brandIn: Brand<"nat">, amountOut: Amount<"nat">) => Promise<PriceQuote>;
|
|
87
87
|
/**
|
|
88
88
|
* Resolve when a price quote of `amountIn` exceeds `amountOutLimit`
|
|
89
89
|
*/
|
|
90
|
-
quoteWhenGT: (amountIn: Amount<
|
|
90
|
+
quoteWhenGT: (amountIn: Amount<"nat">, amountOutLimit: Amount<"nat">) => Promise<PriceQuote>;
|
|
91
91
|
/**
|
|
92
92
|
* Resolve when a price quote of `amountIn` reaches or exceeds `amountOutLimit`
|
|
93
93
|
*/
|
|
94
|
-
quoteWhenGTE: (amountIn: Amount<
|
|
94
|
+
quoteWhenGTE: (amountIn: Amount<"nat">, amountOutLimit: Amount<"nat">) => Promise<PriceQuote>;
|
|
95
95
|
/**
|
|
96
96
|
* Resolve when a price quote of `amountIn` reaches or drops below
|
|
97
97
|
* `amountOutLimit`
|
|
@@ -120,11 +120,11 @@ type PriceAuthority = {
|
|
|
120
120
|
*/
|
|
121
121
|
mutableQuoteWhenLT: (amountIn: Amount, amountOutLimit: Amount) => ERef<MutableQuote>;
|
|
122
122
|
};
|
|
123
|
-
type PriceCalculator = (amount: Amount<
|
|
123
|
+
type PriceCalculator = (amount: Amount<"nat">) => Amount<"nat">;
|
|
124
124
|
type PriceQuery = (calcAmountIn: PriceCalculator, calcAmountOut: PriceCalculator) => {
|
|
125
|
-
amountIn: Amount<
|
|
126
|
-
amountOut: Amount<
|
|
127
|
-
timestamp?: import(
|
|
125
|
+
amountIn: Amount<"nat">;
|
|
126
|
+
amountOut: Amount<"nat">;
|
|
127
|
+
timestamp?: import("@agoric/time").TimestampRecord;
|
|
128
128
|
} | undefined;
|
|
129
129
|
/**
|
|
130
130
|
* A description of a single quote
|
|
@@ -133,10 +133,10 @@ type PriceLevel = {
|
|
|
133
133
|
/**
|
|
134
134
|
* The amount supplied to a trade
|
|
135
135
|
*/
|
|
136
|
-
amountIn: Amount<
|
|
136
|
+
amountIn: Amount<"nat">;
|
|
137
137
|
/**
|
|
138
138
|
* The quoted result of trading `amountIn`
|
|
139
139
|
*/
|
|
140
|
-
amountOut: Amount<
|
|
140
|
+
amountOut: Amount<"nat">;
|
|
141
141
|
};
|
|
142
142
|
//# sourceMappingURL=types-ambient.d.ts.map
|
package/tools/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type PriceQuote = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Amount whose value is a PriceQuoteValue
|
|
4
4
|
*/
|
|
5
|
-
quoteAmount: Amount<
|
|
5
|
+
quoteAmount: Amount<"set">;
|
|
6
6
|
/**
|
|
7
7
|
* The `quoteAmount` wrapped as a payment
|
|
8
8
|
*/
|
|
@@ -20,19 +20,19 @@ export type PriceDescription = {
|
|
|
20
20
|
/**
|
|
21
21
|
* The amount supplied to a trade
|
|
22
22
|
*/
|
|
23
|
-
amountIn: Amount<
|
|
23
|
+
amountIn: Amount<"nat">;
|
|
24
24
|
/**
|
|
25
25
|
* The quoted result of trading `amountIn`
|
|
26
26
|
*/
|
|
27
|
-
amountOut: Amount<
|
|
27
|
+
amountOut: Amount<"nat">;
|
|
28
28
|
/**
|
|
29
29
|
* The service that gave the `timestamp`
|
|
30
30
|
*/
|
|
31
|
-
timer: import(
|
|
31
|
+
timer: import("@agoric/time").TimerService;
|
|
32
32
|
/**
|
|
33
33
|
* A timestamp according to `timer` for the quote
|
|
34
34
|
*/
|
|
35
|
-
timestamp: import(
|
|
35
|
+
timestamp: import("@agoric/time").TimestampRecord;
|
|
36
36
|
/**
|
|
37
37
|
* Additional conditions for the quote
|
|
38
38
|
*/
|
|
@@ -49,7 +49,7 @@ export type PriceAuthorityKit = {
|
|
|
49
49
|
};
|
|
50
50
|
export type MutableQuote = {
|
|
51
51
|
cancel: (reason?: any) => void;
|
|
52
|
-
updateLevel: (amountIn: Amount<
|
|
52
|
+
updateLevel: (amountIn: Amount<"nat">, amountOut: Amount<"nat">) => void;
|
|
53
53
|
getPromise: () => ERef<PriceQuote>;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
@@ -70,28 +70,28 @@ export type PriceAuthority = {
|
|
|
70
70
|
* `amountIn`. The rate at which these are issued may be very different between
|
|
71
71
|
* `priceAuthorities`.
|
|
72
72
|
*/
|
|
73
|
-
makeQuoteNotifier: (amountIn: Amount<
|
|
73
|
+
makeQuoteNotifier: (amountIn: Amount<"nat">, brandOut: Brand<"nat">) => ERef<Notifier<PriceQuote>>;
|
|
74
74
|
/**
|
|
75
75
|
* Resolves after `deadline` passes on the
|
|
76
76
|
* priceAuthority's timerService with the price quote of `amountIn` at that time
|
|
77
77
|
*/
|
|
78
|
-
quoteAtTime: (deadline: import(
|
|
78
|
+
quoteAtTime: (deadline: import("@agoric/time").Timestamp, amountIn: Amount<"nat">, brandOut: Brand<"nat">) => Promise<PriceQuote>;
|
|
79
79
|
/**
|
|
80
80
|
* Get a quote corresponding to the specified amountIn
|
|
81
81
|
*/
|
|
82
|
-
quoteGiven: (amountIn: Amount<
|
|
82
|
+
quoteGiven: (amountIn: Amount<"nat">, brandOut: Brand<"nat">) => Promise<PriceQuote>;
|
|
83
83
|
/**
|
|
84
84
|
* Get a quote corresponding to the specified amountOut
|
|
85
85
|
*/
|
|
86
|
-
quoteWanted: (brandIn: Brand<
|
|
86
|
+
quoteWanted: (brandIn: Brand<"nat">, amountOut: Amount<"nat">) => Promise<PriceQuote>;
|
|
87
87
|
/**
|
|
88
88
|
* Resolve when a price quote of `amountIn` exceeds `amountOutLimit`
|
|
89
89
|
*/
|
|
90
|
-
quoteWhenGT: (amountIn: Amount<
|
|
90
|
+
quoteWhenGT: (amountIn: Amount<"nat">, amountOutLimit: Amount<"nat">) => Promise<PriceQuote>;
|
|
91
91
|
/**
|
|
92
92
|
* Resolve when a price quote of `amountIn` reaches or exceeds `amountOutLimit`
|
|
93
93
|
*/
|
|
94
|
-
quoteWhenGTE: (amountIn: Amount<
|
|
94
|
+
quoteWhenGTE: (amountIn: Amount<"nat">, amountOutLimit: Amount<"nat">) => Promise<PriceQuote>;
|
|
95
95
|
/**
|
|
96
96
|
* Resolve when a price quote of `amountIn` reaches or drops below
|
|
97
97
|
* `amountOutLimit`
|
|
@@ -120,11 +120,11 @@ export type PriceAuthority = {
|
|
|
120
120
|
*/
|
|
121
121
|
mutableQuoteWhenLT: (amountIn: Amount, amountOutLimit: Amount) => ERef<MutableQuote>;
|
|
122
122
|
};
|
|
123
|
-
export type PriceCalculator = (amount: Amount<
|
|
123
|
+
export type PriceCalculator = (amount: Amount<"nat">) => Amount<"nat">;
|
|
124
124
|
export type PriceQuery = (calcAmountIn: PriceCalculator, calcAmountOut: PriceCalculator) => {
|
|
125
|
-
amountIn: Amount<
|
|
126
|
-
amountOut: Amount<
|
|
127
|
-
timestamp?: import(
|
|
125
|
+
amountIn: Amount<"nat">;
|
|
126
|
+
amountOut: Amount<"nat">;
|
|
127
|
+
timestamp?: import("@agoric/time").TimestampRecord;
|
|
128
128
|
} | undefined;
|
|
129
129
|
/**
|
|
130
130
|
* A description of a single quote
|
|
@@ -133,10 +133,10 @@ export type PriceLevel = {
|
|
|
133
133
|
/**
|
|
134
134
|
* The amount supplied to a trade
|
|
135
135
|
*/
|
|
136
|
-
amountIn: Amount<
|
|
136
|
+
amountIn: Amount<"nat">;
|
|
137
137
|
/**
|
|
138
138
|
* The quoted result of trading `amountIn`
|
|
139
139
|
*/
|
|
140
|
-
amountOut: Amount<
|
|
140
|
+
amountOut: Amount<"nat">;
|
|
141
141
|
};
|
|
142
142
|
//# sourceMappingURL=types.d.ts.map
|