Mayukha Vadari
2ca164311b
Lints test/models ( #1578 )
2021-10-04 14:10:11 -04:00
Mayukha Vadari
91cc9e0461
Lints test/utils ( #1575 )
...
* rename model tests
* rename util tests
* turn off `any` complaints in linter
* other linter changes
* fix xrp <-> drops methods
* lint generateAddress
* fix rest of tests
2021-10-04 14:10:11 -04:00
Mayukha Vadari
b53bc2bc97
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-10-04 14:10:11 -04:00
Nathan Nichols
8b95ee5fab
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-10-04 14:10:10 -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