KlimaDAO / klimadao

Monorepo for the official KlimaDAO site, dApp, components and design system.
https://klimadao.finance
MIT License
90 stars 71 forks source link

Contract deploy on the alexar side for base #2367

Closed jabby09 closed 2 weeks ago

jabby09 commented 3 weeks ago

Here's an ethers-v5/hardat style implementation so it's not direct copy pasta, but the flow should be correct.

https://github.com/KlimaDAO/klimadao/blob/cujo/base-retirement/base/poc/sendKlimaRetirement.ts

Included on this branch is the new abi for the Interchain Token service, along with adding the axelar sdk to npm.

You should be able to re-create this transaction input (less the gas value since that will fluctuate based on prices) https://basescan.org/tx/0xfdf1cdbd92800228ede88a676750fc44571e39729f289b04c9a63a26d903f2a2

The important part to verify is that the data field is the same. This is raw data that is decoded and sent directly to the aggregator for retirement. For this transaction the value is 0x0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000375c1dc69f05ff526498c8aca48805eec52861d500000000000000000000000000000000000000000000000000000000000002241c79d29a0000000000000000000000004e78011ce80ee02d2c3e649fb657e458982578150000000000000000000000002f800db0fdb5223b3c3f354886d907a671414a7f000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000029a2241af62c00000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000375c1dc69f05ff526498c8aca48805eec52861d5000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045261777200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000747616e64616c66000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043416c6c207765206861766520746f20646563696465206973207768617420746f20646f2077697468207468652074696d65207468617420697320676976656e2075732e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

At this point in time we are only able to accept KLIMA tokens for payment.

Atmosfearful commented 2 weeks ago

Contract was deployed https://polygonscan.com/address/0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C#code