Skip to content
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

Feature/xrp pkg #329

Merged
merged 11 commits into from
Jan 26, 2022
Merged

Feature/xrp pkg #329

merged 11 commits into from
Jan 26, 2022

Conversation

ruckim
Copy link
Contributor

@ruckim ruckim commented Jan 26, 2022

No description provided.

@nx-cloud
Copy link

nx-cloud bot commented Jan 26, 2022

☁️ Nx Cloud Report

CI ran the following commands for commit e928404. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 3 targets

Sent with 💌 from NxCloud.

@ruckim ruckim requested a review from npwork January 26, 2022 13:01
"tsConfig": "packages/blockchain/xrp/tsconfig.lib.json",
"packageJson": "packages/blockchain/xrp/package.json",
"main": "packages/blockchain/xrp/src/index.ts",
"assets": ["packages/blockchain/xrp/*.md"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove assets

*/
async sign(tx: ChainTransactionKMS, secret: string) {
;(tx as PendingTransaction).chain = 'XRP' as any
const rippleAPI = new RippleAPI()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to create RippleAPI every single time or we can move it line 7?

* @param body content of the transaction to broadcast
* @returns transaction id of the transaction in the blockchain
*/
export const sendTransaction = async (body: TransferXrpBlockchain) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to export this function?

* @param body content of the transaction to broadcast
* @returns transaction data to be broadcast to blockchain.
*/
export const prepareSignedTransaction = async (body: TransferXrpBlockchain) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to export this function?

const { address, secret } = await sdk.wallet()
expect(address).toMatch(testData.ADDRESS_REGEX)
expect(secret).toMatch(testData.SECRET_REGEX)
} catch (e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need this try catch

@ruckim ruckim merged commit bcd1b95 into master Jan 26, 2022
@ruckim ruckim deleted the feature/xrp-pkg branch January 26, 2022 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants