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

Consortium DfTxs (Custom Light Transaction) #1823

Closed
Tracked by #1817
fuxingloh opened this issue Oct 18, 2022 · 1 comment · Fixed by #1929 or #2004
Closed
Tracked by #1817

Consortium DfTxs (Custom Light Transaction) #1823

fuxingloh opened this issue Oct 18, 2022 · 1 comment · Fixed by #1929 or #2004
Assignees
Labels
area/packages kind/feature New feature request priority/important-soon Will be important soon triage/accepted Triage has been accepted

Comments

@fuxingloh
Copy link
Contributor

fuxingloh commented Oct 18, 2022

Similar to #108, implementations of Consortium Custom DfTx.

 // TODO

in

packages/jellyfish-transaction/src/script/defi/*

All CustomTX has a starting signature of DfTx in utf8 or 0x44665478. It is as it is, don't need to convert from BE to LE.

They are structured as a

  1. VarUInt + [OP_RETURN + DfTx + TYPES[CxTxType] + ...]
  2. VarUInt + 6a + 44665478 + Type + ...

/triage accepted
/kind feature
/area packages
/priority important-soon

Refer to #108 for a detailed implementation guide; please edit and fill in the issue.

@github-actions github-actions bot added triage/accepted Triage has been accepted kind/feature New feature request area/packages priority/important-soon Will be important soon labels Oct 18, 2022
@fuxingloh
Copy link
Contributor Author

/assign @infinia-yzl to manage and assign to BR_Hydra, closely related to upcoming work for bridge and cde.

@fuxingloh fuxingloh assigned thedoublejay and unassigned imkven and infinia-yzl Oct 25, 2022
fuxingloh pushed a commit that referenced this issue Jan 16, 2023
<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:
- [x] Add CTokenBurn in jellyfish transaction to be used in bridge
- [x] Create txn builder for burntoken
- [x] Address PR feedbacks

#### Which issue(s) does this PR fixes?:
<!--
(Optional) Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #1823

#### Additional comments?:
- Big thanks to @canonbrother for the help! 🙏 💪

Co-authored-by: Isaac Yong <[email protected]>
fuxingloh pushed a commit that referenced this issue Jan 31, 2023
…2004)

<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:
- [x] Add dftx for minting token
- [x] Add txn builder for minting token
- [x] Add e2e tests

#### Which issue(s) does this PR fixes?:
<!--
(Optional) Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #1823


#### Additional comments?:
- One concern that requires more deep diving in the code is
[this](https://github.com/JellyfishSDK/jellyfish/pull/2004/files#diff-cd9b0bc9a5bc8cb12469fe1dddc7fff62cecfe543b8a6946c7bff87492dc3dc0R26)
- `to` is not optional in this PR but it is in `ain`. Need to deep dive
on how to do it properly with composer. This parameter (`to`) being
required still caters for the need of Bridge API.

Relevant Issue on bridge: https://github.com/WavesHQ/bridge/issues/185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packages kind/feature New feature request priority/important-soon Will be important soon triage/accepted Triage has been accepted
Projects
None yet
4 participants