├── !.solhint.json ├── .chglog ├── CHANGELOG.tpl.md └── config.yml ├── .env ├── .env.2key ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .gitmodules ├── .solhint.json ├── 2key-infra.png ├── 2key-protocol ├── README.md ├── contracts_version-develop.json ├── test │ ├── campaign.json │ ├── campaignsTests │ │ ├── reusable │ │ │ ├── checkAcquisitionCampaign.ts │ │ │ ├── checkCpcCampaign.ts │ │ │ ├── checkDonationCampaign.ts │ │ │ └── userActions │ │ │ │ ├── checks │ │ │ │ ├── acquisitionOnly.ts │ │ │ │ ├── cpcOnly.ts │ │ │ │ ├── donationOnly.ts │ │ │ │ ├── ethOnly.ts │ │ │ │ ├── fiatOnly.ts │ │ │ │ └── kycRequired.ts │ │ │ │ ├── tests │ │ │ │ ├── approveConverterTest.ts │ │ │ │ ├── cancelConversionTest.ts │ │ │ │ ├── checkAvailableDonationTest.ts │ │ │ │ ├── checkCampaignSummaryTest.ts │ │ │ │ ├── checkContractorBalanceAndProceedsTest.ts │ │ │ │ ├── checkConversionPurchaseTest.ts │ │ │ │ ├── checkConverterMetricTest.ts │ │ │ │ ├── checkERC20BalanceTest.ts │ │ │ │ ├── checkManualCutsChainTest.ts │ │ │ │ ├── checkMerkleProofTest.ts │ │ │ │ ├── checkModeratorEarningsTest.ts │ │ │ │ ├── checkPendingConvertersTest.ts │ │ │ │ ├── checkReferrerRewardTest.ts │ │ │ │ ├── checkRestrictedConversionTest.ts │ │ │ │ ├── checkStatisticTest.ts │ │ │ │ ├── checkTotalReferrerRewardTest.ts │ │ │ │ ├── checkWithdrawableBalanceTest.ts │ │ │ │ ├── contractorWithdrawTest.ts │ │ │ │ ├── converterSpentTest.ts │ │ │ │ ├── executeConversionTest.ts │ │ │ │ ├── hedgingEthTest.ts │ │ │ │ ├── joinAndConvertTest.ts │ │ │ │ ├── joinTest.ts │ │ │ │ ├── lockContractTest.ts │ │ │ │ ├── mainChainBalancesSyncTest.ts │ │ │ │ ├── merkleCopyTest.ts │ │ │ │ ├── moderatorAndReferrerWithdrawTest.ts │ │ │ │ ├── referrerRewardStatsTest.ts │ │ │ │ ├── referrersListTest.ts │ │ │ │ ├── rejectConverterTest.ts │ │ │ │ ├── visitTest.ts │ │ │ │ └── withdrawTokensTest.ts │ │ │ │ ├── typings │ │ │ │ └── functionParamsInterface.ts │ │ │ │ └── usersActions.ts │ │ └── variations │ │ │ ├── acquisition │ │ │ ├── noTokenLockup │ │ │ │ ├── test1.spec.ts │ │ │ │ ├── test2.spec.ts │ │ │ │ ├── test3.spec.ts │ │ │ │ └── test4.spec.ts │ │ │ ├── withCampaignBonus │ │ │ │ ├── test1.spec.ts │ │ │ │ ├── test10.spec.ts │ │ │ │ ├── test11.spec.ts │ │ │ │ ├── test12.spec.ts │ │ │ │ ├── test13.spec.ts │ │ │ │ ├── test14.spec.ts │ │ │ │ ├── test2.spec.ts │ │ │ │ ├── test3.spec.ts │ │ │ │ ├── test4.spec.ts │ │ │ │ ├── test5.spec.ts │ │ │ │ ├── test6.spec.ts │ │ │ │ ├── test7.spec.ts │ │ │ │ ├── test8.spec.ts │ │ │ │ └── test9.spec.ts │ │ │ └── withoutCampaignBonus │ │ │ │ ├── test1.spec.ts │ │ │ │ ├── test10.spec.ts │ │ │ │ ├── test11.spec.ts │ │ │ │ ├── test12.spec.ts │ │ │ │ ├── test13.spec.ts │ │ │ │ ├── test14.spec.ts │ │ │ │ ├── test2.spec.ts │ │ │ │ ├── test3.spec.ts │ │ │ │ ├── test4.spec.ts │ │ │ │ ├── test5.spec.ts │ │ │ │ ├── test6.spec.ts │ │ │ │ ├── test7.spec.ts │ │ │ │ ├── test8.spec.ts │ │ │ │ └── test9.spec.ts │ │ │ ├── cpc │ │ │ ├── test1.spec.ts │ │ │ ├── test2.spec.ts │ │ │ ├── test3.spec.ts │ │ │ └── test4.spec.ts │ │ │ └── mvp │ │ │ ├── test1.spec.ts │ │ │ ├── test10.spec.ts │ │ │ ├── test11.spec-draft.ts │ │ │ ├── test2.spec.ts │ │ │ ├── test3.spec.ts │ │ │ ├── test4.spec.ts │ │ │ ├── test5.spec.ts │ │ │ ├── test6.spec.ts │ │ │ ├── test7.spec.ts │ │ │ ├── test8.spec.ts │ │ │ └── test9.spec.ts │ ├── constants │ │ ├── availableUsers.ts │ │ ├── campaignUserActions.ts │ │ ├── polifils.ts │ │ └── smallConstants.ts │ ├── examples │ │ ├── exampleAcquisitionTest.ts │ │ ├── exampleCpcTest.ts │ │ └── exampleDonationTest.ts │ ├── helperClasses │ │ ├── TestAcquisitionConversion.ts │ │ ├── TestCPCConversion.ts │ │ ├── TestDonationConversion.ts │ │ ├── TestStorage.ts │ │ └── TestUser.ts │ ├── helpers │ │ ├── _registerUserFromBackend.ts │ │ ├── _web3.ts │ │ ├── calcHelpers.ts │ │ ├── calculateReferralRewards.ts │ │ ├── createAcquisitionCampaign.ts │ │ ├── createCPCNoRewardsCampaign.ts │ │ ├── createCpcCampaign.ts │ │ ├── createCpcCampaignNoRewards.ts │ │ ├── createDonationCampaign.ts │ │ ├── dates.ts │ │ ├── getAcquisitionCampaignData.ts │ │ ├── getTwoKeyEconomyAddress.ts │ │ ├── numberHelpers.ts │ │ ├── regExp.ts │ │ ├── registerRandomUser.ts │ │ ├── stringHelpers.ts │ │ ├── twoKeyProtocol.ts │ │ └── web3Switcher.ts │ ├── index.html │ ├── typings │ │ ├── ICreateCPCNoRewardsTest.ts │ │ ├── ICreateCPCTest.ts │ │ └── ITestConversion.ts │ ├── unitTests │ │ ├── envRelatedTests │ │ │ ├── congressVote.spec.ts │ │ │ ├── participationMiningRewards.spec.ts │ │ │ ├── runUserRegistration.spec.ts │ │ │ ├── sendETH.spec.ts │ │ │ ├── transferDAI.spec.ts │ │ │ └── twoKeyExchangeRate.spec.ts │ │ ├── ipfs.spec.ts │ │ ├── twoKeyEconomy.spec.ts │ │ └── twoKeyProtocol.spec.ts │ ├── web3.test.ts │ └── webapp.ts └── yarn.lock ├── 2keyBuilder.js ├── CHANGELOG.md ├── ContractDeploymentWhiteList.json ├── DeployAnd2keyBuilderInstructions.md ├── GitCommitMessage.template ├── HDWalletProvider.js ├── LedgerProvider.js ├── README.md ├── SC-architecture.png ├── Upgradable-schema.md ├── checkout-env.bash ├── configurationFiles └── deploymentConfig.json ├── contracts ├── 2key │ ├── ERC20 │ │ ├── ERC20.sol │ │ └── StandardTokenModified.sol │ ├── Migrations.sol │ ├── Ownable.sol │ ├── TwoKeyConversionStates.sol │ ├── TwoKeyConverterStates.sol │ ├── TwoKeyTypes.sol │ ├── UpgradabilityProxyAcquisition.sol │ ├── acquisition-campaign-contracts │ │ ├── TwoKeyAcquisitionCampaignERC20.sol │ │ ├── TwoKeyAcquisitionLogicHandler.sol │ │ ├── TwoKeyConversionHandler.sol │ │ └── TwoKeyPurchasesHandler.sol │ ├── campaign-mutual-contracts │ │ ├── ArcToken.sol │ │ ├── TwoKeyCampaign.sol │ │ ├── TwoKeyCampaignAbstract.sol │ │ ├── TwoKeyCampaignConversionHandler.sol │ │ ├── TwoKeyCampaignIncentiveModels.sol │ │ └── TwoKeyCampaignLogicHandler.sol │ ├── cpc-campaign-contracts │ │ ├── TwoKeyBudgetCampaign.sol │ │ ├── TwoKeyCPCCampaign.sol │ │ ├── TwoKeyCPCCampaignPlasma.sol │ │ └── TwoKeyPlasmaCampaign.sol │ ├── cpc-campaign-no-rewards │ │ ├── TwoKeyCPCCampaignPlasmaNoReward.sol │ │ └── TwoKeyPlasmaCampaignNoReward.sol │ ├── donation-campaign-contracts │ │ ├── InvoiceToken.sol │ │ ├── TwoKeyDonationCampaign.sol │ │ ├── TwoKeyDonationCampaignType.sol │ │ ├── TwoKeyDonationConversionHandler.sol │ │ └── TwoKeyDonationLogicHandler.sol │ ├── interfaces │ │ ├── AggregatorV3Interface.sol │ │ ├── IERC20.sol │ │ ├── IGetImplementation.sol │ │ ├── IHandleCampaignDeployment.sol │ │ ├── IHandleCampaignDeploymentPlasma.sol │ │ ├── IKyberNetworkProxy.sol │ │ ├── IKyberReserveInterface.sol │ │ ├── IMaintainingPattern.sol │ │ ├── IStructuredStorage.sol │ │ ├── ITether.sol │ │ ├── ITwoKeyAcquisitionCampaignERC20.sol │ │ ├── ITwoKeyAcquisitionLogicHandler.sol │ │ ├── ITwoKeyAdmin.sol │ │ ├── ITwoKeyBaseReputationRegistry.sol │ │ ├── ITwoKeyCPCCampaign.sol │ │ ├── ITwoKeyCPCCampaignPlasma.sol │ │ ├── ITwoKeyCampaign.sol │ │ ├── ITwoKeyCampaignGetReferrers.sol │ │ ├── ITwoKeyCampaignLogicHandler.sol │ │ ├── ITwoKeyCampaignPublicAddresses.sol │ │ ├── ITwoKeyCampaignValidator.sol │ │ ├── ITwoKeyConversionHandler.sol │ │ ├── ITwoKeyConversionHandlerGetConverterState.sol │ │ ├── ITwoKeyDeepFreezeTokenPool.sol │ │ ├── ITwoKeyDonationCampaign.sol │ │ ├── ITwoKeyDonationCampaignFetchAddresses.sol │ │ ├── ITwoKeyDonationConversionHandler.sol │ │ ├── ITwoKeyDonationLogicHandler.sol │ │ ├── ITwoKeyEventSource.sol │ │ ├── ITwoKeyEventSourceEvents.sol │ │ ├── ITwoKeyExchangeRateContract.sol │ │ ├── ITwoKeyFactory.sol │ │ ├── ITwoKeyFeeManager.sol │ │ ├── ITwoKeyMaintainersRegistry.sol │ │ ├── ITwoKeyParticipationPaymentsManager.sol │ │ ├── ITwoKeyPlasmaBudgetCampaignsPaymentsHandler.sol │ │ ├── ITwoKeyPlasmaCampaign.sol │ │ ├── ITwoKeyPlasmaEventSource.sol │ │ ├── ITwoKeyPlasmaFactory.sol │ │ ├── ITwoKeyPlasmaRegistry.sol │ │ ├── ITwoKeyPlasmaReputationRegistry.sol │ │ ├── ITwoKeyPurchasesHandler.sol │ │ ├── ITwoKeyReg.sol │ │ ├── ITwoKeyRegistry.sol │ │ ├── ITwoKeyRegistryEvents.sol │ │ ├── ITwoKeySingletoneAddressStorage.sol │ │ ├── ITwoKeySingletoneRegistryFetchAddress.sol │ │ ├── ITwoKeySingletonesRegistry.sol │ │ ├── ITwoKeyWeightedVoteContract.sol │ │ ├── IUniswapV2Router02.sol │ │ ├── IUpgradableExchange.sol │ │ └── storage-contracts │ │ │ ├── ITwoKeyAdminStorage.sol │ │ │ ├── ITwoKeyBaseReputationRegistryStorage.sol │ │ │ ├── ITwoKeyBudgetCampaignsPaymentsHandlerStorage.sol │ │ │ ├── ITwoKeyCampaignValidatorStorage.sol │ │ │ ├── ITwoKeyDeepFreezeTokenPoolStorage.sol │ │ │ ├── ITwoKeyEventSourceStorage.sol │ │ │ ├── ITwoKeyExchangeRateContractStorage.sol │ │ │ ├── ITwoKeyFactoryStorage.sol │ │ │ ├── ITwoKeyFeeManagerStorage.sol │ │ │ ├── ITwoKeyMPSNMiningPoolStorage.sol │ │ │ ├── ITwoKeyMaintainersRegistryStorage.sol │ │ │ ├── ITwoKeyNetworkGrowthFundStorage.sol │ │ │ ├── ITwoKeyParticipationMiningPoolStorage.sol │ │ │ ├── ITwoKeyParticipationPaymentsManagerStorage.sol │ │ │ ├── ITwoKeyPlasmaBudgetCampaignsPaymentsHandlerStorage.sol │ │ │ ├── ITwoKeyPlasmaEventSourceStorage.sol │ │ │ ├── ITwoKeyPlasmaEventsStorage.sol │ │ │ ├── ITwoKeyPlasmaFactoryStorage.sol │ │ │ ├── ITwoKeyPlasmaMaintainersRegistryStorage.sol │ │ │ ├── ITwoKeyPlasmaParticipationRewardsStorage.sol │ │ │ ├── ITwoKeyPlasmaRegistryStorage.sol │ │ │ ├── ITwoKeyPlasmaReputationRegistryStorage.sol │ │ │ ├── ITwoKeyRegistryStorage.sol │ │ │ ├── ITwoKeySignatureValidatorStorage.sol │ │ │ ├── ITwoKeyTeamGrowthFundStorage.sol │ │ │ └── ITwoKeyUpgradableExchangeStorage.sol │ ├── libraries │ │ ├── Call.sol │ │ ├── GetCode.sol │ │ ├── IncentiveModels.sol │ │ ├── MerkleProof.sol │ │ ├── PriceDiscovery.sol │ │ ├── SafeMath.sol │ │ └── Utils.sol │ ├── non-upgradable-singletons │ │ ├── ITwoKeySingletonUtils.sol │ │ ├── TwoKeyCongress.sol │ │ ├── TwoKeyCongressMembersRegistry.sol │ │ ├── TwoKeyEconomy.sol │ │ ├── TwoKeyPlasmaCongress.sol │ │ ├── TwoKeyPlasmaCongressMembersRegistry.sol │ │ ├── TwoKeyPlasmaSingletoneRegistry.sol │ │ ├── TwoKeySingletonRegistryAbstract.sol │ │ └── TwoKeySingletonesRegistry.sol │ ├── singleton-contracts │ │ ├── TwoKeyAdmin.sol │ │ ├── TwoKeyBaseReputationRegistry.sol │ │ ├── TwoKeyBudgetCampaignsPaymentsHandler.sol │ │ ├── TwoKeyCampaignValidator.sol │ │ ├── TwoKeyEventSource.sol │ │ ├── TwoKeyExchangeRateContract.sol │ │ ├── TwoKeyFactory.sol │ │ ├── TwoKeyFeeManager.sol │ │ ├── TwoKeyMaintainersRegistry.sol │ │ ├── TwoKeyMaintainersRegistryAbstract.sol │ │ ├── TwoKeyParticipationPaymentsManager.sol │ │ ├── TwoKeyPlasmaBudgetCampaignsPaymentsHandler.sol │ │ ├── TwoKeyPlasmaEventSource.sol │ │ ├── TwoKeyPlasmaEvents.sol │ │ ├── TwoKeyPlasmaFactory.sol │ │ ├── TwoKeyPlasmaMaintainersRegistry.sol │ │ ├── TwoKeyPlasmaParticipationRewards.sol │ │ ├── TwoKeyPlasmaRegistry.sol │ │ ├── TwoKeyPlasmaReputationRegistry.sol │ │ ├── TwoKeyRegistry.sol │ │ ├── TwoKeySignatureValidator.sol │ │ └── TwoKeyUpgradableExchange.sol │ ├── singleton-storage-contracts │ │ ├── TwoKeyAdminStorage.sol │ │ ├── TwoKeyBaseReputationRegistryStorage.sol │ │ ├── TwoKeyBudgetCampaignsPaymentsHandlerStorage.sol │ │ ├── TwoKeyCampaignValidatorStorage.sol │ │ ├── TwoKeyDeepFreezeTokenPoolStorage.sol │ │ ├── TwoKeyEventSourceStorage.sol │ │ ├── TwoKeyExchangeRateStorage.sol │ │ ├── TwoKeyFactoryStorage.sol │ │ ├── TwoKeyFeeManagerStorage.sol │ │ ├── TwoKeyMPSNMiningPoolStorage.sol │ │ ├── TwoKeyMaintainersRegistryStorage.sol │ │ ├── TwoKeyNetworkGrowthFundStorage.sol │ │ ├── TwoKeyParticipationMiningPoolStorage.sol │ │ ├── TwoKeyParticipationPaymentsManagerStorage.sol │ │ ├── TwoKeyPlasmaBudgetCampaignsPaymentsHandlerStorage.sol │ │ ├── TwoKeyPlasmaEventSourceStorage.sol │ │ ├── TwoKeyPlasmaEventsStorage.sol │ │ ├── TwoKeyPlasmaFactoryStorage.sol │ │ ├── TwoKeyPlasmaMaintainersRegistryStorage.sol │ │ ├── TwoKeyPlasmaParticipationRewardsStorage.sol │ │ ├── TwoKeyPlasmaRegistryStorage.sol │ │ ├── TwoKeyPlasmaReputationRegistryStorage.sol │ │ ├── TwoKeyRegistryStorage.sol │ │ ├── TwoKeySignatureValidatorStorage.sol │ │ ├── TwoKeyTeamGrowthFundStorage.sol │ │ └── TwoKeyUpgradableExchangeStorage.sol │ ├── token-pools │ │ ├── TokenPool.sol │ │ ├── TwoKeyDeepFreezeTokenPool.sol │ │ ├── TwoKeyMPSNMiningPool.sol │ │ ├── TwoKeyNetworkGrowthFund.sol │ │ ├── TwoKeyParticipationMiningPool.sol │ │ └── TwoKeyTeamGrowthFund.sol │ ├── upgradability │ │ ├── Proxy.sol │ │ ├── StructuredStorage.sol │ │ ├── UpgradabilityStorage.sol │ │ ├── UpgradeabilityProxy.sol │ │ └── Upgradeable.sol │ └── upgradable-pattern-campaigns │ │ ├── ProxyCampaign.sol │ │ ├── UpgradabilityCampaignStorage.sol │ │ └── UpgradeableCampaign.sol └── test │ ├── DAI.sol │ ├── EmptyContract.sol │ ├── FungibleMockToken.sol │ ├── KyberNetworkTestMockContract.sol │ ├── Mock.sol │ ├── MockChainLinkOracle.sol │ ├── MockOraclesManager.sol │ ├── TestPriceDiscoveryAlgorithm.sol │ └── TestUniswapRouter.sol ├── dockers ├── README.md ├── ipfs │ └── ipfs.js ├── mainnet │ ├── Dockerfile │ ├── faucet.bash │ ├── genesis.json │ ├── geth.bash │ ├── geth.mainnet.js │ ├── keys │ │ ├── dev-key.json │ │ ├── dev-key1.json │ │ ├── dev-key2.json │ │ ├── dev-key3.json │ │ ├── dev-key4.json │ │ ├── dev-key5.json │ │ └── dev-key6.json │ └── passwords.txt ├── plasma │ ├── Dockerfile │ ├── genesis.json │ ├── geth.bash │ ├── geth.plasma.js │ ├── keys │ │ ├── dev-key.json │ │ ├── dev-key1.json │ │ ├── dev-key2.json │ │ ├── dev-key3.json │ │ ├── dev-key4.json │ │ ├── dev-key5.json │ │ └── dev-key6.json │ └── passwords.txt └── sendEther.py ├── documentation ├── .dockerignore ├── Dockerfile ├── docker-compose.yml ├── docs │ ├── api_2key_ERC20_ERC20.md │ ├── api_2key_Migrations.md │ ├── api_2key_Ownable.md │ ├── api_2key_TwoKeyConversionStates.md │ ├── api_2key_TwoKeyConverterStates.md │ ├── api_2key_TwoKeyTypes.md │ ├── api_2key_UpgradabilityProxyAcquisition.md │ ├── api_2key_acquisition-campaign-contracts_TwoKeyAcquisitionCampaignERC20.md │ ├── api_2key_acquisition-campaign-contracts_TwoKeyAcquisitionLogicHandler.md │ ├── api_2key_acquisition-campaign-contracts_TwoKeyConversionHandler.md │ ├── api_2key_acquisition-campaign-contracts_TwoKeyPurchasesHandler.md │ ├── api_2key_campaign-mutual-contracts_ArcERC20.md │ ├── api_2key_campaign-mutual-contracts_TwoKeyCampaign.md │ ├── api_2key_campaign-mutual-contracts_TwoKeyCampaignConversionHandler.md │ ├── api_2key_campaign-mutual-contracts_TwoKeyCampaignIncentiveModels.md │ ├── api_2key_campaign-mutual-contracts_TwoKeyCampaignLogicHandler.md │ ├── api_2key_donation-campaign-contracts_InvoiceTokenERC20.md │ ├── api_2key_donation-campaign-contracts_TwoKeyDonationCampaign.md │ ├── api_2key_donation-campaign-contracts_TwoKeyDonationCampaignType.md │ ├── api_2key_donation-campaign-contracts_TwoKeyDonationConversionHandler.md │ ├── api_2key_donation-campaign-contracts_TwoKeyDonationLogicHandler.md │ ├── api_2key_interfaces_IBancorContract.md │ ├── api_2key_interfaces_IERC20.md │ ├── api_2key_interfaces_IGetImplementation.md │ ├── api_2key_interfaces_IHandleCampaignDeployment.md │ ├── api_2key_interfaces_IKyberNetworkProxy.md │ ├── api_2key_interfaces_IMaintainingPattern.md │ ├── api_2key_interfaces_IStructuredStorage.md │ ├── api_2key_interfaces_ITwoKeyAcquisitionCampaignERC20.md │ ├── api_2key_interfaces_ITwoKeyAcquisitionLogicHandler.md │ ├── api_2key_interfaces_ITwoKeyAdmin.md │ ├── api_2key_interfaces_ITwoKeyBaseReputationRegistry.md │ ├── api_2key_interfaces_ITwoKeyCampaign.md │ ├── api_2key_interfaces_ITwoKeyCampaignGetReferrers.md │ ├── api_2key_interfaces_ITwoKeyCampaignPublicAddresses.md │ ├── api_2key_interfaces_ITwoKeyCampaignValidator.md │ ├── api_2key_interfaces_ITwoKeyConversionHandler.md │ ├── api_2key_interfaces_ITwoKeyConversionHandlerGetConverterState.md │ ├── api_2key_interfaces_ITwoKeyDonationCampaign.md │ ├── api_2key_interfaces_ITwoKeyDonationCampaignFetchAddresses.md │ ├── api_2key_interfaces_ITwoKeyDonationConversionHandler.md │ ├── api_2key_interfaces_ITwoKeyDonationLogicHandler.md │ ├── api_2key_interfaces_ITwoKeyEventSource.md │ ├── api_2key_interfaces_ITwoKeyEventSourceEvents.md │ ├── api_2key_interfaces_ITwoKeyExchangeRateContract.md │ ├── api_2key_interfaces_ITwoKeyMaintainersRegistry.md │ ├── api_2key_interfaces_ITwoKeyPlasmaEvents.md │ ├── api_2key_interfaces_ITwoKeyPlasmaRegistry.md │ ├── api_2key_interfaces_ITwoKeyPurchasesHandler.md │ ├── api_2key_interfaces_ITwoKeyReg.md │ ├── api_2key_interfaces_ITwoKeyRegistry.md │ ├── api_2key_interfaces_ITwoKeyRegistryEvents.md │ ├── api_2key_interfaces_ITwoKeySingletoneAddressStorage.md │ ├── api_2key_interfaces_ITwoKeySingletoneRegistryFetchAddress.md │ ├── api_2key_interfaces_ITwoKeySingletonesRegistry.md │ ├── api_2key_interfaces_ITwoKeyWeightedVoteContract.md │ ├── api_2key_interfaces_IUpgradableExchange.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyAdminStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyBaseReputationRegistryStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyCampaignValidatorStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyCommunityTokenPoolStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyDeepFreezeTokenPoolStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyEventSourceStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyExchangeRateContractStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyFactoryStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyLongTermTokenPoolStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyMaintainersRegistryStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyPlasmaEventsStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyPlasmaMaintainersRegistryStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyPlasmaRegistryStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyRegistryStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeySignatureValidatorStorage.md │ ├── api_2key_interfaces_storage-contracts_ITwoKeyUpgradableExchangeStorage.md │ ├── api_2key_libraries_Call.md │ ├── api_2key_libraries_GetCode.md │ ├── api_2key_libraries_IncentiveModels.md │ ├── api_2key_libraries_SafeMath.md │ ├── api_2key_libraries_Utils.md │ ├── api_2key_singleton-contracts_ITwoKeySingletonUtils.md │ ├── api_2key_singleton-contracts_StandardTokenModified.md │ ├── api_2key_singleton-contracts_TwoKeyAdmin.md │ ├── api_2key_singleton-contracts_TwoKeyBaseReputationRegistry.md │ ├── api_2key_singleton-contracts_TwoKeyCampaignValidator.md │ ├── api_2key_singleton-contracts_TwoKeyCongress.md │ ├── api_2key_singleton-contracts_TwoKeyEconomy.md │ ├── api_2key_singleton-contracts_TwoKeyEventSource.md │ ├── api_2key_singleton-contracts_TwoKeyExchangeRateContract.md │ ├── api_2key_singleton-contracts_TwoKeyFactory.md │ ├── api_2key_singleton-contracts_TwoKeyMaintainersRegistry.md │ ├── api_2key_singleton-contracts_TwoKeyPlasmaEvents.md │ ├── api_2key_singleton-contracts_TwoKeyPlasmaMaintainersRegistry.md │ ├── api_2key_singleton-contracts_TwoKeyPlasmaRegistry.md │ ├── api_2key_singleton-contracts_TwoKeyPlasmaSingletoneRegistry.md │ ├── api_2key_singleton-contracts_TwoKeyRegistry.md │ ├── api_2key_singleton-contracts_TwoKeySignatureValidator.md │ ├── api_2key_singleton-contracts_TwoKeySingletonesRegistry.md │ ├── api_2key_singleton-contracts_TwoKeyUpgradableExchange.md │ ├── api_2key_singleton-storage-contracts_TwoKeyAdminStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyBaseReputationRegistryStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyCampaignValidatorStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyCommunityTokenPoolStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyDeepFreezeTokenPoolStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyEventSourceStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyExchangeRateStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyFactoryStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyLongTermTokenPoolStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyMaintainersRegistryStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyPlasmaEventsStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyPlasmaMaintainersRegistryStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyPlasmaRegistryStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyRegistryStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeySignatureValidatorStorage.md │ ├── api_2key_singleton-storage-contracts_TwoKeyUpgradableExchangeStorage.md │ ├── api_2key_token-pools_TokenPool.md │ ├── api_2key_token-pools_TwoKeyCommunityTokenPool.md │ ├── api_2key_token-pools_TwoKeyDeepFreezeTokenPool.md │ ├── api_2key_token-pools_TwoKeyLongTermTokenPool.md │ ├── api_2key_upgradability_Proxy.md │ ├── api_2key_upgradability_StructuredStorage.md │ ├── api_2key_upgradability_UpgradabilityStorage_UpgradeabilityStorage.md │ ├── api_2key_upgradability_UpgradeabilityProxy.md │ ├── api_2key_upgradability_Upgradeable.md │ ├── api_2key_upgradable-pattern-campaigns_ProxyCampaign.md │ ├── api_2key_upgradable-pattern-campaigns_UpgradabilityCampaignStorage_UpgradeabilityCampaignStorage.md │ ├── api_2key_upgradable-pattern-campaigns_UpgradeableCampaign.md │ ├── api_test_FungibleMockToken.md │ ├── api_test_FungibleMockToken_TestA.md │ ├── api_test_FungibleMockToken_TestB.md │ └── api_test_KyberNetworkTestMockContract.md └── website │ ├── README.md │ ├── blog │ ├── 2016-03-11-blog-post.md │ ├── 2017-04-10-blog-post-two.md │ ├── 2017-09-25-testing-rss.md │ ├── 2017-09-26-adding-rss.md │ └── 2017-10-24-new-version-1.0.0.md │ ├── core │ └── Footer.js │ ├── i18n │ └── en.json │ ├── package-lock.json │ ├── package.json │ ├── pages │ └── en │ │ ├── help.js │ │ ├── index.js │ │ └── users.js │ ├── sidebars.json │ ├── siteConfig.js │ ├── static │ ├── css │ │ └── custom.css │ └── img │ │ ├── docusaurus.svg │ │ ├── favicon.png │ │ ├── favicon │ │ └── favicon.ico │ │ └── oss_logo.png │ └── yarn.lock ├── etherscanVerifyContractApi.js ├── flattenContracts.js ├── flattenedContracts ├── InvoiceTokenFlattened.sol ├── TokenPoolFlattened.sol ├── TwoKeyAdminFlattened.sol ├── TwoKeyBaseReputationRegistryFlattened.sol ├── TwoKeyBudgetCampaignsPaymentsHandlerFlattened.sol ├── TwoKeyCampaignValidatorFlattened.sol ├── TwoKeyCongressFlattened.sol ├── TwoKeyCongressMembersRegistry.sol ├── TwoKeyDeepFreezeTokenPoolFlattened.sol ├── TwoKeyDonationCampaignFlattened.sol ├── TwoKeyDonationCampaignTypeFlattened.sol ├── TwoKeyDonationConversionHandlerFlattened.sol ├── TwoKeyDonationLogicHandlerFlattened.sol ├── TwoKeyEventSourceFlattened.sol ├── TwoKeyExchangeRateContractFlattened.sol ├── TwoKeyFactoryFlattened.sol ├── TwoKeyFeeManagerFlattened.sol ├── TwoKeyMPSNMiningPoolFlattened.sol ├── TwoKeyMaintainersRegistryAbstractFlattened.sol ├── TwoKeyMaintainersRegistryFlattened.sol ├── TwoKeyNetworkGrowthFundFlattened.sol ├── TwoKeyParticipationMiningPoolFlattened.sol ├── TwoKeyParticipationPaymentsManagerFlattened.sol ├── TwoKeyPlasmaBudgetCampaignsPaymentsHandlerFlattened.sol ├── TwoKeyPlasmaEventSourceFlattened.sol ├── TwoKeyPlasmaEventsFlattened.sol ├── TwoKeyPlasmaFactoryFlattened.sol ├── TwoKeyPlasmaMaintainersRegistryFlattened.sol ├── TwoKeyPlasmaParticipationRewardsFlattened.sol ├── TwoKeyPlasmaRegistryFlattened.sol ├── TwoKeyPlasmaReputationRegistryFlattened.sol ├── TwoKeyRegistryFlattened.sol ├── TwoKeySignatureValidatorFlattened.sol ├── TwoKeySingletonesRegistry.sol ├── TwoKeyTeamGrowthFundFlattened.sol └── TwoKeyUpgradableExchangeFlattened.sol ├── generateBytecode.js ├── gitSSM.bash ├── helpers.js ├── kyber ├── Readme.md └── kyberAddresses.json ├── migrations ├── 10_deploy_update.js ├── 11_deploy_plasma_event_source.js ├── 12_deploy_fee_manager.js ├── 13_deploy_plasma_reputation.js ├── 14_deploy_noRewardsCPC_campaign.js ├── 15_deploy_payment_handlers.js ├── 16_deploy_plasma_participation_mining.js ├── 1_migrations.js ├── 2_deploy_storage.js ├── 3_deploy_logic.js ├── 4_deploy_proxies.js ├── 5_deploy_constructors.js ├── 6_deploy_token_sell_campaign.js ├── 7_deploy_donation_campaign.js ├── 8_deploy_cpc_campaign.js └── 9_deploy_cpc.js ├── mine-only-when-transactions.js ├── package-lock.json ├── package.json ├── readmes ├── SetupDevEnv.md └── Solidity-convention.md ├── scripts ├── Readme.md ├── constants.js ├── decode_conversion.py ├── deployments │ ├── prod-plasma │ │ ├── DONE-03.08.2020-a869681c59f12b9387c636a35d306ea16078d37f.bash │ │ ├── DONE-04.06.2020-63c0989eb2efea839e3bdd9330f77f482f523901.bash │ │ ├── DONE-05.12.2020-b28fe307fd90556c7bc937e1dcf74969d5f48218.bash │ │ ├── DONE-07.12.2020-declareEpochs.bash │ │ ├── DONE-09.07.2020-591e61fa2176c9eac1a6180ddb813d56c95abfe3.bash │ │ ├── DONE-1.3.2020-declareEpochs.bash │ │ ├── DONE-11.08.2020-setModeratorFeePlasma.bash │ │ ├── DONE-11.1.2020-declareEpochs.bash │ │ ├── DONE-13.07.2020-fcd7005c27839e359c6561b3451ca9353f24a8bb.bash │ │ ├── DONE-14.05.2020-388338d648daf3a58a3b43e0889ab05575065ba5.bash │ │ ├── DONE-14.2.2020-declareEpochs.bash │ │ ├── DONE-16.02.2020-37f7153ee6d6dd0d87772accda6d448c5f2b20e3.bash │ │ ├── DONE-16.02.2020-addCoreDev.bash │ │ ├── DONE-16.1.2020-declareEpochs.bash │ │ ├── DONE-16.12.2020-declareEpochs.bash │ │ ├── DONE-17.11.2020-a9eb44e3decbb772d35507931826c94c830eb06c.bash │ │ ├── DONE-18.05.2020-set-moderator-fee-plasma.bash │ │ ├── DONE-18.08.2020-bdfc1f7007081f0cfe9644088455b0c3e0a79dcd.bash │ │ ├── DONE-20.10.2020-rotate-congress-member.bash │ │ ├── DONE-21.05.2020-99153de61d04d5f63c003c5f5e3487a31d53d76d.bash │ │ ├── DONE-22.10.2020-setModeratorFeePlasmaProd.bash │ │ ├── DONE-23.2.2020-declareEpochs.bash │ │ ├── DONE-24.1.2020-declareEpochs.bash │ │ ├── DONE-24.12.2019-c2787dfe545c1ac7a6ab398f09c85ebd95092acb.bash │ │ ├── DONE-25.06.2020-ff6581657793fc902f5194771475f877b546cbde.bash │ │ ├── DONE-25.10.2020-374df83cc2389dff45c5c424182e74260770cf86.bash │ │ ├── DONE-26.08.2020-a2ae7c79f3382050cfe29d8367ac85dc9cac910d.bash │ │ ├── DONE-27.02.2020-5c571ddce0216ebc9910eba5d9e993a13b73bbd7.bash │ │ ├── DONE-30.12.2020-declareEpochs.bash │ │ ├── DONE-31.12.2020-declareEpochs.bash │ │ └── DONE-7.2.2020-declareEpochs.bash │ ├── prod-public │ │ ├── DONE-03.02.2020-change-2key-release-date.bash │ │ ├── DONE-03.08.2020-a869681c59f12b9387c636a35d306ea16078d37f.bash │ │ ├── DONE-04.06.2020-63c0989eb2efea839e3bdd9330f77f482f523901.bash │ │ ├── DONE-04.06.2020-setLiquidityParams()-kyber.bash │ │ ├── DONE-05.08.2020-a79bbe153f163547fdcb7e6bcbdf751ff53b45e6.bash │ │ ├── DONE-05.12.2020-b28fe307fd90556c7bc937e1dcf74969d5f48218.bash │ │ ├── DONE-06.08.2020-setLiquidityParams()-kyber.bash │ │ ├── DONE-06.08.2020-withdraw-2key-from-kyber-apr.bash │ │ ├── DONE-06.09.2020-36c9133d0e67328dbd1ef32a991190a034a9ce2c.bash │ │ ├── DONE-07.06.2020-a5126a3478ff2d95dadc6d861d7b76a20ddaadbf.bash │ │ ├── DONE-07.07.2020-setLiquidityParams()-kyber.bash │ │ ├── DONE-07.07.2020-update-contracts-and-setKyber-Katalyst.bash │ │ ├── DONE-09.07.2020-591e61fa2176c9eac1a6180ddb813d56c95abfe3.bash │ │ ├── DONE-1.04.2020-transfer-cobak-2KEY-to-admin.bash │ │ ├── DONE-10.08.2020-setLiquidityParams()-kyber.bash │ │ ├── DONE-11.06.2020-810085e1a12eb380a5afbc30e6cc7aef41916baa.bash │ │ ├── DONE-11.08.2020-setLiquidityParams()-kyber.bash │ │ ├── DONE-11.08.2020-setModeratorFeePublic.bash │ │ ├── DONE-12.03.2020-9c981c44a8e3c3d659dde89c64039aad6fdf60c4.bash │ │ ├── DONE-12.07.2020-withdraw-from-admin.bash │ │ ├── DONE-13.04.2020-transfer-SAFT-2KEY-to-admin.bash │ │ ├── DONE-14.01.2021-278942c731ca025fbb0a566f078bf53b318458b9.bash │ │ ├── DONE-14.05.2020-388338d648daf3a58a3b43e0889ab05575065ba5.bash │ │ ├── DONE-15.01.2020-d880e12d460b043f0be6439921748724f54e5998.bash │ │ ├── DONE-15.05.2020-setLiquidityParams()-kyber.bash │ │ ├── DONE-15.06.2020-withdraw-dai-from-upgradable-exchange-to-admin.bash │ │ ├── DONE-15.06.2020-withdraw-kyber-fees-from-reserve.bash │ │ ├── DONE-15.10.2020-burn-2KEY-tokens.bash │ │ ├── DONE-16.02.2020-5ac18e799d51b77af5aa4a7b9233115c6b18e975.bash │ │ ├── DONE-17.05.2020-2662af07bd2939d89ef7083a4c349b789861fd72.bash │ │ ├── DONE-17.05.2020-withdrawToken.bash │ │ ├── DONE-17.11.2020-a9eb44e3decbb772d35507931826c94c830eb06c.bash │ │ ├── DONE-18.05.2020-920e9360712736163602c37aae8134865150e75b.bash │ │ ├── DONE-18.08.2020-bdfc1f7007081f0cfe9644088455b0c3e0a79dcd.bash │ │ ├── DONE-19.01.2020-bf0b3d65b1e1fac5c42f72d61cb9a495ada29d18.bash │ │ ├── DONE-19.05-setLiquidityParams()-2nd-time.bash │ │ ├── DONE-19.05.2020-disableTrade()-kyber.bash │ │ ├── DONE-19.05.2020-enableTrade()-kyber.bash │ │ ├── DONE-19.11.2020-2c20eb63c2d5818351eeb6c3841342515c52253e.bash │ │ ├── DONE-21.05.2020-99153de61d04d5f63c003c5f5e3487a31d53d76d.bash │ │ ├── DONE-21.05.2020-kyber-recomputation.bash │ │ ├── DONE-21.05.2020-setKyberReserveContract.bash │ │ ├── DONE-22.05.2020-27aa5bacbfa7700339393141b225c85dd71479d6.bash │ │ ├── DONE-22.06.2020-a0d504573c86742a8e56d75b2383016c8db31d94.bash │ │ ├── DONE-22.10.2020-setModeratorFeePublicProd.bash │ │ ├── DONE-23.04.2020-transfer-TDE-2KEY-to-admin.bash │ │ ├── DONE-24.05.2020-889ae14bada1274aca4c8c60aaa7b493896b04c8.bash │ │ ├── DONE-24.06.2020-6bad13fdc6c4fc7453d756bb546e896b1c33355d.bash │ │ ├── DONE-24.06.2020-setLiquidityParams()-kyber.bash │ │ ├── DONE-24.12.2019-c2787dfe545c1ac7a6ab398f09c85ebd95092acb.bash │ │ ├── DONE-25.06.2020-ff6581657793fc902f5194771475f877b546cbde.bash │ │ ├── DONE-25.10.2020-374df83cc2389dff45c5c424182e74260770cf86.bash │ │ ├── DONE-26.10.2020-aaaa9d54eea07c5bb40263788ba9e3e662a2e14c.bash │ │ ├── DONE-27.02.2020-5c571ddce0216ebc9910eba5d9e993a13b73bbd7.bash │ │ ├── DONE-28.05.2020-setLiquidityParams()-3rd-time.bash │ │ ├── DONE-28.10.2020-5b0a0f4dd3980db8299275c160e200c36230e425.bash │ │ ├── DONE-29.03.2020-change-2key-release-date.bash │ │ ├── DONE-29.03.2020-transfer-test-2KEY-to-admin.bash │ │ ├── DONE-29.06.2020-24ad97986dc8991f2310ecce071bd21ede4fe3d0.bash │ │ ├── DONE-29.10.2020-82ddf2c7e633fef18b697cd15e63b327e71b516f.bash │ │ └── DONE-8.04.2020-transfer-sm-bounty-ambassadors-2KEY-to-admin.bash │ ├── staging-plasma │ │ ├── 16.1.2020-declareEpochs.bash │ │ ├── DONE-02.03.2020-update-moderator-fee.bash │ │ ├── DONE-02.06.2020-c2be65be6cc65553e81444d96a1c2b71425c3991.bash │ │ ├── DONE-07.07.2020-8fabe9a2822e35b1d3c10897c6d0388815682f06.bash │ │ ├── DONE-07.07.2020-upgrade-cpcplasma.bash │ │ ├── DONE-08.10.2020-ce4108ba8b2041ee050175aab99f6174a6344b24.bash │ │ ├── DONE-10.02.2020-6ffc1a7650b9b92732b606d0e165ced19f136696.bash │ │ ├── DONE-11.08.2020-setModeratorFeePlasma.bash │ │ ├── DONE-12.05.2020-cbdc3622abcadca839f1c3c91faaaf0ca193d5bf.bash │ │ ├── DONE-12.07.2020-c37d8e3295bb6525ad0ee16d47d84cf902cfc395.bash │ │ ├── DONE-12.08.2020-352b08f37c13a60ab00e981c6168685bfc36064c.bash │ │ ├── DONE-12.1.2020-declareEpochs.bash │ │ ├── DONE-12.10.2020-e6038422891e50902855fc1f7cdc475315bfff1f.bash │ │ ├── DONE-14.07.2020-21ec81634a8f209da35e7f3ec881c1d124c1579f.bash │ │ ├── DONE-15.02.2020-uniswapPD+48hrsRequirement.bash │ │ ├── DONE-16.07.2020-1ad3884ebc08cc31af706859afa5cb5a2610a3c1.bash │ │ ├── DONE-18.03.2020-ef14a55d2581b5ebecd111bce878da0639d76240.bash │ │ ├── DONE-19.08.2020-73d21a72eda8f3691bf077264e2d7c0e5936ca05.bash │ │ ├── DONE-22.10.2020-setModeratorFeePlasma.bash │ │ ├── DONE-24.06.2020-18dc1cbc47d3f669cce0be7cb5823c157e071396.bash │ │ ├── DONE-24.06.2020-35a1deaa38938e566aed4cfd9d820b5542b5d3b3.bash │ │ ├── DONE-24.11.2020-9032c49c59bdd5fb569d2f8c40c6243b37109f26.bash │ │ ├── DONE-25.10.2020-declareEpochsSetSignatory.bash │ │ ├── DONE-26.02.2020-16e6438ce6bc9f4541e23fcf386abb919edbf0e8.bash │ │ ├── DONE-26.05.2020-2b01c2355c281132d75fba4a1a83bbc411683a5e.bash │ │ ├── DONE-30.07.2020-aa48bdce32ec903a00839441661fb80b2f70e269.bash │ │ └── DONE-31.10.2020-4dcd48ce0c0a064b697870ba45adea35005b2508.bash │ ├── staging-public │ │ ├── 06.12.2020-90a7ca56f29ce69e5d9b3ac9911811019f0cb495.bash │ │ ├── DONE-01.12.2020-d6101b063fadb320e0bd8700ce6e9b61b3d28083.bash │ │ ├── DONE-02.03.2020-f142550c20a2caefa8b51e3fc17c1da311c890ff.bash │ │ ├── DONE-02.06.2020-c2be65be6cc65553e81444d96a1c2b71425c3991.bash │ │ ├── DONE-02.06.2020-ef4687947b5ca0a65e055543d9039897d2fdb61d.bash │ │ ├── DONE-03.06.2020-4ca740ce78e338d1453f5b1f1639141d9cb93931.bash │ │ ├── DONE-05.08.2020-0345a4fd55dab7202ff2e0f112050b1411bf7504.bash │ │ ├── DONE-06.03.2020-eec35010f4339e81d15fa6e848cabc1caee554ee.bash │ │ ├── DONE-07.07.2020-8fabe9a2822e35b1d3c10897c6d0388815682f06.bash │ │ ├── DONE-08.07.2020-67ecefc538fc299ccd3a7ddc9906d6735a3c5e32.bash │ │ ├── DONE-08.10.2020-ce4108ba8b2041ee050175aab99f6174a6344b24.bash │ │ ├── DONE-10.02.2020-6ffc1a7650b9b92732b606d0e165ced19f136696.bash │ │ ├── DONE-10.03.2020-d91faa17b1535475bc2b8f71226eb6c8ad43bbec.bash │ │ ├── DONE-10.06.2020-e82d8a3b3888d936fdd25f396f1ef37ea3c6b63a.bash │ │ ├── DONE-11.03.2020-73b7bd20c52d9efa4fe106b1023cf650dcfe0bb3.bash │ │ ├── DONE-11.06.2020-withdraw-kyber-fees.bash │ │ ├── DONE-11.08.2020-setModeratorFeePublic.bash │ │ ├── DONE-12.01.2020-4fb2017304fcb06556580e46347038a43c49dedc.bash │ │ ├── DONE-12.02.2020-3bbd72aecd7c9a065352020234fc597adb2b3567.bash │ │ ├── DONE-12.02.2020-9397550dc3a1df558d97d2c35e165c181c50a65c.bash │ │ ├── DONE-12.02.2020-f1808535ea0eb218cfec9cad29a5353695902eaa.bash │ │ ├── DONE-12.05.2020-cbdc3622abcadca839f1c3c91faaaf0ca193d5bf.bash │ │ ├── DONE-12.07.2020-c37d8e3295bb6525ad0ee16d47d84cf902cfc395.bash │ │ ├── DONE-12.08.2020-352b08f37c13a60ab00e981c6168685bfc36064c.bash │ │ ├── DONE-13.01.2020-856352686b75526f21cede4cf78e663f0dcd4513.bash │ │ ├── DONE-13.05.2020-setLiquidityParams()-kyber.bash │ │ ├── DONE-14.01.2019-4b1511df9fcc8dd40e28b2ea741bef161e4528a5.bash │ │ ├── DONE-15.01.2020-b0196b0b949dc7515cdb3e6682aeaa8b708a6e03.bash │ │ ├── DONE-15.02.2020-uniswapPriceDiscovery.bash │ │ ├── DONE-15.07.2020-9322485f5329e1f94351781b6f450d73dfe4ed4c.bash │ │ ├── DONE-15.10.2020-27bcf5b6ade407abb8a4dc5d902f70017cbdcbc1.bash │ │ ├── DONE-16.07.2020-1ad3884ebc08cc31af706859afa5cb5a2610a3c1.bash │ │ ├── DONE-18.03.2020-ef14a55d2581b5ebecd111bce878da0639d76240.bash │ │ ├── DONE-18.06.2020-cfa4cd676232784eebbc967977aad27ecec5ea12.bash │ │ ├── DONE-20.11.2020-42a67cbbf4f3acd6fee5a6aa1c31c1ab87848cd4.bash │ │ ├── DONE-22.06.2020-97aae0220e4e1eeb7044047681b1aea3df917203.bash │ │ ├── DONE-22.10.2020-setModeratorFeePublic.bash │ │ ├── DONE-23.06.2020-rebalance-hack.bash │ │ ├── DONE-24.06.2020-35a1deaa38938e566aed4cfd9d820b5542b5d3b3.bash │ │ ├── DONE-24.06.2020-d7c154246e2f4b3b4fb8debe9635bc1e51c2b4a2.bash │ │ ├── DONE-24.11.2020-9032c49c59bdd5fb569d2f8c40c6243b37109f26.bash │ │ ├── DONE-24.12.2019-db9d5de0294dfe2832a6a86313d4e63d6893b487.bash │ │ ├── DONE-25.10.2020-declareEpochsSetSignatory.bash │ │ ├── DONE-26.02.2020-16e6438ce6bc9f4541e23fcf386abb919edbf0e8.bash │ │ ├── DONE-26.05.2020-2b01c2355c281132d75fba4a1a83bbc411683a5e.bash │ │ ├── DONE-27.10.2020-80b845eb4b3d663a1c4a5b8db75655ea2ab5cadd.bash │ │ ├── DONE-29.07.2020-be2f65bd9dd3f5dcae13a9ac77a40145812b7169.bash │ │ ├── DONE-30.07.2020-aa48bdce32ec903a00839441661fb80b2f70e269.bash │ │ └── DONE-31.10.2020-4dcd48ce0c0a064b697870ba45adea35005b2508.bash │ ├── test-plasma │ │ ├── DONE-01.05.2020-37737f5d195fa0116a945aa6b87f2d0d6794c925.bash │ │ ├── DONE-01.09.2020-78c89a1de9b8b3e7d9eb80de31b6b4cd2659d5b7.bash │ │ ├── DONE-02.04.2020-e2a98cf8a6707d1bb508f9d73101c613d091acfd.bash │ │ ├── DONE-02.09.2020-d8fa49b1b2c7a7124782c5760f79859c45df0372.bash │ │ ├── DONE-029.07.2020-025ee2d8b0c37d2de80b281827094e687fd7c025.bash │ │ ├── DONE-03.08.2020-fb5dbe8c22eb2b9334bb75b12a272ce1a4b670ec.bash │ │ ├── DONE-03.09.2020-1e447b77e798c8e1cff497feeeb6be194c6060d6.bash │ │ ├── DONE-04.08.2020-7a406b7c07bb11f6301ffd9ca806ab5ad5bf27e7.bash │ │ ├── DONE-04.11.2020-5ab1fb50ba5bd08c922a5dc04e045e65a587476e.bash │ │ ├── DONE-05.02.2020-a059d96a23b5eaf1ca3fda5a454d0971bffa6eb0.bash │ │ ├── DONE-05.07.2020-f4513d33a8953d2d8b3c2bc7a8d8e85445b6e4c6.bash │ │ ├── DONE-08.03.2020-5f17466ec567f9599f5718724d489ff716144c23.bash │ │ ├── DONE-08.07.2020-add-payment-state.bash │ │ ├── DONE-09.06.2020-537d88a0333d3f25417edb96cb66b5de260fd932.bash │ │ ├── DONE-10.03.2020-c5a6ef7e6e789e6fbdb7df7e84008e0acf7044b1.bash │ │ ├── DONE-10.06.2020-06f8882d552f8197dd8dbaba517b09ecd376b9a4.bash │ │ ├── DONE-10.08.2020-8458ba7c3cf87398f8edeacf3c4aac2e81d86661.bash │ │ ├── DONE-12.02.2020-e2ee9ceb000888745c3f19c063b88e2ed4ea86c8.bash │ │ ├── DONE-12.07.2020-c7e09026427d611aadfad559f8ef38925dbcecab.bash │ │ ├── DONE-12.1.2020-push-epochs.bash │ │ ├── DONE-12.10.2020-ed7d9ef08a4662486cab17a9fe679ea18d639e3f.bash │ │ ├── DONE-13.01.2020-cc024f0eeebd592fa48804d009fdf8defcbd0cbd.bash │ │ ├── DONE-13.10.2020-rotate-congress-member.bash │ │ ├── DONE-15.04.2020-ce035d41aaed0d41693d22fa64b8db962ef6c56a.bash │ │ ├── DONE-15.07.2020-0f7da0ef9bf03c423587550b3da3e72d9cc20aee.bash │ │ ├── DONE-15.07.2020-93c325191c4b6ec5012ea8bf02a8e096bf7a0f7c.bash │ │ ├── DONE-16.02.2020-24hours-campaign-ending.bash │ │ ├── DONE-16.09.2020-852df01ebf55033ae44b83299f6e427a0a5116d4.bash │ │ ├── DONE-17.06.2020-368e7a5ef5f8ae1662599b2d18d13e4dbbb38066.bash │ │ ├── DONE-17.09.2020-04731d11b5a6eb4cdb6d15f548fdc8e8190504b2.bash │ │ ├── DONE-18.11.2020-bytecodes-to-exec.bash │ │ ├── DONE-18.11.2020-setSignatoryAddress.bash │ │ ├── DONE-19.02.2020-795cd6d7614429772f3c6d64486b4f4ee4a5e09b.bash │ │ ├── DONE-19.03.2020-2c57a67e2bba44a69c2013c5047ef1c3617686ba.bash │ │ ├── DONE-19.05.2020-d9f21fac90e53459189484fce6490235f08bf81d.bash │ │ ├── DONE-19.07.2020-31e527887ef32ddcbc27010dd886e190c9f0e3dd.bash │ │ ├── DONE-19.11.2020-ca6e38ae0e67dcecc85db203cdf2baa0259a71e2.bash │ │ ├── DONE-20.10.2020-rotate-congress-member.bash │ │ ├── DONE-21.01.2020-16a6d3155bfea3f085f113fea18c94fda9d5e492.bash │ │ ├── DONE-21.04.2020-80c32bf923d7656e5b3b43b27dbc80e040b89ca1.bash │ │ ├── DONE-21.09.2020-90cfe39a61e78d5664b82f3d282442e7762224a1.bash │ │ ├── DONE-22.01.2020-afd124897969c62924a9e06a14478bd8d6562b68.bash │ │ ├── DONE-22.09.2020-b5d378308220f1825fe8321560a96c59200d676e.bash │ │ ├── DONE-22.10.2020-setModeratorFeePlasma.bash │ │ ├── DONE-23.04.2020-60290c99a413239dacd6bc8d1ccd0bcabc5698ee.bash │ │ ├── DONE-23.07.2020-24ae3fc8be9def6443012c8fd7cd1c9406a3db02.bash │ │ ├── DONE-23.11.2020-1b1678130af37495ed689424a1d0b4af104adcb2.bash │ │ ├── DONE-23.11.2020-83787c32558fc247f631c57f92e2c96fc7513578.bash │ │ ├── DONE-23.11.2020-push-epochs-2.bash │ │ ├── DONE-23.11.2020-push-epochs.bash │ │ ├── DONE-24.02.2020-ef37cad11717f99867b2378eb142511f204b7376.bash │ │ ├── DONE-24.11.2020-redeclare-epoch-rewards.bash │ │ ├── DONE-24.12.2019-fdc6c845fd21caf90dc2c7000fb054284a581c5f.bash │ │ ├── DONE-25.02.2020-523ec12c573aa608af40d0ec627fe3e68269e6b3.bash │ │ ├── DONE-25.11.2020-push-epochs.bash │ │ ├── DONE-25.11.2020-redeclareEpoch.bash │ │ ├── DONE-26.02.2020-de80c956411340721fc6dff27622fac8240a1c49.bash │ │ ├── DONE-26.03.2020-bf68a2a27fe0a5ed0ffa971509f6623e4934609a.bash │ │ ├── DONE-26.05.2020-1dd6ceb646345270e127aa633f827c75651d1e05.bash │ │ ├── DONE-26.08.2020-bab3c03ddfc14fc44a201350f3416965590f226d.bash │ │ ├── DONE-26.1.2020 redeclare epoch 10.bash │ │ ├── DONE-27.02.2020-update-moderator-fee.bash │ │ ├── DONE-28.04.2020-a49aa399b4b6b4e1fcb6942a2e402c38aba85a79.bash │ │ ├── DONE-28.06.2020-1efd4db8ef67d436de8e4f957a306e089d0bcfd8.bash │ │ ├── DONE-28.07.2020-5eec99af595c6311dd44585cf2436e4d59cdec6f.bash │ │ ├── DONE-29.10.2020-test-declaring-epochs.bash │ │ ├── DONE-29.12.2019-0eaea85c78467bc43894b289b10171defa8ab4e7.bash │ │ ├── DONE-30.01.2020-ec1eca37fafa379833f5b09bb9d0302b95734694.bash │ │ ├── DONE-30.09.2020-374f9bf251f6f7dd6ba3817a6b17dc193f614f88.bash │ │ └── DONE-31.10.2020-d44bda375c145535412055ae7f9a4d04d8cdf153.bash │ └── test-public │ │ ├── DONE-01.03.2020-58b304768725f338e4e626983768c46bc51a203e.bash │ │ ├── DONE-01.05.2020-37737f5d195fa0116a945aa6b87f2d0d6794c925.bash │ │ ├── DONE-01.09.2020-78c89a1de9b8b3e7d9eb80de31b6b4cd2659d5b7.bash │ │ ├── DONE-02.04.2020-e2a98cf8a6707d1bb508f9d73101c613d091acfd.bash │ │ ├── DONE-03.02.2020-ab279fec18cd54719f2b98e679cbf2ea23c95e1a.bash │ │ ├── DONE-03.03.2020-e06fe7a7bd4f924f861b63bb33e63332216598fd.bash │ │ ├── DONE-03.08.2020-fb5dbe8c22eb2b9334bb75b12a272ce1a4b670ec.bash │ │ ├── DONE-03.09.2020-1e447b77e798c8e1cff497feeeb6be194c6060d6.bash │ │ ├── DONE-04.02.2020-22f036cb4c1959df38bc1ee412902e296a65fa26.bash │ │ ├── DONE-04.11.2020-5ab1fb50ba5bd08c922a5dc04e045e65a587476e.bash │ │ ├── DONE-05.02.2020-a059d96a23b5eaf1ca3fda5a454d0971bffa6eb0.bash │ │ ├── DONE-05.03.2020-e4e69ab8a29fa265389ed1fec4691eb954ff6599.bash │ │ ├── DONE-05.05.2020-54029db007c1c73a8c9324b0c9b091d1203bc05d.bash │ │ ├── DONE-05.05.2020-84cc6021499e8dbb0dc2f9dbd1c84a3442fa473e.bash │ │ ├── DONE-05.07.2020-f4513d33a8953d2d8b3c2bc7a8d8e85445b6e4c6.bash │ │ ├── DONE-05.10.2020-ff674a9cb6811c786b91685592a87fe0c3ffa04c.bash │ │ ├── DONE-06.02.2020-0b5bd0f134da5bc5f355619ccf007e08b047181a.bash │ │ ├── DONE-06.02.2020-322ed515cc56b7ee58d15b758201afcfcc9415bf.bash │ │ ├── DONE-06.02.2020-7ee76283739d025374d9d2a7647e28dfb1aedf6a.bash │ │ ├── DONE-06.07.2020-migrateToKatalyst.bash │ │ ├── DONE-06.08.2020-dbb06318a246d39fae19a89cf2825e9274b895f2.bash │ │ ├── DONE-07.02.2020-ca7ee9b3bf02f57948e690160c6a74765e860dd5.bash │ │ ├── DONE-07.04.2020-b7c54fb178a3d231f6af0ba8869196241c503793.bash │ │ ├── DONE-08.03.2020-5f17466ec567f9599f5718724d489ff716144c23.bash │ │ ├── DONE-08.04.2020-61330dd30af4100cd8c370d332fe630e333142fc.bash │ │ ├── DONE-08.04.2020-68b1757ab7591e1fa16930929616178b9c6daaad.bash │ │ ├── DONE-08.07.2020-add-payment-state.bash │ │ ├── DONE-09.06.2020-537d88a0333d3f25417edb96cb66b5de260fd932.bash │ │ ├── DONE-09.06.2020-de49d05cc3e9578f007ebb4a8fbc24c06aa147c1.bash │ │ ├── DONE-09.09.2020-69c6d54f670a5cdfa077c05e6cf6eb11b69c9f37.bash │ │ ├── DONE-09.09.2020-participation-mining-bytecode.bash │ │ ├── DONE-10.03.2020-c5a6ef7e6e789e6fbdb7df7e84008e0acf7044b1.bash │ │ ├── DONE-10.06.2020-06f8882d552f8197dd8dbaba517b09ecd376b9a4.bash │ │ ├── DONE-10.08.2020-8458ba7c3cf87398f8edeacf3c4aac2e81d86661.bash │ │ ├── DONE-11.02.2020-1d1d2926c561a78b1d249327321a9e5975f97c26.bash │ │ ├── DONE-11.03.2020-807f90534e536f12cf53cc594403debe40145f53.bash │ │ ├── DONE-11.04.2020-setLiquidityParams-kyber.bash │ │ ├── DONE-11.08.2020-cc532b8d349e40fa8c621fc2647cc9ba88fdaf92.bash │ │ ├── DONE-12.01.2021-a5b023069d41aa53d5b54f06607997fba77c1b23.bash │ │ ├── DONE-12.01.2021-fix-upgradable-exchange.bash │ │ ├── DONE-12.02.2020-e2ee9ceb000888745c3f19c063b88e2ed4ea86c8.bash │ │ ├── DONE-12.07.2020-c7e09026427d611aadfad559f8ef38925dbcecab.bash │ │ ├── DONE-13.01.2020-29e908c3836566576987cc5715ebadfbc0f626f2.bash │ │ ├── DONE-13.01.2020-cc024f0eeebd592fa48804d009fdf8defcbd0cbd.bash │ │ ├── DONE-14.10.2020-21c212ce49ece80a85a40b1b9ef6d5c27e68c9c8.bash │ │ ├── DONE-15.04.2020-ce035d41aaed0d41693d22fa64b8db962ef6c56a.bash │ │ ├── DONE-15.07.2020-0f7da0ef9bf03c423587550b3da3e72d9cc20aee.bash │ │ ├── DONE-15.07.2020-93c325191c4b6ec5012ea8bf02a8e096bf7a0f7c.bash │ │ ├── DONE-16.02.2020-uniswap-pd.bash │ │ ├── DONE-16.03.2020-2ab82dbc0d8ff27345362e88751e04ee4bfba561.bash │ │ ├── DONE-16.09.2020-852df01ebf55033ae44b83299f6e427a0a5116d4.bash │ │ ├── DONE-17.06.2020-368e7a5ef5f8ae1662599b2d18d13e4dbbb38066.bash │ │ ├── DONE-18.08.2020-7adebe45016da7b28d5c547a7796814001088897.bash │ │ ├── DONE-18.11.2020-bytecodes-to-exec.bash │ │ ├── DONE-18.11.2020-setSignatoryAddress.bash │ │ ├── DONE-19.02.2020-795cd6d7614429772f3c6d64486b4f4ee4a5e09b.bash │ │ ├── DONE-19.03.2020-2c57a67e2bba44a69c2013c5047ef1c3617686ba.bash │ │ ├── DONE-19.05.2020-d9f21fac90e53459189484fce6490235f08bf81d.bash │ │ ├── DONE-19.07.2020-31e527887ef32ddcbc27010dd886e190c9f0e3dd.bash │ │ ├── DONE-20.01.20202-8b7d22b962ce9aba23d3135ced0053773fb4ba2a.bash │ │ ├── DONE-20.05.2020-9d75b9f17c66098c6b5e790a03676b3d4ac912b3.bash │ │ ├── DONE-20.10.2020-rotate-congress-member.bash │ │ ├── DONE-21.01.2020-16a6d3155bfea3f085f113fea18c94fda9d5e492.bash │ │ ├── DONE-21.04.2020-80c32bf923d7656e5b3b43b27dbc80e040b89ca1.bash │ │ ├── DONE-21.10.2020-3bc6266dace4f835c7794182536e35d7459d84cf.bash │ │ ├── DONE-21.11.2020-6eff370b3f8e64affac31735735881a5517d773e.bash │ │ ├── DONE-22.01.2020-afd124897969c62924a9e06a14478bd8d6562b68.bash │ │ ├── DONE-22.04.2020-kyber-changes-in-reserve.bash │ │ ├── DONE-22.06.2020-2ce4b295be3356b8e6d75bbb78cf664d5e8b0a8d.bash │ │ ├── DONE-22.09.2020-b5d378308220f1825fe8321560a96c59200d676e.bash │ │ ├── DONE-22.10.2020-setModeratorFeePublic.bash │ │ ├── DONE-23.04.2020-60290c99a413239dacd6bc8d1ccd0bcabc5698ee.bash │ │ ├── DONE-24.02.2020-ef37cad11717f99867b2378eb142511f204b7376.bash │ │ ├── DONE-24.12.2019-fdc6c845fd21caf90dc2c7000fb054284a581c5f.bash │ │ ├── DONE-26.02.2020-de80c956411340721fc6dff27622fac8240a1c49.bash │ │ ├── DONE-26.03.2020-bf68a2a27fe0a5ed0ffa971509f6623e4934609a.bash │ │ ├── DONE-26.05.2020-1dd6ceb646345270e127aa633f827c75651d1e05.bash │ │ ├── DONE-27.01.2020-0x95c6bd38200de9756a3eec3f48e16875cc7f9aff.bash │ │ ├── DONE-27.01.2020-af265426d8a8809af2e599960f189b007a08735d.bash │ │ ├── DONE-27.10.2020-9376b59028f990a97e445e2a0b826dac5632d05d.bash │ │ ├── DONE-28.04.2020-a49aa399b4b6b4e1fcb6942a2e402c38aba85a79.bash │ │ ├── DONE-28.06.2020-1efd4db8ef67d436de8e4f957a306e089d0bcfd8.bash │ │ ├── DONE-29.07.2020-025ee2d8b0c37d2de80b281827094e687fd7c025.bash │ │ ├── DONE-29.12.2019-0eaea85c78467bc43894b289b10171defa8ab4e7.bash │ │ ├── DONE-30.01.2020-663400c1611968a606fb4cd3ee1c11813ac37292.bash │ │ ├── DONE-30.01.2020-c6eb19e85bf5ffd9128ed43538be8478f469bedc.bash │ │ ├── DONE-30.01.2020-ec1eca37fafa379833f5b09bb9d0302b95734694.bash │ │ ├── DONE-30.08.2020-bab3c03ddfc14fc44a201350f3416965590f226d.bash │ │ ├── DONE-30.09.2020-374f9bf251f6f7dd6ba3817a6b17dc193f614f88.bash │ │ ├── DONE-31.10.2020-d44bda375c145535412055ae7f9a4d04d8cdf153.bash │ │ └── participation-mining-bytecode.bash ├── generate_bytecode.py ├── sign_messages.py ├── verify-deployment.bash └── verifyDeployment.js ├── test-funnel.bash ├── test └── TestTwoKeyEconomy.js ├── truffle.js ├── tsconfig.json ├── webpack.config.analyze.js ├── webpack.config.dev.js ├── webpack.config.js ├── webpack.config.submodules.js ├── yarn-error.log └── yarn.lock /!.solhint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "default", 3 | "rules": { 4 | "avoid-throw": false, 5 | "avoid-suicide": "error", 6 | "avoid-sha3": "warn", 7 | "compiler-fixed": false, 8 | "indent": ["warn", 4], 9 | "max-line-length": 150, 10 | "var-name-mixedcase": false, 11 | "func-param-name-mixedcase": false 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /.chglog/config.yml: -------------------------------------------------------------------------------- 1 | style: github 2 | template: CHANGELOG.tpl.md 3 | info: 4 | title: CHANGELOG 5 | repository_url: https://github.com/2key/contracts 6 | options: 7 | commits: 8 | filters: 9 | Type: 10 | - feat 11 | - fix 12 | - perf 13 | - refactor 14 | commit_groups: 15 | title_maps: 16 | feat: Features 17 | fix: Bug Fixes 18 | perf: Performance Improvements 19 | refactor: Code Refactoring 20 | header: 21 | pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" 22 | pattern_maps: 23 | - Type 24 | - Scope 25 | - Subject 26 | notes: 27 | keywords: 28 | - BREAKING CHANGE 29 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | **/* -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "airbnb-base" 4 | ], 5 | "plugins": [ 6 | "import" 7 | ], 8 | "rules": { 9 | } 10 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .DS_Store 3 | node_modules/ 4 | datadir/ 5 | build 6 | configurationFiles/accountsConfig.json 7 | accountsConfig.json 8 | configurationFiles/proxyAddresses.json 9 | configurationFiles/contractNamesToProxyAddresses.json 10 | .vscode 11 | solcoutput/ 12 | contracts.ts 13 | 2key-protocol/src/contracts/ 14 | geth/mainnet/passwords.txt 15 | deploy.json 16 | .env-slack 17 | tenderly.yaml 18 | scripts/deployments/manualDeploy.json 19 | scripts/.env-sign 20 | tenderlyConfigurations 21 | venv/ 22 | .env.private 23 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "2key-protocol/dist"] 2 | path = 2key-protocol/dist 3 | url = git@github.com:2key/2key-protocol.git 4 | [submodule "2key-protocol/src"] 5 | path = 2key-protocol/src 6 | url = git@github.com:2key/2key-protocol-code.git 7 | -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "default", 3 | "rules": { 4 | "indent": ["error", 4], 5 | "quotes": ["error", "double"], 6 | "max-line-length": ["error", 120], 7 | "no-unused-vars": "error", 8 | "no-empty-blocks": "error" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /2key-infra.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2key/contracts/aadccf693c0f8599292bbc1eff8c417081a73e13/2key-infra.png -------------------------------------------------------------------------------- /2key-protocol/test/campaignsTests/reusable/userActions/checks/acquisitionOnly.ts: -------------------------------------------------------------------------------- 1 | import {campaignTypes} from "../../../../constants/smallConstants"; 2 | 3 | export default function acquisitionOnly(campaignType:string){ 4 | if(campaignType !== campaignTypes.acquisition){ 5 | throw new Error('Method allowed only for cpc campaigns'); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /2key-protocol/test/campaignsTests/reusable/userActions/checks/cpcOnly.ts: -------------------------------------------------------------------------------- 1 | import {campaignTypes} from "../../../../constants/smallConstants"; 2 | 3 | export default function cpcOnly(campaignType:string){ 4 | if(campaignType !== campaignTypes.cpc){ 5 | throw new Error('Method allowed only for cpc campaigns'); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /2key-protocol/test/campaignsTests/reusable/userActions/checks/donationOnly.ts: -------------------------------------------------------------------------------- 1 | import {campaignTypes} from "../../../../constants/smallConstants"; 2 | 3 | export default function donationOnly(campaignType:string){ 4 | if(campaignType !== campaignTypes.donation){ 5 | throw new Error('Method allowed only for donation campaigns'); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /2key-protocol/test/campaignsTests/reusable/userActions/checks/ethOnly.ts: -------------------------------------------------------------------------------- 1 | import {campaignTypes} from "../../../../constants/smallConstants"; 2 | 3 | export default function ethOnly(isFiatOnly:string){ 4 | if(isFiatOnly){ 5 | throw new Error('Method allowed only for eth campaigns'); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /2key-protocol/test/campaignsTests/reusable/userActions/checks/fiatOnly.ts: -------------------------------------------------------------------------------- 1 | export default function fiatOnly(isFiatOnly: boolean): void { 2 | if(!isFiatOnly){ 3 | throw new Error('Unacceptable user action for not fiat campaign'); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /2key-protocol/test/campaignsTests/reusable/userActions/checks/kycRequired.ts: -------------------------------------------------------------------------------- 1 | export default function kycRequired(isKycRequired: boolean): void { 2 | if(!isKycRequired){ 3 | throw new Error('Unacceptable user action for campaign without KYC'); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /2key-protocol/test/campaignsTests/reusable/userActions/typings/functionParamsInterface.ts: -------------------------------------------------------------------------------- 1 | import TestStorage from "../../../../helperClasses/TestStorage"; 2 | 3 | export default interface functionParamsInterface { 4 | storage: TestStorage, 5 | userKey: string, 6 | campaignData: any, 7 | campaignContract: string, 8 | 9 | expectError?: boolean, 10 | secondaryUserKey?: string, 11 | cut?: number, 12 | contribution?: number, 13 | } 14 | -------------------------------------------------------------------------------- /2key-protocol/test/constants/polifils.ts: -------------------------------------------------------------------------------- 1 | require('es6-promise').polyfill(); 2 | require('isomorphic-fetch'); 3 | require('isomorphic-form-data'); 4 | -------------------------------------------------------------------------------- /2key-protocol/test/helpers/dates.ts: -------------------------------------------------------------------------------- 1 | export function daysToSeconds(daysQty: number) { 2 | return daysQty * 24 * 60 * 60; 3 | } 4 | -------------------------------------------------------------------------------- /2key-protocol/test/helpers/getTwoKeyEconomyAddress.ts: -------------------------------------------------------------------------------- 1 | import singletons from "../../src/contracts/singletons"; 2 | 3 | export default function getTwoKeyEconomyAddress() { 4 | const networkId = parseInt(process.env.MAIN_NET_ID, 10); 5 | 6 | return singletons.TwoKeyEconomy.networks[networkId].address 7 | } 8 | -------------------------------------------------------------------------------- /2key-protocol/test/helpers/numberHelpers.ts: -------------------------------------------------------------------------------- 1 | import {expect} from 'chai'; 2 | 3 | 4 | export function rewardCalc(reward: number, cutChain: Array) { 5 | let resultReward = reward; 6 | 7 | for (let cutIndex = 0; cutIndex < cutChain.length; cutIndex += 1) { 8 | resultReward -= resultReward * cutChain[cutIndex] 9 | } 10 | 11 | return resultReward; 12 | } 13 | 14 | const tolerance = 0.01; 15 | 16 | export function expectEqualNumbers(value: number, compareWith: number, message?: string){ 17 | expect(value, message) 18 | .to.be.lte(compareWith + tolerance) 19 | .to.be.gte(compareWith - tolerance) 20 | } 21 | -------------------------------------------------------------------------------- /2key-protocol/test/helpers/regExp.ts: -------------------------------------------------------------------------------- 1 | export const ipfsRegex = /^Qm[a-zA-Z0-9]{44}/; 2 | -------------------------------------------------------------------------------- /2key-protocol/test/helpers/stringHelpers.ts: -------------------------------------------------------------------------------- 1 | import {expect} from 'chai'; 2 | 3 | 4 | 5 | 6 | export function expectEqualStrings(value: string, compareWith: string){ 7 | expect(value).to.be.equal(compareWith) 8 | } 9 | -------------------------------------------------------------------------------- /2key-protocol/test/typings/ICreateCPCNoRewardsTest.ts: -------------------------------------------------------------------------------- 1 | import {ICreateCPCNoRewards} from "../../src/cpcNoRewards/interfaces"; 2 | 3 | interface ICreateCPCNoRewardsTest extends ICreateCPCNoRewards{ 4 | etherForRewards?: number; 5 | targetClicks?: number; 6 | } 7 | 8 | export default ICreateCPCNoRewardsTest; 9 | -------------------------------------------------------------------------------- /2key-protocol/test/typings/ICreateCPCTest.ts: -------------------------------------------------------------------------------- 1 | import {ICreateCPC} from "../../src/cpc/interfaces"; 2 | 3 | interface ICreateCPCTest extends ICreateCPC{ 4 | bountyPerConversionUSD?: number; 5 | etherForRewards?: number; 6 | targetClicks?: number; 7 | bountyPerConversion?:number; 8 | } 9 | 10 | export default ICreateCPCTest; 11 | -------------------------------------------------------------------------------- /2key-protocol/test/typings/ITestConversion.ts: -------------------------------------------------------------------------------- 1 | import {IConversionObject,} from "../../src/acquisition/interfaces"; 2 | import {IConversion} from "../../src/donation/interfaces"; 3 | import {ICPCConversion} from "../../src/cpc/interfaces"; 4 | 5 | interface ITestConversion { 6 | readonly _id: number; 7 | _data: IConversionObject | IConversion | ICPCConversion; 8 | readonly id: number; 9 | 10 | state: string; 11 | data: IConversionObject | IConversion | ICPCConversion; 12 | } 13 | 14 | export default ITestConversion; 15 | -------------------------------------------------------------------------------- /2key-protocol/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | -------------------------------------------------------------------------------- /GitCommitMessage.template: -------------------------------------------------------------------------------- 1 | [Web3_1.x] -> ${shortDescription} -------------------------------------------------------------------------------- /SC-architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2key/contracts/aadccf693c0f8599292bbc1eff8c417081a73e13/SC-architecture.png -------------------------------------------------------------------------------- /checkout-env.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Search in args which branch to checkout 4 | for i in "$@" 5 | do 6 | case $i in 7 | -b=*|--branch=*) 8 | BRANCH="${i#*=}" 9 | ;; 10 | *) 11 | # unknown option 12 | ;; 13 | esac 14 | done 15 | echo BRANCH_TO_CHECKOUT = ${BRANCH} 16 | 17 | git checkout ${BRANCH} 18 | cd 2key-protocol/src 19 | git checkout ${BRANCH} 20 | cd .. 21 | cd dist 22 | git checkout ${BRANCH} 23 | cd ../.. 24 | -------------------------------------------------------------------------------- /contracts/2key/Migrations.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract Migrations { 4 | address public owner; 5 | uint public last_completed_migration; 6 | 7 | constructor() public { 8 | owner = msg.sender; 9 | } 10 | 11 | modifier restricted() { 12 | if (msg.sender == owner) _; 13 | } 14 | 15 | function setCompleted(uint completed) public restricted { 16 | last_completed_migration = completed; 17 | } 18 | 19 | function upgrade(address new_address) public restricted { 20 | Migrations upgraded = Migrations(new_address); 21 | upgraded.setCompleted(last_completed_migration); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /contracts/2key/TwoKeyConversionStates.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | /** 4 | * @author Nikola Madjarevic 5 | */ 6 | contract TwoKeyConversionStates { 7 | enum ConversionState {PENDING_APPROVAL, APPROVED, EXECUTED, REJECTED, CANCELLED_BY_CONVERTER} 8 | } 9 | -------------------------------------------------------------------------------- /contracts/2key/TwoKeyTypes.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract TwoKeyTypes { 4 | enum CampaignType {CPL, CPA_TOKENS, CPI_SIGN_UP, CPC, CPA_PRODUCT, CPA_SERVICE, CPA_FUNGIBLE, CPA_NON_FUNGIBLE} 5 | } -------------------------------------------------------------------------------- /contracts/2key/UpgradabilityProxyAcquisition.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | 4 | import "./upgradability/UpgradabilityStorage.sol"; 5 | import "./upgradability/Proxy.sol"; 6 | 7 | 8 | contract UpgradabilityProxyAcquisition is Proxy, UpgradeabilityStorage { 9 | 10 | constructor (string _contractName, string _version) public { 11 | registry = ITwoKeySingletonesRegistry(msg.sender); 12 | _implementation = registry.getVersion(_contractName, _version); 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /contracts/2key/campaign-mutual-contracts/TwoKeyCampaignIncentiveModels.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /** 3 | * @author Nikola Madjarevic 4 | */ 5 | contract TwoKeyCampaignIncentiveModels { 6 | enum IncentiveModel {MANUAL, VANILLA_AVERAGE, VANILLA_AVERAGE_LAST_3X, VANILLA_POWER_LAW, NO_REFERRAL_REWARD} 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/donation-campaign-contracts/TwoKeyDonationCampaignType.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /** 3 | * @author Nikola Madjarevic 4 | * Created at 2/19/19 5 | */ 6 | contract TwoKeyDonationCampaignType { 7 | enum DonationType {ONE_TIME_DONATION, MONTHLY_DONATION} 8 | } 9 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/IGetImplementation.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract IGetImplementation { 4 | function implementation() 5 | public 6 | view 7 | returns (address); 8 | } 9 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/IHandleCampaignDeploymentPlasma.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract IHandleCampaignDeploymentPlasma { 4 | 5 | function setInitialParamsCPCCampaignPlasma( 6 | address _twoKeyPlasmaSingletonRegistry, 7 | address _contractor, 8 | string _url, 9 | uint [] numberValues 10 | ) 11 | public; 12 | 13 | function setInitialParamsCPCCampaignPlasmaNoRewards( 14 | address _twoKeyPlasmaSingletonRegistry, 15 | address _contractor, 16 | string _url, 17 | uint [] numberValues 18 | ) 19 | public; 20 | } 21 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/IMaintainingPattern.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /** 3 | * @author Nikola Madjarevic 4 | * Created at 12/25/18 5 | */ 6 | contract IMaintainingPattern { 7 | function addMaintainers(address [] _maintainers) public; 8 | function removeMaintainers(address [] _maintainers) public; 9 | } 10 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITether.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.0; 2 | 3 | contract ITether { 4 | function transferFrom(address _from, address _to, uint256 _value) external; 5 | 6 | function transfer(address _to, uint256 _value) external; 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyAdmin.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyAdmin { 4 | function getDefaultIntegratorFeePercent() public view returns (uint); 5 | function getDefaultNetworkTaxPercent() public view returns (uint); 6 | function getTwoKeyRewardsReleaseDate() external view returns(uint); 7 | function updateReceivedTokensAsModerator(uint amountOfTokens) public; 8 | function updateReceivedTokensAsModeratorPPC(uint amountOfTokens, address campaignPlasma) public; 9 | function addFeesCollectedInCurrency(string currency, uint amount) public payable; 10 | 11 | function updateTokensReceivedFromDistributionFees(uint amountOfTokens) public; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyBaseReputationRegistry.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /** 3 | * @author Nikola Madjarevic 4 | * Created at 2/4/19 5 | */ 6 | contract ITwoKeyBaseReputationRegistry { 7 | function updateOnConversionExecutedEvent(address converter, address contractor, address campaign) public; 8 | function updateOnConversionRejectedEvent(address converter, address contractor, address campaign) public; 9 | } 10 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyCPCCampaignPlasma.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyCPCCampaignPlasma { 4 | function getReferrers( 5 | address customer 6 | ) 7 | public 8 | view 9 | returns (address[]); 10 | } 11 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyCampaignGetReferrers.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyCampaignGetReferrers { 4 | function getReferrers( 5 | address customer 6 | ) 7 | public 8 | view 9 | returns (address[]); 10 | } 11 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyCampaignLogicHandler.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /** 3 | * @author Nikola Madjarevic 4 | * Created at 1/15/19 5 | */ 6 | contract ITwoKeyCampaignLogicHandler { 7 | function canContractorWithdrawRemainingRewardsInventory() public view returns (bool); 8 | function reduceTotalRaisedFundsAfterConversionRejected(uint amountToReduce) public; 9 | } 10 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyCampaignPublicAddresses.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /** 3 | * @author Nikola Madjarevic 4 | * Created at 2/27/19 5 | */ 6 | contract ITwoKeyCampaignPublicAddresses { 7 | address public twoKeySingletonesRegistry; 8 | address public contractor; //contractor address 9 | address public moderator; //moderator address 10 | function publicLinkKeyOf(address me) public view returns (address); 11 | } 12 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyCampaignValidator.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /**y 3 | * @author Nikola Madjarevic 4 | * Created at 2/12/19 5 | */ 6 | contract ITwoKeyCampaignValidator { 7 | function isCampaignValidated(address campaign) public view returns (bool); 8 | function validateAcquisitionCampaign(address campaign, string nonSingletonHash) public; 9 | function validateDonationCampaign(address campaign, address donationConversionHandler, address donationLogicHandler, string nonSingletonHash) public; 10 | function validateCPCCampaign(address campaign, string nonSingletonHash) public; 11 | } 12 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyConversionHandlerGetConverterState.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | /** 4 | * @author Nikola Madjarevic 5 | * Created at 2/20/19 6 | */ 7 | contract ITwoKeyConversionHandlerGetConverterState { 8 | function getStateForConverter(address _converter) public view returns (bytes32); 9 | } 10 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyDeepFreezeTokenPool.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyDeepFreezeTokenPool { 4 | function updateReceivedTokensForSuccessfulConversions( 5 | uint amount, 6 | address campaignAddress 7 | ) 8 | public; 9 | } 10 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyDonationCampaignFetchAddresses.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyDonationCampaignFetchAddresses { 4 | address public twoKeyDonationConversionHandler; 5 | address public twoKeyDonationCampaign; 6 | } 7 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyDonationLogicHandler.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyDonationLogicHandler { 4 | function getReferrers(address customer) public view returns (address[]); 5 | 6 | function updateRefchainRewards( 7 | address _converter, 8 | uint _conversionId, 9 | uint totalBounty2keys 10 | ) 11 | public; 12 | 13 | function getReferrerPlasmaTotalEarnings(address _referrer) public view returns (uint); 14 | function checkAllRequirementsForConversionAndTotalRaised(address converter, uint conversionAmount, uint debtPaid) external returns (bool,uint); 15 | } 16 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyExchangeRateContract.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | /** 4 | * @author Nikola Madjarevic 5 | */ 6 | contract ITwoKeyExchangeRateContract { 7 | function getBaseToTargetRate(string _currency) public view returns (uint); 8 | function getStableCoinTo2KEYQuota(address stableCoinAddress) public view returns (uint,uint); 9 | function getStableCoinToUSDQuota(address stableCoin) public view returns (uint); 10 | } 11 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyFactory.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyFactory { 4 | function addressToCampaignType(address _key) public view returns (string); 5 | } 6 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyMaintainersRegistry.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyMaintainersRegistry { 4 | function checkIsAddressMaintainer(address _sender) public view returns (bool); 5 | function checkIsAddressCoreDev(address _sender) public view returns (bool); 6 | 7 | function addMaintainers(address [] _maintainers) public; 8 | function addCoreDevs(address [] _coreDevs) public; 9 | function removeMaintainers(address [] _maintainers) public; 10 | function removeCoreDevs(address [] _coreDevs) public; 11 | } 12 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyParticipationPaymentsManager.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyParticipationPaymentsManager { 4 | function transferTokensFromParticipationMiningPool( 5 | uint amountOfTokens 6 | ) 7 | public; 8 | } 9 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyPlasmaBudgetCampaignsPaymentsHandler.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyPlasmaBudgetCampaignsPaymentsHandler { 4 | function setRebalancedReferrerEarnings( 5 | address referrer, 6 | uint balance 7 | ) 8 | external; 9 | 10 | function updateReferrerRewards( 11 | address referrer, 12 | uint amount 13 | ) 14 | external; 15 | } 16 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyPlasmaFactory.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyPlasmaFactory { 4 | function isCampaignCreatedThroughFactory(address _campaignAddress) public view returns (bool); 5 | } 6 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyPlasmaRegistry.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyPlasmaRegistry { 4 | 5 | function plasma2ethereum( 6 | address _plasma 7 | ) 8 | public 9 | view 10 | returns (address); 11 | 12 | 13 | function ethereum2plasma( 14 | address _ethereum 15 | ) 16 | public 17 | view 18 | returns (address); 19 | 20 | function getModeratorFee() 21 | public 22 | view 23 | returns (uint); 24 | } 25 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyPlasmaReputationRegistry.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyPlasmaReputationRegistry { 4 | 5 | function updateReputationPointsForExecutedConversion( 6 | address converter, 7 | address contractor 8 | ) 9 | public; 10 | 11 | function updateReputationPointsForRejectedConversions( 12 | address converter, 13 | address contractor 14 | ) 15 | public; 16 | 17 | function updateUserReputationScoreOnSignup( 18 | address _plasmaAddress 19 | ) 20 | public; 21 | } 22 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyPurchasesHandler.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /** 3 | * @author Nikola Madjarevic 4 | */ 5 | contract ITwoKeyPurchasesHandler { 6 | 7 | function startVesting( 8 | uint _baseTokens, 9 | uint _bonusTokens, 10 | uint _conversionId, 11 | address _converter 12 | ) 13 | public; 14 | } 15 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyRegistry.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyRegistry { 4 | function checkIfUserExists(address _userAddress) public view returns (bool); 5 | function getUserData(address _user) public view returns (bytes32,bytes32,bytes32); 6 | } 7 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyRegistryEvents.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyRegistryEvents { 4 | function getPlasmaToEthereum(address plasma) public view returns (address); 5 | function getEthereumToPlasma(address ethereum) public view returns (address); 6 | } 7 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeySingletoneAddressStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /** 3 | * @author Nikola Madjarevic 4 | * Created at 12/24/18 5 | */ 6 | contract ITwoKeySingletoneAddressStorage { 7 | function getContractAddress(string contractName) external view returns (address); 8 | } 9 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeySingletoneRegistryFetchAddress.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | /** 3 | * @author Nikola Madjarevic 4 | * Created at 2/7/19 5 | */ 6 | contract ITwoKeySingletoneRegistryFetchAddress { 7 | function getContractProxyAddress(string _contractName) public view returns (address); 8 | function getNonUpgradableContractAddress(string contractName) public view returns (address); 9 | function getLatestCampaignApprovedVersion(string campaignType) public view returns (string); 10 | } 11 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/ITwoKeyWeightedVoteContract.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | contract ITwoKeyWeightedVoteContract { 4 | function getDescription() public view returns(string); 5 | function transferSig(bytes sig) public returns (address[]); 6 | function setValid() public; 7 | function getDynamicData() public view returns (uint,uint,uint,uint,uint,uint); 8 | function getHowMuchAddressPutPower(address add) public view returns (uint); 9 | function getVoteAndChoicePerAddress(address voter) public view returns (bool, uint); 10 | function getAllVoters() public view returns (address[]); 11 | } 12 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyAdminStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyAdminStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyBaseReputationRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyBaseReputationRegistryStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyBudgetCampaignsPaymentsHandlerStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyBudgetCampaignsPaymentsHandlerStorage is IStructuredStorage{ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyCampaignValidatorStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyCampaignValidatorStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyDeepFreezeTokenPoolStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyDeepFreezeTokenPoolStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyEventSourceStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyEventSourceStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyExchangeRateContractStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyExchangeRateContractStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyFactoryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyFactoryStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyFeeManagerStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyFeeManagerStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyMPSNMiningPoolStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyMPSNMiningPoolStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyMaintainersRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyMaintainersRegistryStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyNetworkGrowthFundStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyNetworkGrowthFundStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyParticipationMiningPoolStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyParticipationMiningPoolStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyParticipationPaymentsManagerStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyParticipationPaymentsManagerStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyPlasmaBudgetCampaignsPaymentsHandlerStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyPlasmaBudgetCampaignsPaymentsHandlerStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyPlasmaEventSourceStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../../upgradability/StructuredStorage.sol"; 4 | 5 | contract ITwoKeyPlasmaEventSourceStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyPlasmaEventsStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyPlasmaEventsStorage is IStructuredStorage{ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyPlasmaFactoryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyPlasmaFactoryStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyPlasmaMaintainersRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyPlasmaMaintainersRegistryStorage is IStructuredStorage{ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyPlasmaParticipationRewardsStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyPlasmaParticipationRewardsStorage is IStructuredStorage { 6 | 7 | } 8 | 9 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyPlasmaRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyPlasmaRegistryStorage is IStructuredStorage{ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyPlasmaReputationRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyPlasmaReputationRegistryStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyRegistryStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeySignatureValidatorStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeySignatureValidatorStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyTeamGrowthFundStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyTeamGrowthFundStorage is IStructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/interfaces/storage-contracts/ITwoKeyUpgradableExchangeStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../IStructuredStorage.sol"; 4 | 5 | contract ITwoKeyUpgradableExchangeStorage is IStructuredStorage{ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/non-upgradable-singletons/TwoKeyPlasmaSingletoneRegistry.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "./TwoKeySingletonRegistryAbstract.sol"; 4 | 5 | /** 6 | * @author Nikola Madjarevic 7 | */ 8 | contract TwoKeyPlasmaSingletoneRegistry is TwoKeySingletonRegistryAbstract { 9 | 10 | constructor() 11 | public 12 | { 13 | deployer = msg.sender; 14 | congress = "TwoKeyPlasmaCongress"; 15 | maintainersRegistry = "TwoKeyPlasmaMaintainersRegistry"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyAdminStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyAdminStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyBaseReputationRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyBaseReputationRegistryStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyBudgetCampaignsPaymentsHandlerStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyBudgetCampaignsPaymentsHandlerStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyCampaignValidatorStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyCampaignValidatorStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyDeepFreezeTokenPoolStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyDeepFreezeTokenPoolStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyEventSourceStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyEventSourceStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyExchangeRateStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyExchangeRateStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyFactoryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyFactoryStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyFeeManagerStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyFeeManagerStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyMPSNMiningPoolStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyMPSNMiningPoolStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyMaintainersRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | 6 | contract TwoKeyMaintainersRegistryStorage is StructuredStorage { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyNetworkGrowthFundStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyNetworkGrowthFundStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyParticipationMiningPoolStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyParticipationMiningPoolStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyParticipationPaymentsManagerStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyParticipationPaymentsManagerStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyPlasmaBudgetCampaignsPaymentsHandlerStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyPlasmaBudgetCampaignsPaymentsHandlerStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyPlasmaEventSourceStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyPlasmaEventSourceStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyPlasmaEventsStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyPlasmaEventsStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyPlasmaFactoryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyPlasmaFactoryStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyPlasmaMaintainersRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyPlasmaMaintainersRegistryStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyPlasmaParticipationRewardsStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyPlasmaParticipationRewardsStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyPlasmaRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyPlasmaRegistryStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyPlasmaReputationRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyPlasmaReputationRegistryStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyRegistryStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyRegistryStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeySignatureValidatorStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeySignatureValidatorStorage is StructuredStorage{ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyTeamGrowthFundStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyTeamGrowthFundStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/singleton-storage-contracts/TwoKeyUpgradableExchangeStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../upgradability/StructuredStorage.sol"; 4 | 5 | contract TwoKeyUpgradableExchangeStorage is StructuredStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/2key/upgradability/Upgradeable.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "./UpgradabilityStorage.sol"; 4 | 5 | contract Upgradeable is UpgradeabilityStorage { 6 | /** 7 | * @dev Validates the caller is the versions registry. 8 | * @param sender representing the address deploying the initial behavior of the contract 9 | */ 10 | function initialize(address sender) public payable { 11 | require(msg.sender == address(registry)); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /contracts/2key/upgradable-pattern-campaigns/ProxyCampaign.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | 4 | import "./UpgradabilityCampaignStorage.sol"; 5 | import "../upgradability/Proxy.sol"; 6 | 7 | 8 | contract ProxyCampaign is Proxy, UpgradeabilityCampaignStorage { 9 | 10 | constructor (string _contractName, string _version, address twoKeySingletonRegistry) public { 11 | _implementation = ITwoKeySingletonesRegistry(twoKeySingletonRegistry).getVersion(_contractName, _version); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /contracts/2key/upgradable-pattern-campaigns/UpgradabilityCampaignStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../interfaces/ITwoKeySingletonesRegistry.sol"; 4 | 5 | contract UpgradeabilityCampaignStorage { 6 | 7 | // Address of the current implementation 8 | address internal _implementation; 9 | 10 | /** 11 | * @dev Tells the address of the current implementation 12 | * @return address of the current implementation 13 | */ 14 | function implementation() public view returns (address) { 15 | return _implementation; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /contracts/2key/upgradable-pattern-campaigns/UpgradeableCampaign.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "./UpgradabilityCampaignStorage.sol"; 4 | 5 | contract UpgradeableCampaign is UpgradeabilityCampaignStorage { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /contracts/test/DAI.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | import "../2key/ERC20/StandardTokenModified.sol"; 4 | 5 | contract DAI is StandardTokenModified{ 6 | string public name; 7 | string public symbol; 8 | uint8 public decimals; 9 | 10 | constructor () public { 11 | name = "DAI"; 12 | symbol = "DAI"; 13 | 14 | decimals = 18; 15 | totalSupply_= 100000000*(10**18); // 1B tokens total minted supply 16 | address deployer = address(0xb3fa520368f2df7bed4df5185101f303f6c7decc); 17 | balances[deployer]= totalSupply_; 18 | } 19 | } 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /contracts/test/EmptyContract.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | 4 | contract EmptyContract { 5 | string public name; 6 | } 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /contracts/test/Mock.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | /** 4 | * Mock contract. 5 | * @author Nikola Madjarevic 6 | * Github: madjarevicn 7 | */ 8 | contract Mock { 9 | event FunctionCalled(string instanceName, string functionName, address caller); 10 | event FunctionArguments(uint256[] uintVals, int256[] intVals); 11 | event ReturnValueInt256(int256 val); 12 | event ReturnValueUInt256(uint256 val); 13 | } 14 | -------------------------------------------------------------------------------- /dockers/mainnet/Dockerfile: -------------------------------------------------------------------------------- 1 | # Build Geth in a stock Go builder container 2 | FROM 2key/go-ethereum-devmode-9m:1.0 3 | 4 | RUN apk add --no-cache bash gawk sed grep bc coreutils 5 | 6 | COPY genesis.json /geth/genesis.json 7 | COPY passwords.txt /geth/passwords.txt 8 | COPY keys /geth/keys 9 | 10 | WORKDIR / 11 | COPY ./geth.bash /geth.bash 12 | RUN chmod +x /geth.bash 13 | 14 | EXPOSE 8545 8546 30303 30303/udp 15 | ENTRYPOINT ["/geth.bash"] 16 | -------------------------------------------------------------------------------- /dockers/mainnet/faucet.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | -------------------------------------------------------------------------------- /dockers/mainnet/geth.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Starting GETH" 3 | 4 | UNLOCK_ACCOUNT="0xc9fc28c92db63a6a3d9c4994793b97e5a18e7bd3,0xb3fa520368f2df7bed4df5185101f303f6c7decc,0x22d491bde2303f2f43325b2108d26f1eaba1e32b,0xe11ba2b4d45eaed5996cd0823791e0c93114882d,0x95ced938f7991cd0dfcb48f0a06a40fa1af46ebc,0x3e5e9111ae8eb78fe1cc3bb8915d5d461f3ef9a9,0xbae10c2bdfd4e0e67313d1ebaddaa0adc3eea5d7" 5 | 6 | #if [ ! -d /geth/data/geth ]; then 7 | # echo "/geth/data/geth not found, running 'geth init'..." 8 | # geth --nodiscover --datadir=/geth/data --keystore=/geth/keys init /geth/genesis.json 9 | # echo "...done!" 10 | #fi 11 | 12 | echo ">>>>geth $@" 13 | 14 | geth --datadir=/geth/data "$@" 15 | -------------------------------------------------------------------------------- /dockers/mainnet/keys/dev-key.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "8ba129dc-da25-482e-aefd-1e3ae517f8ad", 4 | "address": "c9fc28c92db63a6a3d9c4994793b97e5a18e7bd3", 5 | "crypto": { 6 | "ciphertext": "7f9f2174df58ab5bfb39eac07dd162d274104f45b78614691c1c041849989c0f", 7 | "cipherparams": { 8 | "iv": "7d8531d5cec2e0f9a9f3da45434edc82" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "8edc6db29ae4d527d360723e4c75bc4b765df005b5131fe2421f38b09c802b49", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "ffa5deab83e4ae490f375d51bac7cff1843a7aa0c11a381c328d3ec439967aa0" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/mainnet/keys/dev-key1.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "93d1d6b3-14b9-496f-a657-f14423642879", 4 | "address": "b3fa520368f2df7bed4df5185101f303f6c7decc", 5 | "crypto": { 6 | "ciphertext": "e3a106ee9081a5c8ecb7ec0967504d82cea7d8aed7f2f17eadec6488b20fa201", 7 | "cipherparams": { 8 | "iv": "a5f0ef95415a335b28259d784fa481c5" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "75daebd3fc4177b84bc70962c8e80eaf72e5819f9c5166ddfd8f49030d0e6e2a", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "4396c452e1bfd7042af837cb28c1b841e572fee62de3892988d06e10ef204424" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/mainnet/keys/dev-key2.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "1b48cea7-04a1-4eca-9822-a541095676b4", 4 | "address": "22d491bde2303f2f43325b2108d26f1eaba1e32b", 5 | "crypto": { 6 | "ciphertext": "fc9ddb105b9b24eb8c2e5c37196b59abc5583b57cf3b2599002821a39847533c", 7 | "cipherparams": { 8 | "iv": "5de5b7e17409678f8ef392579c649887" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "6520ab68b96f9bb07eba9efdacc6a72c7403cdef79d4e613fc3b3de510f6018b", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "32d662c5348cff9a776dc96c274b8d6e8db279c7ccc95f7f334ff1a99ca2df05" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/mainnet/keys/dev-key3.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "a75367b5-f6c9-4c67-8ecf-cc097d57cce0", 4 | "address": "e11ba2b4d45eaed5996cd0823791e0c93114882d", 5 | "crypto": { 6 | "ciphertext": "0f4bf4898bd133cf662faa74ccd8c60565c4b619cb738fac2416437c72cc6cb0", 7 | "cipherparams": { 8 | "iv": "3e357bb0191aeb266549441d606480f2" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "d345c5ea30f99717af22eb1bc9c68329c8503f29efd12093b21676df27488caf", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "9f8ab7c85aa2921baa4493b14373dc0e411da45824218fcded292d2fe646fa82" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/mainnet/keys/dev-key4.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "b81bc15b-8786-4ff2-8921-9205864b8f32", 4 | "address": "95ced938f7991cd0dfcb48f0a06a40fa1af46ebc", 5 | "crypto": { 6 | "ciphertext": "60fc542d49afe048d4832a773258692bc7699b92fb0da316233bd06fe5b2a116", 7 | "cipherparams": { 8 | "iv": "04c0fe9915b91ec1c06e000bb7a70a4c" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "f49c9b24b93aed8d057db79c0181c81ea88e30fea9000367ae1f4c76fb813aac", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "a566d8f9fd88fbee58dab6d5f3bd69fbd797a38ca5150870959ffa2381a198ce" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/mainnet/keys/dev-key5.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "db3e6576-2c0c-476b-a30a-5850e6f0c9e2", 4 | "address": "3e5e9111ae8eb78fe1cc3bb8915d5d461f3ef9a9", 5 | "crypto": { 6 | "ciphertext": "edf9d4c89aaa0bc9341ba84a86640cb199a8928f8002b853e3669b974f8c8d42", 7 | "cipherparams": { 8 | "iv": "9f7f641b1dc712edf01b52402958220b" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "a399599c0c520f9406372831d64b282f96e91ef4b09ed34f773d3be1521fdab2", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "3051b6a030f1c343aa8638d2daae814e1b031d0c7bad8fea38cd7048de7b9ded" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/mainnet/keys/dev-key6.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "c9e1c33a-08af-42e5-a520-59ea13544601", 4 | "address": "bae10c2bdfd4e0e67313d1ebaddaa0adc3eea5d7", 5 | "crypto": { 6 | "ciphertext": "a491d37e7e9e420016e561a8df279cc89e09f640933af36833ba0b77a064b2ed", 7 | "cipherparams": { 8 | "iv": "cc516fb9649c35d9abd53d9c9722abc0" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "54b3bd8089586e25603b59cc499e899da5faf3e3ab4c4d7ab1e3a0a3ddfba915", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "5a3254b96f97f009250d86e0dc14b446bd68931f3685b9715c788a26d3ebfb2a" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/mainnet/passwords.txt: -------------------------------------------------------------------------------- 1 | 3db7e81a5e79b3974994c9d3a6a36bd29c82cf9c 2 | cced7c6f303f1015815fd4deb7fd2f863025af3b 3 | b23e1abae1f62d8012b52334f2f3032edb194d22 4 | d28841139c0e1973280dc6995deae54d4b2ab11e 5 | cbe64fa1af04a60a0f84bcfd0dc1997f839dec59 6 | 9a9fe3f164d5d5198bb3cc1ef87be8ea1119e5e3 7 | 7d5aee3cda0aaddabe1d31376e0e4dfdb2c01eab -------------------------------------------------------------------------------- /dockers/plasma/Dockerfile: -------------------------------------------------------------------------------- 1 | # Build Geth in a stock Go builder container 2 | FROM 2key/go-ethereum-devmode-9m:1.0 3 | 4 | RUN apk add --no-cache bash gawk sed grep bc coreutils 5 | 6 | COPY genesis.json /geth/genesis.json 7 | COPY passwords.txt /geth/passwords.txt 8 | COPY keys /geth/keys 9 | 10 | WORKDIR / 11 | COPY ./geth.bash /geth.bash 12 | RUN chmod +x /geth.bash 13 | 14 | EXPOSE 8545 8546 30303 30303/udp 15 | ENTRYPOINT ["/geth.bash"] 16 | -------------------------------------------------------------------------------- /dockers/plasma/geth.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Starting GETH" 3 | 4 | UNLOCK_ACCOUNT="0xc9fc28c92db63a6a3d9c4994793b97e5a18e7bd3,0xb3fa520368f2df7bed4df5185101f303f6c7decc,0x22d491bde2303f2f43325b2108d26f1eaba1e32b,0xe11ba2b4d45eaed5996cd0823791e0c93114882d,0x95ced938f7991cd0dfcb48f0a06a40fa1af46ebc,0x3e5e9111ae8eb78fe1cc3bb8915d5d461f3ef9a9,0xbae10c2bdfd4e0e67313d1ebaddaa0adc3eea5d7" 5 | 6 | #if [ ! -d /geth/data/geth ]; then 7 | # echo "/geth/data/geth not found, running 'geth init'..." 8 | # geth --nodiscover --datadir=/geth/data --keystore=/geth/keys init /geth/genesis.json 9 | # echo "...done!" 10 | #fi 11 | 12 | echo ">>>>geth $@" 13 | 14 | geth --datadir=/geth/data "$@" 15 | -------------------------------------------------------------------------------- /dockers/plasma/keys/dev-key.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "8ba129dc-da25-482e-aefd-1e3ae517f8ad", 4 | "address": "c9fc28c92db63a6a3d9c4994793b97e5a18e7bd3", 5 | "crypto": { 6 | "ciphertext": "7f9f2174df58ab5bfb39eac07dd162d274104f45b78614691c1c041849989c0f", 7 | "cipherparams": { 8 | "iv": "7d8531d5cec2e0f9a9f3da45434edc82" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "8edc6db29ae4d527d360723e4c75bc4b765df005b5131fe2421f38b09c802b49", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "ffa5deab83e4ae490f375d51bac7cff1843a7aa0c11a381c328d3ec439967aa0" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/plasma/keys/dev-key1.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "93d1d6b3-14b9-496f-a657-f14423642879", 4 | "address": "b3fa520368f2df7bed4df5185101f303f6c7decc", 5 | "crypto": { 6 | "ciphertext": "e3a106ee9081a5c8ecb7ec0967504d82cea7d8aed7f2f17eadec6488b20fa201", 7 | "cipherparams": { 8 | "iv": "a5f0ef95415a335b28259d784fa481c5" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "75daebd3fc4177b84bc70962c8e80eaf72e5819f9c5166ddfd8f49030d0e6e2a", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "4396c452e1bfd7042af837cb28c1b841e572fee62de3892988d06e10ef204424" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/plasma/keys/dev-key2.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "id": "1b48cea7-04a1-4eca-9822-a541095676b4", 4 | "address": "22d491bde2303f2f43325b2108d26f1eaba1e32b", 5 | "crypto": { 6 | "ciphertext": "fc9ddb105b9b24eb8c2e5c37196b59abc5583b57cf3b2599002821a39847533c", 7 | "cipherparams": { 8 | "iv": "5de5b7e17409678f8ef392579c649887" 9 | }, 10 | "cipher": "aes-128-ctr", 11 | "kdf": "scrypt", 12 | "kdfparams": { 13 | "dklen": 32, 14 | "salt": "6520ab68b96f9bb07eba9efdacc6a72c7403cdef79d4e613fc3b3de510f6018b", 15 | "n": 262144, 16 | "r": 8, 17 | "p": 1 18 | }, 19 | "mac": "32d662c5348cff9a776dc96c274b8d6e8db279c7ccc95f7f334ff1a99ca2df05" 20 | } 21 | } -------------------------------------------------------------------------------- /dockers/plasma/passwords.txt: -------------------------------------------------------------------------------- 1 | 3db7e81a5e79b3974994c9d3a6a36bd29c82cf9c 2 | cced7c6f303f1015815fd4deb7fd2f863025af3b 3 | b23e1abae1f62d8012b52334f2f3032edb194d22 4 | d28841139c0e1973280dc6995deae54d4b2ab11e 5 | cbe64fa1af04a60a0f84bcfd0dc1997f839dec59 6 | 9a9fe3f164d5d5198bb3cc1ef87be8ea1119e5e3 7 | 7d5aee3cda0aaddabe1d31376e0e4dfdb2c01eab -------------------------------------------------------------------------------- /documentation/.dockerignore: -------------------------------------------------------------------------------- 1 | */node_modules 2 | *.log 3 | -------------------------------------------------------------------------------- /documentation/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8.11.4 2 | 3 | WORKDIR /app/website 4 | 5 | EXPOSE 3000 35729 6 | COPY ./docs /app/docs 7 | COPY ./website /app/website 8 | RUN yarn install 9 | 10 | CMD ["yarn", "start"] 11 | -------------------------------------------------------------------------------- /documentation/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | 3 | services: 4 | docusaurus: 5 | build: ../ 6 | ports: 7 | - 3000:3000 8 | - 35729:35729 9 | volumes: 10 | - ./docs:/app/docs 11 | - ./website/blog:/app/website/blog 12 | - ./website/core:/app/website/core 13 | - ./website/i18n:/app/website/i18n 14 | - ./website/pages:/app/website/pages 15 | - ./website/static:/app/website/static 16 | - ./website/sidebars.json:/app/website/sidebars.json 17 | - ./website/siteConfig.js:/app/website/siteConfig.js 18 | working_dir: /app/website 19 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_TwoKeyConversionStates.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_TwoKeyConversionStates 3 | title: TwoKeyConversionStates 4 | --- 5 | 6 |

contract TwoKeyConversionStates

Author: Nikola Madjarevic
7 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_TwoKeyTypes.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_TwoKeyTypes 3 | title: TwoKeyTypes 4 | --- 5 | 6 |

contract TwoKeyTypes

7 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_campaign-mutual-contracts_TwoKeyCampaignIncentiveModels.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_campaign-mutual-contracts_TwoKeyCampaignIncentiveModels 3 | title: TwoKeyCampaignIncentiveModels 4 | --- 5 | 6 |

contract TwoKeyCampaignIncentiveModels

Author: Nikola Madjarevic
7 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_donation-campaign-contracts_TwoKeyDonationCampaignType.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_donation-campaign-contracts_TwoKeyDonationCampaignType 3 | title: TwoKeyDonationCampaignType 4 | --- 5 | 6 |

contract TwoKeyDonationCampaignType

Author: Nikola Madjarevic Created at 2/19/19
7 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_interfaces_ITwoKeyDonationCampaignFetchAddresses.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_interfaces_ITwoKeyDonationCampaignFetchAddresses 3 | title: ITwoKeyDonationCampaignFetchAddresses 4 | --- 5 | 6 |

contract ITwoKeyDonationCampaignFetchAddresses

7 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_interfaces_storage-contracts_ITwoKeyAdminStorage.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_interfaces_storage-contracts_ITwoKeyAdminStorage 3 | title: ITwoKeyAdminStorage 4 | --- 5 | 6 |
7 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_interfaces_storage-contracts_ITwoKeyFactoryStorage.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_interfaces_storage-contracts_ITwoKeyFactoryStorage 3 | title: ITwoKeyFactoryStorage 4 | --- 5 | 6 |
7 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_singleton-storage-contracts_TwoKeyAdminStorage.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_singleton-storage-contracts_TwoKeyAdminStorage 3 | title: TwoKeyAdminStorage 4 | --- 5 | 6 |
7 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_singleton-storage-contracts_TwoKeyFactoryStorage.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_singleton-storage-contracts_TwoKeyFactoryStorage 3 | title: TwoKeyFactoryStorage 4 | --- 5 | 6 |
7 | -------------------------------------------------------------------------------- /documentation/docs/api_2key_singleton-storage-contracts_TwoKeyRegistryStorage.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: 2key_singleton-storage-contracts_TwoKeyRegistryStorage 3 | title: TwoKeyRegistryStorage 4 | --- 5 | 6 |
7 | -------------------------------------------------------------------------------- /documentation/website/blog/2017-09-25-testing-rss.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Adding RSS Support - RSS Truncation Test 3 | author: Eric Nakagawa 4 | authorURL: http://twitter.com/ericnakagawa 5 | authorFBID: 661277173 6 | --- 7 | 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 8 | 9 | This should be truncated. 10 | 11 | This line should never render in XML. 12 | -------------------------------------------------------------------------------- /documentation/website/blog/2017-09-26-adding-rss.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Adding RSS Support 3 | author: Eric Nakagawa 4 | authorURL: http://twitter.com/ericnakagawa 5 | authorFBID: 661277173 6 | --- 7 | 8 | This is a test post. 9 | 10 | A whole bunch of other information. 11 | -------------------------------------------------------------------------------- /documentation/website/blog/2017-10-24-new-version-1.0.0.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: New Version 1.0.0 3 | author: Eric Nakagawa 4 | authorURL: http://twitter.com/ericnakagawa 5 | authorFBID: 661277173 6 | --- 7 | 8 | This blog post will test file name parsing issues when periods are present. 9 | -------------------------------------------------------------------------------- /documentation/website/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "scripts": { 3 | "examples": "docusaurus-examples", 4 | "start": "docusaurus-start", 5 | "build": "docusaurus-build", 6 | "publish-gh-pages": "docusaurus-publish", 7 | "write-translations": "docusaurus-write-translations", 8 | "version": "docusaurus-version", 9 | "rename-version": "docusaurus-rename-version" 10 | }, 11 | "devDependencies": { 12 | "docusaurus": "^1.14.4" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /documentation/website/static/css/custom.css: -------------------------------------------------------------------------------- 1 | /* your custom css */ 2 | 3 | @media only screen and (min-device-width: 360px) and (max-device-width: 736px) { 4 | } 5 | 6 | @media only screen and (min-width: 1024px) { 7 | } 8 | 9 | @media only screen and (max-width: 1023px) { 10 | } 11 | 12 | @media only screen and (min-width: 1400px) { 13 | } 14 | 15 | @media only screen and (min-width: 1500px) { 16 | } -------------------------------------------------------------------------------- /documentation/website/static/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2key/contracts/aadccf693c0f8599292bbc1eff8c417081a73e13/documentation/website/static/img/favicon.png -------------------------------------------------------------------------------- /documentation/website/static/img/favicon/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2key/contracts/aadccf693c0f8599292bbc1eff8c417081a73e13/documentation/website/static/img/favicon/favicon.ico -------------------------------------------------------------------------------- /documentation/website/static/img/oss_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2key/contracts/aadccf693c0f8599292bbc1eff8c417081a73e13/documentation/website/static/img/oss_logo.png -------------------------------------------------------------------------------- /flattenContracts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2key/contracts/aadccf693c0f8599292bbc1eff8c417081a73e13/flattenContracts.js -------------------------------------------------------------------------------- /flattenedContracts/TwoKeyDonationCampaignTypeFlattened.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.13; 2 | 3 | contract TwoKeyDonationCampaignType { 4 | enum DonationType {ONE_TIME_DONATION, MONTHLY_DONATION} 5 | } 6 | 7 | -------------------------------------------------------------------------------- /gitSSM.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | git add . 3 | git commit -m 'Sync submodules.' 4 | git push -u 5 | -------------------------------------------------------------------------------- /migrations/1_migrations.js: -------------------------------------------------------------------------------- 1 | /* global artifacts */ 2 | const Migrations = artifacts.require('./Migrations.sol'); 3 | 4 | module.exports = function deploy(deployer) { 5 | deployer.deploy(Migrations) 6 | }; 7 | -------------------------------------------------------------------------------- /mine-only-when-transactions.js: -------------------------------------------------------------------------------- 1 | var mining_threads = 1 2 | 3 | function checkWork() { 4 | if (eth.getBlock("pending").transactions.length > 0) { 5 | if (eth.mining) return; 6 | console.log("== Pending transactions! Mining..."); 7 | miner.start(mining_threads); 8 | } else { 9 | miner.stop(); 10 | console.log("== No transactions! Mining stopped."); 11 | } 12 | } 13 | 14 | eth.filter("latest", function(err, block) { checkWork(); }); 15 | eth.filter("pending", function(err, block) { checkWork(); }); 16 | 17 | checkWork(); -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-03.08.2020-a869681c59f12b9387c636a35d306ea16078d37f.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecodes for changes on plasma network" 17 | echo "Destination for execution: 0xd0043ac71897032d572580ad84359323b5719068" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.6 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaReputationRegistry 1.0.1 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-09.07.2020-591e61fa2176c9eac1a6180ddb813d56c95abfe3.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | doneds 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecodes for changes on plasma network" 17 | echo "Destination for execution: 0xd0043ac71897032d572580ad84359323b5719068" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.4 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-1.3.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "23" "41951000000000002883584" 22 | 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-11.08.2020-setModeratorFeePlasma.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Destination for execution is TwoKeyPlasmaRegistry contract: 0x7bcd4b4e1594882106d384f9ee87725a2be1ca20" 16 | cd ../.. 17 | 18 | python3 generate_bytecode.py setModeratorFeePlasma 5 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-11.1.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "16" "39571000000000006029312" 22 | 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-13.07.2020-fcd7005c27839e359c6561b3451ca9353f24a8bb.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecodes for changes on plasma network" 17 | echo "Destination for execution: 0xd0043ac71897032d572580ad84359323b5719068" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.5 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-14.2.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "21" "39581999999999942328320" 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-16.02.2020-addCoreDev.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecode to add Nikolas address as a core dev on plasma" 17 | echo "Destination for execution: 0xc13c57a5c488211b26c7fb63db091d78d5c3ae47" 18 | cd ../.. 19 | python3 generate_bytecode.py addCoreDevsPlasma 0xa66cdB758e52F51325987b8eE11119019540B5fb 20 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-16.1.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "17" "38950999999999967232000" 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-16.12.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "12,13" "44561999999999951769272,39942000000000057310352" 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-18.05.2020-set-moderator-fee-plasma.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Destination for execution: 0x7bcd4b4e1594882106d384f9ee87725a2be1ca20" 16 | cd ../.. 17 | 18 | python3 generate_bytecode.py setModeratorFeePlasma 2 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-22.10.2020-setModeratorFeePlasmaProd.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Destination for execution is TwoKeyPlasmaRegistry contract: 0x7bcd4b4e1594882106d384f9ee87725a2be1ca20" 16 | cd ../.. 17 | 18 | python3 generate_bytecode.py setModeratorFeePlasma 10 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-23.2.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "22" "41430999999999963037696" 22 | 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-24.1.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "18" "40781999999999988465664" 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-24.12.2019-c2787dfe545c1ac7a6ab398f09c85ebd95092acb.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecodes for changes on plasma network" 17 | echo "TwoKeyCPCCampaignPlasma patch to 1.0.1" 18 | echo "Destination for execution: 0xe4dd40e6da89a5f8adc059ce9f0c5826daf32b64" 19 | cd ../.. 20 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.1 21 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-25.06.2020-ff6581657793fc902f5194771475f877b546cbde.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecodes for changes on plasma network" 17 | 18 | echo "Destination for execution: 0xd0043ac71897032d572580ad84359323b5719068" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.3 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-26.08.2020-a2ae7c79f3382050cfe29d8367ac85dc9cac910d.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecodes for changes on plasma network" 17 | echo "Destination for execution: 0xd0043ac71897032d572580ad84359323b5719068" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.8 21 | python3 generate_bytecode.py approveNewCampaign CPC_NO_REWARDS_PLASMA 1.0.1 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-27.02.2020-5c571ddce0216ebc9910eba5d9e993a13b73bbd7.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecodes for changes on plasma network" 17 | echo "Destination for execution: 0xd0043ac71897032d572580ad84359323b5719068" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-30.12.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "14" "39462000000000057297960" 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-31.12.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "14,15" "39462000000000057297960,39821999999999934570336" 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/prod-plasma/DONE-7.2.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xfd5e5de4787b301739e05853ba31dd194e4f180c" 20 | 21 | python3 generate_bytecode.py declareEpochs "19,20" "39841999999999932891136,40090999999999961989120" 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-03.02.2020-change-2key-release-date.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Set 2KEY tokens release date to 20th April 2020 (UNIX = 1587384000)" 17 | echo "TwoKeyAdmin contract proxy address on production: 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py setNewTwoKeyRewardsReleaseDate 1587384000 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-05.08.2020-a79bbe153f163547fdcb7e6bcbdf751ff53b45e6.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | 18 | cd ../.. 19 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.13 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-06.09.2020-36c9133d0e67328dbd1ef32a991190a034a9ce2c.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | 18 | cd ../.. 19 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.15 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-07.06.2020-a5126a3478ff2d95dadc6d861d7b76a20ddaadbf.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | 18 | cd ../.. 19 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.7 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-09.07.2020-591e61fa2176c9eac1a6180ddb813d56c95abfe3.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyBaseReputationRegistry 1.0.1 22 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.4 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-1.04.2020-transfer-cobak-2KEY-to-admin.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "send 2KEY for testing distribution campaigns to admin account" 17 | echo "TwoKeyAdmin contract proxy address on production: 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py transfer2KeyTokens 0xD19b86369f0da8692774773E84D5A01394C02cF7 5500000 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-11.08.2020-setModeratorFeePublic.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "Set moderator fee to 5% on public contracts" 19 | 20 | echo "Destination for execution is TwoKeyAdmin address : 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py setModeratorFeePublic 5 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-12.07.2020-withdraw-from-admin.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "Set liquidity params through TwoKeyAdmin contract on Kyber network" 19 | 20 | echo "Destination for execution is TwoKeyAdmin address : 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py withdrawUpgradableExchangeDAICollectedFromAdminContract 0xd19b86369f0da8692774773e84d5a01394c02cf7 0 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-13.04.2020-transfer-SAFT-2KEY-to-admin.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "send 2KEY for testing distribution campaigns to admin account" 17 | echo "TwoKeyAdmin contract proxy address on production: 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py transfer2KeyTokens 0xD19b86369f0da8692774773E84D5A01394C02cF7 60000000 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-14.01.2021-278942c731ca025fbb0a566f078bf53b318458b9.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyExchangeRateContract 1.0.2 22 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.22 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-15.06.2020-withdraw-dai-from-upgradable-exchange-to-admin.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | cd ../.. 18 | 19 | 20 | echo "Destination for execution of 1 time function calls: 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 21 | 22 | python3 generate_bytecode.py withdrawDAIFromUpgradableExchangeToAdmin 0 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-15.06.2020-withdraw-kyber-fees-from-reserve.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "Destination for execution is TwoKeyAdmin address : 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 19 | 20 | cd ../.. 21 | 22 | python3 generate_bytecode.py pullKyberFeesFromReserve 0x00Cd2388C86C960A646D640bE44FC8F83b78cEC9 0x063453e3ed9ded626324C2CB9C72e062E4d7089E 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-15.10.2020-burn-2KEY-tokens.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Burn 2KEY tokens on either TwoKeyEconomy contract or https://etherscan.io/address/0x0000000000000000000000000000000000000001" 17 | echo "TwoKeyAdmin contract proxy address on production: 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py transfer2KeyTokens 0x0000000000000000000000000000000000000001 803495 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-17.05.2020-withdrawToken.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Destination for execution is TwoKeyAdmin address : 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py withdrawTokensFromReserve 0x00Cd2388C86C960A646D640bE44FC8F83b78cEC9 0xe48972fcd82a274411c01834e2f031d4377fa2c0 10000000000000000000 0x31cf9c7847c979313fe27eadfcc847a8a0252d86 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-19.01.2020-bf0b3d65b1e1fac5c42f72d61cb9a495ada29d18.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 18 | 19 | cd ../.. 20 | 21 | echo "Bytecodes for upgrading contracts: " 22 | 23 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.8 24 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-19.05.2020-disableTrade()-kyber.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "Set liquidity params through TwoKeyAdmin contract on Kyber network" 19 | 20 | echo "Destination for execution is TwoKeyAdmin address : 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py disableKyberTrade 0x00Cd2388C86C960A646D640bE44FC8F83b78cEC9 25 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-19.05.2020-enableTrade()-kyber.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "Set liquidity params through TwoKeyAdmin contract on Kyber network" 19 | 20 | echo "Destination for execution is TwoKeyAdmin address : 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py enableKyberTrade 0x00Cd2388C86C960A646D640bE44FC8F83b78cEC9 25 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-19.11.2020-2c20eb63c2d5818351eeb6c3841342515c52253e.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.20 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-21.05.2020-99153de61d04d5f63c003c5f5e3487a31d53d76d.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Patch for Kyber withdraw tokens" 18 | 19 | cd ../.. 20 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 21 | 22 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.4 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-21.05.2020-setKyberReserveContract.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Destination for execution is TwoKeyAdmin address : 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py setKyberReserveContract 0x00Cd2388C86C960A646D640bE44FC8F83b78cEC9 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-22.06.2020-a0d504573c86742a8e56d75b2383016c8db31d94.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | 18 | cd ../.. 19 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.9 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-22.10.2020-setModeratorFeePublicProd.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "Set moderator fee to 5% on public contracts" 19 | 20 | echo "Destination for execution is TwoKeyAdmin address : 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py setModeratorFeePublic 10 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-23.04.2020-transfer-TDE-2KEY-to-admin.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "send 2KEY for testing distribution campaigns to admin account" 17 | echo "TwoKeyAdmin contract proxy address on production: 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py transfer2KeyTokens 0xD19b86369f0da8692774773E84D5A01394C02cF7 80000000 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-24.05.2020-889ae14bada1274aca4c8c60aaa7b493896b04c8.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | 18 | cd ../.. 19 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyFeeManager 1.0.3 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-24.06.2020-6bad13fdc6c4fc7453d756bb546e896b1c33355d.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | 18 | cd ../.. 19 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.10 22 | python3 generate_bytecode.py upgradeContract TwoKeyAdmin 1.0.11 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-24.12.2019-c2787dfe545c1ac7a6ab398f09c85ebd95092acb.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecodes for changes on public network" 17 | echo "Acquisition and Donation patch to 1.0.2" 18 | echo "Destination for execution: 0x75aa29aecdb5552ae139c6f28bbeb1a594b23728" 19 | cd ../.. 20 | python3 generate_bytecode.py approveNewCampaign DONATION 1.0.2 21 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.2 22 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-25.06.2020-ff6581657793fc902f5194771475f877b546cbde.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | 18 | cd ../.. 19 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyEventSource 1.0.4 22 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.3 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-26.10.2020-aaaa9d54eea07c5bb40263788ba9e3e662a2e14c.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.17 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-27.02.2020-5c571ddce0216ebc9910eba5d9e993a13b73bbd7.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | 18 | cd ../.. 19 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.23 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-28.10.2020-5b0a0f4dd3980db8299275c160e200c36230e425.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.18 22 | python3 generate_bytecode.py upgradeContract TwoKeyBudgetCampaignsPaymentsHandler 1.0.1 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-29.03.2020-change-2key-release-date.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Set 2KEY tokens release date to 12th May 12:01pm noon 2020 (UNIX = 1589284860)" 17 | echo "TwoKeyAdmin contract proxy address on production: 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py setNewTwoKeyRewardsReleaseDate 1589284860 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-29.03.2020-transfer-test-2KEY-to-admin.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "send 2KEY for testing distribution campaigns to admin account" 17 | echo "TwoKeyAdmin contract proxy address on production: 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py transfer2KeyTokens 0xD19b86369f0da8692774773E84D5A01394C02cF7 10000 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-29.06.2020-24ad97986dc8991f2310ecce071bd21ede4fe3d0.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | 18 | cd ../.. 19 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyFeeManager 1.0.6 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-29.10.2020-82ddf2c7e633fef18b697cd15e63b327e71b516f.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution: 0x60ece4a5be3fd7594e9f24c2948cce5ce3c6dde7" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyBudgetCampaignsPaymentsHandler 1.0.2 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/prod-public/DONE-8.04.2020-transfer-sm-bounty-ambassadors-2KEY-to-admin.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "send 2KEY for testing distribution campaigns to admin account" 17 | echo "TwoKeyAdmin contract proxy address on production: 0x31cf9c7847c979313fe27eadfcc847a8a0252d86" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py transfer2KeyTokens 0xD19b86369f0da8692774773E84D5A01394C02cF7 1000000 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/16.1.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | 20 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xbe2dcd00bd73a91278b5a1b3153d65b2f1f46548" 21 | python3 generate_bytecode.py declareEpochs "16" "4021999999999997902848" -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-02.03.2020-update-moderator-fee.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Destination for execution: 0x52f15890accdf9dac9b98f5afb177d83a4211e08" 16 | cd ../.. 17 | 18 | python3 generate_bytecode.py setModeratorFeePlasma 2 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-02.06.2020-c2be65be6cc65553e81444d96a1c2b71425c3991.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.5 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-07.07.2020-8fabe9a2822e35b1d3c10897c6d0388815682f06.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaReputationRegistry 1.0.1 22 | 23 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.8 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-07.07.2020-upgrade-cpcplasma.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.9 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-11.08.2020-setModeratorFeePlasma.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution on plasma is TwoKeyPlasmaRegistry contract: 0x52f15890accdf9dac9b98f5afb177d83a4211e08" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py setModeratorFeePlasma 5 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-12.07.2020-c37d8e3295bb6525ad0ee16d47d84cf902cfc395.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaReputationRegistry 1.0.2 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-12.1.2020-declareEpochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | 20 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xbe2dcd00bd73a91278b5a1b3153d65b2f1f46548" 21 | python3 generate_bytecode.py declareEpochs "10,11,12,13,14,15" "2842000000000003670016,4922000000000000000000,3922000000000000524288,2851000000000003932160,1510999999999997902848,2911000000000002883584" 22 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-12.10.2020-e6038422891e50902855fc1f7cdc475315bfff1f.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.18 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-14.07.2020-21ec81634a8f209da35e7f3ec881c1d124c1579f.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.11 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-15.02.2020-uniswapPD+48hrsRequirement.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.21 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-16.07.2020-1ad3884ebc08cc31af706859afa5cb5a2610a3c1.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.12 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-18.03.2020-ef14a55d2581b5ebecd111bce878da0639d76240.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.2 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-19.08.2020-73d21a72eda8f3691bf077264e2d7c0e5936ca05.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.15 22 | python3 generate_bytecode.py approveNewCampaign CPC_NO_REWARDS_PLASMA 1.0.1 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-22.10.2020-setModeratorFeePlasma.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution on plasma is TwoKeyPlasmaRegistry contract: 0x52f15890accdf9dac9b98f5afb177d83a4211e08" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py setModeratorFeePlasma 10 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-24.06.2020-18dc1cbc47d3f669cce0be7cb5823c157e071396.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.7 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-24.06.2020-35a1deaa38938e566aed4cfd9d820b5542b5d3b3.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.6 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-26.02.2020-16e6438ce6bc9f4541e23fcf386abb919edbf0e8.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyPlasmaRegistry patch to version 1.0.2" 17 | 18 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 19 | 20 | cd ../.. 21 | 22 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaRegistry 1.0.2 23 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-26.05.2020-2b01c2355c281132d75fba4a1a83bbc411683a5e.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaEvents 1.0.5 22 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaRegistry 1.0.4 23 | 24 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.4 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-30.07.2020-aa48bdce32ec903a00839441661fb80b2f70e269.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaReputationRegistry 1.0.3 22 | 23 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.13 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/staging-plasma/DONE-31.10.2020-4dcd48ce0c0a064b697870ba45adea35005b2508.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0x8a84df5f7ed68f7087c9e3f54b49259c37726560" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaEventSource 1.0.5 22 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaBudgetCampaignsPaymentsHandler 1.0.1 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/06.12.2020-90a7ca56f29ce69e5d9b3ac9911811019f0cb495.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|"s 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.27 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-05.08.2020-0345a4fd55dab7202ff2e0f112050b1411bf7504.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.15 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-08.07.2020-67ecefc538fc299ccd3a7ddc9906d6735a3c5e32.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.14 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-11.03.2020-73b7bd20c52d9efa4fe106b1023cf650dcfe0bb3.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyFeeManager 1.0.1 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-11.06.2020-withdraw-kyber-fees.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "Destination for execution is TwoKeyAdmin address : 0x5eb1949424999327093d7a06619fc24170a9864e" 19 | 20 | cd ../.. 21 | 22 | python3 generate_bytecode.py pullKyberFeesFromReserve 0xdAfF796B4D657AA40E879BBBf3C5653392275E77 0xFA3DEe770dfA7bE73D8BE2664e41dd8Ae75c74b6 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-11.08.2020-setModeratorFeePublic.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution on public is TwoKeyAdmin contract: 0x5eb1949424999327093d7a06619fc24170a9864e" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py setModeratorFeePublic 5 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-15.01.2020-b0196b0b949dc7515cdb3e6682aeaa8b708a6e03.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.31 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-15.02.2020-uniswapPriceDiscovery.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.30 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-15.07.2020-9322485f5329e1f94351781b6f450d73dfe4ed4c.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.25 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-15.10.2020-27bcf5b6ade407abb8a4dc5d902f70017cbdcbc1.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.20 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-18.03.2020-ef14a55d2581b5ebecd111bce878da0639d76240.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.4 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-22.06.2020-97aae0220e4e1eeb7044047681b1aea3df917203.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.10 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-22.10.2020-setModeratorFeePublic.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | 17 | echo "Destination for execution on public is TwoKeyAdmin contract: 0x5eb1949424999327093d7a06619fc24170a9864e" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py setModeratorFeePublic 10 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-23.06.2020-rebalance-hack.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyEventSource 1.0.8 22 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.10 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-24.06.2020-35a1deaa38938e566aed4cfd9d820b5542b5d3b3.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.12 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-24.06.2020-d7c154246e2f4b3b4fb8debe9635bc1e51c2b4a2.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.11 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-24.12.2019-db9d5de0294dfe2832a6a86313d4e63d6893b487.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | echo "Generating bytecodes for changes on public network" 17 | echo "Acquisition and Donation patch to 1.0.5" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | python3 generate_bytecode.py approveNewCampaign DONATION 1.0.5 21 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.5 22 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-25.10.2020-declareEpochsSetSignatory.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | 20 | echo "Destination for execution on plasma is TwoKeyParticipationMiningPool contract: 0x676b1f72d301ced9465893c410cb5c797fd721d4" 21 | python3 generate_bytecode.py setSignatoryAddress 0xd43f37e636a5b434827ea315b72642e5f00d7bdb 22 | -------------------------------------------------------------------------------- /scripts/deployments/staging-public/DONE-29.07.2020-be2f65bd9dd3f5dcae13a9ac77a40145812b7169.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #!/usr/bin/env bash 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for changes on public network" 18 | echo "Destination for execution: 0x178a57d07d77bd6e2de7236d67a399e2f10c46d9" 19 | cd ../.. 20 | 21 | 22 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.13 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-01.05.2020-37737f5d195fa0116a945aa6b87f2d0d6794c925.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "CPC_PLASMA campaigns new version: 1.0.32" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.32 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-01.09.2020-78c89a1de9b8b3e7d9eb80de31b6b4cd2659d5b7.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.53 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-02.09.2020-d8fa49b1b2c7a7124782c5760f79859c45df0372.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.54 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-029.07.2020-025ee2d8b0c37d2de80b281827094e687fd7c025.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaReputationRegistry 1.0.4 22 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.49 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-03.08.2020-fb5dbe8c22eb2b9334bb75b12a272ce1a4b670ec.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaFactory 1.0.4 22 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaReputationRegistry 1.0.5 23 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.50 24 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-04.08.2020-7a406b7c07bb11f6301ffd9ca806ab5ad5bf27e7.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaFactory 1.0.5 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-04.11.2020-5ab1fb50ba5bd08c922a5dc04e045e65a587476e.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaEventSource 1.0.13 22 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaParticipationRewards 1.0.2 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-05.02.2020-a059d96a23b5eaf1ca3fda5a454d0971bffa6eb0.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.18" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.18 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-05.07.2020-f4513d33a8953d2d8b3c2bc7a8d8e85445b6e4c6.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "CPC_PLASMA campaigns new version: 1.0.32" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.38 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-08.03.2020-5f17466ec567f9599f5718724d489ff716144c23.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.24" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.24 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-08.07.2020-add-payment-state.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "CPC_PLASMA campaigns new version: 1.0.32" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.40 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-09.06.2020-537d88a0333d3f25417edb96cb66b5de260fd932.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "CPC_PLASMA campaigns new version: 1.0.32" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.34 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-10.03.2020-c5a6ef7e6e789e6fbdb7df7e84008e0acf7044b1.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.26" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.26 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-10.06.2020-06f8882d552f8197dd8dbaba517b09ecd376b9a4.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "CPC_PLASMA campaigns new version: 1.0.32" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.35 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-10.08.2020-8458ba7c3cf87398f8edeacf3c4aac2e81d86661.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.51 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-12.02.2020-e2ee9ceb000888745c3f19c063b88e2ed4ea86c8.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.19" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.19 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-12.10.2020-ed7d9ef08a4662486cab17a9fe679ea18d639e3f.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.58 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-13.01.2020-cc024f0eeebd592fa48804d009fdf8defcbd0cbd.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for patching plasma contracts" 18 | cd ../.. 19 | echo "Patch CPC_PLASMA campaign to 1.0.12" 20 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.12 21 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-15.04.2020-ce035d41aaed0d41693d22fa64b8db962ef6c56a.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "TwoKeyPlasmaRegistry new version: 1.0.5" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaRegistry 1.0.5 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-15.07.2020-0f7da0ef9bf03c423587550b3da3e72d9cc20aee.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.43 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-16.02.2020-24hours-campaign-ending.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.63 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-17.06.2020-368e7a5ef5f8ae1662599b2d18d13e4dbbb38066.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "CPC_PLASMA campaigns new version: 1.0.32" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.36 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-17.09.2020-04731d11b5a6eb4cdb6d15f548fdc8e8190504b2.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaBudgetCampaignsPaymentsHandler 1.0.4 22 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaEventSource 1.0.7 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-18.11.2020-bytecodes-to-exec.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | spinner() { 3 | chars="/-\|" 4 | 5 | for (( j=0; j< $1; j++ )); do 6 | for (( i=0; i<${#chars}; i++ )); do 7 | sleep 0.5 8 | echo -en "${chars:$i:1}" "\r" 9 | done 10 | done 11 | } 12 | 13 | spinner 2 14 | 15 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 16 | 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaRegistry 1.0.9 20 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaReputationRegistry 1.0.6 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.62 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-18.11.2020-setSignatoryAddress.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | cd ../.. 17 | 18 | echo "Destination for execution is TwoKeyPlasmaParticipationRewards address: 0xc8f19c88c9335880d8c4a165acdb7499f444dc6d" 19 | python3 generate_bytecode.py setSignatoryAddress 0xd43f37e636a5b434827ea315b72642e5f00d7bdb 20 | 21 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-19.02.2020-795cd6d7614429772f3c6d64486b4f4ee4a5e09b.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.19" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.20 22 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaRegistry 1.0.3 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-19.03.2020-2c57a67e2bba44a69c2013c5047ef1c3617686ba.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.27" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.27 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-19.05.2020-d9f21fac90e53459189484fce6490235f08bf81d.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "CPC_PLASMA campaigns new version: 1.0.32" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaRegistry 1.0.8 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-19.07.2020-31e527887ef32ddcbc27010dd886e190c9f0e3dd.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaReputationRegistry 1.0.3 22 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.44 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-19.11.2020-ca6e38ae0e67dcecc85db203cdf2baa0259a71e2.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaParticipationRewards 1.0.3 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-21.01.2020-16a6d3155bfea3f085f113fea18c94fda9d5e492.bash: -------------------------------------------------------------------------------- 1 | 2 | #!/usr/bin/env bash 3 | 4 | 5 | spinner() { 6 | chars="/-\|" 7 | 8 | for (( j=0; j< $1; j++ )); do 9 | for (( i=0; i<${#chars}; i++ )); do 10 | sleep 0.5 11 | echo -en "${chars:$i:1}" "\r" 12 | done 13 | done 14 | } 15 | 16 | spinner 2 17 | 18 | echo "Generating bytecodes for patching plasma contracts" 19 | cd ../.. 20 | echo "Patch CPC_PLASMA campaign to 1.0.13" 21 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 22 | 23 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.13 24 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-21.04.2020-80c32bf923d7656e5b3b43b27dbc80e040b89ca1.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "TwoKeyPlasmaRegistry new version: 1.0.6" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaRegistry 1.0.6 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-21.09.2020-90cfe39a61e78d5664b82f3d282442e7762224a1.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaBudgetCampaignsPaymentsHandler 1.0.6 22 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaEventSource 1.0.8 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-22.01.2020-afd124897969c62924a9e06a14478bd8d6562b68.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Generating bytecodes for patching plasma contracts" 18 | cd ../.. 19 | echo "Patch CPC_PLASMA campaign to 1.0.15" 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.15 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-22.09.2020-b5d378308220f1825fe8321560a96c59200d676e.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaBudgetCampaignsPaymentsHandler 1.0.7 22 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.57 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-22.10.2020-setModeratorFeePlasma.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "Destination for execution on public is TwoKeyPlasmaRegistry contract: 0x27bb4f1ec6b8e12afc382003d5e7f94f89ab52e4" 19 | 20 | 21 | cd ../.. 22 | 23 | python3 generate_bytecode.py setModeratorFeePlasma 10 24 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-23.07.2020-24ae3fc8be9def6443012c8fd7cd1c9406a3db02.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.47 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-23.11.2020-1b1678130af37495ed689424a1d0b4af104adcb2.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaParticipationRewards 1.0.5 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-23.11.2020-83787c32558fc247f631c57f92e2c96fc7513578.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaParticipationRewards 1.0.4 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-23.11.2020-push-epochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xc8f19c88c9335880d8c4a165acdb7499f444dc6d" 20 | 21 | python3 generate_bytecode.py declareEpochs "2,3,4" "10130000000000000000000,2720000000000000000000,2250000000000000000000" 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-24.02.2020-ef37cad11717f99867b2378eb142511f204b7376.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.19" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.21 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-24.12.2019-fdc6c845fd21caf90dc2c7000fb054284a581c5f.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "Generating bytecodes for changes on plasma network -> TwoKeyCPCCampaignPlasma patch to version 1.0.10" 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | cd ../.. 19 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.10 20 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-25.02.2020-523ec12c573aa608af40d0ec627fe3e68269e6b3.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.19" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.22 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-25.11.2020-redeclareEpoch.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | cd ../.. 17 | 18 | 19 | 20 | echo "Destination for execution is TwoKeyPlasmaParticipationRewards address: 0xc8f19c88c9335880d8c4a165acdb7499f444dc6d" 21 | python3 generate_bytecode.py redeclareEpochRewards 10 650999999999999226264 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-26.02.2020-de80c956411340721fc6dff27622fac8240a1c49.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.19" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.23 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-26.05.2020-1dd6ceb646345270e127aa633f827c75651d1e05.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaEvents 1.0.6 22 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.33 23 | 24 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-26.1.2020 redeclare epoch 10.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | for (( j=0; j< $1; j++ )); do 6 | for (( i=0; i<${#chars}; i++ )); do 7 | sleep 0.5 8 | echo -en "${chars:$i:1}" "\r" 9 | done 10 | done 11 | } 12 | 13 | spinner 2 14 | cd ../.. 15 | 16 | echo "Destination for execution is TwoKeyPlasmaParticipationRewards address: 0xc8f19c88c9335880d8c4a165acdb7499f444dc6d" 17 | python3 generate_bytecode.py redeclareEpochRewards 10 650999999999999213568 -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-27.02.2020-update-moderator-fee.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Destination for execution: 0x27bb4f1ec6b8e12afc382003d5e7f94f89ab52e4" 16 | cd ../.. 17 | 18 | python3 generate_bytecode.py setModeratorFeePlasma 2 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-28.06.2020-1efd4db8ef67d436de8e4f957a306e089d0bcfd8.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "CPC_PLASMA campaigns new version: 1.0.32" 18 | 19 | 20 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.37 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-28.07.2020-5eec99af595c6311dd44585cf2436e4d59cdec6f.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.48 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-29.10.2020-test-declaring-epochs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | cd ../.. 18 | 19 | echo "Destination for execution on plasma is TwoKeyPlasmaParticipationRewards contract: 0xc8f19c88c9335880d8c4a165acdb7499f444dc6d" 20 | 21 | python3 generate_bytecode.py declareEpochs "1" "10521000000000000000000" 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-30.01.2020-ec1eca37fafa379833f5b09bb9d0302b95734694.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | echo "TwoKeyCPCCampaignPlasma patch to version 1.0.16" 17 | 18 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py approveNewCampaign CPC_PLASMA 1.0.16 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-plasma/DONE-30.09.2020-374f9bf251f6f7dd6ba3817a6b17dc193f614f88.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | echo "Destination for execution: 0xc96a16b5064797a883f12780400a5e8e5d5d4d20" 18 | 19 | cd ../.. 20 | 21 | python3 generate_bytecode.py upgradeContract TwoKeyPlasmaEventSource 1.0.10 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-01.05.2020-37737f5d195fa0116a945aa6b87f2d0d6794c925.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.36 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.37 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-03.03.2020-e06fe7a7bd4f924f861b63bb33e63332216598fd.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyAdmin 1.0.9 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-03.08.2020-fb5dbe8c22eb2b9334bb75b12a272ce1a4b670ec.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.22 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.51 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-03.09.2020-1e447b77e798c8e1cff497feeeb6be194c6060d6.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.56 20 | 21 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-04.02.2020-22f036cb4c1959df38bc1ee412902e296a65fa26.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyFeeManager 1.0.7 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-05.05.2020-54029db007c1c73a8c9324b0c9b091d1203bc05d.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.11 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-05.05.2020-84cc6021499e8dbb0dc2f9dbd1c84a3442fa473e.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.38 20 | python3 generate_bytecode.py upgradeContract TwoKeyFeeManager 1.0.12 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-05.10.2020-ff674a9cb6811c786b91685592a87fe0c3ffa04c.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyBudgetCampaignsPaymentsHandler 1.0.6 20 | 21 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-06.02.2020-0b5bd0f134da5bc5f355619ccf007e08b047181a.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py approveNewCampaign DONATION 1.0.22 20 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.22 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-06.02.2020-322ed515cc56b7ee58d15b758201afcfcc9415bf.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py approveNewCampaign DONATION 1.0.24 20 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.24 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-06.02.2020-7ee76283739d025374d9d2a7647e28dfb1aedf6a.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py approveNewCampaign DONATION 1.0.23 20 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.23 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-06.08.2020-dbb06318a246d39fae19a89cf2825e9274b895f2.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.23 20 | 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-07.02.2020-ca7ee9b3bf02f57948e690160c6a74765e860dd5.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py approveNewCampaign DONATION 1.0.25 20 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.25 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-08.03.2020-5f17466ec567f9599f5718724d489ff716144c23.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | 15 | spinner 2 16 | echo "Generating bytecodes for changes on public network" 17 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.29 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-08.04.2020-68b1757ab7591e1fa16930929616178b9c6daaad.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "TwoKeyAdmin new version: 1.0.14" 19 | 20 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py upgradeContract TwoKeyAdmin 1.0.14 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-08.07.2020-add-payment-state.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | ange 1.0.18 19 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.45 20 | 21 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-09.06.2020-de49d05cc3e9578f007ebb4a8fbc24c06aa147c1.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyAdmin 1.0.24 20 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-09.09.2020-participation-mining-bytecode.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecode for method registerParticipationMiningEpoch(epochId,amount)" 16 | echo "Destination for execution is TwoKeyParticipationMiningPool: 0xa6b9ee17f7281f2a6d327ddea2ae812c7439ef36" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py generateNewParticipationEpoch 1 10860000000000019922944 20 | 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-10.03.2020-c5a6ef7e6e789e6fbdb7df7e84008e0acf7044b1.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | 15 | spinner 2 16 | echo "Generating bytecodes for changes on public network" 17 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.30 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-10.08.2020-8458ba7c3cf87398f8edeacf3c4aac2e81d86661.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.25 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.52 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-11.02.2020-1d1d2926c561a78b1d249327321a9e5975f97c26.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | 15 | spinner 2 16 | echo "Generating bytecodes for changes on public network" 17 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.21 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-11.03.2020-807f90534e536f12cf53cc594403debe40145f53.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | 20 | python3 generate_bytecode.py upgradeContract TwoKeyFeeManager 1.0.9 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-11.08.2020-cc532b8d349e40fa8c621fc2647cc9ba88fdaf92.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeySignatureValidator 1.0.3 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-12.01.2021-fix-upgradable-exchange.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.39 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-14.10.2020-21c212ce49ece80a85a40b1b9ef6d5c27e68c9c8.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.30 20 | 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-16.02.2020-uniswap-pd.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.41 20 | 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-16.03.2020-2ab82dbc0d8ff27345362e88751e04ee4bfba561.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | 15 | spinner 2 16 | echo "Generating bytecodes for changes on public network" 17 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.31 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-18.08.2020-7adebe45016da7b28d5c547a7796814001088897.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyExchangeRateContract 1.0.1 20 | 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-18.11.2020-bytecodes-to-exec.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyParticipationMiningPool 1.0.7 20 | 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-18.11.2020-setSignatoryAddress.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | 16 | cd ../.. 17 | 18 | echo "Destination for execution is TwoKeyParticipationMiningPool address: 0xa6b9ee17f7281f2a6d327ddea2ae812c7439ef36" 19 | 20 | python3 generate_bytecode.py setSignatoryAddress 0xd43f37e636a5b434827ea315b72642e5f00d7bdb 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-19.03.2020-2c57a67e2bba44a69c2013c5047ef1c3617686ba.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | 15 | spinner 2 16 | echo "Generating bytecodes for changes on public network" 17 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.32 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-19.05.2020-d9f21fac90e53459189484fce6490235f08bf81d.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyAdmin 1.0.21 20 | python3 generate_bytecode.py upgradeContract TwoKeyRegistry 1.0.6 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-19.07.2020-31e527887ef32ddcbc27010dd886e190c9f0e3dd.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyBaseReputationRegistry 1.0.5 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.49 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-20.05.2020-9d75b9f17c66098c6b5e790a03676b3d4ac912b3.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyEventSource 1.0.13 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-21.04.2020-80c32bf923d7656e5b3b43b27dbc80e040b89ca1.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "TwoKeyAdmin new version: 1.0.18" 19 | 20 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 21 | 22 | cd ../.. 23 | 24 | python3 generate_bytecode.py upgradeContract TwoKeyAdmin 1.0.18 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-21.10.2020-3bc6266dace4f835c7794182536e35d7459d84cf.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.32 20 | 21 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-22.06.2020-2ce4b295be3356b8e6d75bbb78cf664d5e8b0a8d.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyUpgradableExchange 1.0.16 20 | 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-22.09.2020-b5d378308220f1825fe8321560a96c59200d676e.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.57 20 | 21 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-22.10.2020-setModeratorFeePublic.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | cd ../.. 16 | echo "Destination for execution on public is TwoKeyAdmin contract: 0x8430db5eba7745eab1904d173129b7965190055a" 17 | python3 generate_bytecode.py setModeratorFeePublic 10 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-23.04.2020-60290c99a413239dacd6bc8d1ccd0bcabc5698ee.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | spinner() { 5 | chars="/-\|" 6 | 7 | for (( j=0; j< $1; j++ )); do 8 | for (( i=0; i<${#chars}; i++ )); do 9 | sleep 0.5 10 | echo -en "${chars:$i:1}" "\r" 11 | done 12 | done 13 | } 14 | 15 | spinner 2 16 | 17 | 18 | echo "CPC_PUBLIC campaigns new version: 1.0.35" 19 | 20 | 21 | 22 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 23 | 24 | cd ../.. 25 | 26 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.35 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-26.02.2020-de80c956411340721fc6dff27622fac8240a1c49.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | 15 | spinner 2 16 | echo "Generating bytecodes for changes on public network" 17 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 18 | cd ../.. 19 | 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.26 21 | python3 generate_bytecode.py upgradeContract TwoKeyFactory 1.0.4 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-27.01.2020-0x95c6bd38200de9756a3eec3f48e16875cc7f9aff.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyFeeManager 1.0.3 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-29.07.2020-025ee2d8b0c37d2de80b281827094e687fd7c025.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution of contracts patches: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py upgradeContract TwoKeyBaseReputationRegistry 1.0.6 20 | python3 generate_bytecode.py approveNewCampaign CPC_PUBLIC 1.0.50 21 | 22 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/DONE-30.01.2020-c6eb19e85bf5ffd9128ed43538be8478f469bedc.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecodes for changes on public network" 16 | echo "Destination for execution: 0xf4797416e6b6835114390591d3ac6a531a061396" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py approveNewCampaign DONATION 1.0.14 20 | python3 generate_bytecode.py approveNewCampaign TOKEN_SELL 1.0.14 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /scripts/deployments/test-public/participation-mining-bytecode.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | spinner() { 4 | chars="/-\|" 5 | 6 | for (( j=0; j< $1; j++ )); do 7 | for (( i=0; i<${#chars}; i++ )); do 8 | sleep 0.5 9 | echo -en "${chars:$i:1}" "\r" 10 | done 11 | done 12 | } 13 | 14 | spinner 2 15 | echo "Generating bytecode for method registerParticipationMiningEpoch(epochId,amount)" 16 | echo "Destination for execution is TwoKeyParticipationMiningPool: 0xa6b9ee17f7281f2a6d327ddea2ae812c7439ef36" 17 | cd ../.. 18 | 19 | python3 generate_bytecode.py generateNewParticipationEpoch 20 | 21 | 22 | -------------------------------------------------------------------------------- /scripts/verify-deployment.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | printf "1. Extract latest contracts from 2key-protocol \n" 4 | rm -rf build/ 5 | yarn run deploy --extract 6 | 7 | 8 | start=`date +%s` 9 | 10 | printf "\n 2. Run verification script" 11 | node verifyDeployment.js 12 | 13 | end=`date +%s` 14 | runtime=$((end-start)) 15 | 16 | printf "\n ✨ Done is $runtime seconds. ✨" 17 | 18 | --------------------------------------------------------------------------------