Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

The new version of Tokens #82

Merged
merged 61 commits into from
Nov 9, 2021
Merged

The new version of Tokens #82

merged 61 commits into from
Nov 9, 2021

Conversation

sinitcin
Copy link
Contributor

@sinitcin sinitcin commented Oct 28, 2021

According to #67 the format of the token was changed.

Old functions for creating and sending a token were removed due to we cannot sign transactions on the node side, all transactions must be created and signed on the wallet side. In this version, we only verify is tx correct or not.

Now we have an additional data field that is optional. This field using for:

  • Token transferring
  • Token issuance
  • Token burn (not tested yet).
  • NFT mint (tested weakly).

Additional unit and functional tests will make later in another PR.

Also, we have not finished yet discussed fixing the verification function, but decided that return here after the test-net: #81
Unfortunately, we have a bunch of cycles there but it works correctly.

UPDATE: NFT will appear in the next PR ❗❗❗

Signed-off-by: sinitcin <[email protected]>
Signed-off-by: sinitcin <[email protected]>
Signed-off-by: sinitcin <[email protected]>

# Conflicts:
#	pallets/utxo/src/lib.rs
#	pallets/utxo/src/tests.rs
Signed-off-by: sinitcin <[email protected]>

# Conflicts:
#	pallets/utxo/src/lib.rs
#	pallets/utxo/src/tests.rs
Signed-off-by: sinitcin <[email protected]>

# Conflicts:
#	.gitignore
#	pallets/utxo/src/lib.rs
#	pallets/utxo/src/tests.rs
Signed-off-by: sinitcin <[email protected]>

# Conflicts:
#	pallets/utxo/src/lib.rs
Signed-off-by: sinitcin <[email protected]>
@sinitcin sinitcin requested review from altonen, iljakuklic, muursh and TheQuantumPhysicist and removed request for altonen October 28, 2021 13:03
pallets/utxo/src/base58_nostd.rs Outdated Show resolved Hide resolved
pallets/utxo/src/tokens.rs Outdated Show resolved Hide resolved
pallets/utxo/src/verifier.rs Outdated Show resolved Hide resolved
pallets/utxo/src/verifier.rs Outdated Show resolved Hide resolved
pallets/utxo/src/verifier.rs Outdated Show resolved Hide resolved
pallets/utxo/src/verifier.rs Outdated Show resolved Hide resolved
pallets/utxo/src/verifier.rs Outdated Show resolved Hide resolved
pallets/utxo/src/verifier.rs Outdated Show resolved Hide resolved
pallets/utxo/src/verifier.rs Outdated Show resolved Hide resolved
@TheQuantumPhysicist
Copy link
Contributor

Good job. We're getting much closer to what tokens should look like. I think generally the PR is OK. Just a few more tests and the other few comments I mentioned and we're probably good to merge.

@muursh
Copy link
Contributor

muursh commented Nov 6, 2021

Agreed with Sam, although in all honesty I've not been through in as much detail as I'd like and I haven't been able to run it for obvious reasons. I think we're close.

@sinitcin
Copy link
Contributor Author

sinitcin commented Nov 7, 2021

It seems that I have done @muursh @TheQuantumPhysicist

sinitcin and others added 13 commits November 8, 2021 12:32
Signed-off-by: sinitcin <[email protected]>

# Conflicts:
#	node/src/chain_spec.rs
#	pallets/utxo/README.md
#	pallets/utxo/src/lib.rs
#	pallets/utxo/src/mock.rs
#	pallets/utxo/src/tests.rs
#	runtime/Cargo.toml
rewards_and_staking: fix `non_mlt_staking()` test case
Signed-off-by: sinitcin <[email protected]>
rewards_and_staking: fix the issue of exceeding u64 value of transaction fee
@TheQuantumPhysicist TheQuantumPhysicist merged commit 798eb8d into staging Nov 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants