-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
algorand integration #157
Merged
Merged
algorand integration #157
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
samuelsramko
approved these changes
Sep 21, 2021
@@ -1,11 +1,12 @@ | |||
const algosdk = require('algosdk'); | |||
const base32 = require('base32.js'); | |||
import { algorandBroadcast } from 'src/blockchain'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import doesn't seem to work. Running a basic example
const { generateWallet, Currency } = require('@tatumio/tatum');
const btcWallet = generateWallet(Currency.BTC, true);
console.log(btcWallet);
throws:
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'src/blockchain'
Require stack:
- /home/jarin/dev/probinex/exp/tatum/node_modules/@tatumio/tatum/dist/src/transaction/algo.js
- /home/jarin/dev/probinex/exp/tatum/node_modules/@tatumio/tatum/dist/src/transaction/index.js
- /home/jarin/dev/probinex/exp/tatum/node_modules/@tatumio/tatum/dist/src/helpers/index.js
- /home/jarin/dev/probinex/exp/tatum/node_modules/@tatumio/tatum/dist/src/fungible/index.js
- /home/jarin/dev/probinex/exp/tatum/node_modules/@tatumio/tatum/dist/src/wallet/custodial.js
- /home/jarin/dev/probinex/exp/tatum/node_modules/@tatumio/tatum/dist/src/wallet/index.js
- /home/jarin/dev/probinex/exp/tatum/node_modules/@tatumio/tatum/dist/src/index.js
- /home/jarin/dev/probinex/exp/tatum/test.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (/home/jarin/dev/probinex/exp/tatum/node_modules/@tatumio/tatum/dist/src/transaction/algo.js:6:22)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (/home/jarin/dev/probinex/exp/tatum/node_modules/@tatumio/tatum/dist/src/transaction/index.js:34:14)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
Closed
krgizdov
added a commit
to krgizdov/tatum-js
that referenced
this pull request
Oct 14, 2021
* Update README * Update README * Elrond: small fixes (tatumio#126) * Elrond: small fixes * Fix: version number * Adding SubscriptionType to export, so that it can be imported when using tatum-js. (tatumio#124) * Add ADA account by address endpoint (tatumio#125) * Added `index` field to `TransferEthOffchainKMS` (tatumio#127) * Used the correct endpoint in `tronGetCurrentBlock` * Added optional index field * fix rinkeby * fix IPFS scheme * add abstraction methods to custodial stuff * fix NFT IPFS read metadata * Use erdjs (tatumio#128) * Use ERDJS lib * Typo fix * Added offchainTransferAdaKMS. (tatumio#129) * Fix: using erdjs (tatumio#130) * Fix: using erdjs * Fix typos * Extend Transfer BTC based offchain kms xpub length. (tatumio#131) * NFT Auction * add auction to export * add approve ERC20 fungible endpoint * change NFT Auction - remove unneccesary parameters * api doc changes for NFT Auction * Fix: EGLD addresses (tatumio#133) * add approve method to custodial wallets * remove amount from Auction bid * add validations to the auction / marketplace * fix validation message * Fix offchain KMS signature id methods. (tatumio#135) * Prepare built in private key interfaces. (tatumio#132) * Fix: Elrond estimate gas fee (tatumio#137) * Fix: Elrond gas limit estimation * Inc version * Built in private key interface extended. (tatumio#136) * Fixed CELO optional feeCurrency field. (tatumio#138) * Fix: Elrond - data coding (tatumio#139) * fix listing smart contract * Fixed built in private key interface error. (tatumio#140) * only update auction fee when there is no active auctions * Fix: Elrond Tx cost (tatumio#143) * Fix: Elrond Tx cost * Version * Algorand generate wallet (tatumio#142) * update * deleted algo_constant * fixed Co-authored-by: Samuel@Tatum <[email protected]> * fix NFT mint UUID validation * Fixed built in private key interface error messages. (tatumio#144) * Bump tar from 4.4.17 to 4.4.19 (tatumio#134) Bumps [tar](https://github.com/npm/node-tar) from 4.4.17 to 4.4.19. - [Release notes](https://github.com/npm/node-tar/releases) - [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md) - [Commits](isaacs/node-tar@v4.4.17...v4.4.19) --- updated-dependencies: - dependency-name: tar dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * add RMD as a paltform token * Bump axios from 0.21.1 to 0.21.2 (tatumio#150) Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md) - [Commits](axios/axios@v0.21.1...v0.21.2) --- updated-dependencies: - dependency-name: axios dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Algo transaction (tatumio#149) * added algorand transaction and fixed spell algo * fixed * fixed * remove console * fixed * update * update * add version Co-authored-by: Samuel@Tatum <[email protected]> Co-authored-by: Samuel Sramko <[email protected]> * Algorand transaction signing update (tatumio#153) * update * update * fix amount decimal validator * flow package upgrade * add B2U coin for BSC * fix listing and marketplace contracts * decrease BSC gasPrice * fix listing and marketplace contracts * Added Method To Return TRC20 Balance (tatumio#154) * Used the correct endpoint in `tronGetCurrentBlock` * Added method to return TRC20 balance - Added `tronGetAccountTrc20Address` to return TRC20 balance of a tron address. * Bump version number * fix listing and marketplace contracts * add KMS_COMPLETED_TX subscription type (tatumio#155) * Added API URL to the README * fix readme * update (tatumio#157) * hot fix algo tx import * Flow -enable any type of transaction to be signed and broadcasted to the blockchain * fix transfer erc20 token * fix transfer erc20 token * fix deleteTransactionKms revert param fixes tatumio#161 (tatumio#162) * fix transfer erc20 token * Algorand fix (tatumio#165) * fixed signAlgoKMSTransaction function * update * fix transfer erc20 BSC token add GAMEE token fix broken algo link * Fix AdaAccount interface (tatumio#164) Co-authored-by: Tran Huy Duan <[email protected]> * Fix optional parameters on query string (tatumio#166) Co-authored-by: Tran Huy Duan <[email protected]> Co-authored-by: Samuel@Tatum <[email protected]> * Version bump * Matic - use fast gas price instead of fastest * #NOISSUE - fix eth + bsc kms gas estimations fix marketplace listing for erc20 token with different decimals then 18 * fix type * increase default polygon gas price * Egld KMS (tatumio#167) * Egld KMS * Version * Fix * add KMS filter pending tx by signatures * Fix EGLD KMS (tatumio#168) * Fix EGLD KMS * Version * Fix: sign Egld KMS offchain (tatumio#169) * Fix: sign KMS Egld offchain * Version * add FLOW proposal keys * add FLOW proposal keys - fix broadcast param * microAlgo to Algo (tatumio#170) Co-authored-by: jay_sun <[email protected]> * EGLD tokens (tatumio#171) * EGLD: tokens * Version Co-authored-by: Samuel@Tatum <[email protected]> Co-authored-by: Ivan <[email protected]> Co-authored-by: Marty19 <[email protected]> Co-authored-by: Kennedy Idialu <[email protected]> Co-authored-by: Samuel Sramko <[email protected]> Co-authored-by: Lukáš Kotol <[email protected]> Co-authored-by: Jay <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jiří Janeček <[email protected]> Co-authored-by: Trần Huy Duẫn <[email protected]> Co-authored-by: Tran Huy Duan <[email protected]> Co-authored-by: jay_sun <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.