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
dependabot[bot]
f5f1534f12
build(deps-dev): bump @types/node from 16.9.4 to 16.10.2 ( #360 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.9.4 to 16.10.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
2021-10-04 13:44:12 -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
dependabot[bot]
6e2db6db20
build(deps-dev): bump eslint-plugin-mocha from 6.3.0 to 9.0.0 ( #351 )
...
Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha ) from 6.3.0 to 9.0.0.
- [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases )
- [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/lo1tuma/eslint-plugin-mocha/compare/6.3.0...9.0.0 )
2021-09-21 09:12:16 -04:00
dependabot[bot]
d08a62b9a1
build(deps-dev): bump @types/node from 16.9.1 to 16.9.4 ( #355 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.9.1 to 16.9.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
2021-09-21 09:11:19 -04:00
dependabot[bot]
7669304fbe
build(deps-dev): bump eslint-plugin-prettier from 3.4.1 to 4.0.0 ( #352 )
...
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) from 3.4.1 to 4.0.0.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/commits/v4.0.0 )
2021-09-21 09:09:06 -04:00
dependabot[bot]
575892d044
build(deps-dev): bump prettier from 2.4.0 to 2.4.1 ( #350 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.4.0...2.4.1 )
2021-09-20 18:57:14 -04:00
dependabot[bot]
f58a938bb8
build(deps-dev): bump typescript from 4.4.2 to 4.4.3 ( #348 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.2...v4.4.3 )
2021-09-14 12:46:39 -04:00
dependabot[bot]
83d04bea77
build(deps-dev): bump prettier from 2.3.2 to 2.4.0 ( #347 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.3.2 to 2.4.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.3.2...2.4.0 )
2021-09-14 12:46:14 -04:00
dependabot[bot]
43dbaf6b61
build(deps-dev): bump @types/node from 16.7.10 to 16.9.1 ( #346 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.7.10 to 16.9.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
2021-09-14 12:37:37 -04:00
dependabot[bot]
845d70fefc
build(deps-dev): bump source-map-support from 0.5.19 to 0.5.20 ( #345 )
...
Bumps [source-map-support](https://github.com/evanw/node-source-map-support ) from 0.5.19 to 0.5.20.
- [Release notes](https://github.com/evanw/node-source-map-support/releases )
- [Commits](https://github.com/evanw/node-source-map-support/compare/v0.5.19...v0.5.20 )
2021-09-14 12:37:21 -04: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]
0b1064fead
build(deps-dev): bump eslint from 6.8.0 to 7.32.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 6.8.0 to 7.32.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v6.8.0...v7.32.0 )
2021-09-06 15:01:09 +00:00
dependabot[bot]
9d77ea0161
build(deps-dev): bump mocha from 8.3.2 to 9.1.1
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 8.3.2 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/v8.3.2...v9.1.1 )
2021-09-02 19:01:32 +00:00