@agoric/builders 0.1.1-dev-11c895a.0 → 0.1.1-dev-3154854.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/builders",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-3154854.0+3154854",
|
|
4
4
|
"description": "Build scripts for proposals to an Agoric chain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"author": "Agoric",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
27
|
-
"@agoric/fast-usdc": "0.1.1-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
30
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
31
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
32
|
-
"@agoric/vats": "0.15.2-dev-
|
|
33
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-3154854.0+3154854",
|
|
27
|
+
"@agoric/fast-usdc": "0.1.1-dev-3154854.0+3154854",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-3154854.0+3154854",
|
|
29
|
+
"@agoric/notifier": "0.6.3-dev-3154854.0+3154854",
|
|
30
|
+
"@agoric/smart-wallet": "0.5.4-dev-3154854.0+3154854",
|
|
31
|
+
"@agoric/vat-data": "0.5.3-dev-3154854.0+3154854",
|
|
32
|
+
"@agoric/vats": "0.15.2-dev-3154854.0+3154854",
|
|
33
|
+
"@agoric/zoe": "0.26.3-dev-3154854.0+3154854",
|
|
34
34
|
"@endo/bundle-source": "^3.5.0",
|
|
35
35
|
"@endo/captp": "^4.4.3",
|
|
36
36
|
"@endo/eventual-send": "^1.2.8",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"import-meta-resolve": "^2.2.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
47
|
-
"@agoric/governance": "0.10.4-dev-
|
|
48
|
-
"@agoric/inter-protocol": "0.16.2-dev-
|
|
49
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-dev-
|
|
51
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
52
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
53
|
-
"@agoric/time": "0.3.3-dev-
|
|
46
|
+
"@agoric/deploy-script-support": "0.10.4-dev-3154854.0+3154854",
|
|
47
|
+
"@agoric/governance": "0.10.4-dev-3154854.0+3154854",
|
|
48
|
+
"@agoric/inter-protocol": "0.16.2-dev-3154854.0+3154854",
|
|
49
|
+
"@agoric/orchestration": "0.1.1-dev-3154854.0+3154854",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-3154854.0+3154854",
|
|
51
|
+
"@agoric/swing-store": "0.9.2-dev-3154854.0+3154854",
|
|
52
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-3154854.0+3154854",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-3154854.0+3154854",
|
|
54
54
|
"@endo/errors": "^1.2.8",
|
|
55
55
|
"ava": "^5.3.0",
|
|
56
56
|
"c8": "^10.1.2"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"typeCoverage": {
|
|
84
84
|
"atLeast": 89.69
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "315485480f0f0544565374e8d82003938dac04fa"
|
|
87
87
|
}
|
|
@@ -20,31 +20,39 @@ import { parseArgs } from 'node:util';
|
|
|
20
20
|
* @import {ParseArgsConfig} from 'node:util'
|
|
21
21
|
* @import {FastUSDCConfig} from '@agoric/fast-usdc/src/fast-usdc.start.js'
|
|
22
22
|
* @import {Passable} from '@endo/marshal';
|
|
23
|
-
* @import {CosmosChainInfo} from '@agoric/orchestration';
|
|
23
|
+
* @import {CosmosChainInfo, Denom, DenomDetail} from '@agoric/orchestration';
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
const { keys } = Object;
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
/** @type {[Denom, DenomDetail & { brandKey?: string}][]} */
|
|
29
|
+
const defaultAssetInfo = [
|
|
30
|
+
[
|
|
31
|
+
'uusdc',
|
|
32
|
+
{
|
|
33
|
+
baseName: 'noble',
|
|
34
|
+
chainName: 'noble',
|
|
35
|
+
baseDenom: 'uusdc',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
`ibc/${denomHash({ denom: 'uusdc', channelId: fetchedChainInfo.agoric.connections['noble-1'].transferChannel.channelId })}`,
|
|
35
40
|
{
|
|
36
41
|
baseName: 'noble',
|
|
37
42
|
chainName: 'agoric',
|
|
38
43
|
baseDenom: 'uusdc',
|
|
39
44
|
brandKey: 'USDC',
|
|
40
45
|
},
|
|
41
|
-
|
|
46
|
+
],
|
|
47
|
+
[
|
|
48
|
+
`ibc/${denomHash({ denom: 'uusdc', channelId: fetchedChainInfo.osmosis.connections['noble-1'].transferChannel.channelId })}`,
|
|
42
49
|
{
|
|
43
50
|
baseName: 'noble',
|
|
44
51
|
chainName: 'osmosis',
|
|
45
52
|
baseDenom: 'uusdc',
|
|
46
53
|
},
|
|
47
|
-
|
|
54
|
+
],
|
|
55
|
+
];
|
|
48
56
|
|
|
49
57
|
/**
|
|
50
58
|
* @type {Record<string, Pick<FastUSDCConfig, 'oracles' | 'feedPolicy' | 'chainInfo' | 'assetInfo' >>}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { psmProposalBuilder } from '../inter-protocol/add-collateral-core.js';
|
|
3
|
+
|
|
4
|
+
const addUsdLemonsProposalBuilder = async powers => {
|
|
5
|
+
return psmProposalBuilder(powers, {
|
|
6
|
+
anchorOptions: {
|
|
7
|
+
denom: 'ibc/000C0AAAEECAFE000',
|
|
8
|
+
keyword: 'USD_LEMONS',
|
|
9
|
+
decimalPlaces: 6,
|
|
10
|
+
proposedName: 'USD_LEMONS',
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
16
|
+
export default async (homeP, endowments) => {
|
|
17
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
18
|
+
await writeCoreEval('add-LEMONS-PSM', addUsdLemonsProposalBuilder);
|
|
19
|
+
};
|