TwoKey documentation

TwoKey documentation

  • Docs

›2KEY / INTERFACES

2KEY

  • Migrations
  • Ownable
  • TwoKeyConversionStates
  • TwoKeyConverterStates
  • TwoKeyTypes
  • UpgradabilityProxyAcquisition

2KEY / ACQUISITION-CAMPAIGN-CONTRACTS

  • TwoKeyAcquisitionCampaignERC20
  • TwoKeyAcquisitionLogicHandler
  • TwoKeyConversionHandler
  • TwoKeyPurchasesHandler

2KEY / CAMPAIGN-MUTUAL-CONTRACTS

  • ArcERC20
  • TwoKeyCampaign
  • TwoKeyCampaignConversionHandler
  • TwoKeyCampaignIncentiveModels
  • TwoKeyCampaignLogicHandler

2KEY / DONATION-CAMPAIGN-CONTRACTS

  • InvoiceTokenERC20
  • TwoKeyDonationCampaign
  • TwoKeyDonationCampaignType
  • TwoKeyDonationConversionHandler
  • TwoKeyDonationLogicHandler

2KEY / ERC20

  • ERC20

2KEY / INTERFACES

  • IBancorContract
  • IERC20
  • IGetImplementation
  • IHandleCampaignDeployment
  • IKyberNetworkProxy
  • IMaintainingPattern
  • IStructuredStorage
  • ITwoKeyAcquisitionCampaignERC20
  • ITwoKeyAcquisitionLogicHandler
  • ITwoKeyAdmin
  • ITwoKeyBaseReputationRegistry
  • ITwoKeyCampaign
  • ITwoKeyCampaignGetReferrers
  • ITwoKeyCampaignPublicAddresses
  • ITwoKeyCampaignValidator
  • ITwoKeyConversionHandler
  • ITwoKeyConversionHandlerGetConverterState
  • ITwoKeyDonationCampaign
  • ITwoKeyDonationCampaignFetchAddresses
  • ITwoKeyDonationConversionHandler
  • ITwoKeyDonationLogicHandler
  • ITwoKeyEventSource
  • ITwoKeyEventSourceEvents
  • ITwoKeyExchangeRateContract
  • ITwoKeyMaintainersRegistry
  • ITwoKeyPlasmaEvents
  • ITwoKeyPlasmaRegistry
  • ITwoKeyPurchasesHandler
  • ITwoKeyReg
  • ITwoKeyRegistry
  • ITwoKeyRegistryEvents
  • ITwoKeySingletoneAddressStorage
  • ITwoKeySingletoneRegistryFetchAddress
  • ITwoKeySingletonesRegistry
  • ITwoKeyWeightedVoteContract
  • IUpgradableExchange

2KEY / INTERFACES / STORAGE-CONTRACTS

  • ITwoKeyAdminStorage
  • ITwoKeyBaseReputationRegistryStorage
  • ITwoKeyCampaignValidatorStorage
  • ITwoKeyCommunityTokenPoolStorage
  • ITwoKeyDeepFreezeTokenPoolStorage
  • ITwoKeyEventSourceStorage
  • ITwoKeyExchangeRateContractStorage
  • ITwoKeyFactoryStorage
  • ITwoKeyLongTermTokenPoolStorage
  • ITwoKeyMaintainersRegistryStorage
  • ITwoKeyPlasmaEventsStorage
  • ITwoKeyPlasmaMaintainersRegistryStorage
  • ITwoKeyPlasmaRegistryStorage
  • ITwoKeyRegistryStorage
  • ITwoKeySignatureValidatorStorage
  • ITwoKeyUpgradableExchangeStorage

2KEY / LIBRARIES

  • Call
  • GetCode
  • IncentiveModels
  • SafeMath
  • Utils

2KEY / SINGLETON-CONTRACTS

  • ITwoKeySingletonUtils
  • StandardTokenModified
  • TwoKeyAdmin
  • TwoKeyBaseReputationRegistry
  • TwoKeyCampaignValidator
  • TwoKeyCongress
  • TwoKeyEconomy
  • TwoKeyEventSource
  • TwoKeyExchangeRateContract
  • TwoKeyFactory
  • TwoKeyMaintainersRegistry
  • TwoKeyPlasmaEvents
  • TwoKeyPlasmaMaintainersRegistry
  • TwoKeyPlasmaRegistry
  • TwoKeyPlasmaSingletoneRegistry
  • TwoKeyRegistry
  • TwoKeySignatureValidator
  • TwoKeySingletonesRegistry
  • TwoKeyUpgradableExchange

2KEY / SINGLETON-STORAGE-CONTRACTS

  • TwoKeyAdminStorage
  • TwoKeyBaseReputationRegistryStorage
  • TwoKeyCampaignValidatorStorage
  • TwoKeyCommunityTokenPoolStorage
  • TwoKeyDeepFreezeTokenPoolStorage
  • TwoKeyEventSourceStorage
  • TwoKeyExchangeRateStorage
  • TwoKeyFactoryStorage
  • TwoKeyLongTermTokenPoolStorage
  • TwoKeyMaintainersRegistryStorage
  • TwoKeyPlasmaEventsStorage
  • TwoKeyPlasmaMaintainersRegistryStorage
  • TwoKeyPlasmaRegistryStorage
  • TwoKeyRegistryStorage
  • TwoKeySignatureValidatorStorage
  • TwoKeyUpgradableExchangeStorage

2KEY / TOKEN-POOLS

  • TokenPool
  • TwoKeyCommunityTokenPool
  • TwoKeyDeepFreezeTokenPool
  • TwoKeyLongTermTokenPool

2KEY / UPGRADABILITY

  • Proxy
  • StructuredStorage
  • UpgradeabilityStorage
  • UpgradeabilityProxy
  • Upgradeable

2KEY / UPGRADABLE-PATTERN-CAMPAIGNS

  • ProxyCampaign
  • UpgradeabilityCampaignStorage
  • UpgradeableCampaign

TEST

  • FungibleMockToken
  • TestA
  • TestB
  • KyberNetworkTestMockContract

IHandleCampaignDeployment

contract IHandleCampaignDeployment

Source: contracts/2key/interfaces/IHandleCampaignDeployment.sol
Author: Nikola Madjarevic

Index

  • setInitialParamsCampaign
  • setInitialParamsConversionHandler
  • setInitialParamsDonationCampaign
  • setInitialParamsDonationConversionHandler
  • setInitialParamsDonationLogicHandler
  • setInitialParamsLogicHandler
  • setInitialParamsPurchasesHandler

Reference

Functions

  • setInitialParamsCampaign

    abstract function setInitialParamsCampaign(address _twoKeySingletonesRegistry, address _twoKeyAcquisitionLogicHandler, address _conversionHandler, address _moderator, address _assetContractERC20, address _contractor, uint[] values) public

    This is just an interface of the function, the actual logic is implemented under TwoKeyAcquisitionCampaignERC20.sol contract This function can be called only once per proxy address, Function which will be used as simulation for constructor under TwoKeyAcquisitionCampaign contract.

    Parameters:
    _twoKeySingletonesRegistry - address
    _twoKeyAcquisitionLogicHandler - address
    _conversionHandler - address
    _moderator - address
    _assetContractERC20 - address
    _contractor - address
    values - uint[]
  • setInitialParamsConversionHandler

    abstract function setInitialParamsConversionHandler(uint[] values, address _twoKeyAcquisitionCampaignERC20, address _twoKeyPurchasesHandler, address _contractor, address _assetContractERC20, address _twoKeySingletonRegistry) public

    This is just an interface of the function, the actual logic is implemented under TwoKeyConversionHandler.sol contract This function can be called only once per proxy address, Function which will be used as simulation for constructor under TwoKeyConversionHandler contract.

    Parameters:
    values - uint[]
    _twoKeyAcquisitionCampaignERC20 - address
    _twoKeyPurchasesHandler - address
    _contractor - address
    _assetContractERC20 - address
    _twoKeySingletonRegistry - address
  • setInitialParamsDonationCampaign

    abstract function setInitialParamsDonationCampaign(address _contractor, address _moderator, address _twoKeySingletonRegistry, address _twoKeyDonationConversionHandler, address _twoKeyDonationLogicHandler, uint[] numberValues, bool[] booleanValues) public

    This is just an interface of the function, the actual logic is implemented under TwoKeyDonationCampaign.sol contract This function can be called only once per proxy address, Function which will be used as simulation for constructor under TwoKeyDonationCampaign contract.

    Parameters:
    _contractor - address
    _moderator - address
    _twoKeySingletonRegistry - address
    _twoKeyDonationConversionHandler - address
    _twoKeyDonationLogicHandler - address
    numberValues - uint[]
    booleanValues - bool[]
  • setInitialParamsDonationConversionHandler

    abstract function setInitialParamsDonationConversionHandler(string tokenName, string tokenSymbol, string _currency, address _contractor, address _twoKeyDonationCampaign, address _twoKeySingletonRegistry) public

    This is just an interface of the function, the actual logic is implemented under TwoKeyDonationConversionHandler.sol contract This function can be called only once per proxy address, Function which will be used as simulation for constructor under TwoKeyDonationConversionHandler contract.

    Parameters:
    tokenName - string
    tokenSymbol - string
    _currency - string
    _contractor - address
    _twoKeyDonationCampaign - address
    _twoKeySingletonRegistry - address
  • setInitialParamsDonationLogicHandler

    abstract function setInitialParamsDonationLogicHandler(uint[] numberValues, string currency, address contractor, address moderator, address twoKeySingletonRegistry, address twoKeyDonationCampaign, address twokeyDonationConversionHandler) public
    Parameters:
    numberValues - uint[]
    currency - string
    contractor - address
    moderator - address
    twoKeySingletonRegistry - address
    twoKeyDonationCampaign - address
    twokeyDonationConversionHandler - address
  • setInitialParamsLogicHandler

    abstract function setInitialParamsLogicHandler(uint[] values, string _currency, address _assetContractERC20, address _moderator, address _contractor, address _acquisitionCampaignAddress, address _twoKeySingletoneRegistry, address _twoKeyConversionHandler) public

    This is just an interface of the function, the actual logic is implemented under TwoKeyAcquisitionLogicHandler.sol contract This function can be called only once per proxy address, Function which will be used as simulation for constructor under TwoKeyAcquisitionLogicHandler contract.

    Parameters:
    values - uint[]
    _currency - string
    _assetContractERC20 - address
    _moderator - address
    _contractor - address
    _acquisitionCampaignAddress - address
    _twoKeySingletoneRegistry - address
    _twoKeyConversionHandler - address
  • setInitialParamsPurchasesHandler

    abstract function setInitialParamsPurchasesHandler(uint[] values, address _contractor, address _assetContractERC20, address _twoKeyEventSource, address _proxyConversionHandler) public

    This is just an interface of the function, the actual logic is implemented under TwoKeyPurchasesHandler.sol contract This function can be called only once per proxy address, Function which will be used as simulation for constructor under TwoKeyPurchasesHandler contract.

    Parameters:
    values - uint[]
    _contractor - address
    _assetContractERC20 - address
    _twoKeyEventSource - address
    _proxyConversionHandler - address
← IGetImplementationIKyberNetworkProxy →
Copyright © 2019 2key.network