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:
Jackson Mills
2021-11-23 12:29:06 -08:00
committed by GitHub
parent 887cb97c2b
commit 89b8833610
99 changed files with 53 additions and 111 deletions

61
package-lock.json generated
View File

@@ -51,6 +51,7 @@
"prettier": "^2.3.2", "prettier": "^2.3.2",
"process": "^0.11.10", "process": "^0.11.10",
"puppeteer": "10.4.0", "puppeteer": "10.4.0",
"run-script-os": "^1.1.6",
"source-map-support": "^0.5.16", "source-map-support": "^0.5.16",
"stream-browserify": "^3.0.0", "stream-browserify": "^3.0.0",
"stream-http": "3.2.0", "stream-http": "3.2.0",
@@ -14865,6 +14866,16 @@
"queue-microtask": "^1.2.2" "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": { "node_modules/rxjs": {
"version": "6.6.7", "version": "6.6.7",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
@@ -18062,7 +18073,7 @@
} }
}, },
"packages/ripple-address-codec": { "packages/ripple-address-codec": {
"version": "4.1.3", "version": "4.2.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"base-x": "3.0.9", "base-x": "3.0.9",
@@ -18074,7 +18085,7 @@
} }
}, },
"packages/ripple-binary-codec": { "packages/ripple-binary-codec": {
"version": "1.1.3", "version": "1.2.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"assert": "^2.0.0", "assert": "^2.0.0",
@@ -18082,7 +18093,7 @@
"buffer": "5.6.0", "buffer": "5.6.0",
"create-hash": "^1.2.0", "create-hash": "^1.2.0",
"decimal.js": "^10.2.0", "decimal.js": "^10.2.0",
"ripple-address-codec": "^4.1.1" "ripple-address-codec": "^4.2.0"
}, },
"engines": { "engines": {
"node": ">=10.22.0", "node": ">=10.22.0",
@@ -18099,14 +18110,14 @@
} }
}, },
"packages/ripple-keypairs": { "packages/ripple-keypairs": {
"version": "1.0.3", "version": "1.1.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bn.js": "^5.1.1", "bn.js": "^5.1.1",
"brorand": "^1.0.5", "brorand": "^1.0.5",
"elliptic": "^6.5.4", "elliptic": "^6.5.4",
"hash.js": "^1.0.3", "hash.js": "^1.0.3",
"ripple-address-codec": "^4.0.0" "ripple-address-codec": "^4.2.0"
}, },
"engines": { "engines": {
"node": ">= 10", "node": ">= 10",
@@ -18114,7 +18125,7 @@
} }
}, },
"packages/xrpl": { "packages/xrpl": {
"version": "2.0.1", "version": "2.0.2",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bignumber.js": "^9.0.0", "bignumber.js": "^9.0.0",
@@ -18122,11 +18133,14 @@
"bip39": "^3.0.4", "bip39": "^3.0.4",
"https-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"ripple-address-codec": "^4.1.1", "ripple-address-codec": "^4.2.0",
"ripple-binary-codec": "^1.1.3", "ripple-binary-codec": "^1.2.0",
"ripple-keypairs": "^1.0.3", "ripple-keypairs": "^1.1.0",
"ws": "^8.2.2" "ws": "^8.2.2"
}, },
"devDependencies": {
"xrpl-local": "file:./src"
},
"engines": { "engines": {
"node": ">=10.13.0", "node": ">=10.13.0",
"npm": ">=7.14.0 <8.0.0" "npm": ">=7.14.0 <8.0.0"
@@ -18151,6 +18165,13 @@
"optional": true "optional": true
} }
} }
},
"packages/xrpl/node_modules/xrpl-local": {
"resolved": "packages/xrpl/src",
"link": true
},
"packages/xrpl/src": {
"dev": true
} }
}, },
"dependencies": { "dependencies": {
@@ -29748,7 +29769,7 @@
"buffer": "5.6.0", "buffer": "5.6.0",
"create-hash": "^1.2.0", "create-hash": "^1.2.0",
"decimal.js": "^10.2.0", "decimal.js": "^10.2.0",
"ripple-address-codec": "^4.1.1" "ripple-address-codec": "^4.2.0"
}, },
"dependencies": { "dependencies": {
"buffer": { "buffer": {
@@ -29769,7 +29790,7 @@
"brorand": "^1.0.5", "brorand": "^1.0.5",
"elliptic": "^6.5.4", "elliptic": "^6.5.4",
"hash.js": "^1.0.3", "hash.js": "^1.0.3",
"ripple-address-codec": "^4.0.0" "ripple-address-codec": "^4.2.0"
} }
}, },
"rsvp": { "rsvp": {
@@ -29793,6 +29814,12 @@
"queue-microtask": "^1.2.2" "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": { "rxjs": {
"version": "6.6.7", "version": "6.6.7",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
@@ -32160,10 +32187,11 @@
"bip39": "^3.0.4", "bip39": "^3.0.4",
"https-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"ripple-address-codec": "^4.1.1", "ripple-address-codec": "^4.2.0",
"ripple-binary-codec": "^1.1.3", "ripple-binary-codec": "^1.2.0",
"ripple-keypairs": "^1.0.3", "ripple-keypairs": "^1.1.0",
"ws": "^8.2.2" "ws": "^8.2.2",
"xrpl-local": "file:src"
}, },
"dependencies": { "dependencies": {
"ws": { "ws": {
@@ -32171,6 +32199,9 @@
"resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz",
"integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==",
"requires": {} "requires": {}
},
"xrpl-local": {
"version": "file:packages/xrpl/src"
} }
} }
}, },

