-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add rollup bundler, remove submodules
- Loading branch information
1 parent
53f1445
commit a847ba2
Showing
22 changed files
with
474 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import nodePolyfills from 'rollup-plugin-node-polyfills'; | ||
|
||
export default { | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
file: 'dist/index.js', | ||
format: 'esm', | ||
name: 'dlc-btc-lib', | ||
sourcemap: true, | ||
}, | ||
], | ||
plugins: [resolve(), typescript({ tsconfig: './tsconfig.json' }), commonjs(), nodePolyfills()], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
import { AttestorHandler } from './attestor-handlers/attestor-handler.js'; | ||
import { LedgerDLCHandler } from './dlc-handlers/ledger-dlc-handler.js'; | ||
import { PrivateKeyDLCHandler } from './dlc-handlers/private-key-dlc-handler.js'; | ||
import { SoftwareWalletDLCHandler } from './dlc-handlers/software-wallet-dlc-handler.js'; | ||
import { EthereumHandler } from './network-handlers/ethereum-handler.js'; | ||
import { ReadOnlyEthereumHandler } from './network-handlers/read-only-ethereum-handler.js'; | ||
import { ProofOfReserveHandler } from './proof-of-reserve-handlers/proof-of-reserve-handler.js'; | ||
|
||
export { AttestorHandler } from './attestor-handlers/attestor-handler.js'; | ||
export { LedgerDLCHandler } from './dlc-handlers/ledger-dlc-handler.js'; | ||
export { PrivateKeyDLCHandler } from './dlc-handlers/private-key-dlc-handler.js'; | ||
export { SoftwareWalletDLCHandler } from './dlc-handlers/software-wallet-dlc-handler.js'; | ||
export { EthereumHandler } from './network-handlers/ethereum-handler.js'; | ||
export { ReadOnlyEthereumHandler } from './network-handlers/read-only-ethereum-handler.js'; | ||
export { ProofOfReserveHandler } from './proof-of-reserve-handlers/proof-of-reserve-handler.js'; | ||
export * from './utilities/utilities.js'; | ||
export { Network } from 'bitcoinjs-lib/src/networks.js'; | ||
export { Transaction } from '@scure/btc-signer'; | ||
export * from './models/bitcoin-models.js'; | ||
export * from './models/error-models.js'; | ||
export * from './models/ethereum-models.js'; | ||
export { | ||
PrivateKeyDLCHandler, | ||
LedgerDLCHandler, | ||
SoftwareWalletDLCHandler, | ||
EthereumHandler, | ||
ReadOnlyEthereumHandler, | ||
AttestorHandler, | ||
ProofOfReserveHandler, | ||
}; | ||
broadcastTransaction, | ||
fetchBitcoinBlockchainBlockHeight, | ||
fetchBitcoinTransaction, | ||
getBalance, | ||
} from './functions/bitcoin/bitcoin-request-functions.js'; | ||
export { | ||
createClosingTransaction, | ||
createFundingTransaction, | ||
} from './functions/bitcoin/psbt-functions.js'; | ||
export { | ||
fetchEthereumDeploymentPlan, | ||
fetchEthereumDeploymentPlansByNetwork, | ||
} from './functions/ethereum/ethereum-functions.js'; | ||
export * from './constants/ethereum-constants.js'; | ||
export * from './constants/ledger-constants.js'; | ||
export { bitcoin, testnet, regtest } from 'bitcoinjs-lib/src/networks.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.