-
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 aliases, modify example constants and file, export addition…
…al functions
- Loading branch information
1 parent
18c9233
commit 9762084
Showing
30 changed files
with
696 additions
and
556 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
/** @format */ | ||
// @ts-check | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended, { | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
}, | ||
}); |
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
3 changes: 1 addition & 2 deletions
3
src/query-handlers/attestor-handler.ts → src/attestor-handlers/attestor-handler.ts
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,38 @@ | ||
import { regtest } from 'bitcoinjs-lib/src/networks.js'; | ||
|
||
// Bitcoin | ||
export const EXAMPLE_BITCOIN_NETWORK = regtest; | ||
export const EXAMPLE_BITCOIN_EXTENDED_PRIVATE_KEY = ''; | ||
export const EXAMPLE_BITCOIN_WALLET_ACCOUNT_INDEX = 0; | ||
export const EXAMPLE_REGTEST_BITCOIN_BLOCKCHAIN_API = 'https://devnet.dlc.link/electrs'; | ||
export const EXAMPLE_TESTNET_BITCOIN_BLOCKCHAIN_API = 'https://testnet.dlc.link/electrs'; | ||
export const EXAMPLE_BITCOIN_BLOCKCHAIN_FEE_RECOMMENDATION_API = | ||
'https://devnet.dlc.link/electrs/fee-estimates'; | ||
export const EXAMPLE_BITCOIN_AMOUNT = 0.01; | ||
|
||
// Ethereum | ||
export const EXAMPLE_ETHEREUM_PRIVATE_KEY = | ||
'e84775987ab35c5016195c6bb006847f35a6470dea671e3f06853987f6d5c59b'; | ||
export const EXAMPLE_ETHEREUM_NODE_API = 'https://sepolia-rollup.arbitrum.io/rpc'; | ||
export const EXAMPLE_ETHEREUM_READ_ONLY_NODE_API = 'https://sepolia-rollup.arbitrum.io/rpc'; | ||
export const EXAMPLE_ETHEREUM_GITHUB_DEPLOYMENT_PLAN_ROOT_URL = | ||
'https://raw.githubusercontent.com/DLC-link/dlc-solidity'; | ||
export const EXAMPLE_ETHEREUM_DEVNET_GITHUB_DEPLOYMENT_PLAN_BRANCH = 'dev'; | ||
export const EXAMPLE_ETHEREUM_TESTNET_GITHUB_DEPLOYMENT_PLAN_BRANCH = 'testnet-rolling'; | ||
export const EXAMPLE_ETHEREUM_ATTESTOR_CHAIN_ID = 'evm-arbsepolia'; | ||
|
||
// Attestor | ||
export const EXAMPLE_REGTEST_ATTESTOR_APIS = [ | ||
'https://devnet.dlc.link/attestor-1', | ||
'https://devnet.dlc.link/attestor-2', | ||
'https://devnet.dlc.link/attestor-3', | ||
]; | ||
|
||
export const EXAMPLE_TESTNET_ATTESTOR_APIS = [ | ||
'https://testnet.dlc.link/attestor-1', | ||
'https://testnet.dlc.link/attestor-2', | ||
'https://testnet.dlc.link/attestor-3', | ||
]; | ||
|
||
export const EXAMPLE_TESTNET_ATTESTOR_GROUP_PUBLIC_KEY_V1 = | ||
'0c0bf55fa1ab72462467b973b13e556b07d2fdd8d7a30cdfc10f337e23c7ac00'; |
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,5 +1,3 @@ | ||
/** @format */ | ||
|
||
export * from './ethereum-constants.js'; | ||
export * from './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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/** @format */ | ||
|
||
export const LEDGER_APPS_MAP = { | ||
BITCOIN_MAINNET: 'Bitcoin', | ||
BITCOIN_TESTNET: 'Bitcoin Test', | ||
|
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.