View File

@@ -53,6 +53,7 @@
"prettier": "^2.3.2", "prettier": "^2.3.2",
"process": "^0.11.10", "process": "^0.11.10",
"puppeteer": "10.4.0", "puppeteer": "10.4.0",
"run-script-os": "^1.1.6",
"source-map-support": "^0.5.16", "source-map-support": "^0.5.16",
"stream-browserify": "^3.0.0", "stream-browserify": "^3.0.0",
"stream-http": "3.2.0", "stream-http": "3.2.0",

View File

@@ -20,7 +20,9 @@
"ripple-address-codec": "^4.2.0" "ripple-address-codec": "^4.2.0"
}, },
"scripts": { "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", "clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"prepare": "npm run build && npm test", "prepare": "npm run build && npm test",
"test": "jest", "test": "jest",

View File

@@ -29,6 +29,9 @@
"ripple-keypairs": "^1.1.0", "ripple-keypairs": "^1.1.0",
"ws": "^8.2.2" "ws": "^8.2.2"
}, },
"devDependencies": {
"xrpl-local": "file:./src"
},
"resolutions": { "resolutions": {
"elliptic": "^6.5.4" "elliptic": "^6.5.4"
}, },

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { Client } from 'xrpl-local' import { Client } from 'xrpl-local'
// how long before each test case times out // how long before each test case times out

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { import {
XrplError, XrplError,
AccountDelete, AccountDelete,

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { Client } from 'xrpl-local' import { Client } from 'xrpl-local'
describe('client constructor', function () { describe('client constructor', function () {

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { XrplError, NotFoundError } from 'xrpl-local' import { XrplError, NotFoundError } from 'xrpl-local'
import { setupClient, teardownClient } from '../setupClient' import { setupClient, teardownClient } from '../setupClient'

View File

@@ -1,6 +1,5 @@
import BigNumber from 'bignumber.js' import BigNumber from 'bignumber.js'
import { assert } from 'chai' import { assert } from 'chai'
import { BookOffersRequest } from 'xrpl-local' import { BookOffersRequest } from 'xrpl-local'
import { ValidationError, XrplError } from 'xrpl-local/errors' import { ValidationError, XrplError } from 'xrpl-local/errors'
import { OfferFlags } from 'xrpl-local/models/ledger' import { OfferFlags } from 'xrpl-local/models/ledger'

View File

@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any -- required for formatting transactions */ /* eslint-disable @typescript-eslint/no-explicit-any -- required for formatting transactions */
import { expect } from 'chai' import { expect } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import type { TransactionStream } from 'xrpl-local' import type { TransactionStream } from 'xrpl-local'
import rippled from '../fixtures/rippled' import rippled from '../fixtures/rippled'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { hasNextPage } from 'xrpl-local' import { hasNextPage } from 'xrpl-local'
import rippled from '../fixtures/rippled' import rippled from '../fixtures/rippled'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { ValidationError } from 'xrpl-local' import { ValidationError } from 'xrpl-local'
import { Transaction } from 'xrpl-local/models/transactions' import { Transaction } from 'xrpl-local/models/transactions'
import Wallet from 'xrpl-local/Wallet' import Wallet from 'xrpl-local/Wallet'

View File

@@ -3,7 +3,6 @@ import net from 'net'
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { import {
Client, Client,
ConnectionError, ConnectionError,

View File

@@ -1,7 +1,6 @@
import assert from 'assert' import assert from 'assert'
import _ from 'lodash' import _ from 'lodash'
import { import {
Client, Client,
isValidClassicAddress, isValidClassicAddress,

View File

@@ -1,7 +1,6 @@
import assert from 'assert' import assert from 'assert'
import _ from 'lodash' import _ from 'lodash'
import { Client } from 'xrpl-local' import { Client } from 'xrpl-local'
import { AccountSet, SignerListSet } from 'xrpl-local/models/transactions' import { AccountSet, SignerListSet } from 'xrpl-local/models/transactions'
import { convertStringToHex } from 'xrpl-local/utils' import { convertStringToHex } from 'xrpl-local/utils'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { Client } from 'xrpl-local' import { Client } from 'xrpl-local'
import serverUrl from './serverUrl' import serverUrl from './serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { import {
AccountSet, AccountSet,
Client, Client,

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { AccountChannelsRequest } from 'xrpl-local' import { AccountChannelsRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { AccountCurrenciesRequest } from 'xrpl-local' import { AccountCurrenciesRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { AccountInfoRequest } from 'xrpl-local' import { AccountInfoRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { AccountLinesRequest } from 'xrpl-local' import { AccountLinesRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { AccountObjectsRequest } from 'xrpl-local' import { AccountObjectsRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { AccountOffersRequest } from 'xrpl-local' import { AccountOffersRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { AccountTxRequest } from 'xrpl-local' import { AccountTxRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { BookOffersRequest, BookOffersResponse } from 'xrpl-local' import { BookOffersRequest, BookOffersResponse } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { ChannelVerifyRequest, ChannelVerifyResponse } from 'xrpl-local' import { ChannelVerifyRequest, ChannelVerifyResponse } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { DepositAuthorizedRequest, DepositAuthorizedResponse } from 'xrpl-local' import { DepositAuthorizedRequest, DepositAuthorizedResponse } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { FeeRequest } from 'xrpl-local' import { FeeRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { GatewayBalancesRequest } from 'xrpl-local' import { GatewayBalancesRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { LedgerRequest, LedgerResponse } from 'xrpl-local' import { LedgerRequest, LedgerResponse } from 'xrpl-local'
import { Ledger } from 'xrpl-local/models/ledger' import { Ledger } from 'xrpl-local/models/ledger'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { LedgerClosedRequest, LedgerClosedResponse } from 'xrpl-local' import { LedgerClosedRequest, LedgerClosedResponse } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { LedgerCurrentResponse, LedgerCurrentRequest } from 'xrpl-local' import { LedgerCurrentResponse, LedgerCurrentRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { LedgerDataRequest } from 'xrpl-local' import { LedgerDataRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { LedgerEntryRequest, LedgerEntryResponse } from 'xrpl-local' import { LedgerEntryRequest, LedgerEntryResponse } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { NoRippleCheckRequest } from 'xrpl-local' import { NoRippleCheckRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { import {
PathFindRequest, PathFindRequest,
PathFindResponse, PathFindResponse,

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { RipplePathFindRequest, RipplePathFindResponse } from 'xrpl-local' import { RipplePathFindRequest, RipplePathFindResponse } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { ServerInfoRequest } from 'xrpl-local' import { ServerInfoRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { ServerStateRequest } from 'xrpl-local' import { ServerStateRequest } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,7 +1,6 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { decode } from 'ripple-binary-codec/dist' import { decode } from 'ripple-binary-codec/dist'
import { import {
AccountSet, AccountSet,
SubmitRequest, SubmitRequest,

View File

@@ -1,7 +1,6 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { decode } from 'ripple-binary-codec/dist' import { decode } from 'ripple-binary-codec/dist'
import { import {
AccountSet, AccountSet,
Client, Client,

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { import {
Client, Client,
OfferCreate, OfferCreate,

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { AccountSet, hashes, SubmitResponse, TxResponse } from 'xrpl-local' import { AccountSet, hashes, SubmitResponse, TxResponse } from 'xrpl-local'
import { convertStringToHex } from 'xrpl-local/utils' import { convertStringToHex } from 'xrpl-local/utils'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { Client } from 'xrpl-local' import { Client } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -2,7 +2,6 @@
/* eslint-disable no-restricted-syntax -- not sure why this rule is here, definitely not needed here */ /* eslint-disable no-restricted-syntax -- not sure why this rule is here, definitely not needed here */
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { AccountSet, convertStringToHex, ValidationError } from 'xrpl-local' import { AccountSet, convertStringToHex, ValidationError } from 'xrpl-local'
import { assertRejects } from '../testUtils' import { assertRejects } from '../testUtils'

View File

@@ -1,5 +1,4 @@
import _ from 'lodash' import _ from 'lodash'
import { AccountDelete } from 'xrpl-local/models/transactions' import { AccountDelete } from 'xrpl-local/models/transactions'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,5 +1,4 @@
import _ from 'lodash' import _ from 'lodash'
import { AccountSet } from 'xrpl-local/models/transactions' import { AccountSet } from 'xrpl-local/models/transactions'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { CheckCreate, CheckCancel } from 'xrpl-local' import { CheckCreate, CheckCancel } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { CheckCreate, CheckCash } from 'xrpl-local' import { CheckCreate, CheckCash } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { CheckCreate } from 'xrpl-local' import { CheckCreate } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,5 +1,4 @@
import _ from 'lodash' import _ from 'lodash'
import { DepositPreauth, Wallet } from 'xrpl-local' import { DepositPreauth, Wallet } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { EscrowCancel, EscrowCreate } from 'xrpl-local' import { EscrowCancel, EscrowCreate } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { EscrowCreate } from 'xrpl-local' import { EscrowCreate } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { EscrowFinish, EscrowCreate } from 'xrpl-local' import { EscrowFinish, EscrowCreate } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { OfferCreate, OfferCancel } from 'xrpl-local' import { OfferCreate, OfferCancel } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { OfferCreate } from 'xrpl-local' import { OfferCreate } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,5 +1,4 @@
import _ from 'lodash' import _ from 'lodash'
import { Payment } from 'xrpl-local' import { Payment } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,5 +1,4 @@
import _ from 'lodash' import _ from 'lodash'
import { PaymentChannelCreate, hashes, PaymentChannelClaim } from 'xrpl-local' import { PaymentChannelCreate, hashes, PaymentChannelClaim } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,5 +1,4 @@
import _ from 'lodash' import _ from 'lodash'
import { PaymentChannelCreate } from 'xrpl-local' import { PaymentChannelCreate } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,5 +1,4 @@
import _ from 'lodash' import _ from 'lodash'
import { PaymentChannelCreate, hashes, PaymentChannelFund } from 'xrpl-local' import { PaymentChannelCreate, hashes, PaymentChannelFund } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,5 +1,4 @@
import _ from 'lodash' import _ from 'lodash'
import { SignerListSet } from 'xrpl-local' import { SignerListSet } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,5 +1,4 @@
import _ from 'lodash' import _ from 'lodash'
import { TrustSet, percentToQuality } from 'xrpl-local' import { TrustSet, percentToQuality } from 'xrpl-local'
import serverUrl from '../serverUrl' import serverUrl from '../serverUrl'

View File

@@ -1,7 +1,6 @@
import { assert } from 'chai' import { assert } from 'chai'
import _ from 'lodash' import _ from 'lodash'
import { decode } from 'ripple-binary-codec' import { decode } from 'ripple-binary-codec'
import { Client, Wallet, AccountInfoRequest } from 'xrpl-local' import { Client, Wallet, AccountInfoRequest } from 'xrpl-local'
import { Payment, Transaction } from 'xrpl-local/models/transactions' import { Payment, Transaction } from 'xrpl-local/models/transactions'
import { hashSignedTx } from 'xrpl-local/utils/hashes' import { hashSignedTx } from 'xrpl-local/utils/hashes'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { RippledError } from 'xrpl-local' import { RippledError } from 'xrpl-local'
import { setupClient, teardownClient } from './setupClient' import { setupClient, teardownClient } from './setupClient'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateAccountDelete } from 'xrpl-local/models/transactions/accountDelete' import { validateAccountDelete } from 'xrpl-local/models/transactions/accountDelete'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateAccountSet } from 'xrpl-local/models/transactions/accountSet' import { validateAccountSet } from 'xrpl-local/models/transactions/accountSet'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { ValidationError } from 'xrpl-local' import { ValidationError } from 'xrpl-local'
import { validateBaseTransaction } from 'xrpl-local/models/transactions/common' import { validateBaseTransaction } from 'xrpl-local/models/transactions/common'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateCheckCancel } from 'xrpl-local/models/transactions/checkCancel' import { validateCheckCancel } from 'xrpl-local/models/transactions/checkCancel'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateCheckCash } from 'xrpl-local/models/transactions/checkCash' import { validateCheckCash } from 'xrpl-local/models/transactions/checkCash'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateCheckCreate } from 'xrpl-local/models/transactions/checkCreate' import { validateCheckCreate } from 'xrpl-local/models/transactions/checkCreate'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateDepositPreauth } from 'xrpl-local/models/transactions/depositPreauth' import { validateDepositPreauth } from 'xrpl-local/models/transactions/depositPreauth'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateEscrowCancel } from 'xrpl-local/models/transactions/escrowCancel' import { validateEscrowCancel } from 'xrpl-local/models/transactions/escrowCancel'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateEscrowCreate } from 'xrpl-local/models/transactions/escrowCreate' import { validateEscrowCreate } from 'xrpl-local/models/transactions/escrowCreate'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateEscrowFinish } from 'xrpl-local/models/transactions/escrowFinish' import { validateEscrowFinish } from 'xrpl-local/models/transactions/escrowFinish'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateOfferCancel } from 'xrpl-local/models/transactions/offerCancel' import { validateOfferCancel } from 'xrpl-local/models/transactions/offerCancel'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateOfferCreate } from 'xrpl-local/models/transactions/offerCreate' import { validateOfferCreate } from 'xrpl-local/models/transactions/offerCreate'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, PaymentFlags, ValidationError } from 'xrpl-local' import { validate, PaymentFlags, ValidationError } from 'xrpl-local'
import { validatePayment } from 'xrpl-local/models/transactions/payment' import { validatePayment } from 'xrpl-local/models/transactions/payment'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validatePaymentChannelClaim } from 'xrpl-local/models/transactions/paymentChannelClaim' import { validatePaymentChannelClaim } from 'xrpl-local/models/transactions/paymentChannelClaim'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validatePaymentChannelCreate } from 'xrpl-local/models/transactions/paymentChannelCreate' import { validatePaymentChannelCreate } from 'xrpl-local/models/transactions/paymentChannelCreate'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validatePaymentChannelFund } from 'xrpl-local/models/transactions/paymentChannelFund' import { validatePaymentChannelFund } from 'xrpl-local/models/transactions/paymentChannelFund'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateSetRegularKey } from 'xrpl-local/models/transactions/setRegularKey' import { validateSetRegularKey } from 'xrpl-local/models/transactions/setRegularKey'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateSignerListSet } from 'xrpl-local/models/transactions/signerListSet' import { validateSignerListSet } from 'xrpl-local/models/transactions/signerListSet'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateTicketCreate } from 'xrpl-local/models/transactions/ticketCreate' import { validateTicketCreate } from 'xrpl-local/models/transactions/ticketCreate'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { validate, ValidationError } from 'xrpl-local' import { validate, ValidationError } from 'xrpl-local'
import { validateTrustSet } from 'xrpl-local/models/transactions/trustSet' import { validateTrustSet } from 'xrpl-local/models/transactions/trustSet'

View File

@@ -1,6 +1,5 @@
/* eslint-disable no-bitwise -- flags require bitwise operations */ /* eslint-disable no-bitwise -- flags require bitwise operations */
import { assert } from 'chai' import { assert } from 'chai'
import { import {
DepositPreauth, DepositPreauth,
OfferCreate, OfferCreate,

View File

@@ -1 +0,0 @@
../../src

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { deriveXAddress } from 'xrpl-local' import { deriveXAddress } from 'xrpl-local'
describe('deriveXAddress', function () { describe('deriveXAddress', function () {

View File

@@ -1,6 +1,5 @@
import BigNumber from 'bignumber.js' import BigNumber from 'bignumber.js'
import { assert } from 'chai' import { assert } from 'chai'
import { dropsToXrp } from 'xrpl-local/utils' import { dropsToXrp } from 'xrpl-local/utils'
describe('dropsToXrp', function () { describe('dropsToXrp', function () {

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { getBalanceChanges } from 'xrpl-local/utils' import { getBalanceChanges } from 'xrpl-local/utils'
import paymentToken from '../fixtures/utils/paymentToken.json' import paymentToken from '../fixtures/utils/paymentToken.json'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { hasNextPage } from 'xrpl-local' import { hasNextPage } from 'xrpl-local'
import fixtures from '../fixtures/rippled' import fixtures from '../fixtures/rippled'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { ValidationError, XrplError } from 'xrpl-local' import { ValidationError, XrplError } from 'xrpl-local'
import { hashes } from 'xrpl-local/utils' import { hashes } from 'xrpl-local/utils'

View File

@@ -3,7 +3,6 @@ import path from 'path'
import { assert } from 'chai' import { assert } from 'chai'
import { encode } from 'ripple-binary-codec' import { encode } from 'ripple-binary-codec'
import { OfferCreate, Transaction, ValidationError } from 'xrpl-local' import { OfferCreate, Transaction, ValidationError } from 'xrpl-local'
import { import {
hashStateTree, hashStateTree,

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { convertHexToString, convertStringToHex } from 'xrpl-local/utils' import { convertHexToString, convertStringToHex } from 'xrpl-local/utils'
describe('convertHexToString and convertStringToHex', function () { describe('convertHexToString and convertStringToHex', function () {

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { isValidAddress } from 'xrpl-local' import { isValidAddress } from 'xrpl-local'
describe('isValidAddress', function () { describe('isValidAddress', function () {

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { ValidationError } from 'xrpl-local' import { ValidationError } from 'xrpl-local'
import { decimalToQuality, percentToQuality, qualityToDecimal } from '../../src' import { decimalToQuality, percentToQuality, qualityToDecimal } from '../../src'

View File

@@ -1,5 +1,4 @@
import { assert } from 'chai' import { assert } from 'chai'
import { ValidationError } from 'xrpl-local' import { ValidationError } from 'xrpl-local'
import { import {

View File

@@ -1,6 +1,5 @@
import BigNumber from 'bignumber.js' import BigNumber from 'bignumber.js'
import { assert } from 'chai' import { assert } from 'chai'
import { xrpToDrops } from 'xrpl-local/utils' import { xrpToDrops } from 'xrpl-local/utils'
describe('xrpToDrops', function () { describe('xrpToDrops', function () {

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import { decode } from 'ripple-binary-codec/dist' import { decode } from 'ripple-binary-codec/dist'
import { Transaction } from 'xrpl-local' import { Transaction } from 'xrpl-local'
import ECDSA from 'xrpl-local/ECDSA' import ECDSA from 'xrpl-local/ECDSA'
import Wallet from 'xrpl-local/Wallet' import Wallet from 'xrpl-local/Wallet'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import { decode, encode } from 'ripple-binary-codec/dist' import { decode, encode } from 'ripple-binary-codec/dist'
import { Transaction, ValidationError } from 'xrpl-local' import { Transaction, ValidationError } from 'xrpl-local'
import Wallet from 'xrpl-local/Wallet' import Wallet from 'xrpl-local/Wallet'
import { import {