Caleb Kniffen
83870acbfb
fix: remove need to --force builds + cleanup ( #2468 )
...
This is done by properly deleting all build files.
Package-lock was due to it not reflecting the license of
@xrplf/secret-numbers. This was fixed by running `npm i`.
2024-02-01 13:45:11 -06:00
Caleb Kniffen
cddb048588
feat: remove util polyfill and fix HISTORY.md ( #2432 )
...
- Remove `util` from bundle by switching `inspect` to `JSON.stringify`
- Update `HISTORY.md` with latest 3.0 changes
2024-02-01 13:45:09 -06:00
Jackson Mills
a0e53ac9e1
fix: Fix invariant assertion in binary-codec ( #2429 )
...
* Fix assertion
* Add a test
2024-02-01 13:43:55 -06:00
Caleb Kniffen
328987a0a3
feat(deps): remove assert-browserify ( #2389 )
...
Use if statements and manually error throwing to save 20kb gzipped.
BREAKING CHANGE: If you were catching AssertionError you need to change to Error.
2024-02-01 13:43:55 -06:00
Caleb Kniffen
8caf2e45bb
feat: remove decimal.js and big-integer ( #2379 )
...
Reduces the bundle size by 8% (41kb)
BigInteger is now well supported so the library is no longer needed.
BigNumber was already being used by xrpl and they had almost identical
interfaces as they are both based on Java.
2024-02-01 13:43:55 -06:00
Caleb Kniffen
30bbc3f837
feat: remove node 14 support ( #2386 )
2024-02-01 13:41:52 -06:00
Caleb Kniffen
9f8502d522
feat: bump typescript to 5.x ( #2387 )
2024-02-01 13:41:51 -06:00
Jackson Mills
e7e5a3a506
Add a CONTRIBUTING.md to ripple-binary-codec ( #2617 )
...
Add binary-codec-contributing doc
2024-01-23 15:44:44 -08:00
Jackson Mills
99dd0eb44c
Release xrpl.js 2.11.0 ( #2591 )
...
Update HISTORY.md + Run docgen
2023-11-30 15:27:12 -06:00
Mayukha Vadari
c8f25a6347
feat: add support for XLS-40d + add script to auto-generate models from rippled code ( #2491 )
...
Add support for XLS-40 and adds a script to automatically
generate transaction models from rippled source code.
### Context of Change
https://github.com/XRPLF/XRPL-Standards/pull/136
https://github.com/XRPLF/rippled/pull/4636
2023-11-15 16:19:50 -06:00
Mayukha Vadari
68beac73d1
test: add integration tests for sidechain transactions ( #2301 )
...
* 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
2023-10-25 10:08:58 -04:00
Jackson Mills
60b600faea
docs: update keywords for all packages ( #2502 )
...
Update keywords for all packages to make the easier to find
2023-10-04 16:19:51 -05:00
Omar Khan
62cea624f8
2.12 release ( #2488 )
...
* update HISTORY
* docgen
* update HISTORY again
* update package.json files
2023-09-27 11:50:21 -04:00
Mayukha Vadari
91e7369f1b
feat: add support for current sidechain design ( #2039 )
...
* Update definitions.json
* add new st types
* add tests
* add XChainClaim tx
* add XChainCommit tx
* add XChainCreateBridge tx
* add XChainCreateClaimID tx
* update definitions.json
* rename Bridge -> XChainBridge in binary codec, fix tests
* rename Bridge -> XChainBridge in models
* add codec support for XChainAddAttestation
* add XChainAddAttestation model
* undo debugging change
* fix linting issues
* update definitions.json for new rippled code, add new tests/update old tests
* add/update models
* update history
* update binary-codec
* add XChainModifyBridge model
* update RPCs
* update to latest rippled
* more fixes
* fix definitions.json
* fix spacing
* update definitions.json to avoid conflict with amm
* update definitions.json to resolve amm conflicts
* audit code
* more updates
* update rpcs
* switch to beta version
* add destination tag to XChainClaim
* rename IssuedCurrency -> Issue to match rippled
* update Issue form
* fix account object filters
* fix issue from typing
* fix LedgerEntry types
* fix attestation destination type
* Update definitions.json
* rename XChainAddAttestation -> XChainAddAttestationBatch
* add XChainAddClaimAttestation
* add XChainAddAccountCreateAttestation
* remove XChainAddAttestationBatch
* update definitions
* fix attestation txns
* fix attestation object
* add validate for new txs
* add Bridge ledger object
* add XChainOwnedClaimID ledger object
* add XChainOwnedCreateAccountClaimID ledger object
* update account_objects
* update models to latest rippled
* fix minor issues
* fix bridge ledger_entry
* add XChainModifyBridge flag
* Update definitions.json
* add rbc tests for the new txs
* update validateXChainModifyBridge
* add validate methods to other xchain txs
* fix isXChainBridge
* fix isIssue typing
* fix model types
* update changelog
* switch prepare to prepublishOnly
* add docs
* fix AccountObjectsType filter
* export common types
* fix account_objects filter
* update LedgerEntry
* add sidechain faucet info
* add snippet
* improve snippet
* fix spacing issues
* update ledger_entry
* remove AMMDelete tests for now
* Update definitions.json
* fix unit tests
* convert createValidate script to JS
* remove unneeded linter ignores
* respond to comments
* more snippet fixes
* make validate functions more readable
* add getXChainClaimID method to parse metadata
* re-add linter rules
* clean up common
* fix getXChainClaimID test
* return undefined for failed tx
* test: add model tests for new sidechain transactions (#2059 )
* add XChainAddAttestation tests, fix model
* add XChainClaim model tests
* add XChainCommit model tests, fix typo
* add XChainCreateBridge model tests
* add XChainCreateClaimID model tests
* add XChainModifyBridge tests
* update to most recent version of code
* remove XChainAddAttestationBatch tests
* add more validation tests
* switch createValidateTests to JS
2023-09-26 10:01:21 -04:00
Caleb Kniffen
8e5aa9df99
doc: update HISTORY.md with source-map fix ( #2467 )
...
This was missed when I did #2435 which led to `ripple-address-codec` and
`ripple-keypairs` not being released.
2023-09-06 17:26:59 -05:00
Omar Khan
37fbc03584
2.11 release ( #2442 )
...
* update HISTORY
* update docgen
* update package versions
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
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
Jackson Mills
002ec77218
release: Update package.json files ( #2425 )
...
Update package.json files
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
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
pdp2121
5ec6729c61
release 2.9.1 ( #2391 )
2023-07-18 15:29:32 -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 )
2023-07-12 16:52:06 -05:00
Denis Angell
5b0989df51
feature NetworkID ( #2216 )
...
Added network id to the base transaction
Added network id to the server_info response
Added network id to the binary codec
Added network id to client and modify on client.connect()
Added network id to autofill when rippled_version is 1.11.0 or later or network is hooks testnet
Co-authored-by: Phu Pham <ppham@ripple.com >
Co-authored-by: pdp2121 <71317875+pdp2121@users.noreply.github.com >
Co-authored-by: Jackson Mills <aim4math@gmail.com >
Co-authored-by: Mayukha Vadari <mvadari@gmail.com >
2023-06-14 15:15:18 -04:00
Jackson Mills
3791c6292c
2.8.0 release ( #2343 )
2023-06-13 14:15:08 -07:00
Mayukha Vadari
82c5b3598a
feat: support npm v9 ( #2318 )
...
* add support for npm v9
* Update package-lock.json
* Update nodejs.yml
* update changelogs
* update PR template
2023-05-25 16:01:42 -04:00
dependabot[bot]
7a89f8c63e
build(deps): bump buffer from 5.6.0 to 6.0.3 ( #2249 )
2023-04-21 21:11:28 +00:00
Mayukha Vadari
be2aa32542
fix: don't run ripple-binary-codec tests on install ( #2260 )
...
fix rbc scripts
2023-04-06 13:03:23 -04:00
Jackson Mills
0c6ea2afe2
feat: modifiable definitions.json values at runtime via encode/decode parameter ( #2127 )
2023-03-16 10:35:50 -07:00
Jackson Mills
b3d3bc2f99
Release xrpl.js 2.7.0 ( #2240 )
2023-03-08 15:05:00 -08:00
Jackson Mills
bef2f79fee
Update linter peer dependencies ( #2168 )
2023-02-07 15:00:55 -08:00
justinr1234
5fe480ece4
feat: Jest Test Runner ( #2170 )
2023-02-03 17:03:07 -06:00
pdp2121
c74ffddf59
fix: unset hash128 fields using AccountSet ( #2156 )
2023-02-01 12:27:02 -05:00
Caleb Kniffen
9df848fcc6
fix(build): Allow m1 macs to build binary-codec ( #2109 )
...
Switch from `run-script-os` to `copyfiles`. Using `copyfiles` is a more
ideal way to copy files in an os agnostic way.
Fixes #2092 .
2022-10-12 12:35:33 -05:00
Mayukha Vadari
d7c3583a8f
refactor: use xrpl-codec-gen for definitions.json ( #2037 )
...
* Update definitions.json
* update CONTRIBUTING
* fix tests
* fix UNL
2022-07-19 21:01:19 +01:00
Omar Khan
aff6988f09
Release xrpl packages ( #2028 )
...
* update package and package-lock json
* update HISTORY files
2022-06-27 21:11:07 -04:00
Jackson Mills
89240eae62
Handle edge cases for standard currency code signing ( #2009 )
...
* Allow decoding symbols + lowercase standard codes
* Standardize the treatment of standard codes and hex codes for verifying transaction equivalence
2022-06-17 14:27:47 -07:00
Jackson Mills
4fddd8f41d
Release xrpl packages ( #2021 )
...
* Update HISTORY.md for release
* Run docgen
2022-06-02 11:03:56 -07:00
Jackson Mills
c994ac7b65
Add better error for trying to encode invalid transactions ( #2001 )
2022-05-24 15:57:08 -07:00
Caleb Kniffen
3ed93aa19e
Prepare release of xrpl@2.2.1 and ripple-address-codec@4.2.4
2022-04-21 17:10:44 -05:00
Jackson Mills
8ab4240f02
Lerna changes ( #1968 )
2022-04-19 10:16:39 -07:00
Omar Khan
9d94f4a8ab
rename XLS-20 fields ( #1966 )
...
* rename TokenTaxon -> NFTokenTaxon
* rename MintedTokens -> MintedNFTokens
* rename BurnedTokens -> BurnedNFTokens
* update binary for NFTokenID rename
* rename TokenID -> NFTokenID
* rename TokenOffers -> NFTokenOffers
* rename BrokerFee -> NFTokenBrokerFee
* rename Minter -> NFTokenMinter
* rename NonFungibleToken -> NFToken
* rename NonFungibleTokens -> NFTokens
* rename BuyOffer -> NFTokenBuyOffer
* rename SellOffer -> NFTokenSellOffer
* rename OfferNode -> NFTokenOfferNode
* fix binary for serialize tests
* Add missing MintedNFTokens def + fix tests
* nftokenid -> nft_id
* asfAuthorizedMinter -> asfAuthorizedNFTokenMinter
* Update tec/tem error codes
* Add new definitions
* Update HISTORY.md
* Change to 1.4.0 for binary-codec
* Docgen
* Update HISTORY.md
Co-authored-by: Jackson Mills <jmills@ripple.com >
2022-04-19 10:02:18 -07:00
Elliot Lee
1e30b4cb43
[ripple-binary-codec] Update HISTORY - 1.3.2 ( #1924 )
...
Co-authored-by: Mayukha Vadari <mvadari@ripple.com >
2022-02-08 11:00:48 -08:00
Omar Khan
9d1fdb412e
Release ripple-binary-codec version 1.3.2 ( #1922 )
...
* update package.json & package-lock.json
* update package
Co-authored-by: Elliot Lee <github.public@intelliot.com >
2022-02-03 12:04:38 -05:00
Elliot Lee
cbdbfe5b8e
Merge branch 'main' into ripple-binary-codec-1.3.1
2022-02-02 17:50:39 -08:00
Jackson Mills
b0e0f9f329
Remove exception from decoding issued currencies which evaluate to 'XRP' ( #1920 )
...
* Remove throw and revise tests
* Update chai dependency
* Disabling linter error about extraneous import
* Fix typo in test description
* Revert unnecessary test changes
* Remove unnecessary comments
* Revert chai change
* Add HISTORY.md
* Revert chai change in package-lock as well
* Fix typo
* Check the result of the decoding
* Update tests with correct expected behavior.
* Fix tests and update currency.js
* Update currency.ts
2022-02-02 18:05:42 -05:00
Omar Khan
8f79c51c7c
[ripple-binary-codec] fix ISO when parsing currency code ( #1921 )
2022-02-02 17:52:08 -05:00