-
Notifications
You must be signed in to change notification settings - Fork 1
WIP - New contracts and contracts-sdk packages #1264
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
Draft
seansing9
wants to merge
91
commits into
develop
Choose a base branch
from
feature/new-contracts-package
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 11 commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
c44d554
rename previous contracts folder to -old, create new contracts package
seansing9 998ff58
update readme
seansing9 4ab4595
add draft docker files
seansing9 a8b4391
add asset transfer functions to smart wallet
seansing9 1de4c7d
update smart wallet to import interfaces manually
seansing9 7295d03
update config, package.json
seansing9 1d5bb29
added wip contracts-sdk-new package
seansing9 5d6e038
merged develop
seansing9 d9c6162
update contracts, and new contracts-sdk
seansing9 1a9e35d
update contracts, added unit test read me for smart wallet factory, u…
seansing9 3db67f8
removed typechain-types folder, add gitignore
seansing9 434fae0
p256 additions
TtheBC01 46f08bf
updates to smart wallet
TtheBC01 f5bf1b6
update
TtheBC01 7b6d88c
argument consolidation
TtheBC01 beda889
fix spellings
seansing 9f8a653
update wallet factory contract
seansing c33d2fd
update wallet factory contract quote claim
seansing adc3c39
update wallet factory contract claim functions
seansing 8ce35f7
add getter for deployedSnickerdoodleWalletAddressToOwner mapping to r…
seansing 6122724
start unit tests
TtheBC01 9f9b142
update unit test and config to use ethers
seansing 7d640c7
update comments
seansing d29c5e5
first unit test
TtheBC01 46f9858
update to tests
TtheBC01 345a029
new unit tests for snickerdoodle wallet
TtheBC01 ec49045
bug fix smart wallet
TtheBC01 eb17ced
created stand alone struct contract for cleaner function interfaces
TtheBC01 c4868ed
added mock erc20 token
TtheBC01 71eb16d
updated testnet readme file, smartwalletfactory tasks to ethers, add …
seansing9 db7bf3f
updated testnet readme file using base sepolia
seansing9 ac4b219
new operator gateway contract plus erc7529 contracts
TtheBC01 33caa75
fixed compile error
TtheBC01 4fbbefd
added operator factory methods
TtheBC01 ed92b1d
make factory upgradeable, included upgradeable OApp contracts
seansing9 7b98163
update comments for required function implementations
seansing9 29c8f2d
add contract size reporter, transparent proxies module
seansing9 c2e59a9
add stoage to oappreceiver and sender
seansing9 1086102
merge
TtheBC01 d1d36f7
Merge branch 'feature/new-contracts-package' of https://github.com/Sn…
TtheBC01 41d33d3
new ignition modules and some refactoring of the factory
TtheBC01 fb78553
fixed some bugs in ignition modules
TtheBC01 5422994
bootstrapped some tests and more fixes to ignition modules
TtheBC01 f2ae1f1
fix bug (missed Ownable init), update 'claim' to 'reserve'
seansing9 5061c4b
WIP update hardhat tasks and testnet testing README
seansing9 1741dc8
fix typo
seansing9 415a52c
small refactor from names to usernames
TtheBC01 27b1c4f
Merge branch 'feature/new-contracts-package' of https://github.com/Sn…
TtheBC01 881c8cf
tweaks on usernames and helper function in ignition modules
TtheBC01 0b2467f
added EndpointV2Mock to pass tests of LZ0 contracts
TtheBC01 92f09d5
first test on SnickerdoodleFactory.sol
TtheBC01 6df9e4c
update receiving address for wallet message's _lzSend(), add module f…
seansing9 f7db6fb
add todo comment to operator gateway
seansing9 6eff4ed
wip debugging
seansing9 b5a1c41
update to contract tests
TtheBC01 7f52f80
Merge branch 'feature/new-contracts-package' of https://github.com/Sn…
TtheBC01 deca81b
fixed factory tests
TtheBC01 9135a2d
refactor to send operator and wallet hashes over Layer0
TtheBC01 7545de8
fixed contract, updated readme with working testnet flow
seansing9 52d3a31
merged feature/new-contracts-package
seansing9 b5c027b
wallets initializer takes a p256key array
TtheBC01 ad13810
Merge branch 'feature/new-contracts-package' of https://github.com/Sn…
TtheBC01 2fc5d1f
fixed factory test
TtheBC01 97b3862
wallet init now takes p256 array and updates hash on new wallets
TtheBC01 261670b
added gas reporter, replaced tmp contracts with OZ 5.1.0, update test…
seansing9 c2d3022
clean up hardhat tasks
seansing9 53d6fce
fix spellings
seansing9 da3d441
add getters, natspec params, update version
seansing9 39db5e9
fix bug for adding evm account, add test to check for it, update test…
seansing9 3e1e375
update operator hash implemented
TtheBC01 ffea15b
first missing override
TtheBC01 82d67e7
formatting
TtheBC01 1bb3bbd
initialize SmartClearinghouse contract
TtheBC01 e9843b4
rename AuthenticatorData to P256VerificationData
seansing9 43f21ac
first pass at clearinghouse contract
TtheBC01 494d80c
Merge branch 'feature/new-contracts-package' of https://github.com/Sn…
TtheBC01 8e870d0
add getter
seansing9 7974c19
update docker scripts, add module for lzendpointv2mock
seansing9 4ea2c62
add comment to dockerfile
seansing9 6cdfe8b
new execute method for wallet, removed domain arg in factory
TtheBC01 f2e0acd
Merge branch 'feature/new-contracts-package' of https://github.com/Sn…
TtheBC01 a8689ca
finish merge
TtheBC01 31b465c
added missing authorize function
TtheBC01 a8b62f8
added funds transfer function
TtheBC01 420b3e6
fix comments, add missing adminAccounts param when hashing on destin…
seansing9 7f31f09
add unit test to test execute function
seansing9 d9bd4a6
remove .only
seansing9 1e9e67d
add EOA check to operator initalize
seansing9 26a4ae8
refactor _verifyP256
TtheBC01 27b6235
tweak _verifyP256
TtheBC01 35d2b7c
added helper function to look up wallet addresses
TtheBC01 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
This file contains hidden or 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 contains hidden or 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 @@ | ||
| MNEMONIC = |
This file contains hidden or 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,14 @@ | ||
| node_modules | ||
| .env | ||
|
|
||
| # Hardhat files | ||
| /cache | ||
| /artifacts | ||
|
|
||
| # TypeChain files | ||
| /typechain | ||
| /typechain-types | ||
|
|
||
| # solidity-coverage files | ||
| /coverage | ||
| /coverage.json |
File renamed without changes.
This file contains hidden or 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,23 @@ | ||
| # Contract Deployment Addresses | ||
|
|
||
| You can check for any contract associated w/ snickerdoodle.com at [erc7529.snickerdoodle.com](https://erc7529.snickerdoodle.com/). | ||
|
|
||
| ## `snickerdoodlelabs/devchain:0.1.2` | ||
|
|
||
| Local blockchain created by running the `snickerdoodlelabs/devchain` docker image with the `dev` flag enabled. | ||
|
|
||
| - Protocol Token: `0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0` | ||
| - Consent Contract Implementation: `0x5FbDB2315678afecb367f032d93F642f64180aa3` | ||
| - Consent Factory: `0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9` | ||
| - Questionnaires Contract: `0x0165878A594ca255338adfa4d48449f69242Eb8F` | ||
|
|
||
| ## Fuji Network | ||
|
|
||
| Official Avalanche Testnet: | ||
|
|
||
| - Protocol Token: `0x73F4391c2669f79F15480d3e2Bb22e0792c682bE` | ||
| - Consent Contract Implementation: `0xF6E4d9fA6d35bf45AF9DaDb4931B7499B9De04fC` | ||
| - Consent Factory: `0x5b6c961538E65b6EaCaf09Ec8E93D5f5f1d1afcC` | ||
| - Questionnaires Contract: `0x692F3657c24B91Cb8516b9622b1F271E03cBcEC9` | ||
| - Timelock Controller: `TBD` | ||
| - Governor Contract: `TBD` |
This file contains hidden or 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 @@ | ||
| FROM node:18-slim | ||
|
|
||
| # we need tmux for background sessions and curl for fetching avalanche tools | ||
| RUN apt update -y \ | ||
| && apt install -y vim tmux curl git | ||
|
|
||
| WORKDIR /root | ||
|
|
||
| # copy the contracts package into the working directory | ||
| COPY . . | ||
|
|
||
| # install contracts package dependencies | ||
| RUN npm install | ||
| RUN npm install -D @nomicfoundation/hardhat-toolbox solidity-coverage dotenv | ||
|
|
||
| ENTRYPOINT [ "/bin/bash", "entrypoint.sh" ] |
File renamed without changes.
This file contains hidden or 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,75 @@ | ||
|  | ||
|
|
||
| # Snickerdoodle Protocol Contracts Package | ||
|
|
||
| ## Package Contents | ||
|
|
||
| - [contracts](/packages/contracts/contracts/): Subdirectory containing all Snickerdoodle Protocol smart contracts | ||
| - [docs](/packages/contracts/docs/): Auto-generated API documentation of public and external contract methods | ||
| - [scripts](/packages/contracts/scripts/): Hardhat [scripts](https://hardhat.org/guides/scripts.html) for deploying different configurations of the smart contract stack | ||
| - [subnets](/packages/contracts/subnets/): A subdirectory containing configurations for launching local, testnet, and mainnet [Avalanche Subnets](https://docs.avax.network/subnets) | ||
| - [tasks](/packages/contracts/tasks/): Hardhat [task definitions](https://hardhat.org/guides/create-task.html) for interacting with smart contract deployments | ||
| - [test](/packages/contracts/test/): Hardhat [unit tests](https://hardhat.org/guides/waffle-testing.html) for the Snickerdoodle Protocol smart contract stack | ||
| - [hardhat.config.js](/packages/contracts/hardhat.config.js): [Configuration file](https://hardhat.org/config/) for the Hardhat development framework | ||
|
|
||
| ## Summary | ||
|
|
||
| The Snickerdoodle Contracts stack consists of the following primary components: | ||
|
|
||
| ### [consent](/packages/contracts/contracts/consent/README.md) | ||
|
|
||
| Contains an upgradable EIP721 compatible NFT implementation and an associated contract factory. | ||
|
|
||
| ### [token](/packages/contracts/contracts/token/README.md) | ||
|
|
||
| Contains an EIP20 compatible token, wrapper token (for subnet deployments), and a vesting contract. | ||
|
|
||
| ### [registry](/packages/contracts/contracts/registry/README.md) | ||
|
|
||
| Contains an EIP721 compatible registry contract for storing Snickerdoodle account recovery details. | ||
|
|
||
| ### [governance](/packages/contracts/contracts/governance/README.md) | ||
|
|
||
| Contains the implementation of the Snickerdoodle Protocol governance DAO. | ||
|
|
||
| ### Install Dependencies | ||
|
|
||
| Steps to install and run this project this locally: | ||
|
|
||
| ```shell | ||
| git clone https://github.com/SnickerdoodleLabs/protocol.git | ||
| cd protocol | ||
| yarn install | ||
| ``` | ||
|
|
||
| ### Compiling Contracts | ||
|
|
||
| Use Hardhat to compile the protocol contracts like this: | ||
|
|
||
| ```shell | ||
| cd /packages/contracts | ||
| yarn compile | ||
| yarn test | ||
| ``` | ||
|
|
||
| This command will create a subdirectory called `artifacts` which will contain the contract [ABI](https://docs.soliditylang.org/en/v0.8.13/abi-spec.html) and bytecode for all contracts in the `contracts` subdirectory. | ||
|
|
||
| ### Docker | ||
|
|
||
| A pre-built docker image for local development against the contract stack is available at | ||
| [`snickerdoodlelabs/devchain`](https://hub.docker.com/repository/docker/snickerdoodlelabs/devchain). | ||
| Run a local subnet like this: | ||
|
|
||
| ```shell | ||
| docker run -d -p 8545:8545 --rm snickerdoodlelabs/devchain | ||
| ``` | ||
|
|
||
| Run a [Hardhat node](https://hardhat.org/hardhat-network/docs/overview) like this: | ||
|
|
||
| ```shell | ||
| docker run -d -p 8569:8569 --name devchain --rm --env NETWORK=dev snickerdoodlelabs/devchain | ||
| ``` | ||
|
|
||
| ## Deployment Addresses | ||
|
|
||
| A list of Snickerdoodle Protocol contract addresses can be found [here](/packages/contracts/DEPLOYMENTS.md). |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
127 changes: 127 additions & 0 deletions
127
packages/contracts-old/contracts/governance/SnickerdoodleGovernor.sol
This file contains hidden or 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,127 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| // Compatible with OpenZeppelin Contracts ^5.0.0 | ||
| pragma solidity ^0.8.20; | ||
|
|
||
| import "@openzeppelin/contracts-upgradeable/governance/GovernorUpgradeable.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/governance/extensions/GovernorSettingsUpgradeable.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/governance/extensions/GovernorCountingSimpleUpgradeable.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/governance/extensions/GovernorStorageUpgradeable.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/governance/extensions/GovernorVotesUpgradeable.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/governance/extensions/GovernorVotesQuorumFractionUpgradeable.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/governance/extensions/GovernorTimelockControlUpgradeable.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | ||
|
|
||
| contract SnickerdoodleGovernor is Initializable, GovernorUpgradeable, GovernorSettingsUpgradeable, GovernorCountingSimpleUpgradeable, GovernorStorageUpgradeable, GovernorVotesUpgradeable, GovernorVotesQuorumFractionUpgradeable, GovernorTimelockControlUpgradeable { | ||
| /// @custom:oz-upgrades-unsafe-allow constructor | ||
| constructor() { | ||
| _disableInitializers(); | ||
| } | ||
|
|
||
| function initialize(IVotes _token, TimelockControllerUpgradeable _timelock) | ||
| initializer public | ||
| { | ||
| __Governor_init("SnickerdoodleGovernor"); | ||
| __GovernorSettings_init(7200 /* 1 day */, 50400 /* 1 week */, 0); | ||
| __GovernorCountingSimple_init(); | ||
| __GovernorStorage_init(); | ||
| __GovernorVotes_init(_token); | ||
| __GovernorVotesQuorumFraction_init(4); | ||
| __GovernorTimelockControl_init(_timelock); | ||
| } | ||
|
|
||
| // The following functions are overrides required by Solidity. | ||
|
|
||
| function votingDelay() | ||
| public | ||
| view | ||
| override(GovernorUpgradeable, GovernorSettingsUpgradeable) | ||
| returns (uint256) | ||
| { | ||
| return super.votingDelay(); | ||
| } | ||
|
|
||
| function votingPeriod() | ||
| public | ||
| view | ||
| override(GovernorUpgradeable, GovernorSettingsUpgradeable) | ||
| returns (uint256) | ||
| { | ||
| return super.votingPeriod(); | ||
| } | ||
|
|
||
| function quorum(uint256 blockNumber) | ||
| public | ||
| view | ||
| override(GovernorUpgradeable, GovernorVotesQuorumFractionUpgradeable) | ||
| returns (uint256) | ||
| { | ||
| return super.quorum(blockNumber); | ||
| } | ||
|
|
||
| function state(uint256 proposalId) | ||
| public | ||
| view | ||
| override(GovernorUpgradeable, GovernorTimelockControlUpgradeable) | ||
| returns (ProposalState) | ||
| { | ||
| return super.state(proposalId); | ||
| } | ||
|
|
||
| function proposalNeedsQueuing(uint256 proposalId) | ||
| public | ||
| view | ||
| override(GovernorUpgradeable, GovernorTimelockControlUpgradeable) | ||
| returns (bool) | ||
| { | ||
| return super.proposalNeedsQueuing(proposalId); | ||
| } | ||
|
|
||
| function proposalThreshold() | ||
| public | ||
| view | ||
| override(GovernorUpgradeable, GovernorSettingsUpgradeable) | ||
| returns (uint256) | ||
| { | ||
| return super.proposalThreshold(); | ||
| } | ||
|
|
||
| function _propose(address[] memory targets, uint256[] memory values, bytes[] memory calldatas, string memory description, address proposer) | ||
| internal | ||
| override(GovernorUpgradeable, GovernorStorageUpgradeable) | ||
| returns (uint256) | ||
| { | ||
| return super._propose(targets, values, calldatas, description, proposer); | ||
| } | ||
|
|
||
| function _queueOperations(uint256 proposalId, address[] memory targets, uint256[] memory values, bytes[] memory calldatas, bytes32 descriptionHash) | ||
| internal | ||
| override(GovernorUpgradeable, GovernorTimelockControlUpgradeable) | ||
| returns (uint48) | ||
| { | ||
| return super._queueOperations(proposalId, targets, values, calldatas, descriptionHash); | ||
| } | ||
|
|
||
| function _executeOperations(uint256 proposalId, address[] memory targets, uint256[] memory values, bytes[] memory calldatas, bytes32 descriptionHash) | ||
| internal | ||
| override(GovernorUpgradeable, GovernorTimelockControlUpgradeable) | ||
| { | ||
| super._executeOperations(proposalId, targets, values, calldatas, descriptionHash); | ||
| } | ||
|
|
||
| function _cancel(address[] memory targets, uint256[] memory values, bytes[] memory calldatas, bytes32 descriptionHash) | ||
| internal | ||
| override(GovernorUpgradeable, GovernorTimelockControlUpgradeable) | ||
| returns (uint256) | ||
| { | ||
| return super._cancel(targets, values, calldatas, descriptionHash); | ||
| } | ||
|
|
||
| function _executor() | ||
| internal | ||
| view | ||
| override(GovernorUpgradeable, GovernorTimelockControlUpgradeable) | ||
| returns (address) | ||
| { | ||
| return super._executor(); | ||
| } | ||
| } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,9 @@ | ||
| #!/bin/bash | ||
|
|
||
| tmux new -d -s hardhat npx hardhat node | ||
|
|
||
| # deploy the scripts to the running instance | ||
| npx hardhat run scripts/deploy-factory-and-consent.cts --network localhost | ||
|
|
||
| # keeps main thread of execution from exiting | ||
| tail -f /dev/null |
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,46 @@ | ||
| { | ||
| "name": "@snickerdoodlelabs/contracts", | ||
| "version": "1.0.1", | ||
| "description": "Smart contracts for the Snickerdoodle Protocol", | ||
| "license": "MIT", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/SnickerdoodleLabs/SDL-Contracts" | ||
| }, | ||
| "files": [ | ||
| "contracts/", | ||
| "artifacts/" | ||
| ], | ||
| "scripts": { | ||
| "compile": "npx hardhat compile", | ||
| "test": "npx hardhat test", | ||
| "script": "npx hardhat run", | ||
| "dockerize": "docker build -t snickerdoodlelabs/devchain:0.1.3 -f Dockerfile --progress=plain .", | ||
| "docker-push": "docker push snickerdoodlelabs/devchain:0.1.2", | ||
| "redocgen": "npx hardhat clean && npx hardhat compile && npx hardhat docgen && node scripts/docgenTitleFix.js" | ||
| }, | ||
| "type": "commonjs", | ||
| "dependencies": { | ||
| "@openzeppelin/contracts": "^5.0.2", | ||
| "@openzeppelin/contracts-upgradeable": "^5.0.2", | ||
| "@prb/math": "^4.0.2", | ||
| "@snickerdoodlelabs/erc7529": "workspace:^", | ||
| "dotenv": "^16.0.1", | ||
| "fs": "^0.0.1-security", | ||
| "it-all": "^1.0.6", | ||
| "solidity-coverage": "^0.7.21", | ||
| "solidity-docgen": "^0.6.0-beta.16" | ||
| }, | ||
| "devDependencies": { | ||
| "@nomicfoundation/hardhat-chai-matchers": "^2.0.0", | ||
| "@nomicfoundation/hardhat-ethers": "^3.0.0", | ||
| "@nomicfoundation/hardhat-network-helpers": "^1.0.0", | ||
| "@nomicfoundation/hardhat-verify": "^2.0.0", | ||
| "@openzeppelin/hardhat-upgrades": "^3.0.4", | ||
| "hardhat": "^2.21.0", | ||
| "hardhat-contract-sizer": "^2.10.0", | ||
| "hardhat-gas-reporter": "^1.0.10", | ||
| "ts-node": "^10.8.0", | ||
| "typescript": "^5.2.2" | ||
| } | ||
| } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,5 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "module": "CommonJS" | ||
| } | ||
| } |
This file contains hidden or 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,26 @@ | ||
| import { | ||
| ChainId, | ||
| EVMPrivateKey, | ||
| URLString, | ||
| } from "@snickerdoodlelabs/objects"; | ||
| import { ethers } from "ethers"; | ||
|
|
||
| // #region export constants | ||
| export const chainId = ChainId(31337); | ||
| export const providerUrl = URLString("http://localhost:8545"); | ||
|
|
||
| // This is the private key of the account that A. deployed the contracts and B. has all the token | ||
| // #0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 | ||
| export const privateKey = EVMPrivateKey( | ||
| "ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80", | ||
| ); | ||
|
|
||
| // #0xfE3eEB4ba0FA4BD3b398711AF18908136f5bf430 | ||
| export const privateKey1 = EVMPrivateKey( | ||
| "87f0ccf57f9778b5b2e7b62ceddd9530dd6daa6efef6cd03c986d4cc48e2d62b", | ||
| ); | ||
|
|
||
| // #0xF0CE81C1832B8eb87179Ee578c360b528BcFB3E8 | ||
| export const privateKey2 = EVMPrivateKey( | ||
| "360389bcb918034edc934cc7896a59b365a2c1769513e55e17974896e0b3a888", | ||
| ); | ||
This file contains hidden or 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,12 @@ | ||
| import { ICryptoUtils } from "@snickerdoodlelabs/node-utils"; | ||
| import { ethers } from "ethers"; | ||
|
|
||
| import {} from "@contracts-sdk/debug/constants.js"; | ||
|
|
||
| export class Contracts { | ||
| public constructor( | ||
| protected signer: ethers.Wallet, | ||
| protected signer1: ethers.Wallet, | ||
| protected cryptoUtils: ICryptoUtils, | ||
| ) {} | ||
| } |
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.
These are just keys in Hardhat, right?