Mayukha Vadari
5120b0fc83
refactor: moves fixtures closer to tests ( #1551 )
...
* modify account_info mocks
* move account_objects
* move server_info
* remove config (no longer needed)
* switch to simple dictionary instead of handlers
* fix rebase issues
* refactor: addResponse method on mock server object (#1555 )
Co-authored-by: Elliot Lee <github.public@intelliot.com >
2021-10-04 14:10:09 -04:00
Mayukha Vadari
52f1789ecd
Remove ledger methods from Connection ( #1543 )
...
* remove ledger subscription from connection
* remove more client ledger stuff
* resolve TS concerns
* fix all tests except broadcast tests
* fix broadcast tests
* clean up more ledger stuff in testing
* respond to comments
2021-10-04 14:10:09 -04:00
Mayukha Vadari
0b08de5956
Removes methods that were just rippled wrappers ( #1550 )
...
* remove getAccountInfo
* remove getAccountObjects
* remove getBalanceSheet (gateway_balances)
* remove getLedger
* remove getOrders (account_orders)
* remove getPaymentChannel (ledger_entry)
* remove getTransaction(s) (tx/account_tx)
* remove getSettings (account_info)
* remove getServerInfo (server_info)
* fix integ tests
* remove submit (also deprecated)
* fix integ tests
* add TODO
2021-10-04 14:10:09 -04:00
Mayukha Vadari
59396c3f8f
Edit Client constructor to take a server URI ( #1544 )
...
* edit Client
* fix TS issues + tests
* minor edits
* rename ClientBroadcast -> BroadcastClient
2021-10-04 14:10:09 -04:00
Mayukha Vadari
f49b9d4b0e
Rewrite XrplClient.request and general cleanup ( #1519 )
...
* first attempt at overloading
* fix TS issues
* improve connection typing
* more cleanup
* edit all ledger files
* more renames
* fix all other request calls
* clean up serverinfo
* fixes more request calls
* remove old legacy browser stuff
* remove unused types
* remove exports from objects
* add type to method signatures
* add ledger requests
* fix most tests
* comment out formatBidsAndAsks
* fix proxy test
* comment out failing tests
* move client-related files into client
* add payment channel requests
* fix imports
* remove finished TODOs
* fix tests
* fix integ tests
* remove exported types
* better ci
2021-10-04 14:10:09 -04:00
Mukul Jangid
478e147ae0
refactor: define typescript type for SetRegularKey transaction ( #1548 )
...
* refactor: define typescript type for SetRegularKey transaction
2021-10-04 14:10:09 -04:00
Nathan Nichols
d324056203
refactor: Define PaymentChannelFund transaction model ( #1535 )
...
refactor: Define PaymentChannelFund transaction model (#1535 )
2021-10-04 14:10:09 -04:00
Nathan Nichols
db8f7c1bcb
refactor: Define EscrowCreate transaction model ( #1530 )
...
refactor: Define EscrowCreate transaction model (#1530 )
2021-10-04 14:10:09 -04:00
Nathan Nichols
4469d1cbf8
refactor: Define PaymentChannelClaim transaction model ( #1536 )
...
refactor: Define PaymentChannelClaim transaction model (#1536 )
2021-10-04 14:10:08 -04:00
Nathan Nichols
05365a8690
refactor: Define PaymentChannelCreate transaction ( #1533 )
...
refactor: Define PaymentChannelCreate transaction model (#1533 )
2021-10-04 14:10:08 -04:00
Omar Khan
f6b9878334
refactor: define TicketCreate transaction model ( #1547 )
...
- Defines a TypeScript type for TicketCreate
- Provides an optional function to users for verifying a TicketCreate instance at runtime: verifyTicketCreate()
- Adds tests for verifyTicketCreate()
2021-10-04 14:10:08 -04:00
Nathan Nichols
f68eb37565
refactor: Define EscrowFinish transaction model ( #1531 )
...
refactor: Define EscrowFinish transaction model (#1531 )
2021-10-04 14:10:08 -04:00
Nathan Nichols
f95ffee0b0
refactor: define models for EscrowCancel ( #1511 )
...
refactor: define models for EscrowCancel (#1511 )
2021-10-04 14:10:08 -04:00
Omar Khan
d5d996a92e
refactor: define TrustSet transaction model ( #1549 )
...
- Defines a TypeScript type for TrustSet
- Provides an optional function to users for verifying a TrustSet instance at runtime: verifyTrustSet()
- Adds tests for verifyTrustSet()
2021-10-04 14:10:08 -04:00
Omar Khan
2ff0dde91d
refactor: define DepositPreauth transaction model ( #1545 )
...
- Defines a TypeScript type for DepositPreauth
- Provides an optional function to users for verifying a DepositPreauth instance at runtime: verifyDepositPreauth()
- Adds tests for verifyDepositPreauth()
2021-10-04 14:10:08 -04:00
Omar Khan
bec487cf71
refactor: Define PaymentTransaction model ( #1542 )
...
- Defines a TypeScript type for PaymentTransaction
- Provides an optional function to users for verifying a PaymentTransaction instance at runtime: verifyPaymentTransaction()
- Adds tests for verifyPaymentTransaction()
- Adds isFlagEnabled() util to be used for models
2021-10-04 14:10:08 -04:00
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
Omar Khan
51b4ff7a2c
define TypeScript types for Payment Channel methods ( #1518 )
...
add TypeScript type for payment channel methods
2021-10-04 14:10:08 -04:00
Jackson Mills
ec54841617
Added Ledger Method Interfaces ( #1502 )
...
Added request and response method interfaces for the api.
2021-10-04 14:10:08 -04:00
Mayukha Vadari
2166d8349e
Implements TypeScript types for transaction method requests/responses ( #1517 )
...
* submit
* submit_multisigned
* transaction_entry
* tx
* export
* move searched_all to TxResponse
2021-10-04 14:10:08 -04:00
Mayukha Vadari
1ecd6a7e2a
Implements TypeScript types for server info method requests/responses ( #1514 )
...
* fee
* manifest
* server_info
* server_state
* export
* fix amendment_blocked type
* fix typo
2021-10-04 14:10:07 -04:00
Mayukha Vadari
a0907472c9
Implements TypeScript types for utility method requests/responses ( #1516 )
...
* ping
* random
* export
2021-10-04 14:10:07 -04:00
Mayukha Vadari
57112c086c
Implements TypeScript types for subscribe requests/responses/streams ( #1510 )
...
* subscribe
* streams
* unsubscribe
* exports
* fix merge issues
* respond to comments
2021-10-04 14:10:07 -04:00
Jackson Mills
b7f39e7225
Removed legacy exit code conversion ( #1504 )
2021-10-04 14:10:07 -04:00
Mayukha Vadari
f16876014c
Implements TypeScript types for path and order book methods ( #1503 )
...
* book offers
* deposit authorized
* path_find
* ripple_path_find
* export
* fix typos
* fix issues
* respond to comments
* make `pathFind` id optional
* make source_currencies optional
2021-10-04 14:10:07 -04:00
Mayukha Vadari
68ac32fc06
Defines TypeScript types for rippled account method requests & responses ( #1498 )
...
* 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
* respond to comments
* edit BaseResponse to be more specific
2021-10-04 14:10:07 -04:00
Mayukha Vadari
0886af33fd
Defines TypeScript types for all ledger objects ( #1499 )
...
* offer
* accountroot
* amendments
* check
* deposit preauth
* directory node
* escrow
* fee settings
* ledger hashes
* negative unl
* pay channel
* ripple state
* signer list
* ticket
* export
* respond to comments
* rename files to camelCase
2021-10-04 14:10:07 -04:00
Elliot Lee
6e4868e6c7
Update repository.url ( #1670 )
2021-09-27 07:04:26 -07:00
Bharath Chari
718b0ac5a5
Update LICENSE ( #1660 )
2021-09-23 14:41:47 +03:00
Nathan Nichols
8a815e17ca
Correctly export txFlags and accountSetFlags ( #1571 )
...
* fix: export txFlags and accountSetFlags
2021-09-09 08:52:07 -07:00
dependabot[bot]
25d5d408d8
build(deps-dev): bump ts-node from 10.1.0 to 10.2.1 ( #1590 )
...
Bumps [ts-node](https://github.com/TypeStrong/ts-node ) from 10.1.0 to 10.2.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases )
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.1.0...v10.2.1 )
---
updated-dependencies:
- dependency-name: ts-node
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>
2021-09-01 15:03:28 -05:00
dependabot[bot]
0845ff786b
build(deps-dev): bump ts-loader from 8.3.0 to 9.2.5 ( #1585 )
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 8.3.0 to 9.2.5.
- [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/v8.3.0...v9.2.5 )
---
updated-dependencies:
- dependency-name: ts-loader
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>
2021-09-01 12:35:52 -07:00
dependabot[bot]
ecdeaf700e
build(deps-dev): bump webpack from 5.48.0 to 5.51.1 ( #1584 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.48.0 to 5.51.1.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.48.0...v5.51.1 )
---
updated-dependencies:
- dependency-name: webpack
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>
2021-09-01 14:12:37 -05:00
dependabot[bot]
4413f78d22
build(deps-dev): bump stream-http from 3.1.1 to 3.2.0 ( #1587 )
...
Bumps [stream-http](https://github.com/jhiesey/stream-http ) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/jhiesey/stream-http/releases )
- [Commits](https://github.com/jhiesey/stream-http/compare/v3.1.1...v3.2.0 )
---
updated-dependencies:
- dependency-name: stream-http
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>
2021-09-01 14:07:53 -05:00
dependabot[bot]
d3c6d775af
build(deps-dev): bump @types/node from 16.4.10 to 16.7.10 ( #1586 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.4.10 to 16.7.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
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>
2021-09-01 14:07:39 -05:00
dependabot[bot]
49092d5dc1
build(deps-dev): bump webpack-cli from 4.7.2 to 4.8.0 ( #1583 )
...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli ) from 4.7.2 to 4.8.0.
- [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.7.2...webpack-cli@4.8.0 )
---
updated-dependencies:
- dependency-name: webpack-cli
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>
2021-09-01 13:33:44 -05:00
dependabot[bot]
3e79959e11
build(deps-dev): bump mocha from 9.0.3 to 9.1.1 ( #1582 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 9.0.3 to 9.1.1.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v9.0.3...v9.1.1 )
---
updated-dependencies:
- dependency-name: mocha
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>
2021-09-01 13:33:00 -05:00
dependabot[bot]
7c528f7ac0
build(deps): bump @types/lodash from 4.14.171 to 4.14.172 ( #1581 )
...
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash ) from 4.14.171 to 4.14.172.
- [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:production
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>
2021-09-01 13:32:46 -05:00
dependabot[bot]
e5a2096c57
build(deps-dev): bump puppeteer from 5.4.1 to 10.2.0 ( #1579 )
...
Bumps [puppeteer](https://github.com/puppeteer/puppeteer ) from 5.4.1 to 10.2.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases )
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/puppeteer/puppeteer/compare/v5.4.1...v10.2.0 )
---
updated-dependencies:
- dependency-name: puppeteer
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>
2021-09-01 13:32:26 -05:00