mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Fix Windows contributors being unable to build and test the xrpl mono repo (#1822)
* Let ripple-binary-codec to build on windows & nix Co-authored-by: Justintime <justinthenicholasoftime@protonmail.com>
This commit is contained in:
61
package-lock.json
generated
61
package-lock.json
generated
@@ -51,6 +51,7 @@
|
||||
"prettier": "^2.3.2",
|
||||
"process": "^0.11.10",
|
||||
"puppeteer": "10.4.0",
|
||||
"run-script-os": "^1.1.6",
|
||||
"source-map-support": "^0.5.16",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"stream-http": "3.2.0",
|
||||
@@ -14865,6 +14866,16 @@
|
||||
"queue-microtask": "^1.2.2"
|
||||
}
|
||||
},
|
||||
"node_modules/run-script-os": {
|
||||
"version": "1.1.6",
|
||||
"resolved": "https://registry.npmjs.org/run-script-os/-/run-script-os-1.1.6.tgz",
|
||||
"integrity": "sha512-ql6P2LzhBTTDfzKts+Qo4H94VUKpxKDFz6QxxwaUZN0mwvi7L3lpOI7BqPCq7lgDh3XLl0dpeXwfcVIitlrYrw==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"run-os": "index.js",
|
||||
"run-script-os": "index.js"
|
||||
}
|
||||
},
|
||||
"node_modules/rxjs": {
|
||||
"version": "6.6.7",
|
||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||
@@ -18062,7 +18073,7 @@
|
||||
}
|
||||
},
|
||||
"packages/ripple-address-codec": {
|
||||
"version": "4.1.3",
|
||||
"version": "4.2.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"base-x": "3.0.9",
|
||||
@@ -18074,7 +18085,7 @@
|
||||
}
|
||||
},
|
||||
"packages/ripple-binary-codec": {
|
||||
"version": "1.1.3",
|
||||
"version": "1.2.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"assert": "^2.0.0",
|
||||
@@ -18082,7 +18093,7 @@
|
||||
"buffer": "5.6.0",
|
||||
"create-hash": "^1.2.0",
|
||||
"decimal.js": "^10.2.0",
|
||||
"ripple-address-codec": "^4.1.1"
|
||||
"ripple-address-codec": "^4.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.22.0",
|
||||
@@ -18099,14 +18110,14 @@
|
||||
}
|
||||
},
|
||||
"packages/ripple-keypairs": {
|
||||
"version": "1.0.3",
|
||||
"version": "1.1.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"bn.js": "^5.1.1",
|
||||
"brorand": "^1.0.5",
|
||||
"elliptic": "^6.5.4",
|
||||
"hash.js": "^1.0.3",
|
||||
"ripple-address-codec": "^4.0.0"
|
||||
"ripple-address-codec": "^4.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 10",
|
||||
@@ -18114,7 +18125,7 @@
|
||||
}
|
||||
},
|
||||
"packages/xrpl": {
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"bignumber.js": "^9.0.0",
|
||||
@@ -18122,11 +18133,14 @@
|
||||
"bip39": "^3.0.4",
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
"lodash": "^4.17.4",
|
||||
"ripple-address-codec": "^4.1.1",
|
||||
"ripple-binary-codec": "^1.1.3",
|
||||
"ripple-keypairs": "^1.0.3",
|
||||
"ripple-address-codec": "^4.2.0",
|
||||
"ripple-binary-codec": "^1.2.0",
|
||||
"ripple-keypairs": "^1.1.0",
|
||||
"ws": "^8.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"xrpl-local": "file:./src"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0",
|
||||
"npm": ">=7.14.0 <8.0.0"
|
||||
@@ -18151,6 +18165,13 @@
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"packages/xrpl/node_modules/xrpl-local": {
|
||||
"resolved": "packages/xrpl/src",
|
||||
"link": true
|
||||
},
|
||||
"packages/xrpl/src": {
|
||||
"dev": true
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -29748,7 +29769,7 @@
|
||||
"buffer": "5.6.0",
|
||||
"create-hash": "^1.2.0",
|
||||
"decimal.js": "^10.2.0",
|
||||
"ripple-address-codec": "^4.1.1"
|
||||
"ripple-address-codec": "^4.2.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"buffer": {
|
||||
@@ -29769,7 +29790,7 @@
|
||||
"brorand": "^1.0.5",
|
||||
"elliptic": "^6.5.4",
|
||||
"hash.js": "^1.0.3",
|
||||
"ripple-address-codec": "^4.0.0"
|
||||
"ripple-address-codec": "^4.2.0"
|
||||
}
|
||||
},
|
||||
"rsvp": {
|
||||
@@ -29793,6 +29814,12 @@
|
||||
"queue-microtask": "^1.2.2"
|
||||
}
|
||||
},
|
||||
"run-script-os": {
|
||||
"version": "1.1.6",
|
||||
"resolved": "https://registry.npmjs.org/run-script-os/-/run-script-os-1.1.6.tgz",
|
||||
"integrity": "sha512-ql6P2LzhBTTDfzKts+Qo4H94VUKpxKDFz6QxxwaUZN0mwvi7L3lpOI7BqPCq7lgDh3XLl0dpeXwfcVIitlrYrw==",
|
||||
"dev": true
|
||||
},
|
||||
"rxjs": {
|
||||
"version": "6.6.7",
|
||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||
@@ -32160,10 +32187,11 @@
|
||||
"bip39": "^3.0.4",
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
"lodash": "^4.17.4",
|
||||
"ripple-address-codec": "^4.1.1",
|
||||
"ripple-binary-codec": "^1.1.3",
|
||||
"ripple-keypairs": "^1.0.3",
|
||||
"ws": "^8.2.2"
|
||||
"ripple-address-codec": "^4.2.0",
|
||||
"ripple-binary-codec": "^1.2.0",
|
||||
"ripple-keypairs": "^1.1.0",
|
||||
"ws": "^8.2.2",
|
||||
"xrpl-local": "file:src"
|
||||
},
|
||||
"dependencies": {
|
||||
"ws": {
|
||||
@@ -32171,6 +32199,9 @@
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz",
|
||||
"integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==",
|
||||
"requires": {}
|
||||
},
|
||||
"xrpl-local": {
|
||||
"version": "file:packages/xrpl/src"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
"prettier": "^2.3.2",
|
||||
"process": "^0.11.10",
|
||||
"puppeteer": "10.4.0",
|
||||
"run-script-os": "^1.1.6",
|
||||
"source-map-support": "^0.5.16",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"stream-http": "3.2.0",
|
||||
|
||||
@@ -20,7 +20,9 @@
|
||||
"ripple-address-codec": "^4.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc -b && cp ./src/enums/definitions.json ./dist/enums",
|
||||
"build": "run-script-os",
|
||||
"build:default": "tsc -b && copy .\\src\\enums\\definitions.json .\\dist\\enums",
|
||||
"build:nix": "tsc -b && cp ./src/enums/definitions.json ./dist/enums",
|
||||
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
|
||||
"prepare": "npm run build && npm test",
|
||||
"test": "jest",
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
"ripple-keypairs": "^1.1.0",
|
||||
"ws": "^8.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"xrpl-local": "file:./src"
|
||||
},
|
||||
"resolutions": {
|
||||
"elliptic": "^6.5.4"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { Client } from 'xrpl-local'
|
||||
|
||||
// how long before each test case times out
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import {
|
||||
XrplError,
|
||||
AccountDelete,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { Client } from 'xrpl-local'
|
||||
|
||||
describe('client constructor', function () {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { XrplError, NotFoundError } from 'xrpl-local'
|
||||
|
||||
import { setupClient, teardownClient } from '../setupClient'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import BigNumber from 'bignumber.js'
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { BookOffersRequest } from 'xrpl-local'
|
||||
import { ValidationError, XrplError } from 'xrpl-local/errors'
|
||||
import { OfferFlags } from 'xrpl-local/models/ledger'
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any -- required for formatting transactions */
|
||||
import { expect } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import type { TransactionStream } from 'xrpl-local'
|
||||
|
||||
import rippled from '../fixtures/rippled'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { hasNextPage } from 'xrpl-local'
|
||||
|
||||
import rippled from '../fixtures/rippled'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { ValidationError } from 'xrpl-local'
|
||||
import { Transaction } from 'xrpl-local/models/transactions'
|
||||
import Wallet from 'xrpl-local/Wallet'
|
||||
|
||||
@@ -3,7 +3,6 @@ import net from 'net'
|
||||
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import {
|
||||
Client,
|
||||
ConnectionError,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import assert from 'assert'
|
||||
|
||||
import _ from 'lodash'
|
||||
|
||||
import {
|
||||
Client,
|
||||
isValidClassicAddress,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import assert from 'assert'
|
||||
|
||||
import _ from 'lodash'
|
||||
|
||||
import { Client } from 'xrpl-local'
|
||||
import { AccountSet, SignerListSet } from 'xrpl-local/models/transactions'
|
||||
import { convertStringToHex } from 'xrpl-local/utils'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { Client } from 'xrpl-local'
|
||||
|
||||
import serverUrl from './serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import {
|
||||
AccountSet,
|
||||
Client,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountChannelsRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountCurrenciesRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountInfoRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountLinesRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountObjectsRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountOffersRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountTxRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { BookOffersRequest, BookOffersResponse } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { ChannelVerifyRequest, ChannelVerifyResponse } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { DepositAuthorizedRequest, DepositAuthorizedResponse } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { FeeRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { GatewayBalancesRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { LedgerRequest, LedgerResponse } from 'xrpl-local'
|
||||
import { Ledger } from 'xrpl-local/models/ledger'
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { LedgerClosedRequest, LedgerClosedResponse } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { LedgerCurrentResponse, LedgerCurrentRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { LedgerDataRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { LedgerEntryRequest, LedgerEntryResponse } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { NoRippleCheckRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import {
|
||||
PathFindRequest,
|
||||
PathFindResponse,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { RipplePathFindRequest, RipplePathFindResponse } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { ServerInfoRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { ServerStateRequest } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
import { decode } from 'ripple-binary-codec/dist'
|
||||
|
||||
import {
|
||||
AccountSet,
|
||||
SubmitRequest,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
import { decode } from 'ripple-binary-codec/dist'
|
||||
|
||||
import {
|
||||
AccountSet,
|
||||
Client,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import {
|
||||
Client,
|
||||
OfferCreate,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountSet, hashes, SubmitResponse, TxResponse } from 'xrpl-local'
|
||||
import { convertStringToHex } from 'xrpl-local/utils'
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { Client } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
/* eslint-disable no-restricted-syntax -- not sure why this rule is here, definitely not needed here */
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountSet, convertStringToHex, ValidationError } from 'xrpl-local'
|
||||
|
||||
import { assertRejects } from '../testUtils'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountDelete } from 'xrpl-local/models/transactions'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
import { AccountSet } from 'xrpl-local/models/transactions'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { CheckCreate, CheckCancel } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { CheckCreate, CheckCash } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { CheckCreate } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
import { DepositPreauth, Wallet } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { EscrowCancel, EscrowCreate } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { EscrowCreate } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { EscrowFinish, EscrowCreate } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { OfferCreate, OfferCancel } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { OfferCreate } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
import { Payment } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
import { PaymentChannelCreate, hashes, PaymentChannelClaim } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
import { PaymentChannelCreate } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
import { PaymentChannelCreate, hashes, PaymentChannelFund } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
import { SignerListSet } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
import { TrustSet, percentToQuality } from 'xrpl-local'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { assert } from 'chai'
|
||||
import _ from 'lodash'
|
||||
import { decode } from 'ripple-binary-codec'
|
||||
|
||||
import { Client, Wallet, AccountInfoRequest } from 'xrpl-local'
|
||||
import { Payment, Transaction } from 'xrpl-local/models/transactions'
|
||||
import { hashSignedTx } from 'xrpl-local/utils/hashes'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { RippledError } from 'xrpl-local'
|
||||
|
||||
import { setupClient, teardownClient } from './setupClient'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateAccountDelete } from 'xrpl-local/models/transactions/accountDelete'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateAccountSet } from 'xrpl-local/models/transactions/accountSet'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { ValidationError } from 'xrpl-local'
|
||||
import { validateBaseTransaction } from 'xrpl-local/models/transactions/common'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateCheckCancel } from 'xrpl-local/models/transactions/checkCancel'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateCheckCash } from 'xrpl-local/models/transactions/checkCash'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateCheckCreate } from 'xrpl-local/models/transactions/checkCreate'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateDepositPreauth } from 'xrpl-local/models/transactions/depositPreauth'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateEscrowCancel } from 'xrpl-local/models/transactions/escrowCancel'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateEscrowCreate } from 'xrpl-local/models/transactions/escrowCreate'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateEscrowFinish } from 'xrpl-local/models/transactions/escrowFinish'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateOfferCancel } from 'xrpl-local/models/transactions/offerCancel'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateOfferCreate } from 'xrpl-local/models/transactions/offerCreate'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, PaymentFlags, ValidationError } from 'xrpl-local'
|
||||
import { validatePayment } from 'xrpl-local/models/transactions/payment'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validatePaymentChannelClaim } from 'xrpl-local/models/transactions/paymentChannelClaim'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validatePaymentChannelCreate } from 'xrpl-local/models/transactions/paymentChannelCreate'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validatePaymentChannelFund } from 'xrpl-local/models/transactions/paymentChannelFund'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateSetRegularKey } from 'xrpl-local/models/transactions/setRegularKey'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateSignerListSet } from 'xrpl-local/models/transactions/signerListSet'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateTicketCreate } from 'xrpl-local/models/transactions/ticketCreate'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { validate, ValidationError } from 'xrpl-local'
|
||||
import { validateTrustSet } from 'xrpl-local/models/transactions/trustSet'
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* eslint-disable no-bitwise -- flags require bitwise operations */
|
||||
import { assert } from 'chai'
|
||||
|
||||
import {
|
||||
DepositPreauth,
|
||||
OfferCreate,
|
||||
|
||||
1
packages/xrpl/test/node_modules/xrpl-local
generated
vendored
1
packages/xrpl/test/node_modules/xrpl-local
generated
vendored
@@ -1 +0,0 @@
|
||||
../../src
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { deriveXAddress } from 'xrpl-local'
|
||||
|
||||
describe('deriveXAddress', function () {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import BigNumber from 'bignumber.js'
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { dropsToXrp } from 'xrpl-local/utils'
|
||||
|
||||
describe('dropsToXrp', function () {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { getBalanceChanges } from 'xrpl-local/utils'
|
||||
|
||||
import paymentToken from '../fixtures/utils/paymentToken.json'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { hasNextPage } from 'xrpl-local'
|
||||
|
||||
import fixtures from '../fixtures/rippled'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { ValidationError, XrplError } from 'xrpl-local'
|
||||
import { hashes } from 'xrpl-local/utils'
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import path from 'path'
|
||||
|
||||
import { assert } from 'chai'
|
||||
import { encode } from 'ripple-binary-codec'
|
||||
|
||||
import { OfferCreate, Transaction, ValidationError } from 'xrpl-local'
|
||||
import {
|
||||
hashStateTree,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { convertHexToString, convertStringToHex } from 'xrpl-local/utils'
|
||||
|
||||
describe('convertHexToString and convertStringToHex', function () {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { isValidAddress } from 'xrpl-local'
|
||||
|
||||
describe('isValidAddress', function () {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { ValidationError } from 'xrpl-local'
|
||||
|
||||
import { decimalToQuality, percentToQuality, qualityToDecimal } from '../../src'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { ValidationError } from 'xrpl-local'
|
||||
|
||||
import {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import BigNumber from 'bignumber.js'
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { xrpToDrops } from 'xrpl-local/utils'
|
||||
|
||||
describe('xrpToDrops', function () {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import { decode } from 'ripple-binary-codec/dist'
|
||||
|
||||
import { Transaction } from 'xrpl-local'
|
||||
import ECDSA from 'xrpl-local/ECDSA'
|
||||
import Wallet from 'xrpl-local/Wallet'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { assert } from 'chai'
|
||||
import { decode, encode } from 'ripple-binary-codec/dist'
|
||||
|
||||
import { Transaction, ValidationError } from 'xrpl-local'
|
||||
import Wallet from 'xrpl-local/Wallet'
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user