masaun / geyser-on-polygon

Geyser's smart contract integration with Polygon (Matic)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geyser on Polygon


【Introduction of the Geyser on Polygon】

  • This repo is the Geyser's smart contract integration with Polygon (Matic) network.
    • Geyser ( https://www.gysr.io/ ) is an open platform for yield farming and token distribution.
    • But, that is only deployed on Mainnet. Therefore, users need to pay high gas fees and wait for long time to finalize transactions.
    • To solve this issue from user perspective, I try to do that Geyser's smart contract works on Polygon. (Polygon mumbai testnet)

 


【Workflow】

  • Diagram of workflow 【Diagram】Geyser on Polygon

 


【Remarks】

  • Version for following the Geyser smart contract
    • Solidity (Solc): v0.6.11
    • Truffle: v5.1.60
    • web3.js: v1.2.9
    • openzeppelin-solidity: v3.2.0
    • ganache-cli: v6.9.1 (ganache-core: 2.10.2)

 


【Setup】

① Install modules

  • Install npm modules in the root directory
npm install

② Compile contracts

  • on Polygon (Matic) mumbai testnet
npm run compile:polygon_testnet

【Script for demo】on Polygon (Matic) mumbai testnet


  • ③ In advance, Please check MATIC token balance of executor's wallet address .

  • ③ Execute script on Polygon (Matic) mumbai testnet (※ This script include deployment of smart contracts on Polygon)
npm run script:Geyser

【Demo】



【References】


About

Geyser's smart contract integration with Polygon (Matic)


Languages

Language:Solidity 60.5%Language:JavaScript 39.3%Language:Shell 0.2%