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 9 commits
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
22 changes: 4 additions & 18 deletions
22
apps/indexer/src/lib/evm-client.ts → apps/indexer/src/lib/issuer-client.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 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
Binary file not shown.
Binary file not shown.
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,35 @@ | ||
|
||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.6.0 <0.8.0; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
|
||
import "@openzeppelin/contracts/access/Ownable.sol"; | ||
|
||
contract BLPLToken is ERC20, Ownable { | ||
constructor(uint256 initialSupply) ERC20("Bitlauncher Prelaunch Token", "BLPL") { | ||
_mint(msg.sender, initialSupply); | ||
} | ||
|
||
// use 6 decimals | ||
function decimals() public view virtual override returns (uint8) { | ||
return 6; | ||
} | ||
|
||
/** | ||
* @dev Issues a specific amount of tokens. | ||
* @param recipient The address to which the issued tokens will be sent. | ||
* @param amount The amount of tokens to be issued. | ||
*/ | ||
function issue(address recipient, uint256 amount) public onlyOwner { | ||
_mint(recipient, amount); | ||
} | ||
|
||
/** | ||
* @dev Burns a specific amount of tokens. | ||
* @param amount The amount of tokens to be burned. | ||
*/ | ||
function burn(uint256 amount) public { | ||
_burn(msg.sender, amount); | ||
} | ||
} |
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,16 @@ | ||
|
||
const { ethers } = require("hardhat"); | ||
|
||
async function main() { | ||
const BLPLToken = await ethers.getContractFactory("BLPLToken"); | ||
const token = await BLPLToken.deploy(ethers.utils.parseUnits("1000000", 18)); | ||
|
||
await token.deployed(); | ||
|
||
console.log("BLPLToken deployed to:", token.address); | ||
} | ||
|
||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
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,8 @@ | ||
{ | ||
"compilerOptions": { | ||
// ... existing options ... | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext" | ||
}, | ||
// ... existing options ... | ||
} |
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
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.
Consider using ES6 import syntax.
Since the project uses TypeScript with NodeNext module resolution, consider using ES6 import syntax instead of CommonJS
require
.Committable suggestion