Canto-Network / Canto

Layer-1 blockchain powered by Free Public Infrastructure
GNU Lesser General Public License v3.0
83 stars 80 forks source link

Adding keys that will be used to access the keeper store #34

Closed davidterpay closed 2 years ago

davidterpay commented 2 years ago

In this PR, I add the first set of keys that will be used in the store.

  1. prefixCSR –> takes the CSR Pool address (which will be a bech32 address) and returns the CSR struct it corresponds to.
  2. prefixSmartContract –> takes an EVM smart contract address (sec256k) and returns the CSR pool that the object belongs to.
  3. prefixDeployer –> takes the deployer address and finds all of the CSR pool addresses that the has initialized
  4. prefixLastPeriodNFT –> takes the address of the smart contract and token id of an NFT and returns the last period the NFT withdrew revenue from.