@agoric/inter-protocol 0.16.2-dev-4f72580.0 → 0.16.2-dev-bef63e5.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 +16 -16
- package/src/auction/auctionBook.d.ts +2 -2
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/offerBook.d.ts +2 -29
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/params.d.ts +2 -2
- package/src/econCommitteeCharter.d.ts +1 -9
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.d.ts +5 -50
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.d.ts +2 -176
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/priceOracleKit.d.ts +1 -15
- package/src/price/priceOracleKit.d.ts.map +1 -1
- package/src/price/roundsManager.d.ts +1 -129
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +20 -16
- package/src/proposals/econ-behaviors.d.ts +10 -10
- package/src/provisionPool.d.ts +60 -64
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPoolKit.d.ts +131 -156
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/psm/psm.d.ts +3 -60
- package/src/psm/psm.d.ts.map +1 -1
- package/src/reserve/assetReserve.d.ts +4 -4
- package/src/reserve/assetReserveKit.d.ts +1 -46
- package/src/reserve/assetReserveKit.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +12 -12
- package/src/vaultFactory/params.d.ts +2 -2
- package/src/vaultFactory/prioritizedVaults.d.ts +36 -36
- package/src/vaultFactory/vault.d.ts +5 -210
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.d.ts +20 -269
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +16 -16
- package/src/vaultFactory/vaultHolder.d.ts +12 -87
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.d.ts +4 -4
- package/src/vaultFactory/vaultManager.d.ts +12 -211
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/inter-protocol",
|
|
3
|
-
"version": "0.16.2-dev-
|
|
3
|
+
"version": "0.16.2-dev-bef63e5.0+bef63e5",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/assert": "0.6.1-dev-
|
|
35
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
36
|
-
"@agoric/governance": "0.10.4-dev-
|
|
37
|
-
"@agoric/internal": "0.3.3-dev-
|
|
38
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
39
|
-
"@agoric/store": "0.9.3-dev-
|
|
40
|
-
"@agoric/time": "0.3.3-dev-
|
|
41
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
42
|
-
"@agoric/vats": "0.15.2-dev-
|
|
43
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
34
|
+
"@agoric/assert": "0.6.1-dev-bef63e5.0+bef63e5",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-bef63e5.0+bef63e5",
|
|
36
|
+
"@agoric/governance": "0.10.4-dev-bef63e5.0+bef63e5",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-bef63e5.0+bef63e5",
|
|
38
|
+
"@agoric/notifier": "0.6.3-dev-bef63e5.0+bef63e5",
|
|
39
|
+
"@agoric/store": "0.9.3-dev-bef63e5.0+bef63e5",
|
|
40
|
+
"@agoric/time": "0.3.3-dev-bef63e5.0+bef63e5",
|
|
41
|
+
"@agoric/vat-data": "0.5.3-dev-bef63e5.0+bef63e5",
|
|
42
|
+
"@agoric/vats": "0.15.2-dev-bef63e5.0+bef63e5",
|
|
43
|
+
"@agoric/zoe": "0.26.3-dev-bef63e5.0+bef63e5",
|
|
44
44
|
"@endo/captp": "^4.0.1",
|
|
45
45
|
"@endo/eventual-send": "^1.0.1",
|
|
46
46
|
"@endo/far": "^1.0.1",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"jessie.js": "^0.3.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
54
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
55
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
53
|
+
"@agoric/smart-wallet": "0.5.4-dev-bef63e5.0+bef63e5",
|
|
54
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-bef63e5.0+bef63e5",
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-bef63e5.0+bef63e5",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-bef63e5.0+bef63e5",
|
|
57
57
|
"@endo/bundle-source": "^3.0.1",
|
|
58
58
|
"@endo/init": "^1.0.1",
|
|
59
59
|
"@endo/promise-kit": "^1.0.1",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"typeCoverage": {
|
|
86
86
|
"atLeast": 93.45
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "bef63e5f0c6ad6a553b3eef69d722c060995a247"
|
|
89
89
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function makeOfferSpecShape(bidBrand: Brand<'nat'>, collateralBrand: Brand<'nat'>): any;
|
|
2
|
-
export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit): (bidBrand: Brand<"nat">, collateralBrand: Brand<"nat">, pAuthority: PriceAuthority, node: StorageNode) => {
|
|
2
|
+
export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit): (bidBrand: Brand<"nat">, collateralBrand: Brand<"nat">, pAuthority: PriceAuthority, node: StorageNode) => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
3
3
|
/**
|
|
4
4
|
* @param {Amount<'nat'>} assetAmount
|
|
5
5
|
* @param {ZCFSeat} sourceSeat
|
|
@@ -32,7 +32,7 @@ export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit:
|
|
|
32
32
|
getPublicTopics(): {
|
|
33
33
|
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<BookDataNotification>;
|
|
34
34
|
};
|
|
35
|
-
}
|
|
35
|
+
}>;
|
|
36
36
|
export type OfferSpec = {
|
|
37
37
|
maxBuy: Amount<'nat'>;
|
|
38
38
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctionBook.d.ts","sourceRoot":"","sources":["auctionBook.js"],"names":[],"mappings":"AAyEO,6CAHI,MAAM,KAAK,CAAC,mBACZ,MAAM,KAAK,CAAC,OAiBtB;AA0BM,4CAJI,OAAO,OACP,GAAG,mBACH,OAAO,6CAA6C,EAAE,eAAe;IAwWxE;;;;;;;;OAQG;2BAPQ,OAAO,KAAK,CAAC,cACb,OAAO;IA6ElB,yCAAyC;+BAAlB,KAAK,GAAK,IAAI;;;;;IAsGrC;;;;OAIG;wBAHQ,SAAS,QACT,OAAO,aACP,OAAO;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"auctionBook.d.ts","sourceRoot":"","sources":["auctionBook.js"],"names":[],"mappings":"AAyEO,6CAHI,MAAM,KAAK,CAAC,mBACZ,MAAM,KAAK,CAAC,OAiBtB;AA0BM,4CAJI,OAAO,OACP,GAAG,mBACH,OAAO,6CAA6C,EAAE,eAAe;IAwWxE;;;;;;;;OAQG;2BAPQ,OAAO,KAAK,CAAC,cACb,OAAO;IA6ElB,yCAAyC;+BAAlB,KAAK,GAAK,IAAI;;;;;IAsGrC;;;;OAIG;wBAHQ,SAAS,QACT,OAAO,aACP,OAAO;;;;;;;;;;;GAsHzB;wBA9sBY;IACZ,MAAU,EAAE,OAAO,KAAK,CAAC,CAAC;CACvB,GAAG;IACN,YAAgB,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,CACE;IACR,UAAoB,EAAE,KAAK,CAAC;CACnB,GACD;IACR,eAAyB,EAAE,KAAK,CAAC;CACxB,CACJ;sBAuBQ,OAAO,kBAAkB,EAAE,OAAO;;;;;gBAIlC,KAAK,GAAG,IAAI;;;;;uBACZ,KAAK,GAAG,IAAI;;;;;uBAEZ,OAAO,KAAK,CAAC,GAAG,IAAI;;;;;2BAEpB,OAAO,KAAK,CAAC,GAAG,IAAI;;;;;oBAEpB,OAAO,KAAK,CAAC,GAAG,SAAS;;;;;qBAEzB,OAAO,KAAK,CAAC;;;;;yBAEb,OAAO,KAAK,CAAC,GAAG,IAAI;;0BAgqBpB,WAAW,WAAW,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: any, collateralBrand: Brand<AssetKind>) => {
|
|
2
|
-
/**
|
|
3
|
-
* @param {ZCFSeat} seat
|
|
4
|
-
* @param {Ratio} bidScaling
|
|
5
|
-
* @param {Amount<'nat'>} wanted
|
|
6
|
-
* @param {boolean} exitAfterBuy
|
|
7
|
-
*/
|
|
8
|
-
add(seat: ZCFSeat, bidScaling: Ratio, wanted: Amount<'nat'>, exitAfterBuy: boolean): string;
|
|
9
|
-
/** @param {Ratio} bidScaling */
|
|
10
|
-
offersAbove(bidScaling: Ratio): [string, BidderRecord][];
|
|
11
|
-
hasOrders(): boolean;
|
|
12
|
-
delete(key: any): void;
|
|
13
|
-
updateReceived(key: any, sold: any): void;
|
|
14
|
-
exitAllSeats(): void;
|
|
15
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
1
|
+
export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: any, collateralBrand: Brand<AssetKind>) => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
16
2
|
/**
|
|
17
3
|
* @param {ZCFSeat} seat
|
|
18
4
|
* @param {Ratio} bidScaling
|
|
@@ -27,20 +13,7 @@ export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: any,
|
|
|
27
13
|
updateReceived(key: any, sold: any): void;
|
|
28
14
|
exitAllSeats(): void;
|
|
29
15
|
}>;
|
|
30
|
-
export function preparePriceBook(baggage: Baggage): (priceRatioPattern: any, collateralBrand: Brand<AssetKind>) => {
|
|
31
|
-
/**
|
|
32
|
-
* @param {ZCFSeat} seat
|
|
33
|
-
* @param {Ratio} price
|
|
34
|
-
* @param {Amount<'nat'>} wanted
|
|
35
|
-
* @param {boolean} exitAfterBuy
|
|
36
|
-
*/
|
|
37
|
-
add(seat: ZCFSeat, price: Ratio, wanted: Amount<'nat'>, exitAfterBuy: boolean): string;
|
|
38
|
-
offersAbove(price: any): [string, BidderRecord][];
|
|
39
|
-
hasOrders(): boolean;
|
|
40
|
-
delete(key: any): void;
|
|
41
|
-
updateReceived(key: any, sold: any): void;
|
|
42
|
-
exitAllSeats(): void;
|
|
43
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
16
|
+
export function preparePriceBook(baggage: Baggage): (priceRatioPattern: any, collateralBrand: Brand<AssetKind>) => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
44
17
|
/**
|
|
45
18
|
* @param {ZCFSeat} seat
|
|
46
19
|
* @param {Ratio} price
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"AAkDO,8CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,cACP,KAAK,UACL,OAAO,KAAK,CAAC,gBACb,OAAO;IAsBlB,gCAAgC;4BAApB,KAAK
|
|
1
|
+
{"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"AAkDO,8CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,cACP,KAAK,UACL,OAAO,KAAK,CAAC,gBACb,OAAO;IAsBlB,gCAAgC;4BAApB,KAAK;;;;;GAqCpB;AAcI,0CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,SACP,KAAK,UACL,OAAO,KAAK,CAAC,gBACb,OAAO;;;;;;GA0DrB;sBA/MW,OAAO,kBAAkB,EAAE,OAAO;2BAYnC;IACZ,IAAQ,EAAE,OAAO,CAAC;IAClB,MAAU,EAAE,OAAO,KAAK,CAAC,CAAC;IAC1B,MAAU,EAAE,QAAQ,CAAC;IACrB,QAAY,EAAE,OAAO,KAAK,CAAC,CAAC;CACzB,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,GAAG,CAC1B;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GACzC;IAAE,UAAU,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAC1C"}
|
package/src/auction/params.d.ts
CHANGED
|
@@ -83,12 +83,12 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
|
|
|
83
83
|
marshaller: ERef<Marshaller>;
|
|
84
84
|
}, timer: ERef<import('@agoric/time').TimerService>, priceAuthority: ERef<PriceAuthority>, reservePublicFacet: ERef<AssetReservePublicFacet>, params: AuctionParams): {
|
|
85
85
|
priceAuthority: ERef<PriceAuthority>;
|
|
86
|
-
reservePublicFacet: ERef<GovernedPublicFacet<{
|
|
86
|
+
reservePublicFacet: ERef<GovernedPublicFacet<import("@endo/exo/src/exo-makers").Guarded<{
|
|
87
87
|
makeAddCollateralInvitation(): Promise<Invitation<R, A>>;
|
|
88
88
|
getPublicTopics(): {
|
|
89
89
|
metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("../reserve/assetReserveKit").MetricsNotification>;
|
|
90
90
|
};
|
|
91
|
-
}
|
|
91
|
+
}>>>;
|
|
92
92
|
timerService: ERef<import("@agoric/time").TimerService>;
|
|
93
93
|
governedParams: {
|
|
94
94
|
Electorate: {
|
|
@@ -10,15 +10,7 @@ export const meta: ContractMeta;
|
|
|
10
10
|
export function start(zcf: ZCF<{
|
|
11
11
|
binaryVoteCounterInstallation: Installation;
|
|
12
12
|
}>, privateArgs: undefined, baggage: import('@agoric/vat-data').Baggage): Promise<{
|
|
13
|
-
creatorFacet: {
|
|
14
|
-
/**
|
|
15
|
-
* @param {Instance} governedInstance
|
|
16
|
-
* @param {GovernorCreatorFacet<any>} governorFacet
|
|
17
|
-
* @param {string} [label] for diagnostic use only
|
|
18
|
-
*/
|
|
19
|
-
addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
20
|
-
makeCharterMemberInvitation: () => Promise<Invitation<R, A>>;
|
|
21
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
13
|
+
creatorFacet: import("@endo/exo/src/exo-makers").Guarded<{
|
|
22
14
|
/**
|
|
23
15
|
* @param {Instance} governedInstance
|
|
24
16
|
* @param {GovernorCreatorFacet<any>} governorFacet
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAcA;;;;;GAKG;AAEH,iEAAkE;AAoBlE,2BAA2B;AAC3B,mBADW,YAAY,CAMrB;AAQK,2BAJI,IAAI;IAAE,6BAA6B,EAAE,YAAY,CAAA;CAAE,CAAC,eACpD,SAAS,WACT,OAAO,kBAAkB,EAAE,OAAO;;QAqHvC;;;;WAIG;wCAHQ,QAAQ,iBACR,qBAAqB,GAAG,CAAC;;;
|
|
1
|
+
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAcA;;;;;GAKG;AAEH,iEAAkE;AAoBlE,2BAA2B;AAC3B,mBADW,YAAY,CAMrB;AAQK,2BAJI,IAAI;IAAE,6BAA6B,EAAE,YAAY,CAAA;CAAE,CAAC,eACpD,SAAS,WACT,OAAO,kBAAkB,EAAE,OAAO;;QAqHvC;;;;WAIG;wCAHQ,QAAQ,iBACR,qBAAqB,GAAG,CAAC;;;GAazC;;cAhKa,MAAM;cACN,QAAQ;YACR,OAAO,MAAM,EAAE,OAAO,CAAC;;mBACV;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE"}
|
|
@@ -24,7 +24,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
|
|
|
24
24
|
namesByAddressAdmin: ERef<import('@agoric/vats').NameAdmin>;
|
|
25
25
|
storageNode: StorageNode;
|
|
26
26
|
}, baggage: Baggage): Promise<{
|
|
27
|
-
creatorFacet: {
|
|
27
|
+
creatorFacet: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
28
28
|
getParamMgrRetriever: () => {
|
|
29
29
|
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
30
30
|
Electorate: "invitation";
|
|
@@ -35,19 +35,11 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
|
|
|
35
35
|
}>;
|
|
36
36
|
}>;
|
|
37
37
|
getInvitation: (name: any) => Promise<Invitation<R, A>>;
|
|
38
|
-
getLimitedCreatorFacet: () => {
|
|
38
|
+
getLimitedCreatorFacet: () => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
39
39
|
makeOracleInvitation(oracleId: string): Promise<Invitation<R, A>>;
|
|
40
40
|
removeOracle(oracleId: string): Promise<void>;
|
|
41
41
|
getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
|
|
42
|
-
initOracle(oracleId: string): Promise<{
|
|
43
|
-
admin: {
|
|
44
|
-
disable(): void;
|
|
45
|
-
};
|
|
46
|
-
oracle: {
|
|
47
|
-
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
|
|
48
|
-
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
49
|
-
};
|
|
50
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
42
|
+
initOracle(oracleId: string): Promise<import("@endo/exo/src/exo-makers.js").GuardedKit<{
|
|
51
43
|
admin: {
|
|
52
44
|
disable(): void;
|
|
53
45
|
};
|
|
@@ -57,55 +49,18 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
|
|
|
57
49
|
};
|
|
58
50
|
}>>;
|
|
59
51
|
oracleRoundState(oracleId: string, queriedRoundId: bigint): Promise<import("./fluxAggregatorKit.js").RoundState>;
|
|
60
|
-
};
|
|
61
|
-
getGovernedApis: () => GovernedApis;
|
|
62
|
-
getGovernedApiNames: () => string[];
|
|
63
|
-
setOfferFilter: (strings: any) => Promise<void>;
|
|
64
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
65
|
-
getParamMgrRetriever: () => {
|
|
66
|
-
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
67
|
-
Electorate: "invitation";
|
|
68
|
-
}>;
|
|
69
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
70
|
-
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
71
|
-
Electorate: "invitation";
|
|
72
|
-
}>;
|
|
73
52
|
}>;
|
|
74
|
-
getInvitation: (name: any) => Promise<Invitation<R, A>>;
|
|
75
|
-
getLimitedCreatorFacet: () => {
|
|
76
|
-
makeOracleInvitation(oracleId: string): Promise<Invitation<R, A>>;
|
|
77
|
-
removeOracle(oracleId: string): Promise<void>;
|
|
78
|
-
getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
|
|
79
|
-
initOracle(oracleId: string): Promise<{
|
|
80
|
-
admin: {
|
|
81
|
-
disable(): void;
|
|
82
|
-
};
|
|
83
|
-
oracle: {
|
|
84
|
-
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
|
|
85
|
-
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
86
|
-
};
|
|
87
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
88
|
-
admin: {
|
|
89
|
-
disable(): void;
|
|
90
|
-
};
|
|
91
|
-
oracle: {
|
|
92
|
-
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
|
|
93
|
-
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
94
|
-
};
|
|
95
|
-
}>>;
|
|
96
|
-
oracleRoundState(oracleId: string, queriedRoundId: bigint): Promise<import("./fluxAggregatorKit.js").RoundState>;
|
|
97
|
-
};
|
|
98
53
|
getGovernedApis: () => GovernedApis;
|
|
99
54
|
getGovernedApiNames: () => string[];
|
|
100
55
|
setOfferFilter: (strings: any) => Promise<void>;
|
|
101
56
|
}>;
|
|
102
|
-
publicFacet: {
|
|
57
|
+
publicFacet: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
103
58
|
getPriceAuthority(): PriceAuthority;
|
|
104
59
|
getPublicTopics(): {
|
|
105
60
|
quotes: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<PriceDescription>;
|
|
106
61
|
latestRound: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./roundsManager.js").LatestRound>;
|
|
107
62
|
};
|
|
108
|
-
}
|
|
63
|
+
}>;
|
|
109
64
|
}>;
|
|
110
65
|
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
111
66
|
export type TimerService = import('@agoric/time').TimerService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;;GAIG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK;WAhBO,YAAY;aACV,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;iBACT,MAAM;;;;;;;;;;4BAMG,UAAU;gBACtB,KAAK,UAAU,CAAC;yBACP,KAAK,OAAO,cAAc,EAAE,SAAS,CAAC;iBAC9C,WAAW;YAElB,OAAO
|
|
1
|
+
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;;GAIG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK;WAhBO,YAAY;aACV,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;iBACT,MAAM;;;;;;;;;;4BAMG,UAAU;gBACtB,KAAK,UAAU,CAAC;yBACP,KAAK,OAAO,cAAc,EAAE,SAAS,CAAC;iBAC9C,WAAW;YAElB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmIjB;sBAnLY,OAAO,kBAAkB,EAAE,OAAO;2BAElC,OAAO,cAAc,EAAE,YAAY"}
|
|
@@ -4,7 +4,7 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
4
4
|
brandIn: Brand<'nat'>;
|
|
5
5
|
brandOut: Brand<'nat'>;
|
|
6
6
|
unitAmountIn?: Amount<"nat"> | undefined;
|
|
7
|
-
}>, timerPresence: TimerService, quoteKit: import('./roundsManager.js').QuoteKit, storageNode: StorageNode, makeDurablePublishKit: () => PublishKit<any>, makeRecorder: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder): Promise<() => {
|
|
7
|
+
}>, timerPresence: TimerService, quoteKit: import('./roundsManager.js').QuoteKit, storageNode: StorageNode, makeDurablePublishKit: () => PublishKit<any>, makeRecorder: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder): Promise<() => import("@endo/exo/src/exo-makers.js").GuardedKit<{
|
|
8
8
|
creator: {
|
|
9
9
|
/**
|
|
10
10
|
* An "oracle invitation" is an invitation to be able to submit data to
|
|
@@ -21,181 +21,7 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
21
21
|
removeOracle(oracleId: string): Promise<void>;
|
|
22
22
|
getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
|
|
23
23
|
/** @param {string} oracleId */
|
|
24
|
-
initOracle(oracleId: string): Promise<{
|
|
25
|
-
/**
|
|
26
|
-
* @typedef {object} ChainlinkConfig
|
|
27
|
-
* @property {number} maxSubmissionCount
|
|
28
|
-
* @property {number} minSubmissionCount
|
|
29
|
-
* @property {bigint} restartDelay the number of rounds an Oracle has to wait
|
|
30
|
-
* before they can initiate a round
|
|
31
|
-
* @property {number} minSubmissionValue an immutable check for a lower bound of
|
|
32
|
-
* what submission values are accepted from an oracle
|
|
33
|
-
* @property {number} maxSubmissionValue an immutable check for an upper bound
|
|
34
|
-
* of what submission values are accepted from an oracle
|
|
35
|
-
* @property {number} timeout the number of seconds after the previous round
|
|
36
|
-
* that allowed to lapse before allowing an oracle to skip an unfinished
|
|
37
|
-
* round
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* Returns a maker for a single durable FluxAggregatorKit, closed over the
|
|
41
|
-
* prepare() arguments.
|
|
42
|
-
*
|
|
43
|
-
* The kit aggregates price inputs to produce a PriceAuthority. Unlike the
|
|
44
|
-
* simpler `priceAggregator.js`, this approximates the _Node Operator
|
|
45
|
-
* Aggregation_ logic of [Chainlink price
|
|
46
|
-
* feeds](https://blog.chain.link/levels-of-data-aggregation-in-chainlink-price-feeds/).
|
|
47
|
-
*
|
|
48
|
-
* @param {Baggage} baggage
|
|
49
|
-
* @param {ZCF<
|
|
50
|
-
* ChainlinkConfig & {
|
|
51
|
-
* timer: TimerService;
|
|
52
|
-
* brandIn: Brand<'nat'>;
|
|
53
|
-
* brandOut: Brand<'nat'>;
|
|
54
|
-
* unitAmountIn?: Amount<'nat'>;
|
|
55
|
-
* }
|
|
56
|
-
* >} zcf
|
|
57
|
-
* @param {TimerService} timerPresence
|
|
58
|
-
* @param {import('./roundsManager.js').QuoteKit} quoteKit
|
|
59
|
-
* @param {StorageNode} storageNode
|
|
60
|
-
* @param {() => PublishKit<any>} makeDurablePublishKit
|
|
61
|
-
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder} makeRecorder
|
|
62
|
-
*/
|
|
63
|
-
admin: {
|
|
64
|
-
disable(): void;
|
|
65
|
-
};
|
|
66
|
-
oracle: {
|
|
67
|
-
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
|
|
68
|
-
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
69
|
-
};
|
|
70
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
71
|
-
/**
|
|
72
|
-
* @typedef {object} ChainlinkConfig
|
|
73
|
-
* @property {number} maxSubmissionCount
|
|
74
|
-
* @property {number} minSubmissionCount
|
|
75
|
-
* @property {bigint} restartDelay the number of rounds an Oracle has to wait
|
|
76
|
-
* before they can initiate a round
|
|
77
|
-
* @property {number} minSubmissionValue an immutable check for a lower bound of
|
|
78
|
-
* what submission values are accepted from an oracle
|
|
79
|
-
* @property {number} maxSubmissionValue an immutable check for an upper bound
|
|
80
|
-
* of what submission values are accepted from an oracle
|
|
81
|
-
* @property {number} timeout the number of seconds after the previous round
|
|
82
|
-
* that allowed to lapse before allowing an oracle to skip an unfinished
|
|
83
|
-
* round
|
|
84
|
-
*/
|
|
85
|
-
/**
|
|
86
|
-
* Returns a maker for a single durable FluxAggregatorKit, closed over the
|
|
87
|
-
* prepare() arguments.
|
|
88
|
-
*
|
|
89
|
-
* The kit aggregates price inputs to produce a PriceAuthority. Unlike the
|
|
90
|
-
* simpler `priceAggregator.js`, this approximates the _Node Operator
|
|
91
|
-
* Aggregation_ logic of [Chainlink price
|
|
92
|
-
* feeds](https://blog.chain.link/levels-of-data-aggregation-in-chainlink-price-feeds/).
|
|
93
|
-
*
|
|
94
|
-
* @param {Baggage} baggage
|
|
95
|
-
* @param {ZCF<
|
|
96
|
-
* ChainlinkConfig & {
|
|
97
|
-
* timer: TimerService;
|
|
98
|
-
* brandIn: Brand<'nat'>;
|
|
99
|
-
* brandOut: Brand<'nat'>;
|
|
100
|
-
* unitAmountIn?: Amount<'nat'>;
|
|
101
|
-
* }
|
|
102
|
-
* >} zcf
|
|
103
|
-
* @param {TimerService} timerPresence
|
|
104
|
-
* @param {import('./roundsManager.js').QuoteKit} quoteKit
|
|
105
|
-
* @param {StorageNode} storageNode
|
|
106
|
-
* @param {() => PublishKit<any>} makeDurablePublishKit
|
|
107
|
-
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder} makeRecorder
|
|
108
|
-
*/
|
|
109
|
-
admin: {
|
|
110
|
-
disable(): void;
|
|
111
|
-
};
|
|
112
|
-
oracle: {
|
|
113
|
-
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
|
|
114
|
-
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
115
|
-
};
|
|
116
|
-
}>>;
|
|
117
|
-
/**
|
|
118
|
-
* a method to provide all current info oracleStatuses need. Intended
|
|
119
|
-
* only only to be callable by oracleStatuses. Not for use by contracts
|
|
120
|
-
* to read state.
|
|
121
|
-
*
|
|
122
|
-
* @param {string} oracleId
|
|
123
|
-
* @param {bigint} queriedRoundId
|
|
124
|
-
* @returns {Promise<RoundState>}
|
|
125
|
-
*/
|
|
126
|
-
oracleRoundState(oracleId: string, queriedRoundId: bigint): Promise<RoundState>;
|
|
127
|
-
};
|
|
128
|
-
public: {
|
|
129
|
-
getPriceAuthority(): PriceAuthority;
|
|
130
|
-
getPublicTopics(): {
|
|
131
|
-
quotes: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<PriceDescription>;
|
|
132
|
-
latestRound: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./roundsManager.js").LatestRound>;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
136
|
-
creator: {
|
|
137
|
-
/**
|
|
138
|
-
* An "oracle invitation" is an invitation to be able to submit data to
|
|
139
|
-
* include in the priceAggregator's results.
|
|
140
|
-
*
|
|
141
|
-
* The offer result from this invitation is a OracleAdmin, which can be
|
|
142
|
-
* used directly to manage the price submissions as well as to terminate
|
|
143
|
-
* the relationship.
|
|
144
|
-
*
|
|
145
|
-
* @param {string} oracleId unique per contract instance
|
|
146
|
-
*/
|
|
147
|
-
makeOracleInvitation(oracleId: string): Promise<Invitation<R, A>>;
|
|
148
|
-
/** @param {string} oracleId */
|
|
149
|
-
removeOracle(oracleId: string): Promise<void>;
|
|
150
|
-
getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
|
|
151
|
-
/** @param {string} oracleId */
|
|
152
|
-
initOracle(oracleId: string): Promise<{
|
|
153
|
-
/**
|
|
154
|
-
* @typedef {object} ChainlinkConfig
|
|
155
|
-
* @property {number} maxSubmissionCount
|
|
156
|
-
* @property {number} minSubmissionCount
|
|
157
|
-
* @property {bigint} restartDelay the number of rounds an Oracle has to wait
|
|
158
|
-
* before they can initiate a round
|
|
159
|
-
* @property {number} minSubmissionValue an immutable check for a lower bound of
|
|
160
|
-
* what submission values are accepted from an oracle
|
|
161
|
-
* @property {number} maxSubmissionValue an immutable check for an upper bound
|
|
162
|
-
* of what submission values are accepted from an oracle
|
|
163
|
-
* @property {number} timeout the number of seconds after the previous round
|
|
164
|
-
* that allowed to lapse before allowing an oracle to skip an unfinished
|
|
165
|
-
* round
|
|
166
|
-
*/
|
|
167
|
-
/**
|
|
168
|
-
* Returns a maker for a single durable FluxAggregatorKit, closed over the
|
|
169
|
-
* prepare() arguments.
|
|
170
|
-
*
|
|
171
|
-
* The kit aggregates price inputs to produce a PriceAuthority. Unlike the
|
|
172
|
-
* simpler `priceAggregator.js`, this approximates the _Node Operator
|
|
173
|
-
* Aggregation_ logic of [Chainlink price
|
|
174
|
-
* feeds](https://blog.chain.link/levels-of-data-aggregation-in-chainlink-price-feeds/).
|
|
175
|
-
*
|
|
176
|
-
* @param {Baggage} baggage
|
|
177
|
-
* @param {ZCF<
|
|
178
|
-
* ChainlinkConfig & {
|
|
179
|
-
* timer: TimerService;
|
|
180
|
-
* brandIn: Brand<'nat'>;
|
|
181
|
-
* brandOut: Brand<'nat'>;
|
|
182
|
-
* unitAmountIn?: Amount<'nat'>;
|
|
183
|
-
* }
|
|
184
|
-
* >} zcf
|
|
185
|
-
* @param {TimerService} timerPresence
|
|
186
|
-
* @param {import('./roundsManager.js').QuoteKit} quoteKit
|
|
187
|
-
* @param {StorageNode} storageNode
|
|
188
|
-
* @param {() => PublishKit<any>} makeDurablePublishKit
|
|
189
|
-
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder} makeRecorder
|
|
190
|
-
*/
|
|
191
|
-
admin: {
|
|
192
|
-
disable(): void;
|
|
193
|
-
};
|
|
194
|
-
oracle: {
|
|
195
|
-
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
|
|
196
|
-
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
197
|
-
};
|
|
198
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
24
|
+
initOracle(oracleId: string): Promise<import("@endo/exo/src/exo-makers.js").GuardedKit<{
|
|
199
25
|
/**
|
|
200
26
|
* @typedef {object} ChainlinkConfig
|
|
201
27
|
* @property {number} maxSubmissionCount
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluxAggregatorKit.d.ts","sourceRoot":"","sources":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ACT,MAAM;iBACN,MAAM;;;wBAMN,MAAM;wBACN,MAAM;;;;;kBACN,MAAM;;;;;wBAEN,MAAM;;;;;wBAEN,MAAM;;;;;;aAEN,MAAM;;gCA2TN,WAAW,QAAQ,WAAW,+BAA+B,CAAC,CAAC,CAAC"}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
export const INVITATION_MAKERS_DESC: "oracle invitation";
|
|
2
|
-
export function prepareOracleAdminKit(baggage: any): (args_0: HeldParams) => {
|
|
3
|
-
admin: {
|
|
4
|
-
disable(): void;
|
|
5
|
-
};
|
|
6
|
-
oracle: {
|
|
7
|
-
/**
|
|
8
|
-
* push a unitPrice result from this oracle
|
|
9
|
-
*
|
|
10
|
-
* @param {PriceDatum} datum
|
|
11
|
-
*/
|
|
12
|
-
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: PriceDatum): Promise<void>;
|
|
13
|
-
/** @returns {OracleStatus} */
|
|
14
|
-
getStatus(): OracleStatus;
|
|
15
|
-
};
|
|
16
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
2
|
+
export function prepareOracleAdminKit(baggage: any): (args_0: HeldParams) => import("@endo/exo/src/exo-makers.js").GuardedKit<{
|
|
17
3
|
admin: {
|
|
18
4
|
disable(): void;
|
|
19
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceOracleKit.d.ts","sourceRoot":"","sources":["priceOracleKit.js"],"names":[],"mappings":"AAMA,yDAA0D;AA4DnD;;;;;QAcC;;;;WAIG;iEADQ,UAAU;QA0BrB,8BAA8B;qBAAhB,YAAY
|
|
1
|
+
{"version":3,"file":"priceOracleKit.d.ts","sourceRoot":"","sources":["priceOracleKit.js"],"names":[],"mappings":"AAMA,yDAA0D;AA4DnD;;;;;QAcC;;;;WAIG;iEADQ,UAAU;QA0BrB,8BAA8B;qBAAhB,YAAY;;GAa/B;;cAhHY,MAAM;;6BAGJ,YAAY,UACZ,OAAO,oBAAoB,EAAE,UAAU,KAC5C,QAAQ,YAAY,CAAC;;;yBAKnB;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAA;CAAE;;;uBAKpD,MAAM;sBACN,MAAM;sBACN,MAAM;cACN,MAAM;;6BAGP,SAAS,UAAU,GAAG,EAAE,CAAC;2BAEzB,YAAY,GAAG,EAAE;oBAEhB,cAAc,GAAG,YAAY;wBAyF7B,WAAW,WAAW,4BAA4B,CAAC,CAAC"}
|
|
@@ -9,135 +9,7 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<import(
|
|
|
9
9
|
timerPresence: TimerService;
|
|
10
10
|
}> & {
|
|
11
11
|
unitAmountIn: Amount<'nat'>;
|
|
12
|
-
}) => {
|
|
13
|
-
helper: {
|
|
14
|
-
/** @param {bigint} roundId */
|
|
15
|
-
acceptingSubmissions(roundId: bigint): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* @param {OracleStatus} status
|
|
18
|
-
* @param {bigint} roundId
|
|
19
|
-
*/
|
|
20
|
-
delayed(status: OracleStatus, roundId: bigint): boolean;
|
|
21
|
-
/** @param {bigint} roundId */
|
|
22
|
-
deleteRoundDetails(roundId: bigint): void;
|
|
23
|
-
/** @param {bigint} roundId */
|
|
24
|
-
isNextRound(roundId: bigint): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* @param {bigint} roundId
|
|
27
|
-
* @param {Timestamp} blockTimestamp
|
|
28
|
-
* @param {string} oracleId
|
|
29
|
-
*/
|
|
30
|
-
initializeNewRound(roundId: bigint, blockTimestamp: Timestamp, oracleId: string): void;
|
|
31
|
-
/**
|
|
32
|
-
* @param {bigint} roundId
|
|
33
|
-
* @param {bigint} rrId reporting round ID
|
|
34
|
-
*/
|
|
35
|
-
previousAndCurrentUnanswered(roundId: bigint, rrId: bigint): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* @param {bigint} roundId
|
|
38
|
-
* @param {OracleStatus} status
|
|
39
|
-
* @param {Timestamp} blockTimestamp
|
|
40
|
-
* @returns {OracleStatus | undefined} the new status
|
|
41
|
-
*/
|
|
42
|
-
proposeNewRound(roundId: bigint, status: OracleStatus, blockTimestamp: Timestamp): OracleStatus | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* @param {bigint} submission
|
|
45
|
-
* @param {bigint} roundId
|
|
46
|
-
* @param {OracleStatus} status
|
|
47
|
-
* @returns {OracleStatus} the new status
|
|
48
|
-
*/
|
|
49
|
-
recordSubmission(submission: bigint, roundId: bigint, status: OracleStatus): OracleStatus;
|
|
50
|
-
/**
|
|
51
|
-
* @param {bigint} roundId
|
|
52
|
-
* @param {Timestamp} blockTimestamp
|
|
53
|
-
*/
|
|
54
|
-
supersedable(roundId: bigint, blockTimestamp: Timestamp): boolean;
|
|
55
|
-
/**
|
|
56
|
-
* @param {bigint} roundId
|
|
57
|
-
* @param {Timestamp} blockTimestamp
|
|
58
|
-
*/
|
|
59
|
-
timedOut(roundId: bigint, blockTimestamp: Timestamp): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* @param {bigint} roundId
|
|
62
|
-
* @param {Timestamp} blockTimestamp
|
|
63
|
-
*/
|
|
64
|
-
updateRoundAnswer(roundId: bigint, blockTimestamp: Timestamp): (number | boolean)[] | (bigint | boolean)[];
|
|
65
|
-
/**
|
|
66
|
-
* @param {bigint} roundId
|
|
67
|
-
* @param {Timestamp} blockTimestamp
|
|
68
|
-
*/
|
|
69
|
-
updateTimedOutRoundInfo(roundId: bigint, blockTimestamp: Timestamp): void;
|
|
70
|
-
/**
|
|
71
|
-
* @param {OracleStatus} status
|
|
72
|
-
* @param {bigint} roundId
|
|
73
|
-
* @param {Timestamp} blockTimestamp
|
|
74
|
-
* @returns {string | null} error message, if there is one
|
|
75
|
-
*/
|
|
76
|
-
validateOracleRound(status: OracleStatus, roundId: bigint, blockTimestamp: Timestamp): string | null;
|
|
77
|
-
};
|
|
78
|
-
contract: {
|
|
79
|
-
/** @param {PriceQuoteValue} quote */
|
|
80
|
-
authenticateQuote(quote: PriceQuoteValue): Promise<{
|
|
81
|
-
quoteAmount: Amount<"set">;
|
|
82
|
-
quotePayment: Payment<"set">;
|
|
83
|
-
}>;
|
|
84
|
-
/**
|
|
85
|
-
* @param {object} param0
|
|
86
|
-
* @param {number} [param0.overrideValueOut]
|
|
87
|
-
* @param {Timestamp} [param0.timestamp]
|
|
88
|
-
*/
|
|
89
|
-
makeCreateQuote({ overrideValueOut, timestamp }?: {
|
|
90
|
-
overrideValueOut?: number | undefined;
|
|
91
|
-
timestamp?: import("@agoric/time").Timestamp | undefined;
|
|
92
|
-
}): ((priceQuery: any) => Promise<{
|
|
93
|
-
quoteAmount: Amount<"set">;
|
|
94
|
-
quotePayment: Payment<"set">;
|
|
95
|
-
}> | undefined) & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
|
|
96
|
-
quoteAmount: Amount<"set">;
|
|
97
|
-
quotePayment: Payment<"set">;
|
|
98
|
-
}> | undefined>;
|
|
99
|
-
/**
|
|
100
|
-
* @param {OracleStatus} status
|
|
101
|
-
* @param {bigint} queriedRoundId
|
|
102
|
-
* @param {Timestamp} blockTimestamp
|
|
103
|
-
*/
|
|
104
|
-
eligibleForSpecificRound(status: OracleStatus, queriedRoundId: bigint, blockTimestamp: Timestamp): boolean;
|
|
105
|
-
/**
|
|
106
|
-
* consumers are encouraged to check that they're receiving fresh data
|
|
107
|
-
* by inspecting the updatedAt and answeredInRound return values.
|
|
108
|
-
*
|
|
109
|
-
* @param {bigint | number} roundIdRaw
|
|
110
|
-
* @returns {Promise<RoundData>}
|
|
111
|
-
*/
|
|
112
|
-
getRoundData(roundIdRaw: bigint | number): Promise<RoundData>;
|
|
113
|
-
/** @type {(roundId: bigint) => Readonly<RoundDetails & Round>} */
|
|
114
|
-
getRoundStatus(roundId: bigint): Readonly<RoundDetails & Round>;
|
|
115
|
-
/**
|
|
116
|
-
* a method to provide all current info oracleStatuses need. Intended
|
|
117
|
-
* only only to be callable by oracleStatuses. Not for use by contracts
|
|
118
|
-
* to read state.
|
|
119
|
-
*
|
|
120
|
-
* @param {OracleStatus} status
|
|
121
|
-
* @param {Timestamp} blockTimestamp
|
|
122
|
-
*/
|
|
123
|
-
oracleRoundStateSuggestRound(status: OracleStatus, blockTimestamp: Timestamp): {
|
|
124
|
-
eligibleForSpecificRound: boolean;
|
|
125
|
-
queriedRoundId: bigint;
|
|
126
|
-
latestSubmission: bigint;
|
|
127
|
-
startedAt: import("@agoric/time").Timestamp;
|
|
128
|
-
roundTimeout: number;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
oracle: {
|
|
132
|
-
/**
|
|
133
|
-
* push a unitPrice result from this oracle
|
|
134
|
-
*
|
|
135
|
-
* @param {OracleStatus} status
|
|
136
|
-
* @param {PriceRound} result
|
|
137
|
-
*/
|
|
138
|
-
handlePush(status: OracleStatus, { roundId: roundIdRaw, unitPrice: valueRaw }: PriceRound): Promise<import("./priceOracleKit.js").OracleStatus>;
|
|
139
|
-
};
|
|
140
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
12
|
+
}) => import("@endo/exo/src/exo-makers.js").GuardedKit<{
|
|
141
13
|
helper: {
|
|
142
14
|
/** @param {bigint} roundId */
|
|
143
15
|
acceptingSubmissions(roundId: bigint): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roundsManager.d.ts","sourceRoot":"","sources":["roundsManager.js"],"names":[],"mappings":"AA0BA,qBAAqB;AACrB,wBADW,MAAM,CAC4B;AAmEtC;cAxBU,QAAQ;qBACD,UAAU,IAAI,CAAC;aACvB,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;0BACA,OAAO,6CAA6C,EAAE,QAAQ,CAAC,WAAW,CAAC;mBAClF,YAAY;;
|
|
1
|
+
{"version":3,"file":"roundsManager.d.ts","sourceRoot":"","sources":["roundsManager.js"],"names":[],"mappings":"AA0BA,qBAAqB;AACrB,wBADW,MAAM,CAC4B;AAmEtC;c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