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

The new version of Tokens#82

Merged
TheQuantumPhysicist merged 61 commits intostagingfrom
nft
Nov 9, 2021
Merged

The new version of Tokens#82
TheQuantumPhysicist merged 61 commits intostagingfrom
nft

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 <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
…into StorageMap

Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>

# Conflicts:
#	pallets/utxo/src/lib.rs
#	pallets/utxo/src/tests.rs
Signed-off-by: sinitcin <antony@email.su>

# Conflicts:
#	pallets/utxo/src/lib.rs
#	pallets/utxo/src/tests.rs
Signed-off-by: sinitcin <antony@email.su>
…PointerToIssueToken

Signed-off-by: sinitcin <antony@email.su>
…now is an OptionQuery.

Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
…ollect_result functions

Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>

# Conflicts:
#	.gitignore
#	pallets/utxo/src/lib.rs
#	pallets/utxo/src/tests.rs
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>

# Conflicts:
#	pallets/utxo/src/lib.rs
Signed-off-by: sinitcin <antony@email.su>
@sinitcin sinitcin requested review from TheQuantumPhysicist, altonen, iljakuklic and muursh and removed request for altonen October 28, 2021 13:03
@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.

…m our functional tests.

Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
@sinitcin
Copy link
Contributor Author

sinitcin commented Nov 7, 2021

It seems that I have done @muursh @TheQuantumPhysicist

Signed-off-by: sinitcin <antony@email.su>
sinitcin and others added 13 commits November 8, 2021 12:32
…ect to tokens tests.

Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>

# 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
Signed-off-by: sinitcin <antony@email.su>
rewards_and_staking: fix `non_mlt_staking()` test case
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
Signed-off-by: sinitcin <antony@email.su>
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