TwoKey documentation

TwoKey documentation

  • Docs

›2KEY / UPGRADABILITY

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

StructuredStorage

contract StructuredStorage

is Upgradeable

Source: contracts/2key/upgradability/StructuredStorage.sol

Index

  • deleteAddress
  • deleteBool
  • deleteBytes
  • deleteBytes32
  • deleteInt
  • deleteString
  • deleteUint
  • getAddress
  • getAddressArray
  • getBool
  • getBoolArray
  • getBytes
  • getBytes32
  • getBytes32Array
  • getInt
  • getIntArray
  • getString
  • getUint
  • getUintArray
  • onlyDeployer
  • onlyProxyLogicContract
  • setAddress
  • setAddressArray
  • setBool
  • setBoolArray
  • setBytes
  • setBytes32
  • setBytes32Array
  • setInt
  • setIntArray
  • setProxyLogicContract
  • setProxyLogicContractAndDeployer
  • setString
  • setUint
  • setUintArray

Reference

Modifiers

  • onlyDeployer

    modifier onlyDeployer()
  • onlyProxyLogicContract

    modifier onlyProxyLogicContract()

Functions

  • deleteAddress

    function deleteAddress(bytes32 _key) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
  • deleteBool

    function deleteBool(bytes32 _key) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
  • deleteBytes

    function deleteBytes(bytes32 _key) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
  • deleteBytes32

    function deleteBytes32(bytes32 _key) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
  • deleteInt

    function deleteInt(bytes32 _key) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
  • deleteString

    function deleteString(bytes32 _key) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
  • deleteUint

    function deleteUint(bytes32 _key) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
  • getAddress

    function getAddress(bytes32 _key) external view returns (address)
    Parameters:
    _key - bytes32
    Returns:
    address
  • getAddressArray

    function getAddressArray(bytes32 _key) external view returns (address[])
    Parameters:
    _key - bytes32
    Returns:
    address[]
  • getBool

    function getBool(bytes32 _key) external view returns (bool)
    Parameters:
    _key - bytes32
    Returns:
    bool
  • getBoolArray

    function getBoolArray(bytes32 _key) external view returns (bool[])
    Parameters:
    _key - bytes32
    Returns:
    bool[]
  • getBytes

    function getBytes(bytes32 _key) external view returns (bytes)
    Parameters:
    _key - bytes32
    Returns:
    bytes
  • getBytes32

    function getBytes32(bytes32 _key) external view returns (bytes32)
    Parameters:
    _key - bytes32
    Returns:
    bytes32
  • getBytes32Array

    function getBytes32Array(bytes32 _key) external view returns (bytes32[])
    Parameters:
    _key - bytes32
    Returns:
    bytes32[]
  • getInt

    function getInt(bytes32 _key) external view returns (int)
    Parameters:
    _key - bytes32
    Returns:
    int
  • getIntArray

    function getIntArray(bytes32 _key) external view returns (int[])
    Parameters:
    _key - bytes32
    Returns:
    int[]
  • getString

    function getString(bytes32 _key) external view returns (string)
    Parameters:
    _key - bytes32
    Returns:
    string
  • getUint

    function getUint(bytes32 _key) external view returns (uint)
    Parameters:
    _key - bytes32
    Returns:
    uint
  • getUintArray

    function getUintArray(bytes32 _key) external view returns (uint[])
    Parameters:
    _key - bytes32
    Returns:
    uint[]
  • setAddress

    function setAddress(bytes32 _key, address _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - address
  • setAddressArray

    function setAddressArray(bytes32 _key, address[] _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - address[]
  • setBool

    function setBool(bytes32 _key, bool _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - bool
  • setBoolArray

    function setBoolArray(bytes32 _key, bool[] _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - bool[]
  • setBytes

    function setBytes(bytes32 _key, bytes _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - bytes
  • setBytes32

    function setBytes32(bytes32 _key, bytes32 _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - bytes32
  • setBytes32Array

    function setBytes32Array(bytes32 _key, bytes32[] _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - bytes32[]
  • setInt

    function setInt(bytes32 _key, int _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - int
  • setIntArray

    function setIntArray(bytes32 _key, int[] _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - int[]
  • setProxyLogicContract

    function setProxyLogicContract(address _proxyLogicContract) external
    Modifiers:
    onlyDeployer
    Parameters:
    _proxyLogicContract - address
  • setProxyLogicContractAndDeployer

    function setProxyLogicContractAndDeployer(address _proxyLogicContract, address deployer) external
    Parameters:
    _proxyLogicContract - address
    deployer - address
  • setString

    function setString(bytes32 _key, string _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - string
  • setUint

    function setUint(bytes32 _key, uint _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - uint
  • setUintArray

    function setUintArray(bytes32 _key, uint[] _value) external
    Modifiers:
    onlyProxyLogicContract
    Parameters:
    _key - bytes32
    _value - uint[]
← ProxyUpgradeabilityStorage →
Copyright © 2019 2key.network