Omar Khan
37fbc03584
2.11 release ( #2442 )
...
* update HISTORY
* update docgen
* update package versions
ripple-binary-codec@1.9.0
xrpl@2.11.0
2023-08-24 13:44:29 -04:00
Jackson Mills
49447a9beb
ci: Add a script to generate changes to ci-config ( #2431 )
...
* Add basic lookup for amendments
2023-08-18 15:24:48 -07:00
Omar Khan
5581474627
feat: add AMM support ( #2071 )
...
* update definitions.json
* add AMMInstanceCreate
* renamed LPTokens to LPToken in definitions.json
* update HISTORY.md
* add amm_info RPC command
* add AMMDeposit
* use null check for missing fields
* add AMMWithdraw
* add AMMVote
* fix lint error
* add max trading fee check to AMMVote
* refactor MAX_TRADING_FEE to be in one place
* add AMMBid
* add AuthAccount interface to AMMBid
* refactor tests
* add AMMID to AMMInfoResponse
* update amm_info docstrings
* fix EPrice type to be Amount
* update EPrice validation error message and add missing tests
* update definitions to fix AMM in LEDGER_ENTRY_TYPES
* add missing test case Asset1In and Asset2In valid
* add missing test case Asset1Out and Asset2Out valid
* add negative FeeVal check
* update HISTORY.md to specify XLS-30
* update wording on AMMDeposit & AMMWithdraw validation errors
* add negative TradingFee check
* fix ammInfo response
* add AMMID as optional param in ammInfo response
* fix EPrice validation checks in AMMDeposit & AMMWithdraw
* add VoteSlots as optional param in AMMInfoResponse
* update VoteEntry interface
* fix deposit and withdraw tests
* fix AMMBid ValidationError
* update definitions.json with different AuthAccounts number
* Change amm_info asset parameters to Currency type
* API name changes with updated definitions.json
* rename amm_info param asset1 -> asset
* fix typo
* change AMM_MAX_TRADING_FEE to 1%
* Use Asset/Asset2 instead of AMMID for Deposit/Withdraw/Bid/Vote
* add Deposit/Withdraw flags
* rename FeeVal -> TradingFee in VoteEntry
* rename MinBidPrice -> BidMin and MaxBidPrice -> BidMax
* update definitions to change Asset & Asset2 nth values to 3 & 4
* update definitions
* add Issue type and tests for Asset/Asset2
* remove AMMID from amm_info and use Issue type
* update amm_info fields
* fix lint errors
* update unit tests
* add AMM codec-fixtures
* update Issue type
* add one asset and withdraw all tests
* refactor amm_info response fields to match AMMDevnet
* update definitions.json with refactored error codes
* update ammInfo.ts response model
* remove invalid fields from ammInfo.ts response model
* update time_interval description
* rename test model names and fix lint errors
* add Owner Reserve Fee for AMMCreate transaction
* add missing asset_frozen field
* replace Issue with IssuedCurrency
* refactor: convert flags to number
* update asset pair to use Currency type
* refactor isIssue to isCurrency
* add AMM ledger entry object, lsfAMM flag, amm fields to LedgerEntryRequest
* update definitions.json
* WIP defintions
* update codec-fixtures
* fix definitions test
* update DiscountedFee definition
* update definitions
* update codec-fixtures
* update definitions
* update unit tests
* update amm_info response
* sort imports/exports
* update jsdoc
* update amm_info jsdoc
* update jsdoc
* convert caution to all caps
* add validation for AuthAccounts
* refactor and export interfaces
* use Currency type
* update definitions
* add AMMDelete
* rename Issue to Currency in error message
* mark asset frozen as optional fields
* refactor isAuthAccounts
* add AMMDelete jsdoc
* rename to validateAuthAccounts
* fix typo
* fix typo in unit test
---------
Co-authored-by: Caleb Kniffen <ckniffen@ripple.com >
2023-08-17 22:42:32 -04:00
jonathanlei
93ea98ac4a
fix docs broken links ( #2436 )
...
fix broken links
2023-08-15 13:13:13 -07:00
Caleb Kniffen
2192e11267
fix: source-maps find their designated source ( #2435 )
...
fix: source-maps find their designate source
We weren't including the `src` folder in the files published too npm.
This caused errors such as the following seen in the sandbox and by
users on discord.
```
WARNING in ./node_modules/xrpl/dist/npm/utils/xrpConversion.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/sandbox/node_modules/xrpl/src/utils/xrpConversion.ts' file: Error: ENOENT: no such file or directory, open '/sandbox/node_modules/xrpl/src/utils/xrpConversion.ts'
```
2023-08-15 10:37:05 -05:00
Caleb Kniffen
352abae003
chore: remove extra files for git, nyc, and mocha ( #2422 )
...
- Remove `.gitignore` from individual packages.
- Remove `nyc.config.js` and `.nycrc` since `nyc` is no longer in use
- Remove `.mocharc` and `localIntegrationRunner.html` since `mocha` is
no longer in use.
2023-08-15 10:19:15 -05:00
Daniel
aa75806f2f
[Feature] Generate Wallet from secret numbers ( #1799 )
...
* add the possibility to create a wallet from Secret Numbers
* Move it off the Wallet class
2023-08-14 17:39:35 -07:00
dependabot[bot]
3d94a24739
build(deps-dev): bump eslint from 8.41.0 to 8.46.0 ( #2413 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.41.0 to 8.46.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.41.0...v8.46.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-11 18:37:47 -05:00
dependabot[bot]
bedb1f0f31
build(deps-dev): bump jest from 29.6.1 to 29.6.2 ( #2416 )
2023-08-11 10:23:34 +00:00
Mo Morsi
6856dec466
docs: Fix typo in documentation: on('transactions') -> on('transaction') ( #2430 )
2023-08-09 13:42:54 -07:00
Jackson Mills
bd46f19604
docs: Update CONTRIBUTING.md ( #2427 )
2023-08-08 15:14:12 -07:00
Jackson Mills
002ec77218
release: Update package.json files ( #2425 )
...
Update package.json files
xrpl@2.10.0
ripple-binary-codec@1.8.0
2023-08-07 14:50:14 -07:00
Jackson Mills
c4097935a9
release: Update HISTORY.md ( #2424 )
...
* Update HISTORY.md
* Run docgen
2023-08-07 14:31:24 -07:00
dependabot[bot]
da6fa296c6
build(deps-dev): bump jest-mock from 29.6.1 to 29.6.2 ( #2419 )
2023-08-03 19:31:47 +00:00
dependabot[bot]
12be15af40
build(deps-dev): bump @types/lodash from 4.14.195 to 4.14.196 ( #2414 )
...
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash ) from 4.14.195 to 4.14.196.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash )
---
updated-dependencies:
- dependency-name: "@types/lodash"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 14:19:50 -05:00
dependabot[bot]
a05f68a352
build(deps-dev): bump webpack-cli from 5.1.1 to 5.1.4 ( #2417 )
...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli ) from 5.1.1 to 5.1.4.
- [Release notes](https://github.com/webpack/webpack-cli/releases )
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@5.1.1...webpack-cli@5.1.4 )
---
updated-dependencies:
- dependency-name: webpack-cli
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 10:50:00 -07:00
dependabot[bot]
e3eabb5bac
build(deps-dev): bump eslint-plugin-import from 2.27.5 to 2.28.0 ( #2415 )
...
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import ) from 2.27.5 to 2.28.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases )
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md )
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.27.5...v2.28.0 )
---
updated-dependencies:
- dependency-name: eslint-plugin-import
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-02 17:49:38 -05:00
dependabot[bot]
fa28b47111
build(deps-dev): bump typedoc from 0.24.7 to 0.24.8 ( #2402 )
2023-07-24 15:15:01 +00:00
Caleb Kniffen
f760b2e56f
chore: remove extra lock files and nyc ( #2403 )
...
nyc is not a direct dependency any more and nested lock files are unused
2023-07-20 15:03:17 -05:00
dependabot[bot]
03ba07dda1
build(deps-dev): bump jest and @types/jest ( #2397 )
...
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest ) and [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest ). These dependencies needed to be updated together.
Updates `jest` from 29.5.0 to 29.6.1
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v29.6.1/packages/jest )
Updates `@types/jest` from 29.5.1 to 29.5.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-minor
- dependency-name: "@types/jest"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Caleb Kniffen <ckniffen@ripple.com >
2023-07-20 13:42:43 -05:00
dependabot[bot]
8972e5e463
build(deps-dev): bump url from 0.11.0 to 0.11.1 ( #2400 )
...
Bumps [url](https://github.com/defunctzombie/node-url ) from 0.11.0 to 0.11.1.
- [Commits](https://github.com/defunctzombie/node-url/compare/v0.11.0...v0.11.1 )
---
updated-dependencies:
- dependency-name: url
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-20 13:26:55 -05:00
dependabot[bot]
104afa4b71
build(deps-dev): bump source-map-loader from 3.0.2 to 4.0.1 ( #2399 )
2023-07-20 18:02:20 +00:00
dependabot[bot]
c6f6c78d48
build(deps-dev): bump ts-loader from 9.4.2 to 9.4.4 ( #2395 )
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 9.4.2 to 9.4.4.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases )
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.4.2...v9.4.4 )
---
updated-dependencies:
- dependency-name: ts-loader
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-20 12:39:27 -05:00
dependabot[bot]
0972fc29e8
build(deps-dev): bump ts-jest from 29.1.0 to 29.1.1 ( #2396 )
2023-07-20 17:22:34 +00:00
Shawn Xie
63ea6e8c9b
feat: add Clawback amendment support ( #2353 )
...
* Add Clawback transaction
* Account flag lsfAllowTrustLineClawback
* Support bitwise flag checking of 64 bit flags
2023-07-19 14:39:48 -05:00
dependabot[bot]
c564161871
build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 ( #2392 )
...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap ) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases )
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4 )
---
updated-dependencies:
- dependency-name: word-wrap
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 11:58:23 -05:00
pdp2121
5ec6729c61
release 2.9.1 ( #2391 )
ripple-binary-codec@1.7.1
xrpl@2.9.1
2023-07-18 15:29:32 -05:00
Shawn Xie
d158770c24
Update docker to xrpllabsofficial/xrpld:1.12.0-b1 ( #2381 )
2023-07-18 14:09:32 -05:00
justinr1234
e760a4898d
fix: escrow finish and cancel integration ( #2382 )
...
* fix: escrow finish and cancel integration
* add docs
2023-07-17 16:56:06 -05:00
Wietse Wind
d47a277e25
Fix #2361 - Custom definitions in STArray»STObject ( #2362 )
...
Custom binary codec fixes xrpl.js#2361 - missed param def
2023-07-14 09:45:31 -05:00
Caleb Kniffen
c523a7c80b
release: xrpl@2.9.0 and ripple-binary-codec@1.7.0 ( #2380 )
ripple-binary-codec@1.7.0
xrpl@2.9.0
2023-07-12 16:52:06 -05:00
Wo Jake
6a31d4d254
fix: enable the removal of a signer list ( #2377 )
...
`SignerQuorum` field has to be 0 and the `SignerEntrys` field has to be `undefined`
Co-authored-by: Caleb Kniffen <ckniffen@ripple.com >
2023-07-12 16:05:07 -05:00
Caleb Kniffen
19792d4fbb
feat: remove more puppeteer code ( #2373 )
...
Forgot to remove the types in #2331
Closes #2364
2023-07-11 08:37:00 -05:00
Caleb Kniffen
f07e2c7108
feat: export Balance type ( #2374 )
...
Closes #1823
2023-07-10 16:54:22 -05:00
dependabot[bot]
82436918b7
build(deps-dev): bump webpack-bundle-analyzer from 4.8.0 to 4.9.0 ( #2367 )
2023-07-07 14:34:26 +00:00
dependabot[bot]
74de24cf75
build(deps-dev): bump @types/chai from 4.3.4 to 4.3.5 ( #2363 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.3.4 to 4.3.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai )
---
updated-dependencies:
- dependency-name: "@types/chai"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-05 18:16:19 -05:00
dependabot[bot]
eccba409c0
build(deps-dev): bump webpack from 5.83.0 to 5.88.1 ( #2365 )
2023-07-05 16:46:15 +00:00
dependabot[bot]
c02b33be08
build(deps-dev): bump karma-chrome-launcher from 3.1.1 to 3.2.0 ( #2366 )
2023-07-05 16:03:10 +00:00
Caleb Kniffen
dbd5852ba6
feat(types): Export most of the types ( #2360 )
...
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`
2023-07-03 17:03:51 -05:00
Caleb Kniffen
5925ad2f00
feat: expose LedgerEntry singletons ( #2358 )
...
Adds the new fields for `XRPFees` amendment and id for the `FeeSettings`
singleton ledger entry.
Closes #2219
2023-07-03 16:34:42 -05:00
Caleb Kniffen
9b0c1e53e3
fix(types): SignerList was missing WalletLocator ( #2359 )
...
`SignerEntry` on `SignerList` (LedgerEntry) was missing `WalletLocator`.
This was found while trying to use types on the xrpl.org explorer.
2023-07-03 11:08:07 -05:00
Caleb Kniffen
23256aed5d
feat(types): Update FeeSettings and add id ( #2357 )
...
Adds the new fields for `XRPFees` amendment and id for the `FeeSettings`
singleton ledger entry.
Closes #2219
2023-06-29 16:27:00 -05:00
Caleb Kniffen
70500dcc15
feat(types): Add pseudo transactions ( #2351 )
...
Add types for `EnableAmendment`, `SetFee`, and `UNLModify` transactions.
2023-06-29 14:20:36 -05:00
Caleb Kniffen
fd0b2275c1
feat: enable 1.10.0 amendments for tests ( #2356 )
...
- `NFTokenMint` needs `NonFungibleTokensV1_1` enabled instead of `NonFungibleTokensV1` .
- `fee_ref` is no longer returned after `XRPFees` amendment is enabled.
2023-06-29 13:10:52 -05:00
Caleb Kniffen
97552cc1a5
feat(types): define new account_flags field ( #2352 )
...
The `account_flags` field was added to the `account_info` response for `rippled@1.11 .0`
2023-06-27 15:14:48 -05:00
Caleb Kniffen
b152ebc4ce
feat: add ledger entry types for NFTokens ( #2349 )
...
Add `NFToken`, `NFTokenPage`, and `NFTokenOffer`
2023-06-26 12:57:47 -05:00
Caleb Kniffen
b6d6fafebc
feat: cleanup types and add missing request fields ( #2346 )
...
- Add `ledger_hash` and `ledger_index` to `account_nfts`,
`nft_buy_offers`, and `nft_sell_offers` requests.
- Add `nft_page` to `ledger_entry` request.
- Create `LookupByLedgerRequest` to clean up `ledger_hash` and
`ledger_index` which are optional on most request objects.
Closes #2135
2023-06-26 12:47:15 -05:00
Jackson Mills
dc51e3a704
Update getNFTokenID to properly handle binary blob ( #2247 )
...
* 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
2023-06-23 16:17:29 -07:00
Mayukha Vadari
6228f91c00
test: run snippets in CI ( #2345 )
...
* run snippets in CI
* add name, try to avoid building
* better printing
* refactors
* fix getTransaction test
2023-06-22 13:26:16 -04:00
Caleb Kniffen
fa98bd8d26
feat: add missing AccountRoot fields ( #2347 )
...
Add `BurnedNFTokens`, `FirstNFTSequence`, `MintedNFTokens`,
`NFTokenMinter`, and `WalletLocator` to `AccountRoot`.
2023-06-21 12:49:34 -05:00