Skip to content

nitinmittal23/pos-mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PoS Mappings

GitHub

Installation

$ nvm use 18
$ npm install

Configure environment

You need to configure your environment variables now. Copy .env.example and rename as .env. Now provide values for the keys mentioned there.

USAGE

  • update the mapping details in main.js file
# deploy token
$ npm run deploy

Mapping

Once child token is deployed, the script will return the complete mapping details

{
    root_token: "0xabc",
    child_token: "0xpqr"
    token_type: "0xabcdef"
    // other non important related details
}

Testnet

Mappings on testnet does not require multisig. mapping can be done by EOA 0xf89154D7A42c5E9f77884511586A9db4618683C5

Steps:

  1. Go to rootChainManagerProxy Contract on goerli.
  2. click on Write as Proxy and connect account with the above EOA address
  3. Go to mapToken function and enter the details returned by the script and execute transaction
  4. Mapping done

Mainnet

Mappings on mainnet is done via multisig on Ethereum chain.

Steps:

  1. Add above multisig added in gnosis
  2. Open transaction Builder
  3. Add the rootChainManager contract (Make sure that the ABI used is from implementation contract but the address used is Proxy contract).
  4. Select mapToken and enter the details returned by the script and initiate transaction
  5. Mapping will be done when all the multisig owners sign the transaction and execute it.

About

Polygon Pos Mappings script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published