CosmosContracts / bounties

MIT License
26 stars 12 forks source link

Osmo challenges #18

Closed giansalex closed 2 years ago

giansalex commented 2 years ago

Updated 6/16

Testnet deployments (osmo test-4 <-> juno uni-3)

Network Contract
Juno https://blueprints.juno.giansalex.dev/#/contracts/juno12kztahg9pf6p5fjxypw90v7920wvd2nx6rpfnjp3n3ajhwf277ps2eerdp
Osmo https://osmosis-contracts.web.app/#/contracts/osmo1emxpwsqpf09zmnk8rjym4a66fdmpnx04gdw7fx8rpv5rsq3jyghsv9l33l
Network Contract
Juno https://blueprints.juno.giansalex.dev/#/contracts/juno12wfzft2ykl0rxpm8sku2ydt2ee872xr2r29ehdalh94a30k5z6cs9yu9cv
Osmo https://osmosis-contracts.web.app/#/contracts/osmo1lzuevjs0t4ywjgg0kn9lcdwuvsksxq3uvgaam44lrqhutjk5v3nqr2hehr

UI Demo https://dapps.juno.giansalex.dev/osmo/#/

giansalex commented 2 years ago

Contracts were successfully deployed to current osmosis testnet.

Contracts:

Network Contract (IBC query)
uni-2 https://blueprints.juno.giansalex.dev/#/contracts/juno1z6yx6uy2dm838c5yq4205c69e5sv0fjqqyau5fg67r7mkkf6n2uqcjdn9u
osmo-test-4 https://osmosis-contracts.web.app/#/contracts/osmo14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sq2r9g9
Network Contract (Swap, Liquidity)
uni-2 https://blueprints.juno.giansalex.dev/#/contracts/juno1ldmyzqcg0rx0q8yru23lzwzl2dnhlsh923qff3kcgtl4zlhjs9yqqwpnsc
osmo-test-4 https://osmosis-contracts.web.app/#/contracts/osmo1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrqvlx82r

Blueprints has been improved to include more detail on IBC txs (Rcv, Ack)

JakeHartnell commented 2 years ago

Awesome, can you make sure the source code for the contracts is linked here? Looking good though. @dimiandre have a look.

giansalex commented 2 years ago

@JakeHartnell yes, will be public, first i'll update docs, tests, .. I deployed a UI for these ibc contracts: https://dapps.juno.giansalex.dev/osmo/ image

giansalex commented 2 years ago

Issues found in the process

- https://github.com/CosmWasm/cw-plus/issues/662
- https://github.com/cosmos/ibc-go/issues/894
- https://github.com/osmosis-labs/osmosis/pull/1115
- https://github.com/CosmWasm/cw-plus/issues/687
- https://github.com/osmosis-labs/osmosis/pull/1184
- https://github.com/CosmWasm/cw-plus/pull/697
- https://github.com/CosmWasm/cosmwasm/issues/1271
giansalex commented 2 years ago

Fixed osmosis v9

Currently added support to lock/unlock tokens and claim rewards, but I found a problem, it is an issue that also affects authz for modules: lockup, superfluid, incentives.

The issue has been fixed and will be included in the next version (osmosis v8 probably).

https://github.com/osmosis-labs/osmosis/issues/1093
giansalex commented 2 years ago

Bond/Unbond/Claim deployed contracts, it is using a local osmo testnet, because osmosis testnet does not have a patch for the lockup issue.

I also built a new UI demo for bond/unbond/claim actions , https://dapps.juno.giansalex.dev/osmo/#/locks image

image

giansalex commented 2 years ago

@JakeHartnell @dimiandre I share the source code repos of all contracts, all challenges are included.

All contracts are fully functional, as you can see in the demo UI, if anything is missing, please let me know.

I also sent a draft proposal to the osmosis team a week ago, I am waiting for a response.

JakeHartnell commented 2 years ago

Closing for now, partially paid out as this was a good effort for a very difficult challenge. Looking forward to what you do next!