vega-frontend-monorepo/vegacapsule/genesis.tmpl

229 lines
6.5 KiB
Cheetah
Raw Normal View History

Test/757 tfe add e2e tests for governance (#1236) * test: initial commit * test: lint * chore: set different environement variable for rest url * test: enable commented out steps * chore: set base correctly * chore: correct env var * test: update to function * test: lint * test: governance flow * test: lint * test: extra tests * fix: set fetchPolicy to not cache results so new proposals are updated * test: update * test: lint * test: extra tests * test: lint * test: add wait and select proposal * test: lint * test: extra checks * test: lint * Revert "chore: use custom vega capsule file (#1055)" This reverts commit 6b4b896bbc9fd6a483917a5957d08bf5cfd70be7. * test: final commit of initial tests * test: removal of unused file * test: before all change to reset before each test * test: speed enhancement * test: lint * test: lint check fix * test: extra tests and checks * test: lint * test: extra tests and checks * test: lint * test: extra checks & error handling * test: lint * test: lint * test: wallet update * test: lint * test: lint * test: begining of test refactor due to ui revamp * test: lint * test: extra test * test: lint * test: extra test enable prev skipped * test: lint * test: small changes * test: update ahead of merge * test: in house vegcapsule config changes * test: lint * chore: add vegacapsule config for newer repo * chore: remove dead config files * test: genesis and tweaks * test: lint * test: added wait to avoid flake * test: enhancements * test: lint * chore: fix lint Co-authored-by: Dexter <dexter.edwards93@gmail.com> Co-authored-by: Dexter <dexter@vega.xyz> Co-authored-by: Joe <joe@vega.xyz>
2022-09-05 08:57:02 +00:00
{
"app_state": {
"assets": {
"fBTC": {
"min_lp_stake": "1",
"decimals": 5,
"name": "BTC (fake)",
"symbol": "fBTC",
"total_supply": "21000000",
"source": {
"builtin_asset": {
"max_faucet_amount_mint": "1000000"
}
}
},
"fDAI": {
"min_lp_stake": "1",
"decimals": 5,
"name": "DAI (fake)",
"symbol": "fDAI",
"total_supply": "1000000000",
"source": {
"builtin_asset": {
"max_faucet_amount_mint": "10000000000"
}
}
},
"fEURO": {
"min_lp_stake": "1",
"decimals": 5,
"name": "EURO (fake)",
"symbol": "fEURO",
"total_supply": "1000000000",
"source": {
"builtin_asset": {
"max_faucet_amount_mint": "10000000000"
}
}
},
"fUSDC": {
"min_lp_stake": "1",
"decimals": 5,
"name": "USDC (fake)",
"symbol": "fUSDC",
"total_supply": "1000000000",
"source": {
"builtin_asset": {
"max_faucet_amount_mint": "1000000000000"
}
}
},
"XYZalpha": {
"min_lp_stake": "1",
"decimals": 5,
"name": "XYZ (α alpha)",
"symbol": "XYZalpha",
"total_supply": "1000000000",
"source": {
"builtin_asset": {
"max_faucet_amount_mint": "100000000000"
}
}
},
"XYZbeta": {
"min_lp_stake": "1",
"decimals": 5,
"name": "XYZ (β beta)",
"symbol": "XYZbeta",
"total_supply": "1000000000",
"source": {
"builtin_asset": {
"max_faucet_amount_mint": "100000000000"
}
}
},
"XYZgamma": {
"min_lp_stake": "1",
"decimals": 5,
"name": "XYZ (γ gamma)",
"symbol": "XYZgamma",
"total_supply": "1000000000",
"source": {
"builtin_asset": {
"max_faucet_amount_mint": "100000000000"
}
}
},
"XYZdelta": {
"min_lp_stake": "1",
"decimals": 5,
"name": "XYZ (δ delta)",
"symbol": "XYZdelta",
"total_supply": "1000000000",
"source": {
"builtin_asset": {
"max_faucet_amount_mint": "100000000000"
}
}
},
"XYZepsilon": {
"min_lp_stake": "1",
"decimals": 5,
"name": "XYZ (ε epsilon)",
"symbol": "XYZepsilon",
"total_supply": "1000000000",
"source": {
"builtin_asset": {
"max_faucet_amount_mint": "100000000000"
}
}
},
"{{.GetVegaContractID "tBTC"}}": {
"min_lp_stake": "1",
"decimals": 5,
"name": "BTC (local)",
"symbol": "tBTC",
"total_supply": "0",
"source": {
"erc20": {
"contract_address": "{{.GetEthContractAddr "tBTC"}}"
}
}
},
"{{.GetVegaContractID "tDAI"}}": {
"min_lp_stake": "1",
"decimals": 5,
"name": "DAI (local)",
"symbol": "tDAI",
"total_supply": "0",
"source": {
"erc20": {
"contract_address": "{{.GetEthContractAddr "tDAI"}}"
}
}
},
"{{.GetVegaContractID "tEURO"}}": {
"min_lp_stake": "1",
"decimals": 5,
"name": "EURO (local)",
"symbol": "tEURO",
"total_supply": "0",
"source": {
"erc20": {
"contract_address": "{{.GetEthContractAddr "tEURO"}}"
}
}
},
"{{.GetVegaContractID "tUSDC"}}": {
"min_lp_stake": "1",
"decimals": 5,
"name": "USDC (local)",
"symbol": "tUSDC",
"total_supply": "0",
"source": {
"erc20": {
"contract_address": "{{.GetEthContractAddr "tUSDC"}}"
Test/757 tfe add e2e tests for governance (#1236) * test: initial commit * test: lint * chore: set different environement variable for rest url * test: enable commented out steps * chore: set base correctly * chore: correct env var * test: update to function * test: lint * test: governance flow * test: lint * test: extra tests * fix: set fetchPolicy to not cache results so new proposals are updated * test: update * test: lint * test: extra tests * test: lint * test: add wait and select proposal * test: lint * test: extra checks * test: lint * Revert "chore: use custom vega capsule file (#1055)" This reverts commit 6b4b896bbc9fd6a483917a5957d08bf5cfd70be7. * test: final commit of initial tests * test: removal of unused file * test: before all change to reset before each test * test: speed enhancement * test: lint * test: lint check fix * test: extra tests and checks * test: lint * test: extra tests and checks * test: lint * test: extra checks & error handling * test: lint * test: lint * test: wallet update * test: lint * test: lint * test: begining of test refactor due to ui revamp * test: lint * test: extra test * test: lint * test: extra test enable prev skipped * test: lint * test: small changes * test: update ahead of merge * test: in house vegcapsule config changes * test: lint * chore: add vegacapsule config for newer repo * chore: remove dead config files * test: genesis and tweaks * test: lint * test: added wait to avoid flake * test: enhancements * test: lint * chore: fix lint Co-authored-by: Dexter <dexter.edwards93@gmail.com> Co-authored-by: Dexter <dexter@vega.xyz> Co-authored-by: Joe <joe@vega.xyz>
2022-09-05 08:57:02 +00:00
}
}
},
"{{.GetVegaContractID "VEGA"}}": {
"min_lp_stake": "1",
"decimals": 18,
"name": "Vega",
"symbol": "VEGA",
"total_supply": "64999723000000000000000000",
"source": {
"erc20": {
"contract_address": "{{.GetEthContractAddr "VEGA"}}"
}
}
}
},
"network": {
"ReplayAttackThreshold": 30
},
"network_parameters": {
"blockchains.ethereumConfig": "{\"network_id\": \"{{ .NetworkID }}\", \"chain_id\": \"{{ .ChainID }}\", \"collateral_bridge_contract\": { \"address\": \"{{.GetEthContractAddr "erc20_bridge_1"}}\" }, \"confirmations\": 3, \"staking_bridge_contract\": { \"address\": \"{{.GetEthContractAddr "staking_bridge"}}\", \"deployment_block_height\": 0}, \"token_vesting_contract\": { \"address\": \"{{.GetEthContractAddr "erc20_vesting"}}\", \"deployment_block_height\": 0 }, \"multisig_control_contract\": { \"address\": \"{{.GetEthContractAddr "MultisigControl"}}\", \"deployment_block_height\": 0 }}",
"governance.proposal.asset.minClose": "2s",
"governance.proposal.asset.minEnact": "2s",
"governance.proposal.asset.requiredParticipation": "0.00000000000000000000000015",
"governance.proposal.market.minClose": "2s",
"governance.proposal.market.minEnact": "2s",
"governance.proposal.market.requiredParticipation": "0.00000000000000000000000015",
feat(#2255): capsule tests for trading (#2498) * feat: improve proposal types, add faucet for trading asset * chore: yarn lock update * fix: capsule tests to avoid jsx import * chore: throw error so that ethereum setup failure is caught * chore: org files and add logging * chore: revert current trading-e2e .env file * chore: add .env.capsule for trading tests on capsule * chore: remove unused nx command * chore: remove try catchs and allow errors to be caught by cypress * chore: add slow tag for capsule test * feat: move create market setup to libs/cypress * chore: clearly separate vars meant for capsule with vars meant for non-capsule * feat: remove hardcoded urls and use config obj * chore: fix missing comma in genesis.tmpl * chore: added limit order edit price test * chore: remove encoding of transaction, update proposal tx trigger ratio to string * chore: fix date and add date verification for update order * chore: formatting fix * chore: adjust trading app tests and workflows to be run in capsule in ci (#2574) * chore: adjust trading app tests and workflows to be run in capsule in ci * chore: fix token tests * chore: increase timeout as it fails in ci * chore: move market check to before function * chore: add capsule logs to trading * chore: increase proposal close time, also break up script for better debugging * chore: bump up ethereum account setup timeout * chore: suppress fetch logs to help with debugging * chore: revert cy wraps now with suppressed logging * chore: decrease tick amount * chore: promise with timeout for better debugging * chore: bump individual timeouts * chore: bump timeout for tx wait promises * chore: minor fix * fix: leave Promise<any> * fix: leave Promise<any> * chore: fix home fail Co-authored-by: Joe <joe@vega.xyz> Co-authored-by: Dariusz Majcherczyk <dariusz.majcherczyk@gmail.com> Co-authored-by: Radosław Szpiech <szpiechrados@gmail.com> Co-authored-by: Madalina Raicu <madalina@raygroup.uk>
2023-01-17 15:33:43 +00:00
"governance.proposal.market.requiredMajority": "0.00000000000000000000000015",
"governance.proposal.updateMarket.minClose": "2s",
"governance.proposal.updateMarket.minEnact": "2s",
"governance.proposal.updateMarket.requiredParticipation": "0.00000000000000000000000015",
"governance.proposal.updateNetParam.minClose": "2s",
"governance.proposal.updateNetParam.minEnact": "2s",
"governance.proposal.updateNetParam.requiredParticipation": "0.00000000000000000000000015",
"governance.proposal.freeform.minClose": "2s",
"governance.proposal.freeform.requiredParticipation": "0.00000000000000000000000015",
"market.auction.minimumDuration": "3s",
"market.fee.factors.infrastructureFee": "0.001",
"market.fee.factors.makerFee": "0.004",
"market.liquidity.stakeToCcyVolume": "0.3",
"market.liquidity.targetstake.triggering.ratio": "0.7",
Test/757 tfe add e2e tests for governance (#1236) * test: initial commit * test: lint * chore: set different environement variable for rest url * test: enable commented out steps * chore: set base correctly * chore: correct env var * test: update to function * test: lint * test: governance flow * test: lint * test: extra tests * fix: set fetchPolicy to not cache results so new proposals are updated * test: update * test: lint * test: extra tests * test: lint * test: add wait and select proposal * test: lint * test: extra checks * test: lint * Revert "chore: use custom vega capsule file (#1055)" This reverts commit 6b4b896bbc9fd6a483917a5957d08bf5cfd70be7. * test: final commit of initial tests * test: removal of unused file * test: before all change to reset before each test * test: speed enhancement * test: lint * test: lint check fix * test: extra tests and checks * test: lint * test: extra tests and checks * test: lint * test: extra checks & error handling * test: lint * test: lint * test: wallet update * test: lint * test: lint * test: begining of test refactor due to ui revamp * test: lint * test: extra test * test: lint * test: extra test enable prev skipped * test: lint * test: small changes * test: update ahead of merge * test: in house vegcapsule config changes * test: lint * chore: add vegacapsule config for newer repo * chore: remove dead config files * test: genesis and tweaks * test: lint * test: added wait to avoid flake * test: enhancements * test: lint * chore: fix lint Co-authored-by: Dexter <dexter.edwards93@gmail.com> Co-authored-by: Dexter <dexter@vega.xyz> Co-authored-by: Joe <joe@vega.xyz>
2022-09-05 08:57:02 +00:00
"network.checkpoint.timeElapsedBetweenCheckpoints": "10s",
"reward.asset": "{{.GetVegaContractID "VEGA"}}",
"reward.staking.delegation.competitionLevel": "3.1",
"reward.staking.delegation.delegatorShare": "0.883",
"reward.staking.delegation.maxPayoutPerParticipant": "700000000000000000000",
"reward.staking.delegation.minimumValidatorStake": "3000000000000000000000",
"reward.staking.delegation.payoutDelay": "5m",
"reward.staking.delegation.payoutFraction": "0.007",
"spam.protection.delegation.min.tokens": "1000000000000000000",
"spam.protection.max.delegations": "390",
"spam.protection.max.proposals": "100",
"spam.protection.max.votes": "100",
"spam.protection.proposal.min.tokens": "1000000000000000000",
"spam.protection.voting.min.tokens": "1000000000000000000",
"validators.delegation.minAmount": "100000000000000000",
"validators.epoch.length": "5s",
"validators.vote.required": "0.67"
Test/757 tfe add e2e tests for governance (#1236) * test: initial commit * test: lint * chore: set different environement variable for rest url * test: enable commented out steps * chore: set base correctly * chore: correct env var * test: update to function * test: lint * test: governance flow * test: lint * test: extra tests * fix: set fetchPolicy to not cache results so new proposals are updated * test: update * test: lint * test: extra tests * test: lint * test: add wait and select proposal * test: lint * test: extra checks * test: lint * Revert "chore: use custom vega capsule file (#1055)" This reverts commit 6b4b896bbc9fd6a483917a5957d08bf5cfd70be7. * test: final commit of initial tests * test: removal of unused file * test: before all change to reset before each test * test: speed enhancement * test: lint * test: lint check fix * test: extra tests and checks * test: lint * test: extra tests and checks * test: lint * test: extra checks & error handling * test: lint * test: lint * test: wallet update * test: lint * test: lint * test: begining of test refactor due to ui revamp * test: lint * test: extra test * test: lint * test: extra test enable prev skipped * test: lint * test: small changes * test: update ahead of merge * test: in house vegcapsule config changes * test: lint * chore: add vegacapsule config for newer repo * chore: remove dead config files * test: genesis and tweaks * test: lint * test: added wait to avoid flake * test: enhancements * test: lint * chore: fix lint Co-authored-by: Dexter <dexter.edwards93@gmail.com> Co-authored-by: Dexter <dexter@vega.xyz> Co-authored-by: Joe <joe@vega.xyz>
2022-09-05 08:57:02 +00:00
},
"network_limits": {
"propose_asset_enabled": true,
"propose_asset_enabled_from": "2021-09-01T00:00:00Z",
"propose_market_enabled": true,
"propose_market_enabled_from": "2021-09-01T00:00:00Z"
}
},
"consensus_params": {
"block": {
"time_iota_ms": "1"
}
}
}