* add apiVersion support to requests and AccountInfoResponse v1/v2 types
* fix submitAndWait signature
* update docker container README
* update tests
* fix apiVersion param in wrong position of Client.request
* add integ tests
* update HISTORY.md
* fix request.api_version
* update RIPPLED_DOCKER_IMAGE to use v2.1.0
* refactor Client.request signature
* update rippled docker image
* fix Client.requestAll
* update rippled docker image to use v2.1.1
* update README
* use import type
* fix faucet; unrelated to PR
* add api_version v2 support and set as default while providing support for v1
* refactor: add apiVersion to Client
* resolve errors
* use DeliverMax for isPartialPayment check
* update fixtures
* resolve lint errors
* add API v1 support for isPartialPayment
* update CONTRIBUTING
* update accountTx JSDoc
* revert deleted JSDoc comments in accountTx
* update JSDoc for account_info response
* only use client.apiVersion in Client.request()
* add ledger_hash
* remove API v1 comment from v2 model
* update meta_blob JSDoc
* delete second AccountTxRequest matching
* add close_time_iso
* set close_time_iso as optional field
* add meta_blob to BaseResponse
* Revert "add meta_blob to BaseResponse"
This reverts commit 89794c629dc515915e28752d7c2552bfeab266a3.
* use DEFAULT_API_VERSION throughout call stack
* improve JSDoc explanation of ledger_index
* remove this.apiVersion from getLedgerIndex
* refactor Client.request()
* refactor RequestManger.resolve()
* add TODO to fix TxResponse type assertion
* use @category ResponsesV1 for API v1 types
* refactor accountTxHasPartialPayment()
* remove TODO
refactor: type Transaction to include all tx
BREAKING CHANGE: `Transaction` type has been redefined to include all
transactions and `SubmittableTransaction` was created to define the old
value. The following functions which only handle transactions to be
submitted now use `SubmittableTransaction`:
* `Client.autofill`
* `Client.submit`
* `Client.submitAndWait`
* `Client.prepareTransaction`
* `getSignedTx`
* `isAccountDelete`
Add type for metadata for specific transactions(`Payment`, `NFTokenMint`, `NFTokenCreateOffer`, `NFTokenAcceptOffer`, `NFTokenCancelOffer`)
Closes#2316
* fix: make docs not output confusing information in xrpl client
---------
Co-authored-by: Jackson Mills <jmills@ripple.com>
Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
Removes the testing polyfills by using jasmine and not jest in the
browser. We were already using jasmine but where overriding those
methods with jest versions which was not needed.
The previous karma setup also used a single entrypoint which meant that
not all integration tests were running because all files were not
imported in integrations/index.ts.
This also eliminates 79 dev dependencies.
Switch to using fetch for browser and `node-fetch` for node for the faucet calls. This reduces the webpack bundle by 3.2% or 16.5kb gzipped.
The fundWallet code has been refactored to be much more straight forward due to not having to do such low level operations.
This improves the frontend setup process by no longer requiring several polyfills such as `url`, `stream-http`, and `https-browserify`.
* add XChainCreateBridge integration test
* add XChainCreateClaimID integration test
* add XChainCommit integration test
* add XChainAccountCreateCommit integration test
* simplify tests
* add XChainModifyBridge integration test
* add XChainAddAccountCreateAttestation integration test
* add XChainAddClaimAttestation integration test
* improve SignerListSet integration test
* rename variable to match
* add XChainClaim integration test
* clean up
* add IOU attestation test
* fix integration tests issues
* minor refactors
* fix bug
* [WIP] switch to one bridge for all integration tests
* clean up
* fix tests
* fix + clean up tests
Expose most of the types in the `xrpl` package. Some renames will only
affect you if you were deep importing these types previously.
Renames of deep importable types:
- `methods/bookOffers`: `TakerAmount` -> `BookOfferCurrency`
- `methods/accountLines`: `Trustline` -> `AccountLinesTrustline`
- `NFTokenMint` needs `NonFungibleTokensV1_1` enabled instead of `NonFungibleTokensV1` .
- `fee_ref` is no longer returned after `XRPFees` amendment is enabled.
* Update NFTokenMint test
* Ensure the binary version works as well
* Remove meta being undefined in txResponse
* Remove error test
* Re-add test, error, and lint
* Add meta to test, and add string to allowed type
* Re-add meta being undefined with proper docs
* fix test:integration command to run tests directly under ./test/integration
* refactor jest setup to have separate config files for integration and unit tests
* various typing fixes for NFT support that were originally missed
* add optional faucet URL to fundWallet
* run docgen and commit changes
* fixes integration tests