Mukul Jangid
c1edab547a
refactor: define typescript type for AccountDelete transaction ( #1537 )
...
* refactor: define typescript type for AccountDelete transaction
2021-10-04 14:10:08 -04:00
Mukul Jangid
fef5f858fd
fix: resolve OfferCancel merge issues ( #1546 )
...
* fix: resolve OfferCancel git issues
2021-10-04 14:10:08 -04:00
Mukul Jangid
72f34d9388
refactor: define typescript type for AccountSet transaction ( #1515 )
...
* define typescript type for AccountSet transaction
2021-10-04 14:10:08 -04:00
Mukul Jangid
930d214107
refactor: define typescript types for OfferCancel Transaction Model ( #1512 )
...
* define typescript types for OfferCancel Transaction Model
2021-10-04 14:10:08 -04:00
Mukul Jangid
57c4d8be39
refactor: define SignerListSet model and tests ( #1538 )
...
* define typescript type for SignerListSet transaction
2021-10-04 14:10:08 -04:00
Mayukha Vadari
73109295b4
Rename RippleAPI client to Client ( #1520 )
...
* rename RippleAPI -> XrplClient
* more renames
* move API stuff to client folder
* rename all api -> client
* fix tests
* make tests run
* fix integ tests
* fix urls
* fix merge issues
* XrplClient -> Client
* fix merge issues
* rename xrpl-client npm symlink to xrpl-local
2021-10-04 14:10:08 -04:00
Mukul Jangid
6d08b9e12c
refactor: define typescript types for CheckCash Transaction Model ( #1522 )
...
* Define Typescript types for CheckCash Transaction Model
2021-10-04 14:10:08 -04:00
Mukul Jangid
293f09d409
refactor: define typescript types for CheckCancel Transaction Model ( #1526 )
...
* offer
* accountroot
* amendments
* check
* deposit preauth
* directory node
* escrow
* fee settings
* ledger hashes
* negative unl
* pay channel
* ripple state
* signer list
* ticket
* export
* account_channels
* account_currencies
* account_info
* account_lines
* account_objects
* account_offers
* account_tx
* gateway_balances
* no ripple check
* respond to comments
* rename files to camelCase
* account_channels
* account_currencies
* account_info
* account_lines
* account_objects
* account_offers
* account_tx
* gateway_balances
* no ripple check
* respond to comments
* export methods
* fix typos
* refactor: Define type for CommonFields
* refactor: Define OfferCreate transaction type
* add a commented out SignedTransaction
* add tests for verifyCommonFields
* remove outdated files
* refactor: Define OfferCreate transaction
* define checkCancel model
* add tests
* fix: add tests and resolve conflicts
* fix: resolve typos and seperate out test
* fix: commenting issue
* refactor: add checkCreate to tx/index
Co-authored-by: Mayukha Vadari <mvadari@ripple.com >
Co-authored-by: Nathan Nichols <natenichols@cox.net >
2021-10-04 14:10:08 -04:00
Mukul Jangid
f9bce29174
refactor: define typescript types for CheckCreate Transaction Model ( #1524 )
...
* feat: define checkCreate model
* test: add tests
2021-10-04 14:10:08 -04:00
Nathan Nichols
7fde5a2658
refactor: Define typescript definition for OfferCreate ( #1508 )
...
* refactor: Define OfferCreate transaction type
2021-10-04 14:10:08 -04:00
Nathan Nichols
d438430100
refactor: Add common transaction fields Typescript definition ( #1507 )
...
refactor: Add common transaction fields Typescript definition (#1507 )
2021-10-04 14:10:08 -04:00
Omar Khan
c431e70900
define Wallet class ( #1509 )
...
* define Wallet class
- Wallet class is a utility for deriving a wallet composed of a keypair (publicKey/privateKey).
- A wallet can be derived from either a seed, mnemnoic, or entropy (array of random numbers).
- It provides functionality to sign/verify transactions offline.
2021-10-04 14:10:08 -04:00
Nathan Nichols
ec121ee62d
docs: Add documentation for generateFaucetWallet() ( #1529 )
...
* docs: Add documentation for generateFaucetWallet()
2021-08-17 14:32:06 -05:00
Nathan Nichols
5f0c38531c
build: include lodash in webpack build ( #1500 )
...
* build: include lodash in webpack build
2021-08-10 07:43:52 -07:00
Florent
69113de552
Generate faucet wallet Testnet and Devnet ( #1497 )
...
* generate faucet wallet
* updated comments
* added example in documentation
* updated documentation
* Added xprl.org link in docs
* updated code snippet
* Made changes from comments
* new changes from comments
* yarn.lock
* removed axios and use https.request
* updated webpack to include http and https fallback
* fixed files formatting
* small fixes
* Fix typo for Testnet
Co-authored-by: Elliot Lee <github.public@intelliot.com >
Co-authored-by: Elliot Lee <github.public@intelliot.com >
2021-08-10 15:20:43 +08:00
Mayukha Vadari
b81c1dab35
fix: ledger version in getTrustlines ( #1505 )
...
* fix: correctly propagate options.ledgerVersion
* test: verify that `account_lines` uses correct `ledger_index`
2021-08-06 12:18:53 -05:00
Nathan Nichols
76780c8a8e
Run Integration Tests in Browser ( #1468 )
...
* ci: Adds github actions testing for webpacked integration test
2021-08-02 16:29:35 -05:00
Nathan Nichols
d9a42c8669
Allow XAddress Issuers ( #1471 )
...
* feat: Allow clients to use XAddresses for issuers
2021-07-30 13:16:01 -05:00
Mayukha Vadari
6e0fff2ad6
Reduce dependencies on lodash ( #1467 )
...
* assign -> Object.assign
* replace isundefined
* remove forEach
* remove some
* remove reduce
* remove keys
* remove map
* remove includes
* remove filter
* remove last
* remove isstring
* remove every
* remove rearg
* remove indexOf
* remove values
* remove startswith
* remove first and pick
* build smaller lodash
* remove lodash.isequal package
* add lodash-cli dev dependency
* add lodash script
* test fix
* Revert "build smaller lodash" This reverts commit 979446e57f60b29cb5d377b54efe91cfbeae0707.
* upgrade npm
* change ===/!== undefined to ==/!= null
2021-07-29 20:18:08 -04:00
Rome Reginelli
4e49b6a99c
docs: edit style and update old URLs ( #1420 )
...
Use example.com instead of ripple.com
Co-authored-by: Elliot Lee <github.public@intelliot.com >
2021-07-27 16:15:56 -07:00
Nathan Nichols
9adfd404e5
GitHub Actions Integration Tests ( #1466 )
...
* ci: Add Github Actions integration testing against standalone rippled
2021-07-27 12:47:55 -05:00
Mayukha Vadari
cdf9e33ad2
Fixes miscommunication with ripplingDisabled in trustlines ( #1481 )
2021-07-27 13:23:13 -04:00
Elliot Lee
aa081a4348
refactor!: remove deprecated ledger fields ( #1160 )
...
Per https://github.com/ripple/rippled/issues/3214
The following fields are deprecated and may be removed without further notice: accepted, hash (use ledger_hash instead), seqNum (use ledger_index instead), totalCoins (use total_coins instead).
2021-07-26 16:10:55 -07:00
Elliot Lee
dd30e33e8e
fix: add void return type to Promises ( #1477 )
...
Follow-up to #1476
2021-07-26 14:04:46 -05:00
Jackson Mills
0ac1061d26
Added test for lowercase memo hex ( #1475 )
...
Added test for lowercase hex in transaction memo
* Relaxed existing test to accept case change in memo after decoding
* Added check of resulting signature
2021-07-26 10:41:21 -07:00
Antonio Campos
3fdc56ab90
fix #1210 : update mocha to use RC file config ( #1417 )
2021-06-01 15:56:07 -07:00
Elliot Lee
c8b0035897
fix: prevent getFee from returning NaN from Reporting Mode ( #1401 )
...
When using a rippled server in Reporting Mode, the server_info response does not have a load_factor property.
https://xrpl.org/rippled-server-modes.html#reporting-mode
https://github.com/ripple/rippled/issues/3812
Now, when load_factor is missing, we default to a load_factor of 1.
Fix #1398
2021-05-10 13:56:31 -07:00
elmurci
650d722609
Fix #1353 : add memos support for multiple transaction types in getTransactions ( #1397 )
...
* fix(#1353 ): adds memos support for the following transaction types in `getTransactions`:
- AccountDelete
- OfferCreate
- OfferCancel
- CheckCancel
- CheckCash
- CheckCreate
- DepositPreauth
- SetFee
- PaymentChannelFund
- PaymentChannelClaim
- PaymentChannelCreate
- TicketCreate
2021-04-08 11:46:54 +02:00
Elliot Lee
debb9cb3a5
fix: deserialization and verification of payment paths ( #1382 )
...
Fixes #1347
Ref #1376
2021-03-12 16:17:48 -08:00
Javi
1c1a3fa583
fix(refactor): rename prepareTicket to prepareTicketCreate ( https://github.com/ripple/ripple-lib/pull/1324#discussion_r519027049 )
2020-11-08 09:53:17 +01:00
Javi
81dfd99642
fix(docs): Update docs
2020-11-06 11:23:14 +01:00
Javi
9f6fa6a4fd
fix: sequence 0 check, lint and format
2020-11-06 10:58:21 +01:00
Javi
fd0f64fe54
fix(tests): more unit tests
2020-11-06 10:44:46 +01:00
Javi
c7e08378ac
feat(tickets): first commit, preparePayment and prepareTicket
2020-11-05 12:41:54 +01:00
Elliot Lee
83b5c7f678
Fix preparePayment when using source.amount/destination.minAmount ( #1295 )
...
See: https://github.com/ripple/ripple-lib/issues/1237#issuecomment-631670946
Fix #1237
Thanks to @leobel
2020-05-26 15:48:50 -07:00
Elliot Lee
3c13da66b3
Export hashing functions ( #1275 )
...
The now-deprecated ripple-hashes library provided a number of hash
functions for users to compute the hashes/IDs for various XRP Ledger
objects:
* Transactions (to generate transaction hashes, also known as IDs)
* Transaction signing hashes (to sign transactions)
* Ledger Object IDs (to look up specific ledger objects in a ledger's
state tree; see https://xrpl.org/ledger-object-ids.html )
This commit exports these utility methods from ripple-lib as static
methods. Access them on the RippleAPI class. Example:
import {RippleAPI} from 'ripple-lib'
const hash = RippleAPI.computeBinaryTransactionHash(...)
2020-04-28 14:19:36 -07:00
Elliot Lee
547b63b891
Run prettier (yarn format)
2020-04-27 12:06:18 -07:00
Elliot Lee
c26ddb497e
Add api.connection.getReserveBase() ( #1259 )
...
* Returns the current minimum reserve, in drops of XRP, that is required
for an account.
* Release 1.6.6-beta.2
2020-04-27 10:02:03 -07:00
Elliot Lee
804094b1ce
Fix generateXAddress() and generateXAddress() with no entropy ( #1211 )
...
Fix #1209
Calling: Uint8Array.from(undefined)
Throws:
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at Function.from (<anonymous>)
* generateSeed: Pass only entropy and algorithm
* Update typescript and ripple-keypairs
* Improve unit tests
* Rename [Original Address] to [Classic Address] in test output
2020-02-18 11:14:09 -08:00
Nicholas Smith
c17827e030
Assign event listener to socket close event on open before attempting post-open logic ( #1186 )
...
* Assign event listener to socket close event on open before attempting to execute post-connection logic, prottects possible unhandled rejection in disconnect
* Remove try/catch for linting failure
* Up timeout for CI failure
* Feedback emit error for disconnection failure on connect failure
* Feedback ignore error on disconnect, propagate root cause
* Feedback add extra test check for expected error on connect
* Feedback remove setTimeout for await reconnect
2020-01-28 09:08:47 -05:00
Nicholas Smith
e03b192fcc
Catch possible error in reconnect() on _heartbeat(), emit reconnect error
2020-01-15 12:36:39 -05:00
FKSRipple
f6b3f661d6
Merge branch 'develop' into connection-cleanup-tests
2020-01-10 16:15:16 -08:00
FKSRipple
c564400ac4
Merge pull request #1119 from ripple/connection-cleanup-ledger
...
Add LedgerHistory to Connection
2020-01-10 16:07:08 -08:00
Fred K. Schott
5f208801ee
move backoff into codebase
2020-01-08 14:50:17 -08:00
Fred K. Schott
30cf4f0b00
cleanup event listeners
2020-01-08 12:20:58 -08:00
Fred K. Schott
e4bb88a725
clarify comment
2020-01-08 12:20:58 -08:00
Fred K. Schott
e3822e6bc3
refactor tests for the new connection logic
2020-01-08 12:20:58 -08:00
Elliot Lee
138e7942da
Add support for AccountDelete ( #1120 )
...
https://xrpl.org/accountdelete.html
2020-01-06 04:01:10 -08:00
Elliot Lee
f3dd2fec99
Merge pull request #1098 from nickewansmith/fix-possible-unhandled-throw-on-send
...
Adds unit test for ripple#1092, fixes unhandled throw on upgraded ws send
2020-01-05 19:51:58 -08:00
Fred K. Schott
fc524894c6
add ledger to connection
2019-12-18 11:35:47 -08:00