4460 Commits

Author SHA1 Message Date
Denis Angell
8eaf7bed7a Merge branch 'transia-beta' into amm 2023-03-28 19:03:38 +00:00
Denis Angell
6e6fdadeac update definitions 2023-03-28 18:58:05 +00:00
Denis Angell
ecfa0ea3f8 Publish
- @transia/ripple-address-codec@4.2.6-tbeta.0
 - @transia/ripple-binary-codec@1.4.4-tbeta.0
 - @transia/ripple-keypairs@1.1.6-tbeta.0
 - @transia/xrpl@2.7.1-tbeta.0
@transia/ripple-keypairs@1.1.6-tbeta.0 @transia/ripple-binary-codec@1.4.4-tbeta.0 @transia/ripple-address-codec@4.2.6-tbeta.0 @transia/xrpl@2.7.1-tbeta.0
2023-03-28 18:52:39 +00:00
Denis Angell
cbbeebffa9 update versions 2023-03-28 18:51:51 +00:00
Denis Angell
05f75b7316 update package names 2023-03-28 18:50:43 +00:00
Denis Angell
c04d1c8708 Hooks (#2)
* feature `Hooks`

update definitions

add network id to base transaction

add set hook

update required

update definitions

make network id required

* update hook

update hook

add test and validation

add estimate fee func

fix estimated fee error

add hook utils

* update hookon transaction types

* add invoke tx

* ledger entry objects

* remove sugar export

* update definitions

* remove network id

* export transaction type map from definitions

* lint

* fix error

* fixup unit test

* update hook on calcaulator

* add uritoken (req for hook on calc)

* add network id (req for sethook)

* update tests
2023-03-28 18:45:17 +00:00
Denis Angell
ac2f4bac8b URIToken (#3)
* update definitions

* add transactions

* rename Transactors

revert transactors
2023-03-28 18:35:45 +00:00
Denis Angell
61942003f6 Amm (#6)
* 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

---------

Co-authored-by: Omar Khan <khancodegt@gmail.com>
2023-03-28 18:34:34 +00:00
Denis Angell
6f077f8e51 Network ID (#4)
* update definitions

* add network id to base transaction

* update server info

* update base tx

* add network id to autofill

* update tests and fixtures

* network id option 3

fixup

add network id to server info fixture

fixup!

Revert "update tests and fixtures"

This reverts commit a5deee1274.

* update autofill

* update getNetworkID

* remove set network func

* fixup!

remove autoset network id

remove my mistake

fixup!
2023-03-28 18:26:25 +00:00
Caleb Kniffen
62a39c69ce chore: bump codeql-analysis (#2246) 2023-03-27 18:32:54 -04:00
dependabot[bot]
dfd2fc1ba1 build(deps-dev): bump webpack from 5.75.0 to 5.76.0 (#2241)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 16:42:34 -04:00
dependabot[bot]
41563d1529 build(deps-dev): bump expect from 29.4.2 to 29.4.3 (#2230) 2023-03-23 14:13:53 +00:00
Elliot Lee
d57233fc49 CONTRIBUTING: update release checklist (#2238)
---------

Co-authored-by: Jackson Mills <jmills@ripple.com>
2023-03-22 17:07:19 -07:00
tequ
bbbdf06e91 add destination_account field to PathOption(path_find method) (#2160)
* add destination_account field to PathOption(path_find method)

* fix field name

* Fix grammar in comment

* Fix sentence with missing end

* Add HISTORY.md

---------

Co-authored-by: Jackson Mills <jmills@ripple.com>
2023-03-22 17:42:46 -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
Alexey Novikov
97ff2aa104 Issue 2212. Improve NFToken.URI handling for empty and undefined values (#2218)
* Handle undefined and null values in transactions better.
2023-03-09 13:34:28 -08:00
Jackson Mills
b3d3bc2f99 Release xrpl.js 2.7.0 (#2240) ripple-address-codec@4.2.5 ripple-binary-codec@1.4.3 ripple-keypairs@1.1.5 xrpl@2.7.0 2023-03-08 15:05:00 -08:00
Caleb Kniffen
4ec8c99056 feat: remove nft-devnet (#2237)
The nft-devnet was decommissioned on January 31st 2023 ([Blog Post](https://xrpl.org/blog/2023/nft-devnet-decommission.html)).
2023-03-08 13:16:22 -06:00
Caleb Kniffen
3c2bfdf766 fix: rename DisallowIncoming flag for NFTs (#2235)
`lsfDisallowIncomingNFTOffer` to `lsfDisallowIncomingNFTokenOffer`
`asfDisallowIncomingNFTOffer` to `asfDisallowIncomingNFTokenOffer`

Related to XRPLF/rippled#4442
2023-03-08 11:52:18 -06:00
Jackson Mills
2286d295bb Fix typo in getNFTokenID test name (#2236)
Fix typo
2023-03-06 19:48:51 -08:00
Tushar Pardhe
0fa5415d29 Fixed NFTokenMinter field validation error in AccountSet Transaction (#2201) 2023-03-01 12:35:48 -08:00
Omar Khan
f9f210715c refactor isIssue to isCurrency 2023-02-22 19:22:01 -05:00
Omar Khan
5c7e315826 Merge branch 'main' into amm 2023-02-22 18:44:57 -05:00
Jackson Mills
5d34746f12 Add a helper to get the NFTokenID after minting (#2205) 2023-02-21 14:42:52 -08:00
Jackson Mills
3d0bec7e89 Add support for disallowIncoming flags (#2221)
* Add support for disallowIncoming flags

* Fix broken tests

* Update packages/xrpl/src/models/ledger/AccountRoot.ts

* Update packages/xrpl/src/models/ledger/AccountRoot.ts

* Update HISTORY.md
2023-02-21 10:22:47 -08:00
Omar Khan
d43fd788d4 update asset pair to use Currency type 2023-02-21 13:12:14 -05:00
dependabot[bot]
fde954640f build(deps-dev): bump prettier from 2.8.3 to 2.8.4 (#2210) 2023-02-16 22:08:03 +00:00
Mayukha Vadari
b2dcce75b0 docs: update release instructions with beta details (#2213)
* Update release instructions with beta details

* add tag details

* add version info
2023-02-16 16:07:46 -05:00
Omar Khan
651780fe67 refactor: convert flags to number 2023-02-16 12:37:29 -05:00
Omar Khan
d495903fb4 Merge branch 'main' into amm 2023-02-15 23:26:19 -05:00
Omar Khan
df75b4a908 replace Issue with IssuedCurrency 2023-02-15 23:13:05 -05:00
dependabot[bot]
e6c7c88209 build(deps-dev): bump webpack-cli from 4.9.2 to 5.0.1 (#2165)
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.2 to 5.0.1.
- [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@4.9.2...webpack-cli@5.0.1)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 16:12:33 -08:00
Omar Khan
d2f7fe622b add missing asset_frozen field 2023-02-15 18:45:07 -05:00
Omar Khan
7e8427785c add Owner Reserve Fee for AMMCreate transaction 2023-02-15 18:21:30 -05:00
Omar Khan
287dc1acf8 rename test model names and fix lint errors 2023-02-15 18:18:07 -05:00
Omar Khan
88b82118a3 Merge branch 'main' into amm 2023-02-15 17:53:13 -05:00
Mayukha Vadari
b1af321eb0 refactor: alphabetize ledger_entry commands and reorganize account_objects (#2206)
* move AccountObjectType to accountObjects.ts

* alphabetize ledgerEntry

* remove extra account object type
2023-02-15 12:10:06 -05:00
Mayukha Vadari
8fe87c0e86 fix: add npm v8 support to lerna setup (#2204)
* add support for npm 8
2023-02-08 12:00:50 -05:00
Jackson Mills
bef2f79fee Update linter peer dependencies (#2168) 2023-02-07 15:00:55 -08:00
dependabot[bot]
7dd38f6a76 build(deps-dev): bump typescript from 4.6.4 to 4.9.5 (#2192) 2023-02-07 16:56:21 +00:00
justinr1234
cb8cec2caa fix: load osano first in docs site (#2202) 2023-02-06 11:23:52 -06:00
justinr1234
5fe480ece4 feat: Jest Test Runner (#2170) 2023-02-03 17:03:07 -06:00
justinr1234
5a63f18faf feat: GTM tracking on docs website (#2197) 2023-02-03 16:37:24 -06:00
pdp2121
c74ffddf59 fix: unset hash128 fields using AccountSet (#2156) 2023-02-01 12:27:02 -05:00
pdp2121
bbc9bd9e4a Add README.md in snippets folder to point to xrpl.org code samples (#2189)
Add README.md in snippets folder to point to xrpl.org code samples

Co-authored-by: Elliot Lee <github.public@intelliot.com>
2023-02-01 12:17:55 -05:00
pdp2121
c6cebefdbe Add code sample link to README (#2188)
Co-authored-by: Elliot Lee <github.public@intelliot.com>
2023-01-30 16:10:27 -05:00
Jackson Mills
62a5b60b0d Remove xls20-sandbox tests (#2190) 2023-01-27 12:39:51 -08:00
Jackson Mills
45963b7035 Re-organize the README (#2180)
* Re-organize the README
2023-01-13 15:23:13 -08:00
dependabot[bot]
ad32205306 build(deps): bump json5 from 1.0.1 to 1.0.2 (#2176)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elliot Lee <github.public@intelliot.com>
2023-01-12 11:37:47 -05:00
Omar Khan
8cdeb2ba99 update time_interval description 2023-01-09 18:13:18 -05:00