Skip to content

Commit

Permalink
Merge pull request #8370 from Agoric/mfig-core-proposal-deps
Browse files Browse the repository at this point in the history
feat(extract-proposal): organize proposals into steps
  • Loading branch information
mergify[bot] authored and mhofman committed Jan 30, 2024
2 parents 57d0b3e + 3a95a7c commit b2b0796
Show file tree
Hide file tree
Showing 9 changed files with 672 additions and 558 deletions.
262 changes: 135 additions & 127 deletions packages/cosmic-swingset/economy-template.json
Original file line number Diff line number Diff line change
@@ -1,138 +1,146 @@
[
"@agoric/vats/scripts/init-core.js",
"@agoric/vats/scripts/init-network.js",
{
"module": "@agoric/inter-protocol/scripts/init-core.js",
"entrypoint": "defaultProposalBuilder",
"args": [
{
"steps": [
[
"@agoric/vats/scripts/init-core.js"
],
[
"@agoric/vats/scripts/init-network.js",
"@agoric/pegasus/scripts/init-core.js"
],
[
{
"econCommitteeOptions": {
"committeeSize": 1
},
"minInitialPoolLiquidity": "0"
}
]
},
"@agoric/pegasus/scripts/init-core.js",
{
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "defaultProposalBuilder",
"args": [
"module": "@agoric/builders/scripts/inter-protocol/init-core.js",
"entrypoint": "defaultProposalBuilder",
"args": [
{
"econCommitteeOptions": {
"committeeSize": 1
},
"minInitialPoolLiquidity": "0"
}
]
},
{
"interchainAssetOptions": {
"denom": "ibc/toyatom",
"decimalPlaces": 4,
"keyword": "ATOM",
"oracleBrand": "ATOM",
"proposedName": "ATOM"
}
}
]
},
{
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "defaultProposalBuilder",
"args": [
{
"interchainAssetOptions": {
"denom": "ibc/toyatom",
"decimalPlaces": 4,
"keyword": "ATOM",
"oracleBrand": "ATOM",
"proposedName": "ATOM"
}
}
]
},
{
"anchorOptions": {
"denom": "ibc/toyusdc",
"decimalPlaces": 6,
"keyword": "USDC_axl",
"proposedName": "USD Coin"
}
}
]
},
{
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
{
"anchorOptions": {
"denom": "ibc/toyusdc",
"decimalPlaces": 6,
"keyword": "USDC_axl",
"proposedName": "USD Coin"
}
}
]
},
{
"anchorOptions": {
"denom": "ibc/usdc5678",
"decimalPlaces": 6,
"keyword": "USDC_grv",
"proposedName": "USC Coin"
}
}
]
},
{
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
{
"anchorOptions": {
"denom": "ibc/usdc5678",
"decimalPlaces": 6,
"keyword": "USDC_grv",
"proposedName": "USC Coin"
}
}
]
},
{
"anchorOptions": {
"denom": "ibc/usdt1234",
"decimalPlaces": 6,
"keyword": "USDT_axl",
"proposedName": "Tether USD"
}
}
]
},
{
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
{
"anchorOptions": {
"denom": "ibc/usdt1234",
"decimalPlaces": 6,
"keyword": "USDT_axl",
"proposedName": "Tether USD"
}
}
]
},
{
"anchorOptions": {
"denom": "ibc/toyollie",
"decimalPlaces": 6,
"keyword": "USDT_grv",
"proposedName": "Tether USD"
}
}
]
},
{
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
{
"anchorOptions": {
"denom": "ibc/toyollie",
"decimalPlaces": 6,
"keyword": "USDT_grv",
"proposedName": "Tether USD"
}
}
]
},
{
"anchorOptions": {
"denom": "ibc/toyellie",
"decimalPlaces": 6,
"keyword": "AUSD",
"proposedName": "Anchor USD"
}
}
]
},
{
"module": "@agoric/inter-protocol/scripts/price-feed-core.js",
"entrypoint": "defaultProposalBuilder",
"args": [
"module": "@agoric/inter-protocol/scripts/add-collateral-core.js",
"entrypoint": "psmProposalBuilder",
"args": [
{
"anchorOptions": {
"denom": "ibc/toyellie",
"decimalPlaces": 6,
"keyword": "AUSD",
"proposedName": "Anchor USD"
}
}
]
},
{
"AGORIC_INSTANCE_NAME": "ATOM-USD price feed",
"oracleAddresses": [
"@PRIMARY_ADDRESS@",
"agoric1dy0yegdsev4xvce3dx7zrz2ad9pesf5svzud6y"
],
"IN_BRAND_LOOKUP": [
"agoricNames",
"oracleBrand",
"ATOM"
],
"IN_BRAND_DECIMALS": 6,
"OUT_BRAND_LOOKUP": [
"agoricNames",
"oracleBrand",
"USD"
],
"OUT_BRAND_DECIMALS": 4
}
]
},
{
"module": "@agoric/inter-protocol/scripts/invite-committee-core.js",
"entrypoint": "defaultProposalBuilder",
"args": [
"module": "@agoric/inter-protocol/scripts/price-feed-core.js",
"entrypoint": "defaultProposalBuilder",
"args": [
{
"AGORIC_INSTANCE_NAME": "ATOM-USD price feed",
"oracleAddresses": [
"@PRIMARY_ADDRESS@",
"agoric1dy0yegdsev4xvce3dx7zrz2ad9pesf5svzud6y"
],
"IN_BRAND_LOOKUP": [
"agoricNames",
"oracleBrand",
"ATOM"
],
"IN_BRAND_DECIMALS": 6,
"OUT_BRAND_LOOKUP": [
"agoricNames",
"oracleBrand",
"USD"
],
"OUT_BRAND_DECIMALS": 4
}
]
},
{
"voterAddresses": {
"someone": "@PRIMARY_ADDRESS@"
}
"module": "@agoric/inter-protocol/scripts/invite-committee-core.js",
"entrypoint": "defaultProposalBuilder",
"args": [
{
"voterAddresses": {
"someone": "@PRIMARY_ADDRESS@"
}
}
]
}
]
}
]
]
}
Loading

0 comments on commit b2b0796

Please sign in to comment.