Services Dexanode
  • Mapping Networks
    • Mapping Networks
  • Mainnet
    • Planq Network
      • Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Lambda Network
      • Installation
    • Ununifi
      • Installation
      • Manual Installation
    • Lambda Network
  • Testnet
    • CreditCoin (Polkadot)
    • BEVM Incentiviced Testnet Full Node
      • Binaries
      • Docker
    • Dymension Froopyland
      • Create Pull Request
      • Deploy NFT & Smart Contract
    • Noria
      • Installation
      • Manual Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Artela
      • Installation
      • Manual Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Empower
      • Installation
      • Manual Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Cross Finance
      • Installation
      • Upgrade
      • Snapshot
      • Statesync
      • Tool and Services
    • Eclipse Testnet
      • Eclipse Testnet Bridge Quest
    • Polymer
      • Polymer With Docker
      • Polymer Challenge 4
      • Polymer Challenge 4 Gitpod
    • Risc Zero Contributed Phase 1
  • Page 2
  • Tooling Service
    • Create Custom Endpoint Cosmos
    • Create custom endpoint Initia Node
    • Create Snapshoot
  • Page
Powered by GitBook
On this page
  1. Testnet
  2. Polymer

Polymer Challenge 4

Template for IBC enabled Solidity contracts

PreviousPolymer With DockerNextPolymer Challenge 4 Gitpod

Last updated 1 year ago

Polymer Labs . Establishing the next generation of the internet, by scaling IBC interoperability to all blockchains. |

Use template

Installation Package

sudo apt-get update
sudo apt-get upgrade
apt install npm
sudo apt install git

Install Node js

sudo apt install curl wget gnupg
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt update
sudo apt install nodejs
node --version
npm --version

Install Foundry

curl -L https://foundry.paradigm.xyz | bash
foundryup 

For VPS

source /root/.bashrc

For Gitpod

Install Just Program

wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
sudo apt update
sudo apt install just

Create API Explorer OP and Base

Create Alchemi API Key for OP and Base

Clone

git clone https://github.com/polymerdevs/testnet-challenge-3-template.git

edit config.json

nano testnet-challenge-3-template/config.json

replace

      "portAddr": "0x009FD9729DBAed7e04184D0484c92CD6F7988D62",

edit CCqueryUC.sol

nano testnet-challenge-3-template/contracts/CCqueryUC.sol

Replace and change

recvedPackets.push(UcPacketWithChannel(channelId, packet));

(address sender, string memory query) = abi.decode(packet.appData, (address, string));

bytes memory payload = abi.encode(sender, "mint");

return AckPacket(true, payload);
nano testnet-challenge-3-template/Justfile

and scroll, copy this script

run-challenge-4:
    echo "Running Challenge 4"
    just deploy base base
    just sanity-check
    just send-packet optimism
    echo "Thank you for participating in Challenge!"
    echo "Submit your evidence in the #proof channel in our Discord Server!"
just run-challenge-4

Done Packet has been sent!

Check your channel IBC on

https://sepolia.polymer.zone/packets
http://polymerlabs.org
GitHub - open-ibc/ibc-app-solidity-template: Template starter for IBC enabled contracts in Solidity for use with vibc-core-smart-contractsGitHub
OP Sepolia - API keys | Blockscout
Logo
Base Sepolia - API keys | Blockscout
Logo
Alchemy Quickstart GuideAlchemy Docs
Logo
Logo