Commit Graph

34 Commits

Author SHA1 Message Date
Mayukha Vadari
89e319fe0a Lints src/models (#1572)
* resolve src/models/methods

* PaymentTransaction => Payment, remove empty returns

* fix common, method signatures

* fix checkCash

* handle complexity complaints

* fix jsdocs

* handle magic numbers

* finish models/transactions

* fix models/utils

* fix models/ledger

* fix ts issues

* fix tests

* fix modifiedoffercreatetransaction

* remove comments, fix additional TODO
2021-09-14 17:02:40 -04:00
Nathan Nichols
6742e2048a build: Initial linting setup (#1560)
* sets up linting config and runs `yarn lint --fix` once, so that all changes will show up correctly in future PRs.

* Note that there are still a lot of linter errors.
2021-09-14 17:00:46 -04:00
Mayukha Vadari
7696fb957e 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-09-14 16:56:36 -04:00
Mayukha Vadari
d1cfbf42e6 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-09-14 16:56:36 -04:00
Mukul Jangid
1baccd6c57 refactor: define typescript type for SetRegularKey transaction (#1548)
* refactor: define typescript type for SetRegularKey transaction
2021-09-14 16:56:36 -04:00
Nathan Nichols
4842a06f8a refactor: Define PaymentChannelFund transaction model (#1535)
refactor: Define PaymentChannelFund transaction model (#1535)
2021-09-14 16:56:36 -04:00
Nathan Nichols
2509a2906a refactor: Define EscrowCreate transaction model (#1530)
refactor: Define EscrowCreate transaction model (#1530)
2021-09-14 16:56:36 -04:00
Nathan Nichols
7499ae7460 refactor: Define PaymentChannelClaim transaction model (#1536)
refactor: Define PaymentChannelClaim transaction model (#1536)
2021-09-14 16:56:36 -04:00
Nathan Nichols
3997227b3c refactor: Define PaymentChannelCreate transaction (#1533)
refactor: Define PaymentChannelCreate transaction model (#1533)
2021-09-14 16:56:36 -04:00
Omar Khan
250ebc5a99 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-09-14 16:56:36 -04:00
Nathan Nichols
18cce5a50a refactor: Define EscrowFinish transaction model (#1531)
refactor: Define EscrowFinish transaction model (#1531)
2021-09-14 16:56:36 -04:00
Nathan Nichols
becf3a4f00 refactor: define models for EscrowCancel (#1511)
refactor: define models for EscrowCancel (#1511)
2021-09-14 16:56:35 -04:00
Omar Khan
9e16327676 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-09-14 16:56:35 -04:00
Omar Khan
f7b93c54ff 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-09-14 16:56:35 -04:00
Omar Khan
1010183d2e 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-09-14 16:56:35 -04:00
Mukul Jangid
f1c35a81b4 refactor: define typescript type for AccountDelete transaction (#1537)
* refactor: define typescript type for AccountDelete transaction
2021-09-14 16:56:35 -04:00
Mukul Jangid
cfab859a20 fix: resolve OfferCancel merge issues (#1546)
* fix: resolve OfferCancel git issues
2021-09-14 16:56:35 -04:00
Mukul Jangid
e9d0d40db5 refactor: define typescript type for AccountSet transaction (#1515)
* define typescript type for AccountSet transaction
2021-09-14 16:56:35 -04:00
Mukul Jangid
b2d03363a6 refactor: define typescript types for OfferCancel Transaction Model (#1512)
* define typescript types for OfferCancel Transaction Model
2021-09-14 16:56:35 -04:00
Mukul Jangid
1cc23c6ba9 refactor: define SignerListSet model and tests (#1538)
* define typescript type for SignerListSet transaction
2021-09-14 16:56:35 -04:00
Mukul Jangid
94066da224 refactor: define typescript types for CheckCash Transaction Model (#1522)
* Define Typescript types for CheckCash Transaction Model
2021-09-14 16:55:45 -04:00
Mukul Jangid
61a8923e2a 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-09-14 16:55:45 -04:00
Mukul Jangid
c328bb9620 refactor: define typescript types for CheckCreate Transaction Model (#1524)
* feat: define checkCreate model

* test: add tests
2021-09-14 16:55:45 -04:00
Nathan Nichols
6cf8738598 refactor: Define typescript definition for OfferCreate (#1508)
* refactor: Define OfferCreate transaction type
2021-09-14 16:55:45 -04:00
Nathan Nichols
a4207a552b refactor: Add common transaction fields Typescript definition (#1507)
refactor: Add common transaction fields Typescript definition (#1507)
2021-09-14 16:55:43 -04:00
Omar Khan
b2b4b86f4d define TypeScript types for Payment Channel methods (#1518)
add TypeScript type for payment channel methods
2021-09-14 16:44:39 -04:00
Jackson Mills
18810208b6 Added Ledger Method Interfaces (#1502)
Added request and response method interfaces for the api.
2021-09-14 16:44:39 -04:00
Mayukha Vadari
a7687cf36f Implements TypeScript types for transaction method requests/responses (#1517)
* submit

* submit_multisigned

* transaction_entry

* tx

* export

* move searched_all to TxResponse
2021-09-14 16:44:39 -04:00
Mayukha Vadari
b2934ecf1c Implements TypeScript types for server info method requests/responses (#1514)
* fee

* manifest

* server_info

* server_state

* export

* fix amendment_blocked type

* fix typo
2021-09-14 16:44:39 -04:00
Mayukha Vadari
bca846de97 Implements TypeScript types for utility method requests/responses (#1516)
* ping

* random

* export
2021-09-14 16:44:39 -04:00
Mayukha Vadari
07fcc8e66f Implements TypeScript types for subscribe requests/responses/streams (#1510)
* subscribe

* streams

* unsubscribe

* exports

* fix merge issues

* respond to comments
2021-09-14 16:44:39 -04:00
Mayukha Vadari
dbde3ff189 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-09-14 16:44:39 -04:00
Mayukha Vadari
aed5aa9ad5 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-09-14 16:44:39 -04:00
Mayukha Vadari
78c69b445a 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-09-14 16:44:39 -04:00