@agoric/governance 0.10.4-upgrade-14-dev-c8f9e7b.0 → 0.10.4-upgrade-16-fi-dev-8879538.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/exported.d.ts +32 -0
- package/exported.js +1 -1
- package/package.json +35 -29
- package/src/binaryVoteCounter.d.ts +6 -3
- package/src/binaryVoteCounter.d.ts.map +1 -1
- package/src/binaryVoteCounter.js +6 -2
- package/src/breakTie.d.ts +1 -0
- package/src/breakTie.d.ts.map +1 -1
- package/src/breakTie.js +4 -0
- package/src/closingRule.d.ts +4 -0
- package/src/closingRule.d.ts.map +1 -1
- package/src/closingRule.js +4 -0
- package/src/committee.d.ts +12 -8
- package/src/committee.d.ts.map +1 -1
- package/src/committee.js +24 -11
- package/src/constants.d.ts +12 -12
- package/src/constants.d.ts.map +1 -1
- package/src/contractGovernance/governApi.d.ts +11 -8
- package/src/contractGovernance/governApi.d.ts.map +1 -1
- package/src/contractGovernance/governApi.js +8 -3
- package/src/contractGovernance/governFilter.d.ts +8 -2
- package/src/contractGovernance/governFilter.d.ts.map +1 -1
- package/src/contractGovernance/governFilter.js +5 -1
- package/src/contractGovernance/governParam.d.ts +9 -2
- package/src/contractGovernance/governParam.d.ts.map +1 -1
- package/src/contractGovernance/governParam.js +6 -1
- package/src/contractGovernance/paramManager.d.ts +13 -9
- package/src/contractGovernance/paramManager.d.ts.map +1 -1
- package/src/contractGovernance/paramManager.js +18 -14
- package/src/contractGovernance/typedParamManager.d.ts +19 -10
- package/src/contractGovernance/typedParamManager.d.ts.map +1 -1
- package/src/contractGovernance/typedParamManager.js +5 -0
- package/src/contractGovernor.d.ts +11 -5
- package/src/contractGovernor.d.ts.map +1 -1
- package/src/contractGovernor.js +19 -9
- package/src/contractGovernorKit.d.ts +14 -48
- package/src/contractGovernorKit.d.ts.map +1 -1
- package/src/contractGovernorKit.js +56 -10
- package/src/contractHelper.d.ts +68 -78
- package/src/contractHelper.d.ts.map +1 -1
- package/src/contractHelper.js +21 -21
- package/src/electorateTools.d.ts +21 -17
- package/src/electorateTools.d.ts.map +1 -1
- package/src/electorateTools.js +20 -12
- package/src/index.js +3 -6
- package/src/multiCandidateVoteCounter.d.ts +6 -3
- package/src/multiCandidateVoteCounter.d.ts.map +1 -1
- package/src/multiCandidateVoteCounter.js +8 -4
- package/src/noActionElectorate.d.ts +6 -1
- package/src/noActionElectorate.d.ts.map +1 -1
- package/src/noActionElectorate.js +11 -2
- package/src/question.d.ts +15 -11
- package/src/question.d.ts.map +1 -1
- package/src/question.js +5 -0
- package/src/quorumCounter.d.ts +1 -1
- package/src/quorumCounter.d.ts.map +1 -1
- package/src/quorumCounter.js +4 -0
- package/src/typeGuards.d.ts +91 -54
- package/src/typeGuards.d.ts.map +1 -1
- package/src/types.d.ts +59 -62
- package/src/types.d.ts.map +1 -1
- package/src/types.js +35 -27
- package/src/validators.d.ts +5 -0
- package/src/validators.d.ts.map +1 -1
- package/src/validators.js +6 -3
- package/src/voterKit.d.ts +6 -11
- package/src/voterKit.d.ts.map +1 -1
- package/src/voterKit.js +4 -0
- package/tools/puppetContractGovernor.d.ts +15 -11
- package/tools/puppetContractGovernor.d.ts.map +1 -1
- package/tools/puppetContractGovernor.js +7 -5
- package/tools/puppetGovernance.d.ts +31 -30
- package/tools/puppetGovernance.d.ts.map +1 -1
- package/tools/puppetGovernance.js +6 -4
- package/tools/storageDoc.d.ts +3 -3
- package/tools/storageDoc.d.ts.map +1 -1
- package/CHANGELOG.md +0 -456
- package/src/types-ambient.d.ts +0 -1047
- package/src/types-ambient.d.ts.map +0 -1
- package/src/types-ambient.js +0 -731
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export function start<SF extends GovernableStartFn>(zcf: ZCF<{
|
|
2
|
-
timer: import(
|
|
2
|
+
timer: import("@agoric/time").TimerService;
|
|
3
3
|
governedContractInstallation: Installation<SF>;
|
|
4
4
|
governed: {
|
|
5
5
|
issuerKeywordRecord?: IssuerKeywordRecord;
|
|
6
6
|
terms: {
|
|
7
7
|
governedParams: {
|
|
8
|
-
[CONTRACT_ELECTORATE]: import(
|
|
8
|
+
[CONTRACT_ELECTORATE]: import("../src/contractGovernance/typedParamManager.js").InvitationParam;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -14,32 +14,32 @@ export function start<SF extends GovernableStartFn>(zcf: ZCF<{
|
|
|
14
14
|
}): Promise<{
|
|
15
15
|
creatorFacet: {
|
|
16
16
|
changeParams: (paramSpec: ParamChangesSpec<any>) => Promise<void>;
|
|
17
|
-
invokeAPI: (apiMethodName: string, methodArgs:
|
|
17
|
+
invokeAPI: (apiMethodName: string, methodArgs: Passable[]) => Promise<{
|
|
18
18
|
apiMethodName: string;
|
|
19
|
-
methodArgs:
|
|
19
|
+
methodArgs: Passable[];
|
|
20
20
|
}>;
|
|
21
21
|
setFilters: (strings: Array<string>) => Promise<void>;
|
|
22
22
|
getCreatorFacet: () => Promise<{}>;
|
|
23
|
-
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet
|
|
23
|
+
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<SF>;
|
|
24
24
|
getInstance: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
25
25
|
/** @returns {Awaited<ReturnType<SF>>['publicFacet']} */
|
|
26
26
|
getPublicFacet: () => Awaited<ReturnType<SF>>["publicFacet"];
|
|
27
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
27
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
28
28
|
changeParams: (paramSpec: ParamChangesSpec<any>) => Promise<void>;
|
|
29
|
-
invokeAPI: (apiMethodName: string, methodArgs:
|
|
29
|
+
invokeAPI: (apiMethodName: string, methodArgs: Passable[]) => Promise<{
|
|
30
30
|
apiMethodName: string;
|
|
31
|
-
methodArgs:
|
|
31
|
+
methodArgs: Passable[];
|
|
32
32
|
}>;
|
|
33
33
|
setFilters: (strings: Array<string>) => Promise<void>;
|
|
34
34
|
getCreatorFacet: () => Promise<{}>;
|
|
35
|
-
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet
|
|
35
|
+
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<SF>;
|
|
36
36
|
getInstance: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
37
37
|
/** @returns {Awaited<ReturnType<SF>>['publicFacet']} */
|
|
38
38
|
getPublicFacet: () => Awaited<ReturnType<SF>>["publicFacet"];
|
|
39
39
|
}>;
|
|
40
40
|
publicFacet: {
|
|
41
41
|
getGovernedContract: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
42
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
42
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
43
43
|
getGovernedContract: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
44
44
|
}>;
|
|
45
45
|
}>;
|
|
@@ -47,5 +47,9 @@ export function start<SF extends GovernableStartFn>(zcf: ZCF<{
|
|
|
47
47
|
* <SF>
|
|
48
48
|
*/
|
|
49
49
|
export type PuppetContractGovernorKit<SF extends GovernableStartFn> = Awaited<ReturnType<typeof start<SF>>>;
|
|
50
|
-
import {
|
|
50
|
+
import type { GovernableStartFn } from '../src/types.js';
|
|
51
|
+
import { CONTRACT_ELECTORATE } from '../src/contractGovernance/governParam.js';
|
|
52
|
+
import type { ParamChangesSpec } from '../src/types.js';
|
|
53
|
+
import type { Passable } from '@endo/pass-style';
|
|
54
|
+
import type { RemotableObject } from '@endo/pass-style';
|
|
51
55
|
//# sourceMappingURL=puppetContractGovernor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puppetContractGovernor.d.ts","sourceRoot":"","sources":["puppetContractGovernor.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"puppetContractGovernor.d.ts","sourceRoot":"","sources":["puppetContractGovernor.js"],"names":[],"mappings":"AAgCO,sBAiE8B,EAAE,iCA7E5B,GAAG,CAAC;IACd,KAAS,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;IAC/C,4BAAgC,EAAE,YAAY,CA2EV,EAAE,AA3EW,CAAC,CAAC;IACnD,QAAY,EAAE;QACd,mBAAyB,CAAC,EAAE,mBAAmB,CAAC;QAChD,KAAW,EAAE;YAAC,cAAc,EAAE;gBAAC,CAAC,mBAAmB,CAAC,EAAE,OAAO,gDAAgD,EAAE,eAAe,CAAA;aAAE,CAAA;SAAC,CAAC;KAC7H,CAAA;CACF,CAAC,eACM;IACV,QAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;;;mCA4CS,MAAM;;;;8BAJL,KAAK,CAAC,MAAM,CAAC;;;;QA2BvB,wDAAwD;8BAA1C,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;;;mCAvB3C,MAAM;;;;8BAJL,KAAK,CAAC,MAAM,CAAC;;;;QA2BvB,wDAAwD;8BAA1C,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;;;;;;;GASvD;;;;sCAI4C,EAAE,8BAAlC,OAAO,CAAC,UAAU,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;uCApGI,iBAAiB;oCALnC,0CAA0C;sCAKxB,iBAAiB;8BAD3B,kBAAkB;qCAAlB,kBAAkB"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import '../src/types-ambient.js';
|
|
2
|
-
|
|
3
1
|
import { E } from '@endo/eventual-send';
|
|
4
2
|
import { Far } from '@endo/marshal';
|
|
5
3
|
|
|
6
|
-
// eslint-disable-next-line no-unused-vars
|
|
7
4
|
import { Fail } from '@agoric/assert';
|
|
8
5
|
// eslint-disable-next-line no-unused-vars -- used by typedef
|
|
9
6
|
import { CONTRACT_ELECTORATE } from '../src/contractGovernance/governParam.js';
|
|
10
7
|
import { makeApiInvocationPositions } from '../src/contractGovernance/governApi.js';
|
|
11
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @import {Passable, RemotableObject} from '@endo/pass-style';
|
|
11
|
+
* @import {GovernableStartFn, ParamChangesSpec} from '../src/types.js';
|
|
12
|
+
*/
|
|
13
|
+
|
|
12
14
|
// @file a version of the contractGovernor.js contract simplified for testing.
|
|
13
15
|
// It removes the electorate and doesn't try to support legibility.
|
|
14
16
|
// It maintains the API for the governed contract (parameters, apis, and filters)
|
|
@@ -17,7 +19,7 @@ import { makeApiInvocationPositions } from '../src/contractGovernance/governApi.
|
|
|
17
19
|
/**
|
|
18
20
|
* @template {GovernableStartFn} SF Start function of governed contract
|
|
19
21
|
* @param {ZCF<{
|
|
20
|
-
* timer: import('@agoric/time
|
|
22
|
+
* timer: import('@agoric/time').TimerService,
|
|
21
23
|
* governedContractInstallation: Installation<SF>,
|
|
22
24
|
* governed: {
|
|
23
25
|
* issuerKeywordRecord?: IssuerKeywordRecord,
|
|
@@ -71,7 +73,7 @@ export const start = async (zcf, privateArgs) => {
|
|
|
71
73
|
|
|
72
74
|
/**
|
|
73
75
|
* @param {string} apiMethodName
|
|
74
|
-
* @param {
|
|
76
|
+
* @param {Passable[]} methodArgs
|
|
75
77
|
*/
|
|
76
78
|
const invokeAPI = async (apiMethodName, methodArgs) => {
|
|
77
79
|
const governedNames = await E(governedCF).getGovernedApiNames();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<ZoeService>, governedP: ERef<Installation<T>>, timer: import(
|
|
1
|
+
export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<ZoeService>, governedP: ERef<Installation<T>>, timer: import("@agoric/time").TimerService, termsOfGoverned?: {
|
|
2
2
|
[k: string]: any;
|
|
3
|
-
governedParams?: Record<string, unknown
|
|
4
|
-
governedApis?: string[]
|
|
3
|
+
governedParams?: Record<string, unknown>;
|
|
4
|
+
governedApis?: string[];
|
|
5
5
|
}, privateArgsOfGoverned?: {}, issuerKeywordRecord?: IssuerKeywordRecord | undefined): Promise<{
|
|
6
6
|
getFakeInvitation: () => Promise<{
|
|
7
7
|
fakeInvitationPayment: any;
|
|
8
|
-
fakeInvitationAmount:
|
|
8
|
+
fakeInvitationAmount: import("@agoric/ertp/src/types.js").SetAmount<InvitationDetails>;
|
|
9
9
|
}>;
|
|
10
10
|
governorFacets: import("@agoric/zoe/src/zoeService/utils.js").StartedInstanceKit<(<SF extends GovernableStartFn>(zcf: ZCF<{
|
|
11
|
-
timer: import("@agoric/time
|
|
11
|
+
timer: import("@agoric/time").TimerService;
|
|
12
12
|
governedContractInstallation: Installation<SF>;
|
|
13
13
|
governed: {
|
|
14
14
|
issuerKeywordRecord?: IssuerKeywordRecord | undefined;
|
|
@@ -22,37 +22,37 @@ export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<Zoe
|
|
|
22
22
|
governed: Record<string, unknown>;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
creatorFacet: {
|
|
25
|
-
changeParams: (paramSpec: ParamChangesSpec<any>) => Promise<void>;
|
|
26
|
-
invokeAPI: (apiMethodName: string, methodArgs:
|
|
25
|
+
changeParams: (paramSpec: import("../src/types.js").ParamChangesSpec<any>) => Promise<void>;
|
|
26
|
+
invokeAPI: (apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[]) => Promise<{
|
|
27
27
|
apiMethodName: string;
|
|
28
|
-
methodArgs:
|
|
28
|
+
methodArgs: import("@endo/pass-style").Passable[];
|
|
29
29
|
}>;
|
|
30
|
-
setFilters: (strings: string
|
|
30
|
+
setFilters: (strings: Array<string>) => Promise<void>;
|
|
31
31
|
getCreatorFacet: () => Promise<{}>;
|
|
32
|
-
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet
|
|
32
|
+
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<SF>;
|
|
33
33
|
getInstance: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
34
34
|
getPublicFacet: () => Awaited<ReturnType<SF>>["publicFacet"];
|
|
35
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
36
|
-
changeParams: (paramSpec: ParamChangesSpec<any>) => Promise<void>;
|
|
37
|
-
invokeAPI: (apiMethodName: string, methodArgs:
|
|
35
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
36
|
+
changeParams: (paramSpec: import("../src/types.js").ParamChangesSpec<any>) => Promise<void>;
|
|
37
|
+
invokeAPI: (apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[]) => Promise<{
|
|
38
38
|
apiMethodName: string;
|
|
39
|
-
methodArgs:
|
|
39
|
+
methodArgs: import("@endo/pass-style").Passable[];
|
|
40
40
|
}>;
|
|
41
|
-
setFilters: (strings: string
|
|
41
|
+
setFilters: (strings: Array<string>) => Promise<void>;
|
|
42
42
|
getCreatorFacet: () => Promise<{}>;
|
|
43
|
-
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet
|
|
43
|
+
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<SF>;
|
|
44
44
|
getInstance: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
45
45
|
getPublicFacet: () => Awaited<ReturnType<SF>>["publicFacet"];
|
|
46
46
|
}>;
|
|
47
47
|
publicFacet: {
|
|
48
48
|
getGovernedContract: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
49
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
49
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
50
50
|
getGovernedContract: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
51
51
|
}>;
|
|
52
52
|
}>)>;
|
|
53
53
|
installs: {
|
|
54
54
|
governor: Installation<(<SF extends GovernableStartFn>(zcf: ZCF<{
|
|
55
|
-
timer: import("@agoric/time
|
|
55
|
+
timer: import("@agoric/time").TimerService;
|
|
56
56
|
governedContractInstallation: Installation<SF>;
|
|
57
57
|
governed: {
|
|
58
58
|
issuerKeywordRecord?: IssuerKeywordRecord | undefined;
|
|
@@ -66,31 +66,31 @@ export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<Zoe
|
|
|
66
66
|
governed: Record<string, unknown>;
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
creatorFacet: {
|
|
69
|
-
changeParams: (paramSpec: ParamChangesSpec<any>) => Promise<void>;
|
|
70
|
-
invokeAPI: (apiMethodName: string, methodArgs:
|
|
69
|
+
changeParams: (paramSpec: import("../src/types.js").ParamChangesSpec<any>) => Promise<void>;
|
|
70
|
+
invokeAPI: (apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[]) => Promise<{
|
|
71
71
|
apiMethodName: string;
|
|
72
|
-
methodArgs:
|
|
72
|
+
methodArgs: import("@endo/pass-style").Passable[];
|
|
73
73
|
}>;
|
|
74
|
-
setFilters: (strings: string
|
|
74
|
+
setFilters: (strings: Array<string>) => Promise<void>;
|
|
75
75
|
getCreatorFacet: () => Promise<{}>;
|
|
76
|
-
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet
|
|
76
|
+
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<SF>;
|
|
77
77
|
getInstance: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
78
78
|
getPublicFacet: () => Awaited<ReturnType<SF>>["publicFacet"];
|
|
79
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
80
|
-
changeParams: (paramSpec: ParamChangesSpec<any>) => Promise<void>;
|
|
81
|
-
invokeAPI: (apiMethodName: string, methodArgs:
|
|
79
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
80
|
+
changeParams: (paramSpec: import("../src/types.js").ParamChangesSpec<any>) => Promise<void>;
|
|
81
|
+
invokeAPI: (apiMethodName: string, methodArgs: import("@endo/pass-style").Passable[]) => Promise<{
|
|
82
82
|
apiMethodName: string;
|
|
83
|
-
methodArgs:
|
|
83
|
+
methodArgs: import("@endo/pass-style").Passable[];
|
|
84
84
|
}>;
|
|
85
|
-
setFilters: (strings: string
|
|
85
|
+
setFilters: (strings: Array<string>) => Promise<void>;
|
|
86
86
|
getCreatorFacet: () => Promise<{}>;
|
|
87
|
-
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet
|
|
87
|
+
getAdminFacet: () => import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<SF>;
|
|
88
88
|
getInstance: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
89
89
|
getPublicFacet: () => Awaited<ReturnType<SF>>["publicFacet"];
|
|
90
90
|
}>;
|
|
91
91
|
publicFacet: {
|
|
92
92
|
getGovernedContract: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
93
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
93
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
94
94
|
getGovernedContract: () => import("@agoric/zoe/src/zoeService/utils.js").Instance<SF>;
|
|
95
95
|
}>;
|
|
96
96
|
}>)>;
|
|
@@ -98,4 +98,5 @@ export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<Zoe
|
|
|
98
98
|
governed: Installation<T>;
|
|
99
99
|
};
|
|
100
100
|
}>;
|
|
101
|
+
import type { GovernableStartFn } from '../src/types.js';
|
|
101
102
|
//# sourceMappingURL=puppetGovernance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puppetGovernance.d.ts","sourceRoot":"","sources":["puppetGovernance.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"puppetGovernance.d.ts","sourceRoot":"","sources":["puppetGovernance.js"],"names":[],"mappings":"AAkCO,sCANsB,CAAC,iCADnB,IAAI,CAAC,UAAU,CAAC,aAChB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SACrB,OAAO,cAAc,EAAE,YAAY,oBACnC;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,0BACvF,EAAE;;;;;;;;;;;;;;;;qBACa;QAAC,UAAe,uBAElC,CAAA;KAAK;;;;;;;kCAyCO,aAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCA;uCAxGmC,iBAAiB"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
|
-
|
|
3
1
|
import bundleSource from '@endo/bundle-source';
|
|
4
2
|
import { E } from '@endo/eventual-send';
|
|
5
3
|
import { resolve as importMetaResolve } from 'import-meta-resolve';
|
|
6
4
|
import { CONTRACT_ELECTORATE, ParamTypes } from '../src/index.js';
|
|
7
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @import {GovernableStartFn} from '../src/types.js';
|
|
8
|
+
*/
|
|
9
|
+
|
|
8
10
|
const makeBundle = async sourceRoot => {
|
|
9
11
|
const url = await importMetaResolve(sourceRoot, import.meta.url);
|
|
10
12
|
const path = new URL(url).pathname;
|
|
@@ -25,7 +27,7 @@ const autoRefundBundleP = makeBundle(
|
|
|
25
27
|
* @template {GovernableStartFn} T governed contract startfn
|
|
26
28
|
* @param {ERef<ZoeService>} zoe
|
|
27
29
|
* @param {ERef<Installation<T>>} governedP
|
|
28
|
-
* @param {import('@agoric/
|
|
30
|
+
* @param {import('@agoric/time').TimerService} timer
|
|
29
31
|
* @param {{ [k: string]: any, governedParams?: Record<string, unknown>, governedApis?: string[] }} termsOfGoverned
|
|
30
32
|
* @param {{}} privateArgsOfGoverned
|
|
31
33
|
* @param {IssuerKeywordRecord} [issuerKeywordRecord]
|
|
@@ -45,7 +47,7 @@ export const setUpGovernedContract = async (
|
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
49
|
* @type {[
|
|
48
|
-
* Installation<import('./puppetContractGovernor').start>,
|
|
50
|
+
* Installation<import('./puppetContractGovernor.js').start>,
|
|
49
51
|
* Installation<any>,
|
|
50
52
|
* Installation<T>,
|
|
51
53
|
* ]}
|
package/tools/storageDoc.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export function documentStorageSchema(t: import(
|
|
1
|
+
export function documentStorageSchema(t: import("ava").ExecutionContext<unknown>, storage: import("@agoric/internal/src/storage-test-utils.js").MockChainStorageRoot, opts: ({
|
|
2
2
|
note: string;
|
|
3
3
|
} | {
|
|
4
4
|
node: string;
|
|
5
5
|
owner: string;
|
|
6
|
-
}) & ({
|
|
6
|
+
}) & ({
|
|
7
7
|
pattern: string;
|
|
8
8
|
replacement: string;
|
|
9
|
-
})): Promise<void>;
|
|
9
|
+
} | {})): Promise<void>;
|
|
10
10
|
//# sourceMappingURL=storageDoc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageDoc.d.ts","sourceRoot":"","sources":["storageDoc.js"],"names":[],"mappings":"AASO,yCANI,OAAO,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,WACvC,OAAO,4CAA4C,EAAE,oBAAoB;
|
|
1
|
+
{"version":3,"file":"storageDoc.d.ts","sourceRoot":"","sources":["storageDoc.js"],"names":[],"mappings":"AASO,yCANI,OAAO,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,WACvC,OAAO,4CAA4C,EAAE,oBAAoB,QACzE,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GAC9D,CAAI;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,EAAE,CAAC,iBA8BlD"}
|