0.0.7 • Published 11 months ago

@dotare/cardano-transactions v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago
Table of Contents

Setup How to use How to contribute Transaction List


Setup

install package
npm i @dotare/cardano-transactions
enable asyncWebAssembly
// webpack.config.js
experiments: {
    asyncWebAssembly: true,
},

if you don't have access to webpack.config due to the framework library:

how to load wasm into create-react-app:

https://stackoverflow.com/a/61722010

how to load wasm into Laravel with mix:

https://laravel-mix.com/docs/6.0/quick-webpack-configuration


How to use

import & invoke transaction
// app.jsx
import { delegationTx } from "@dotare/cardano-transactions"

<button onClick={() => { delegationTx('5653f2a1aea5318f43a63e0148076348a475d3c89283a8c1eb498fb7', 'eternl', 0) }}>eternl</button>
Every transaction may have it's own unique parameters to customize the user experience as well as selecting the on-chain network and light wallet.

Be sure to look at the parameters in the Transaction List


How to contribute

Pull Requests:
- Add new transactions to the repo in the ./src/transactions/ directory.
- Add new utility to the repo in the ./src/utils/ directory.
- Update our README with your transaction and link to the dependent library if you did not add it to ./src/transactions/.

Transaction List |Tx Name | Params | Description | Source Code | Author | Includes TxFee | Fee | | --- | --- | --- | --- | --- | --- | --- | |delegationTx | Pool ID (hex): string, WalletName: string, NetworkId: int | A delegation method | https://github.com/dotareio/cardano-delegation/blob/main/src/delegation.ts a modified version using this package's helper methods is under ./src/transactions/ | DoubleThirty | No | 0% | |mintFreeTokenTx | AssetName: string, Amount: uint, WalletName: string, NetworkId: int | An always true minting method | ./src/transactions/mintFreeTokenTx.ts Do not make tokens you are serious about with this policy anyone can make the same token with the same asset name.| DoubleThirty | No | 0% |


Ways to support:

Post Issues: https://github.com/dotareio/cardano-transactions/issues/new/choose Templates: Question, Bug, Feature Request, Security Vuln

Delegate: https://www.dotare.io/stake-pool/


References:

Powered By: &

0.0.7

11 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago