token-sdk | token SDK exists to make it easy for CorDapp developers | Cryptocurrency library

 by   corda Kotlin Version: release-1.2.4-RC05 License: Non-SPDX

kandi X-RAY | token-sdk Summary

kandi X-RAY | token-sdk Summary

token-sdk is a Kotlin library typically used in Blockchain, Cryptocurrency, Ethereum applications. token-sdk has no bugs, it has no vulnerabilities and it has low support. However token-sdk has a Non-SPDX License. You can download it from GitHub.

The token SDK exists to make it easy for CorDapp developers to create CorDapps which use tokens. Functionality is provided to create token types, then issue, move and redeem tokens of a particular type.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              token-sdk has a low active ecosystem.
              It has 77 star(s) with 70 fork(s). There are 58 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 18 open issues and 34 have been closed. On average issues are closed in 21 days. There are 17 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of token-sdk is release-1.2.4-RC05

            kandi-Quality Quality

              token-sdk has 0 bugs and 299 code smells.

            kandi-Security Security

              token-sdk has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              token-sdk code analysis shows 0 unresolved vulnerabilities.
              There are 13 security hotspots that need review.

            kandi-License License

              token-sdk has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              token-sdk releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              It has 11323 lines of code, 648 functions and 145 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of token-sdk
            Get all kandi verified functions for this library.

            token-sdk Key Features

            No Key Features are available at this moment for token-sdk.

            token-sdk Examples and Code Snippets

            No Code Snippets are available at this moment for token-sdk.

            Community Discussions

            QUESTION

            Cash State vs Fungible token in Corda
            Asked 2021-Feb-03 at 14:14

            Both Cash State and Fungible Token can be used to represent money in Corda. Both can be issued , transferred(move) and redeemed (exit).

            What is a more appropriate type to use for representing money on ledger? Are there any pros , cons to useing either type ?

            ...

            ANSWER

            Answered 2021-Feb-03 at 14:14

            We've talked on (slack.corda.net) on this issue and the short answer you've already found is that fungible tokens are a better tool for representing fungible assets like currencies.

            We have a bootcamp on the tokens SDK on youtube here: https://www.youtube.com/watch?v=IAViczRAEyU

            Here are some docs that we looked at on CorDapp concepts where you'll see that tokens are the recommended way to go: https://docs.corda.net/docs/corda-enterprise/4.7/cordapp-advanced-concepts.html#the-demo-finance-cordapp

            You can also find some clear developer samples on GitHub here: https://github.com/corda/samples-java/tree/master/Tokens

            Most of the difficulty is going to be modifying your state and just changing your flows a bit to deal with the tokens:

            Source https://stackoverflow.com/questions/66026405

            QUESTION

            How to limit only issue fungible token once with a specific account by Corda Token SDK
            Asked 2020-Jan-02 at 15:30

            Corda Token SDK https://github.com/corda/token-sdk. By default, the fungible token can be issued many times, to many accounts. I do not know to limit that fungible token is issued once and sent to a specific account (after that token will not be issued any more) Does anyone have an idea?

            ...

            ANSWER

            Answered 2020-Jan-02 at 15:30

            To implement that, you'd have to do the following:

            1. Create your own EvolvableTokenType.
            2. Your evolvable token type will have 2 custom attributes (that can be changed over time, thus why we chose evolvable over fixed token type):
              • issued of type boolean
              • issueAccount of type AbstractParty
            3. Create a contract that validates your evolvable token type (it should extend EvolvableTokenContract):
              • Implement additionalCreateChecks: You can keep it empty.
              • Implement additionalUpdateChecks: Here you can validate that you can only update the value of issued to true, you cannot update it to false (this will allow issuing more of your token type which we don't want).
            4. Create a flow that creates your evolvable token type, it sets the issueAccount to the value that you pass as input parameter and sets issued to false.
            5. Now you can create your evolvable token token type and use it to issue tokens of that type.
            6. Create a flow that issues tokens of your token type:
              • It will fetch the latest version of your evolvable token type.
              • If the value of issued is true, throw a FlowException that this token has already been issued and you cannot issue it again.
              • Use the returned state to get the issueAccount value.
              • Call the IssueToken flow to issue your token type to issueAccount. Of course you need to generate a new key for the account using RequestKeyForAccount and wrap the returned PublicKey in an instance of AnonymousParty.
              • Now the most important part (your requirement): Call UpdateEvolvableToken flow to update your evolvable token type and set issued to true. This way if someone calls your issue tokens flow again, it will throw an exception because your token type has been issued.

            The Kotlin template (token branch) has a high level example of EvolvableTokenType:

            1. Type: https://github.com/corda/cordapp-template-kotlin/blob/token-template/contracts/src/main/kotlin/com/template/states/ExampleEvolvableTokenType.kt
            2. Contract: https://github.com/corda/cordapp-template-kotlin/blob/token-template/contracts/src/main/kotlin/com/template/ExampleEvolvableTokenTypeContract.kt
            3. Flow (it has 2 flows, create token type and issue it): https://github.com/corda/cordapp-template-kotlin/blob/token-template/workflows/src/main/kotlin/com/template/flows/ExampleFlowWithEvolvableToken.kt

            Also the Tokens SDK has an example that uses EvolvableTokenType where the House token has an attribute that can change (valuation):
            https://github.com/corda/token-sdk/blob/master/docs/DvPTutorial.md#define-your-states-and-contracts

            Source https://stackoverflow.com/questions/59558554

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install token-sdk

            Often, in order to use the latest token-sdk master you will need to build against a specific Corda release branch until the required changes make it into a Corda release. At the time of writing tokens 1.1-SNAPSHOT requires Corda 4.3-SNAPSHOT. You can build this branch with the following commands:. Then run a ./gradlew clean install from the root directory.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/corda/token-sdk.git

          • CLI

            gh repo clone corda/token-sdk

          • sshUrl

            git@github.com:corda/token-sdk.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link