@agoric/governance 0.10.4-other-dev-d15096d.0.d15096d → 0.10.4-other-dev-ecf44df.0.ecf44df
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 +27 -39
- package/source-spec-registry.d.ts +61 -0
- package/source-spec-registry.d.ts.map +1 -0
- package/source-spec-registry.js +43 -0
- package/src/binaryVoteCounter.d.ts +1 -0
- package/src/binaryVoteCounter.d.ts.map +1 -1
- package/src/binaryVoteCounter.js +5 -0
- package/src/committee.d.ts +6 -0
- package/src/committee.d.ts.map +1 -1
- package/src/committee.js +4 -0
- package/src/constants.d.ts.map +1 -1
- package/src/constants.js +1 -1
- package/src/contractGovernance/assertions.d.ts +4 -0
- package/src/contractGovernance/assertions.d.ts.map +1 -1
- package/src/contractGovernance/assertions.js +4 -0
- package/src/contractGovernance/governApi.d.ts +2 -0
- package/src/contractGovernance/governApi.d.ts.map +1 -1
- package/src/contractGovernance/governApi.js +1 -0
- package/src/contractGovernance/governFilter.d.ts +2 -0
- package/src/contractGovernance/governFilter.d.ts.map +1 -1
- package/src/contractGovernance/governFilter.js +1 -0
- package/src/contractGovernance/governParam.d.ts +4 -2
- package/src/contractGovernance/governParam.d.ts.map +1 -1
- package/src/contractGovernance/governParam.js +4 -2
- package/src/contractGovernance/paramManager.d.ts +10 -1
- package/src/contractGovernance/paramManager.d.ts.map +1 -1
- package/src/contractGovernance/paramManager.js +5 -1
- package/src/contractGovernance/typedParamManager.d.ts +2 -0
- package/src/contractGovernance/typedParamManager.d.ts.map +1 -1
- package/src/contractGovernance/typedParamManager.js +2 -1
- package/src/contractGovernor.d.ts +3 -0
- package/src/contractGovernor.d.ts.map +1 -1
- package/src/contractGovernor.js +2 -1
- package/src/contractGovernorKit.d.ts +31 -4
- package/src/contractGovernorKit.d.ts.map +1 -1
- package/src/contractGovernorKit.js +3 -2
- package/src/contractHelper.d.ts +134 -47
- package/src/contractHelper.d.ts.map +1 -1
- package/src/contractHelper.js +1 -0
- package/src/econCommitteeCharter.d.ts +60 -0
- package/src/econCommitteeCharter.d.ts.map +1 -0
- package/src/econCommitteeCharter.js +197 -0
- package/src/electorateTools.d.ts +8 -2
- package/src/electorateTools.d.ts.map +1 -1
- package/src/electorateTools.js +3 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +3 -4
- package/src/multiCandidateVoteCounter.d.ts +1 -0
- package/src/multiCandidateVoteCounter.d.ts.map +1 -1
- package/src/multiCandidateVoteCounter.js +5 -0
- package/src/noActionElectorate.d.ts +1 -0
- package/src/noActionElectorate.d.ts.map +1 -1
- package/src/noActionElectorate.js +3 -0
- package/src/question.d.ts.map +1 -1
- package/src/question.js +2 -0
- package/src/quorumCounter.d.ts +1 -1
- package/src/typeGuards.d.ts +737 -76
- package/src/typeGuards.d.ts.map +1 -1
- package/src/types.d.ts +60 -42
- package/src/types.d.ts.map +1 -1
- package/src/types.js +65 -49
- package/src/voterKit.d.ts +9 -0
- package/src/voterKit.d.ts.map +1 -1
- package/src/voterKit.js +2 -1
- package/tools/puppetContractGovernor.d.ts +7 -7
- package/tools/puppetContractGovernor.d.ts.map +1 -1
- package/tools/puppetContractGovernor.js +2 -2
- package/tools/puppetGovernance.d.ts +27 -25
- package/tools/puppetGovernance.d.ts.map +1 -1
- package/tools/puppetGovernance.js +2 -1
- package/exported.d.ts +0 -33
- package/exported.js +0 -1
package/package.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/governance",
|
|
3
|
-
"version": "0.10.4-other-dev-
|
|
3
|
+
"version": "0.10.4-other-dev-ecf44df.0.ecf44df",
|
|
4
4
|
"description": "Core governance support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^22.11 || ^24.14"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"prepack": "yarn run -T tsc --build tsconfig.build.json",
|
|
14
|
-
"postpack": "git clean -f '*.d.*ts*' '*.tsbuildinfo'",
|
|
11
|
+
"prepack": "yarn run -T prepack-package",
|
|
12
|
+
"postpack": "yarn run -T postpack-package",
|
|
15
13
|
"test": "ava",
|
|
16
14
|
"test:c8": "c8 --all ${C8_OPTIONS:-} ava",
|
|
17
15
|
"test:xs": "exit 0",
|
|
18
16
|
"lint-fix": "yarn lint:eslint --fix",
|
|
19
17
|
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
20
|
-
"lint:eslint": "
|
|
21
|
-
"lint:types": "yarn run -T
|
|
18
|
+
"lint:eslint": "node ../../scripts/eslint-repo.mjs .",
|
|
19
|
+
"lint:types": "yarn run -T tsgo --tsBuildInfoFile tsconfig.tsgo.tsbuildinfo"
|
|
22
20
|
},
|
|
23
21
|
"repository": {
|
|
24
22
|
"type": "git",
|
|
@@ -31,52 +29,42 @@
|
|
|
31
29
|
},
|
|
32
30
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
31
|
"dependencies": {
|
|
34
|
-
"@agoric/ertp": "0.16.3-other-dev-
|
|
35
|
-
"@agoric/internal": "0.3.3-other-dev-
|
|
36
|
-
"@agoric/notifier": "0.6.3-other-dev-
|
|
37
|
-
"@agoric/store": "0.9.3-other-dev-
|
|
38
|
-
"@agoric/time": "0.3.3-other-dev-
|
|
39
|
-
"@agoric/vat-data": "0.5.3-other-dev-
|
|
40
|
-
"@agoric/zoe": "0.26.3-other-dev-
|
|
41
|
-
"@endo/bundle-source": "^4.
|
|
42
|
-
"@endo/captp": "^4.
|
|
43
|
-
"@endo/errors": "^1.
|
|
44
|
-
"@endo/eventual-send": "^1.
|
|
32
|
+
"@agoric/ertp": "0.16.3-other-dev-ecf44df.0.ecf44df",
|
|
33
|
+
"@agoric/internal": "0.3.3-other-dev-ecf44df.0.ecf44df",
|
|
34
|
+
"@agoric/notifier": "0.6.3-other-dev-ecf44df.0.ecf44df",
|
|
35
|
+
"@agoric/store": "0.9.3-other-dev-ecf44df.0.ecf44df",
|
|
36
|
+
"@agoric/time": "0.3.3-other-dev-ecf44df.0.ecf44df",
|
|
37
|
+
"@agoric/vat-data": "0.5.3-other-dev-ecf44df.0.ecf44df",
|
|
38
|
+
"@agoric/zoe": "0.26.3-other-dev-ecf44df.0.ecf44df",
|
|
39
|
+
"@endo/bundle-source": "^4.3.2",
|
|
40
|
+
"@endo/captp": "^4.5.1",
|
|
41
|
+
"@endo/errors": "^1.3.1",
|
|
42
|
+
"@endo/eventual-send": "^1.5.0",
|
|
45
43
|
"@endo/far": "^1.1.14",
|
|
46
|
-
"@endo/marshal": "^1.
|
|
47
|
-
"@endo/nat": "^5.
|
|
48
|
-
"@endo/promise-kit": "^1.1
|
|
44
|
+
"@endo/marshal": "^1.10.0",
|
|
45
|
+
"@endo/nat": "^5.2.0",
|
|
46
|
+
"@endo/promise-kit": "^1.2.1",
|
|
49
47
|
"import-meta-resolve": "^4.1.0"
|
|
50
48
|
},
|
|
51
49
|
"devDependencies": {
|
|
52
|
-
"@agoric/swingset-vat": "0.32.3-other-dev-
|
|
53
|
-
"@endo/bundle-source": "^4.
|
|
54
|
-
"@endo/init": "^1.1.
|
|
55
|
-
"ava": "^
|
|
50
|
+
"@agoric/swingset-vat": "0.32.3-other-dev-ecf44df.0.ecf44df",
|
|
51
|
+
"@endo/bundle-source": "^4.3.2",
|
|
52
|
+
"@endo/init": "^1.1.13",
|
|
53
|
+
"ava": "^8.0.1",
|
|
56
54
|
"c8": "^10.1.3"
|
|
57
55
|
},
|
|
58
56
|
"files": [
|
|
59
57
|
"README.md",
|
|
60
58
|
"src/",
|
|
59
|
+
"source-spec-registry.*",
|
|
61
60
|
"tools/",
|
|
62
|
-
"exported.js",
|
|
63
|
-
"exported.d.ts",
|
|
64
61
|
"NEWS.md"
|
|
65
62
|
],
|
|
66
|
-
"ava": {
|
|
67
|
-
"files": [
|
|
68
|
-
"test/**/*.test.*"
|
|
69
|
-
],
|
|
70
|
-
"require": [
|
|
71
|
-
"@endo/init/debug.js"
|
|
72
|
-
],
|
|
73
|
-
"timeout": "10m"
|
|
74
|
-
},
|
|
75
63
|
"publishConfig": {
|
|
76
64
|
"access": "public"
|
|
77
65
|
},
|
|
78
66
|
"typeCoverage": {
|
|
79
|
-
"atLeast": 89.
|
|
67
|
+
"atLeast": 89.65
|
|
80
68
|
},
|
|
81
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "ecf44df5eadcc7a1d68745f056fca19155fb5231"
|
|
82
70
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export namespace governanceSourceSpecRegistry {
|
|
2
|
+
namespace binaryVoteCounter {
|
|
3
|
+
let bundleName: string;
|
|
4
|
+
let packagePath: string;
|
|
5
|
+
let sourceSpec: string;
|
|
6
|
+
}
|
|
7
|
+
namespace committee {
|
|
8
|
+
let bundleName_1: string;
|
|
9
|
+
export { bundleName_1 as bundleName };
|
|
10
|
+
let packagePath_1: string;
|
|
11
|
+
export { packagePath_1 as packagePath };
|
|
12
|
+
let sourceSpec_1: string;
|
|
13
|
+
export { sourceSpec_1 as sourceSpec };
|
|
14
|
+
}
|
|
15
|
+
namespace contractGovernor {
|
|
16
|
+
let bundleName_2: string;
|
|
17
|
+
export { bundleName_2 as bundleName };
|
|
18
|
+
let packagePath_2: string;
|
|
19
|
+
export { packagePath_2 as packagePath };
|
|
20
|
+
let sourceSpec_2: string;
|
|
21
|
+
export { sourceSpec_2 as sourceSpec };
|
|
22
|
+
}
|
|
23
|
+
namespace econCommitteeCharter {
|
|
24
|
+
let bundleName_3: string;
|
|
25
|
+
export { bundleName_3 as bundleName };
|
|
26
|
+
let packagePath_3: string;
|
|
27
|
+
export { packagePath_3 as packagePath };
|
|
28
|
+
let sourceSpec_3: string;
|
|
29
|
+
export { sourceSpec_3 as sourceSpec };
|
|
30
|
+
}
|
|
31
|
+
namespace puppetContractGovernor {
|
|
32
|
+
let bundleName_4: string;
|
|
33
|
+
export { bundleName_4 as bundleName };
|
|
34
|
+
let packagePath_4: string;
|
|
35
|
+
export { packagePath_4 as packagePath };
|
|
36
|
+
let sourceSpec_4: string;
|
|
37
|
+
export { sourceSpec_4 as sourceSpec };
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export function getGovernanceSourceSpec(name: keyof typeof governanceSourceSpecRegistry): {
|
|
41
|
+
bundleName: string;
|
|
42
|
+
packagePath: string;
|
|
43
|
+
sourceSpec: string;
|
|
44
|
+
} | {
|
|
45
|
+
bundleName: string;
|
|
46
|
+
packagePath: string;
|
|
47
|
+
sourceSpec: string;
|
|
48
|
+
} | {
|
|
49
|
+
bundleName: string;
|
|
50
|
+
packagePath: string;
|
|
51
|
+
sourceSpec: string;
|
|
52
|
+
} | {
|
|
53
|
+
bundleName: string;
|
|
54
|
+
packagePath: string;
|
|
55
|
+
sourceSpec: string;
|
|
56
|
+
} | {
|
|
57
|
+
bundleName: string;
|
|
58
|
+
packagePath: string;
|
|
59
|
+
sourceSpec: string;
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=source-spec-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-spec-registry.d.ts","sourceRoot":"","sources":["source-spec-registry.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCO,8CADK,MAAM,OAAO,4BAA4B;;;;;;;;;;;;;;;;;;;;EAEjB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { fileURLToPath } from 'node:url';
|
|
2
|
+
|
|
3
|
+
/** @param {string} packagePath */
|
|
4
|
+
const resolveSourceSpec = packagePath =>
|
|
5
|
+
fileURLToPath(import.meta.resolve(packagePath));
|
|
6
|
+
|
|
7
|
+
export const governanceSourceSpecRegistry = {
|
|
8
|
+
binaryVoteCounter: {
|
|
9
|
+
bundleName: 'binaryVoteCounter',
|
|
10
|
+
packagePath: '@agoric/governance/src/binaryVoteCounter.js',
|
|
11
|
+
sourceSpec: resolveSourceSpec(
|
|
12
|
+
'@agoric/governance/src/binaryVoteCounter.js',
|
|
13
|
+
),
|
|
14
|
+
},
|
|
15
|
+
committee: {
|
|
16
|
+
bundleName: 'committee',
|
|
17
|
+
packagePath: '@agoric/governance/src/committee.js',
|
|
18
|
+
sourceSpec: resolveSourceSpec('@agoric/governance/src/committee.js'),
|
|
19
|
+
},
|
|
20
|
+
contractGovernor: {
|
|
21
|
+
bundleName: 'contractGovernor',
|
|
22
|
+
packagePath: '@agoric/governance/src/contractGovernor.js',
|
|
23
|
+
sourceSpec: resolveSourceSpec('@agoric/governance/src/contractGovernor.js'),
|
|
24
|
+
},
|
|
25
|
+
econCommitteeCharter: {
|
|
26
|
+
bundleName: 'econCommitteeCharter',
|
|
27
|
+
packagePath: '@agoric/governance/src/econCommitteeCharter.js',
|
|
28
|
+
sourceSpec: resolveSourceSpec(
|
|
29
|
+
'@agoric/governance/src/econCommitteeCharter.js',
|
|
30
|
+
),
|
|
31
|
+
},
|
|
32
|
+
puppetContractGovernor: {
|
|
33
|
+
bundleName: 'puppetContractGovernor',
|
|
34
|
+
packagePath: '@agoric/governance/tools/puppetContractGovernor.js',
|
|
35
|
+
sourceSpec: resolveSourceSpec(
|
|
36
|
+
'@agoric/governance/tools/puppetContractGovernor.js',
|
|
37
|
+
),
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @param {keyof typeof governanceSourceSpecRegistry} name */
|
|
42
|
+
export const getGovernanceSourceSpec = name =>
|
|
43
|
+
governanceSourceSpecRegistry[name];
|
|
@@ -17,4 +17,5 @@ import type { BuildVoteCounter } from './types.js';
|
|
|
17
17
|
import type { QuestionSpec } from './types.js';
|
|
18
18
|
import type { ZCF } from '@agoric/zoe';
|
|
19
19
|
import type { OutcomeRecord } from './types.js';
|
|
20
|
+
import type { Publisher } from '@agoric/notifier';
|
|
20
21
|
//# sourceMappingURL=binaryVoteCounter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binaryVoteCounter.d.ts","sourceRoot":"","sources":["binaryVoteCounter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"binaryVoteCounter.d.ts","sourceRoot":"","sources":["binaryVoteCounter.js"],"names":[],"mappings":"AAiDA,+BAA+B;AAC/B,oCADW,gBAAgB,CA8JzB;AAMF;;;GAGG;AACH,2BAHW,IAAI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAC,CAAC,wBAC1D;IAAC,gBAAgB,EAAE,UAAU,aAAa,CAAC,CAAA;CAAC;;;EAoBtD;sCAjNyF,YAAY;kCAAZ,YAAY;yBADhF,aAAa;mCACuD,YAAY;+BAF1E,kBAAkB"}
|
package/src/binaryVoteCounter.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @ts-nocheck — under-supported package; type errors are tolerated
|
|
2
|
+
|
|
1
3
|
import { Fail } from '@endo/errors';
|
|
2
4
|
import { makePromiseKit } from '@endo/promise-kit';
|
|
3
5
|
import { E } from '@endo/eventual-send';
|
|
@@ -18,9 +20,12 @@ import {
|
|
|
18
20
|
import { makeQuorumCounter } from './quorumCounter.js';
|
|
19
21
|
|
|
20
22
|
/**
|
|
23
|
+
* @import {Handle} from '@agoric/zoe';
|
|
21
24
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
25
|
+
* @import {Publisher} from '@agoric/notifier';
|
|
22
26
|
* @import {ZCF} from '@agoric/zoe';
|
|
23
27
|
* @import {BuildVoteCounter, OutcomeRecord, Position, QuestionSpec, VoteStatistics} from './types.js';
|
|
28
|
+
* @import {PromiseRecord} from '@endo/promise-kit';
|
|
24
29
|
*/
|
|
25
30
|
|
|
26
31
|
const validateBinaryQuestionSpec = questionSpec => {
|
package/src/committee.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @import {Handle} from '@agoric/zoe';
|
|
2
3
|
* @import {Remote} from '@agoric/internal';
|
|
4
|
+
* @import {StoredPublishKit} from '@agoric/notifier';
|
|
3
5
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
4
6
|
* @import {ContractMeta, Invitation, ZCF} from '@agoric/zoe';
|
|
5
7
|
* @import {ElectorateCreatorFacet, CommitteeElectoratePublic, QuestionDetails, OutcomeRecord, AddQuestion} from './types.js';
|
|
6
8
|
* @import {Baggage} from '@agoric/vat-data';
|
|
7
9
|
* @import {QuestionRecord} from './electorateTools.js';
|
|
10
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
11
|
+
* @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
|
|
8
12
|
*/
|
|
9
13
|
/**
|
|
10
14
|
* @typedef { ElectorateCreatorFacet & {
|
|
@@ -32,7 +36,9 @@ export type CommitteeElectorateCreatorFacet = ElectorateCreatorFacet & {
|
|
|
32
36
|
};
|
|
33
37
|
import type { ContractMeta } from '@agoric/zoe';
|
|
34
38
|
import type { ZCF } from '@agoric/zoe';
|
|
39
|
+
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
35
40
|
import type { Remote } from '@agoric/internal';
|
|
41
|
+
import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
|
|
36
42
|
import type { Baggage } from '@agoric/vat-data';
|
|
37
43
|
import type { CommitteeElectoratePublic } from './types.js';
|
|
38
44
|
import type { ElectorateCreatorFacet } from './types.js';
|
package/src/committee.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"committee.d.ts","sourceRoot":"","sources":["committee.js"],"names":[],"mappings":"AAkBA
|
|
1
|
+
{"version":3,"file":"committee.d.ts","sourceRoot":"","sources":["committee.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AAEH,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAOnC;AAoBK,2BARI,IAAI;IACV,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC,eACM;IAAE,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IAAC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAA;CAAC,WACnE,OAAO,GACL;IAAC,YAAY,EAAE,+BAA+B,CAAC;IAAC,WAAW,EAAE,yBAAyB,CAAA;CAAC,CAuInG;8CArKa,sBAAsB,GAAG;IAClC,mBAAmB,EAAE,MAAM,OAAO,CAAC,WAAW;QAAE,KAAK,EAAE;YAAE,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,GAAK,IAAI,CAAA;SAAC,CAAA;KAAC,CAAC,CAAC,EAAE,CAAA;CAChH;kCAX4C,aAAa;yBAAb,aAAa;iCAI/B,0CAA0C;4BAP/C,kBAAkB;gCAQd,0CAA0C;6BAH7C,kBAAkB;+CADqE,YAAY;4CAAZ,YAAY;gCAD7E,aAAa"}
|
package/src/committee.js
CHANGED
|
@@ -17,12 +17,16 @@ import { ElectorateCreatorI, ElectoratePublicI } from './typeGuards.js';
|
|
|
17
17
|
import { prepareVoterKit } from './voterKit.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
+
* @import {Handle} from '@agoric/zoe';
|
|
20
21
|
* @import {Remote} from '@agoric/internal';
|
|
22
|
+
* @import {StoredPublishKit} from '@agoric/notifier';
|
|
21
23
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
22
24
|
* @import {ContractMeta, Invitation, ZCF} from '@agoric/zoe';
|
|
23
25
|
* @import {ElectorateCreatorFacet, CommitteeElectoratePublic, QuestionDetails, OutcomeRecord, AddQuestion} from './types.js';
|
|
24
26
|
* @import {Baggage} from '@agoric/vat-data';
|
|
25
27
|
* @import {QuestionRecord} from './electorateTools.js';
|
|
28
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
29
|
+
* @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
|
|
26
30
|
*/
|
|
27
31
|
|
|
28
32
|
/**
|
package/src/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":";;;;;;;wBAMa,CAAA,OAAO,SAAS,EAAC,MAAM,OAAO,SAAS,CAAC"}
|
package/src/constants.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* UNKNOWN is an escape hatch for types we haven't added yet. If you are
|
|
5
5
|
* developing a new contract and use UNKNOWN, please also file an issue to ask
|
|
6
6
|
* us to support the new type.
|
|
7
|
-
* @
|
|
7
|
+
* @typedef {typeof ParamType[keyof typeof ParamType]} ParamType
|
|
8
8
|
*/
|
|
9
9
|
export const ParamType = /** @type {const} */ ({
|
|
10
10
|
AMOUNT: 'amount',
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Brand} from '@agoric/ertp';
|
|
3
|
+
*/
|
|
1
4
|
export function makeLooksLikeBrand(name: any): (brand: Brand) => void;
|
|
2
5
|
export function makeAssertInstallation(name: any): (installation: any) => void;
|
|
3
6
|
export function makeAssertInstance(name: any): (instance: any) => void;
|
|
4
7
|
export function makeAssertBrandedRatio(name: any, modelRatio: any): (ratio: any) => boolean;
|
|
5
8
|
export function assertRelativeTime(value: any): void;
|
|
6
9
|
export function assertTimestamp(value: any): void;
|
|
10
|
+
import type { Brand } from '@agoric/ertp';
|
|
7
11
|
//# sourceMappingURL=assertions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["assertions.js"],"names":[],"mappings":"AAMA,gDAES,OADK,KACA,UAGb;AAGD,oDACS,iBAAY,UAKpB;AAGD,gDACS,aAAQ,UAKhB;AAGD,qEACS,UAAK,aAQb;AAGD,qDAEC;AAGD,kDAEC"}
|
|
1
|
+
{"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["assertions.js"],"names":[],"mappings":"AAMA;;GAEG;AAEH,gDAES,OADK,KACA,UAGb;AAGD,oDACS,iBAAY,UAKpB;AAGD,gDACS,aAAQ,UAKhB;AAGD,qEACS,UAAK,aAQb;AAGD,qDAEC;AAGD,kDAEC;2BAhDuB,cAAc"}
|
|
@@ -4,6 +4,10 @@ import { assertIsRatio } from '@agoric/ertp/src/ratio.js';
|
|
|
4
4
|
import { mustMatch } from '@agoric/store';
|
|
5
5
|
import { RelativeTimeRecordShape, TimestampRecordShape } from '@agoric/time';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @import {Brand} from '@agoric/ertp';
|
|
9
|
+
*/
|
|
10
|
+
|
|
7
11
|
const makeLooksLikeBrand = name => {
|
|
8
12
|
/** @param {Brand} brand */
|
|
9
13
|
return brand => {
|
|
@@ -13,6 +13,7 @@ export function setupApiGovernance(getGovernedApis: () => ERef<GovernedApis>, ge
|
|
|
13
13
|
* @import {Passable, RemotableObject} from '@endo/pass-style';
|
|
14
14
|
* @import {Position, ApiGovernor, ApiInvocationIssue, PoserFacet, VoteOnApiInvocation, GovernedApis} from '../types.js';
|
|
15
15
|
* @import {TimerService} from '@agoric/time';
|
|
16
|
+
* @import {ERef} from '@agoric/vow';
|
|
16
17
|
*/
|
|
17
18
|
/**
|
|
18
19
|
* Make a pair of positions for a question about whether to invoke an API. If
|
|
@@ -32,6 +33,7 @@ export function makeApiInvocationPositions(apiMethodName: string, methodArgs: Pa
|
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
import type { GovernedApis } from '../types.js';
|
|
36
|
+
import type { ERef } from '@agoric/vow';
|
|
35
37
|
import type { TimerService } from '@agoric/time';
|
|
36
38
|
import type { PoserFacet } from '../types.js';
|
|
37
39
|
import type { ApiGovernor } from '../types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governApi.d.ts","sourceRoot":"","sources":["governApi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"governApi.d.ts","sourceRoot":"","sources":["governApi.js"],"names":[],"mappings":"AAkCA;;;;;;;;GAQG;AACH,oDANW,MAAM,KAAK,YAAY,CAAC,oBACxB,MAAM,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,SACrC,KAAK,YAAY,CAAC,wBAClB,MAAM,OAAO,CAAC,UAAU,CAAC,GACvB,WAAW,CA4FvB;AAzHD;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH,0DAHW,MAAM,cACN,QAAQ,EAAE;;;;;;;;EAMpB;kCAjB0G,aAAa;0BAEjG,aAAa;kCADL,cAAc;gCAD8D,aAAa;iCAAb,aAAa;8BAD5E,kBAAkB"}
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
* @import {Passable, RemotableObject} from '@endo/pass-style';
|
|
16
16
|
* @import {Position, ApiGovernor, ApiInvocationIssue, PoserFacet, VoteOnApiInvocation, GovernedApis} from '../types.js';
|
|
17
17
|
* @import {TimerService} from '@agoric/time';
|
|
18
|
+
* @import {ERef} from '@agoric/vow';
|
|
18
19
|
*/
|
|
19
20
|
|
|
20
21
|
/**
|
|
@@ -11,6 +11,7 @@ export function setupFilterGovernance(timer: ERef<TimerService>, getUpdatedPoser
|
|
|
11
11
|
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
12
12
|
* @import {Position, ApiGovernor, ApiInvocationIssue, PoserFacet, VoteOnApiInvocation, FilterGovernor, GovernedCreatorFacet, OfferFilterIssue, VoteOnOfferFilter} from '../types.js';
|
|
13
13
|
* @import {TimerService} from '@agoric/time';
|
|
14
|
+
* @import {ERef} from '@agoric/vow';
|
|
14
15
|
*/
|
|
15
16
|
/**
|
|
16
17
|
* Make a pair of positions for a question about whether to update the offer
|
|
@@ -28,6 +29,7 @@ export function makeOfferFilterPositions(strings: string[]): {
|
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
import type { TimerService } from '@agoric/time';
|
|
32
|
+
import type { ERef } from '@agoric/vow';
|
|
31
33
|
import type { PoserFacet } from '../types.js';
|
|
32
34
|
import type { GovernedCreatorFacet } from '../types.js';
|
|
33
35
|
import type { FilterGovernor } from '../types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governFilter.d.ts","sourceRoot":"","sources":["governFilter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"governFilter.d.ts","sourceRoot":"","sources":["governFilter.js"],"names":[],"mappings":"AAgCA;;;;;;;GAOG;AACH,6CALW,KAAK,YAAY,CAAC,wBAClB,MAAM,OAAO,CAAC,UAAU,CAAC,cACzB,qBAAqB,EAAE,CAAC,GACtB,cAAc,CAqE1B;AA/FD;;;;;GAKG;AAEH;;;;;;GAMG;AACH,kDAFW,MAAM,EAAE;;;;;;;EAMlB;kCAf8B,cAAc;0BACtB,aAAa;gCAFoI,aAAa;0CAAb,aAAa;oCAAb,aAAa"}
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
15
15
|
* @import {Position, ApiGovernor, ApiInvocationIssue, PoserFacet, VoteOnApiInvocation, FilterGovernor, GovernedCreatorFacet, OfferFilterIssue, VoteOnOfferFilter} from '../types.js';
|
|
16
16
|
* @import {TimerService} from '@agoric/time';
|
|
17
|
+
* @import {ERef} from '@agoric/vow';
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -19,17 +19,18 @@ export function makeParamChangePositions(changes: Record<string, ParamValue>): P
|
|
|
19
19
|
* the question described by questionSpec.
|
|
20
20
|
*
|
|
21
21
|
* @param {{ parameterName: string, paramPath: unknown}} paramSpec
|
|
22
|
-
* @param {QuestionSpec<ParamChangeIssue
|
|
22
|
+
* @param {QuestionSpec<ParamChangeIssue>} questionSpec
|
|
23
23
|
*/
|
|
24
24
|
export function assertBallotConcernsParam(paramSpec: {
|
|
25
25
|
parameterName: string;
|
|
26
26
|
paramPath: unknown;
|
|
27
|
-
}, questionSpec: QuestionSpec<ParamChangeIssue
|
|
27
|
+
}, questionSpec: QuestionSpec<ParamChangeIssue>): void;
|
|
28
28
|
/**
|
|
29
29
|
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
30
30
|
* @import {ParamValue, ParamChangePositions, QuestionSpec, ChangeParamsPosition, ParamChangeIssue, ParamGovernor, ParamManagerRetriever, PoserFacet, VoteOnParamChanges} from '../types.js';
|
|
31
31
|
* @import {TimerService} from '@agoric/time';
|
|
32
32
|
* @import {Passable} from '@endo/marshal';
|
|
33
|
+
* @import {ERef} from '@agoric/vow';
|
|
33
34
|
*/
|
|
34
35
|
/**
|
|
35
36
|
* The electorate that governs changes to the contract's parameters. It must be
|
|
@@ -37,6 +38,7 @@ export function assertBallotConcernsParam(paramSpec: {
|
|
|
37
38
|
*/
|
|
38
39
|
export const CONTRACT_ELECTORATE: "Electorate";
|
|
39
40
|
import type { ParamManagerRetriever } from '../types.js';
|
|
41
|
+
import type { ERef } from '@agoric/vow';
|
|
40
42
|
import type { Instance } from '@agoric/zoe';
|
|
41
43
|
import type { TimerService } from '@agoric/time';
|
|
42
44
|
import type { PoserFacet } from '../types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governParam.d.ts","sourceRoot":"","sources":["governParam.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"governParam.d.ts","sourceRoot":"","sources":["governParam.js"],"names":[],"mappings":"AA6DA;;;;;;GAMG;AACH,oEANW,MAAM,KAAK,qBAAqB,CAAC,oBACjC,QAAQ,SACR,YAAY,wBACZ,MAAM,OAAO,CAAC,UAAU,CAAC,GACvB,aAAa,CA0FzB;AAjID;;;;;;GAMG;AACH,kDAHW,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GACxB,oBAAoB,CAQhC;AAED;;;;;;GAMG;AACH,qDAHW;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAC,gBAC5C,aAAa,gBAAgB,CAAC,QAYxC;AA9CD;;;;;;GAMG;AAEH;;;GAGG;AACH,kCAA4B,YAAY,CAAC;2CAVsI,aAAa;0BAGrK,aAAa;8BAJoC,aAAa;kCAEtD,cAAc;gCADkI,aAAa;mCAAb,aAAa;gCAAb,aAAa;0CAAb,aAAa;sCAAb,aAAa;kCAAb,aAAa"}
|
|
@@ -16,6 +16,7 @@ import { ParamChangesQuestionDetailsShape } from '../typeGuards.js';
|
|
|
16
16
|
* @import {ParamValue, ParamChangePositions, QuestionSpec, ChangeParamsPosition, ParamChangeIssue, ParamGovernor, ParamManagerRetriever, PoserFacet, VoteOnParamChanges} from '../types.js';
|
|
17
17
|
* @import {TimerService} from '@agoric/time';
|
|
18
18
|
* @import {Passable} from '@endo/marshal';
|
|
19
|
+
* @import {ERef} from '@agoric/vow';
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
/**
|
|
@@ -44,13 +45,14 @@ const makeParamChangePositions = changes => {
|
|
|
44
45
|
* the question described by questionSpec.
|
|
45
46
|
*
|
|
46
47
|
* @param {{ parameterName: string, paramPath: unknown}} paramSpec
|
|
47
|
-
* @param {QuestionSpec<ParamChangeIssue
|
|
48
|
+
* @param {QuestionSpec<ParamChangeIssue>} questionSpec
|
|
48
49
|
*/
|
|
49
50
|
const assertBallotConcernsParam = (paramSpec, questionSpec) => {
|
|
50
51
|
mustMatch(questionSpec, ParamChangesQuestionDetailsShape);
|
|
51
52
|
|
|
52
53
|
const { parameterName, paramPath } = paramSpec;
|
|
53
54
|
const { issue } = questionSpec;
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises -- `yarn lint` erroneously thinks this is a promise
|
|
54
56
|
issue.spec.changes[parameterName] ||
|
|
55
57
|
Fail`Question (${issue.spec.changes}) does not concern ${parameterName}`;
|
|
56
58
|
keyEQ(issue.spec.paramPath, paramPath) ||
|
|
@@ -94,7 +96,7 @@ const setupParamGovernance = (
|
|
|
94
96
|
|
|
95
97
|
const { positive, negative } = makeParamChangePositions(changes);
|
|
96
98
|
|
|
97
|
-
/** @type {ParamChangeIssue
|
|
99
|
+
/** @type {ParamChangeIssue} */
|
|
98
100
|
const issue = harden({
|
|
99
101
|
spec: {
|
|
100
102
|
paramPath: paramSpec.paramPath,
|
|
@@ -15,13 +15,17 @@ export type ParamManagerBuilder = {
|
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
18
|
-
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
18
|
+
* @import {ContractMeta, Installation, Instance, Invitation, Keyword, ZCF, ZoeService} from '@agoric/zoe';
|
|
19
19
|
* @import {AnyParamManager, GovernanceSubscriptionState, ParamManagerBase, ParamStateRecord, ParamValueTyped, UpdateParams} from '../types.js';
|
|
20
20
|
* @import {CopyRecord} from '@endo/marshal';
|
|
21
21
|
* @import {Timestamp} from '@agoric/time';
|
|
22
22
|
* @import {RelativeTime} from '@agoric/time';
|
|
23
23
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
24
24
|
* @import {ParamType} from '../constants.js';
|
|
25
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
26
|
+
* @import {Amount} from '@agoric/ertp';
|
|
27
|
+
* @import {Brand} from '@agoric/ertp';
|
|
28
|
+
* @import {ERef} from '@agoric/vow';
|
|
25
29
|
*/
|
|
26
30
|
/**
|
|
27
31
|
* @param {ParamManagerBase} paramManager
|
|
@@ -51,9 +55,12 @@ export function assertElectorateMatches(paramManager: ParamManagerBase, governed
|
|
|
51
55
|
* @param {ERef<ZoeService>} [zoe]
|
|
52
56
|
*/
|
|
53
57
|
export function makeParamManagerBuilder(publisherKit: StoredPublisherKit<GovernanceSubscriptionState>, zoe?: ERef<ZoeService>): ParamManagerBuilder;
|
|
58
|
+
import type { Amount } from '@agoric/ertp';
|
|
59
|
+
import type { Brand } from '@agoric/ertp';
|
|
54
60
|
import type { Installation } from '@agoric/zoe';
|
|
55
61
|
import type { Instance } from '@agoric/zoe';
|
|
56
62
|
import type { Invitation } from '@agoric/zoe';
|
|
63
|
+
import type { Ratio } from '@agoric/ertp';
|
|
57
64
|
import type { CopyRecord } from '@endo/marshal';
|
|
58
65
|
import type { Timestamp } from '@agoric/time';
|
|
59
66
|
import type { RelativeTime } from '@agoric/time';
|
|
@@ -63,4 +70,6 @@ import { CONTRACT_ELECTORATE } from './governParam.js';
|
|
|
63
70
|
import type { ParamValueTyped } from '../types.js';
|
|
64
71
|
import type { GovernanceSubscriptionState } from '../types.js';
|
|
65
72
|
import type { StoredPublisherKit } from '@agoric/notifier';
|
|
73
|
+
import type { ZoeService } from '@agoric/zoe';
|
|
74
|
+
import type { ERef } from '@agoric/vow';
|
|
66
75
|
//# sourceMappingURL=paramManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paramManager.d.ts","sourceRoot":"","sources":["paramManager.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"paramManager.d.ts","sourceRoot":"","sources":["paramManager.js"],"names":[],"mappings":";eAqDc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,mBAAmB;cACpD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,mBAAmB;qBACnD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,KAAK,mBAAmB;iBAC1D,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,KAAK,mBAAmB;mBACtD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,KAAK,mBAAmB;YACxD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,mBAAmB;cACpD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,mBAAmB;eACnD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,CAAC,KAAK,mBAAmB;eAC7D,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,mBAAmB;kBACpD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,mBAAmB;qBACvD,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,KAAK,mBAAmB;gBAC1D,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,mBAAmB;WACjD,MAAM,eAAe;;AA7CnC;;;;;;;;;;;;;GAaG;AAEH;;;GAGG;AACH,sDAHW,gBAAgB,kBAChB;IAAC,CAAC,mBAAmB,CAAC,EAAE,gBAAgB,YAAY,CAAC,CAAA;CAAC,QAYhE;AAED;;;;;;;;;;;;;;;GAeG;AAEH;;;GAGG;AACH,sDAHW,mBAAmB,2BAA2B,CAAC,QAC/C,KAAK,UAAU,CAAC,uBAgX1B;4BAxZwB,cAAc;2BACf,cAAc;kCATuD,aAAa;8BAAb,aAAa;gCAAb,aAAa;2BAOlF,cAAc;gCALT,eAAe;+BAChB,cAAc;kCACX,cAAc;qCAHqF,aAAa;sCAAb,aAAa;oCAL3G,kBAAkB;qCAK4E,aAAa;iDAAb,aAAa;wCAI1G,kBAAkB;gCALsC,aAAa;0BAUnF,aAAa"}
|
|
@@ -20,13 +20,17 @@ import { CONTRACT_ELECTORATE } from './governParam.js';
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
23
|
-
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
23
|
+
* @import {ContractMeta, Installation, Instance, Invitation, Keyword, ZCF, ZoeService} from '@agoric/zoe';
|
|
24
24
|
* @import {AnyParamManager, GovernanceSubscriptionState, ParamManagerBase, ParamStateRecord, ParamValueTyped, UpdateParams} from '../types.js';
|
|
25
25
|
* @import {CopyRecord} from '@endo/marshal';
|
|
26
26
|
* @import {Timestamp} from '@agoric/time';
|
|
27
27
|
* @import {RelativeTime} from '@agoric/time';
|
|
28
28
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
29
29
|
* @import {ParamType} from '../constants.js';
|
|
30
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
31
|
+
* @import {Amount} from '@agoric/ertp';
|
|
32
|
+
* @import {Brand} from '@agoric/ertp';
|
|
33
|
+
* @import {ERef} from '@agoric/vow';
|
|
30
34
|
*/
|
|
31
35
|
|
|
32
36
|
/**
|
|
@@ -26,6 +26,7 @@ export type InvitationParam = {
|
|
|
26
26
|
};
|
|
27
27
|
export type SyncSpecTuple = ST<"amount"> | ST<"brand"> | ST<"installation"> | ST<"instance"> | ST<"nat"> | ST<"ratio"> | ST<"string"> | ST<"timestamp"> | ST<"relativeTime"> | ST<"unknown">;
|
|
28
28
|
export type AsyncSpecTuple = ["invitation", Invitation];
|
|
29
|
+
import type { Keyword } from '@agoric/zoe';
|
|
29
30
|
import type { GovernanceSubscriptionState } from '../types.js';
|
|
30
31
|
import type { StoredPublisherKit } from '@agoric/notifier';
|
|
31
32
|
import type { ZCF } from '@agoric/zoe';
|
|
@@ -36,4 +37,5 @@ import type { ParamStateRecord } from '../types.js';
|
|
|
36
37
|
import type { ParamValueForType } from '../types.js';
|
|
37
38
|
import type { ParamManagerBase } from '../types.js';
|
|
38
39
|
import type { UpdateParams } from '../types.js';
|
|
40
|
+
import type { Amount } from '@agoric/ertp';
|
|
39
41
|
//# sourceMappingURL=typedParamManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedParamManager.d.ts","sourceRoot":"","sources":["typedParamManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typedParamManager.d.ts","sourceRoot":"","sources":["typedParamManager.js"],"names":[],"mappings":"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"}
|
|
@@ -5,10 +5,11 @@ import { CONTRACT_ELECTORATE } from './governParam.js';
|
|
|
5
5
|
import { makeParamManagerBuilder } from './paramManager.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @import {ContractMeta, Installation, Instance, Invitation, ZCF} from '@agoric/zoe';
|
|
8
|
+
* @import {ContractMeta, Installation, Instance, Invitation, Keyword, ZCF} from '@agoric/zoe';
|
|
9
9
|
* @import {VoteCounterCreatorFacet, VoteCounterPublicFacet, QuestionSpec, OutcomeRecord, AddQuestion, AddQuestionReturn, GovernanceSubscriptionState, GovernanceTerms, ParamManagerBase, ParamStateRecord, ParamValueForType, UpdateParams} from '../types.js';
|
|
10
10
|
* @import {ParamType} from '../constants.js';
|
|
11
11
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
12
|
+
* @import {Amount} from '@agoric/ertp';
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -22,11 +22,14 @@ export function start<SF extends GovernableStartFn>(zcf: ZCF<{
|
|
|
22
22
|
}>;
|
|
23
23
|
export type ContractGovernorTerms = StandardTerms;
|
|
24
24
|
import type { ContractMeta } from '@agoric/zoe';
|
|
25
|
+
import type { ZoeService } from '@agoric/zoe';
|
|
26
|
+
import type { ERef } from '@agoric/vow';
|
|
25
27
|
import type { Instance } from '@agoric/zoe';
|
|
26
28
|
import type { ParamChangeIssueDetails } from './types.js';
|
|
27
29
|
import type { GovernableStartFn } from './types.js';
|
|
28
30
|
import type { TimerService } from '@agoric/time';
|
|
29
31
|
import type { Installation } from '@agoric/zoe';
|
|
32
|
+
import type { IssuerKeywordRecord } from '@agoric/zoe';
|
|
30
33
|
import { CONTRACT_ELECTORATE } from './contractGovernance/governParam.js';
|
|
31
34
|
import type { InvitationParam } from './contractGovernance/typedParamManager.js';
|
|
32
35
|
import type { ZCF } from '@agoric/zoe';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractGovernor.d.ts","sourceRoot":"","sources":["contractGovernor.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contractGovernor.d.ts","sourceRoot":"","sources":["contractGovernor.js"],"names":[],"mappings":"AAqBA,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAGnC;AAYK,6CAJI,KAAK,UAAU,CAAC,cAChB,QAAQ,WACR,uBAAuB,+BAkBjC;AAYM,iDAJI,KAAK,UAAU,CAAC,cAChB,QAAQ,eACR,QAAQ,+BAYlB;AA0FM,sBAnB0B,EAAE,SAAtB,iBAAmB,OACrB,IAAI;IACV,KAAK,EAAE,YAAY,CAAC;IACpB,4BAA4B,EAAE,aAAa,EAAE,CAAC,CAAC;IAC/C,QAAQ,EAAE;QACR,mBAAmB,EAAE,mBAAmB,CAAC;QACzC,KAAK,EAAE;YAAC,cAAc,EAAE;gBAAC,CAAC,mBAAmB,CAAC,EAAE,eAAe,CAAA;aAAC,CAAA;SAAC,CAAC;QAClE,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAA;CACF,CAAC,eACM;IACN,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC,WAKO,OAAO,GAJL,OAAO,CAAC;IAChB,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;IACvC,WAAW,EAAE,cAAc,CAAC;CAC7B,CAAC,CA8DJ;oCAjJY,aAAa;kCAnE8F,aAAa;gCAAb,aAAa;0BAK9G,aAAa;8BALoF,aAAa;6CAClC,YAAY;uCAAZ,YAAY;kCAChF,cAAc;kCAF2E,aAAa;yCAAb,aAAa;oCALjG,qCAAqC;qCAQvC,2CAA2C;yBAH2C,aAAa;6BAI3G,kBAAkB;0CAHuD,YAAY;oCAAZ,YAAY;mCADS,aAAa"}
|
package/src/contractGovernor.js
CHANGED
|
@@ -9,11 +9,12 @@ import { prepareContractGovernorKit } from './contractGovernorKit.js';
|
|
|
9
9
|
import { ParamChangesQuestionDetailsShape } from './typeGuards.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @import {ContractMeta, Installation, Instance, Invitation, StandardTerms, ZCF} from '@agoric/zoe';
|
|
12
|
+
* @import {ContractMeta, Installation, Instance, Invitation, IssuerKeywordRecord, StandardTerms, ZCF, ZoeService} from '@agoric/zoe';
|
|
13
13
|
* @import {GovernableStartFn, GovernorCreatorFacet, GovernorPublic, ParamChangeIssueDetails} from './types.js';
|
|
14
14
|
* @import {TimerService} from '@agoric/time';
|
|
15
15
|
* @import {InvitationParam} from './contractGovernance/typedParamManager.js';
|
|
16
16
|
* @import {Baggage} from '@agoric/vat-data';
|
|
17
|
+
* @import {ERef} from '@agoric/vow';
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
const trace = makeTracer('CGov', false);
|