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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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'

View File

@@ -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'

View File

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

View File

@@ -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'

View File

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

View File

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

View File

@@ -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'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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'

View File

@@ -1,6 +1,5 @@
import { assert } from 'chai'
import _ from 'lodash'
import { Client } from 'xrpl-local'
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 */
import { assert } from 'chai'
import _ from 'lodash'
import { AccountSet, convertStringToHex, ValidationError } from 'xrpl-local'
import { assertRejects } from '../testUtils'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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'

View File

@@ -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 {