npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dotare/cardano-transactions

v0.0.7

Published

An open source library for developers to utilize CIP-30 & dcSpark's browser serialization to create reusable transactions on the Cardano Blockchain.

Downloads

51

Readme

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: &