Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substrate cross-chain transfer SDK #2

Open
jak-pan opened this issue Apr 19, 2022 · 4 comments
Open

Substrate cross-chain transfer SDK #2

jak-pan opened this issue Apr 19, 2022 · 4 comments

Comments

@jak-pan
Copy link

jak-pan commented Apr 19, 2022

Title

Cross chain transfer SDK

Short description

Create common good SDK for sending XCM transactions for polkadot / kusama parachains.

Bounty

1st place: $10,000 + $10,000
2nd place: $2,500 + $2,500

The bounties will be paid out in $HDX and $BSX (which may be frozen until the official launch via LBP has been conducted)

All submissions are eligible for a $150,000 shared prize pool offered by the Polkadot treasury, link to more info here soon.

Contact person

@jak-pan#3333 on Discord

Requirements

  1. Public registry of available cross chain interactions
  2. Public registry of required XCM calls for token transfer for each chain
  3. Public registry of public RPC nodes for each chain with possibility for adding backup
  4. Common API that allows simple cross-chain token transfer from one chain to another
  5. Error handling / transaction status
  6. Able to integrate with new parachains with minimal amount of changes
  7. Documentation for using the SDK

For the bounty to be complete, we suggest to integrate 5 Polkadot and 5 Kusama parachains including HydraDX, Statemint, Basilisk and Statemine. It should be possible to send assets between any of the chains (given they have opened channels). We highly suggest to test this on Rococo as it is used for "staging" before the channels are open on the Live chains.

All of the code must be open source licensed under https://spdx.org/licenses/Apache-2.0.html or MIT

Submissions

Submissions are open until June 20, 12 CET.

You can submit your solution by opening a PR in this repo. Please include:

  • Your team's name, size and contact details
  • BSX / HDX address for the payout
  • A description of your submission
  • Links to your (public) repo(s) where the solutions have been developed
  • A 5-min video explaining your submission

The winners will be selected and notified in June.

Don't forget to submit your solution also via DoraHacks. This will allow you to participate in the distribution of the $150,000 prize pool provided by Polkadot treasury.

@jak-pan
Copy link
Author

jak-pan commented Apr 27, 2022

Initial inspiration can be found here AcalaNetwork/acala.js#301

@jak-pan
Copy link
Author

jak-pan commented Apr 27, 2022

@jak-pan
Copy link
Author

jak-pan commented Apr 27, 2022

Things to consider in the future are -> Enhancing this with more generic XCM calls and handling non-transfer XCM messages, fee payment and extendability of this SDK.

@Entity54
Copy link

Entity54 commented Jun 19, 2022

Team Name: Entity54
Team Size: 5
Contact Details: Discord plato#5372

Basilisk Prize Address
bXjod4cZMQxT8k1eqx57oLC179wt1H8cG9i74cyWtXyxDsP3b

Hydra Prize Address
7LomJoYZooShoZRJ5dgaCEvz3aifAGJE2Tv53TvkTYv6xjYD

Description: A combined solution.
A front end showing XCM transfers from any supported parachain and for any supported asset to another one with real time updates of XCM transaction results (Extrinsic hash, Block Hash, XCM message) and balances.
An analytical description and showcasing of all functions supported by the relevant xcm pallet along with
instructions of how to add a new asset and/or a parachain, set up the relevant api, formatting accounts and
reading balances

GithubRepo: https://github.com/Entity54/AmsterDOT_Basilisk_CrossChainTransfer
Website : https://intense-escarpment-02481.herokuapp.com/
Video : https://www.dropbox.com/s/cecwxy5oqo8vqx5/Basilisk%20Cross-Chain%20Transfers%20Demo.mp4?dl=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants