generated from blockmatic-icebox/powerstack
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: multichain indexer ( part 1 ) #293
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b3d4b90
chore: update app-contracts
gaboesquivel a4c6a30
feat: multichain indexer
gaboesquivel 7aef555
feat: prod chains
gaboesquivel 22c256b
feat: presale wallet
gaboesquivel 0949deb
feat: blpl token
gaboesquivel 6535359
feat: blpl token
gaboesquivel 5c897ce
chore: update bunlock
gaboesquivel 086bdd5
feat: blpl token
gaboesquivel 7983ddc
feat: presale evm contribs
gaboesquivel 6709565
feat: blpl token
gaboesquivel 6d2488d
wip: presale indexer
gaboesquivel 1e67795
Merge branch 'develop' into indexer-multichain
gaboesquivel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
...p-contracts/src/dev/testnet-allow-list.ts → ...cts/src/dev/auction/testnet-allow-list.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
4 changes: 3 additions & 1 deletion
4
...ontracts/src/dev/testnet-deposit-order.ts → .../src/dev/auction/testnet-deposit-order.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
4 changes: 3 additions & 1 deletion
4
...contracts/src/dev/testnet-easy-auction.ts → ...s/src/dev/auction/testnet-easy-auction.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,43 @@ | ||
export * from "./testnet-easy-auction"; | ||
export * from "./testnet-deposit-order"; | ||
export * from "./testnet-usd-cred"; | ||
export * from "./testnet-mbots-prelaunch"; | ||
export * from "./sepolia-usdt"; | ||
export * from "./testnet-usdt"; | ||
export * from "./eos-fake-bitusd"; | ||
export * from "./eos-fake-usdt"; | ||
export * from "./auction/testnet-easy-auction"; | ||
export * from "./auction/testnet-deposit-order"; | ||
export * from "./tokens/testnet-usd-cred"; | ||
export * from "./tokens/testnet-mbots-prelaunch"; | ||
export * from "./tokens/sepolia-usdt"; | ||
export * from "./tokens/testnet-usdt"; | ||
export * from "./tokens/eos-fake-bitusd"; | ||
export * from "./tokens/eos-fake-usdt"; | ||
|
||
import { TestnetEasyAuction } from "./auction/testnet-easy-auction"; | ||
import { TestnetDepositOrder } from "./auction/testnet-deposit-order"; | ||
import { TestnetUSDCred } from "./tokens/testnet-usd-cred"; | ||
import { TestnetMBOTSPL } from "./tokens/testnet-mbots-prelaunch"; | ||
import { SepoliaUSDT } from "./tokens/sepolia-usdt"; | ||
import { TestnetUSDT } from "./tokens/testnet-usdt"; | ||
import { EOSFakeBITUSD } from "./tokens/eos-fake-bitusd"; | ||
import { EOSFakeUSDT } from "./tokens/eos-fake-usdt"; | ||
import {ContractData, EOSTokenContractData, EVMTokenContractData} from '../types'; | ||
|
||
const evmTokens: EVMTokenContractData[] = [ | ||
TestnetUSDCred, | ||
TestnetMBOTSPL, | ||
SepoliaUSDT, | ||
TestnetUSDT, | ||
] | ||
|
||
const eosTokens: EOSTokenContractData[] = [ | ||
EOSFakeBITUSD, | ||
EOSFakeUSDT, | ||
] | ||
|
||
const auctions: ContractData[] = [ | ||
TestnetEasyAuction, | ||
TestnetDepositOrder, | ||
] | ||
|
||
export const devContracts = { | ||
tokens: { | ||
evm: evmTokens, | ||
eos: eosTokens | ||
}, | ||
auctions | ||
} |
4 changes: 2 additions & 2 deletions
4
.../app-contracts/src/dev/eos-fake-bitusd.ts → ...ntracts/src/dev/tokens/eos-fake-bitusd.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
4 changes: 2 additions & 2 deletions
4
...es/app-contracts/src/dev/eos-fake-usdt.ts → ...contracts/src/dev/tokens/eos-fake-usdt.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
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.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (complexity): Consider using dynamic imports and a single source of truth for all modules to simplify the code.
The new code introduces increased complexity due to the number of explicit imports and manual list management. This makes the file harder to maintain and scale. Consider using dynamic imports and a single source of truth for all modules to simplify the code. Here's a suggested refactor:
This approach reduces redundancy, makes the code easier to read, and simplifies the process of adding new contracts.