-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp(contracts): Add contracts directory and compilation script (#24)
- Loading branch information
1 parent
71d1b9b
commit ab675cc
Showing
15 changed files
with
5,076 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Compiled contracts | ||
artifacts/ | ||
|
||
# Cached files | ||
cache/ | ||
|
||
# Node modules | ||
node_modules/ |
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,30 @@ | ||
// Copyright Tharsis Labs Ltd.(Evmos) | ||
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) | ||
|
||
package contracts | ||
|
||
import ( | ||
_ "embed" | ||
|
||
evmtypes "github.com/evmos/evmos/v19/x/evm/types" | ||
contractutils "github.com/evmos/os/contracts/utils" | ||
) | ||
|
||
var ( | ||
// ERC20MinterBurnerDecimalsJSON are the compiled bytes of the ERC20MinterBurnerDecimalsContract | ||
// | ||
//go:embed solidity/ERC20MinterBurnerDecimals.json | ||
ERC20MinterBurnerDecimalsJSON []byte | ||
|
||
// ERC20MinterBurnerDecimalsContract is the compiled erc20 contract | ||
ERC20MinterBurnerDecimalsContract evmtypes.CompiledContract | ||
) | ||
|
||
func init() { | ||
var err error | ||
if ERC20MinterBurnerDecimalsContract, err = contractutils.ConvertHardhatBytesToCompiledContract( | ||
ERC20MinterBurnerDecimalsJSON, | ||
); err != nil { | ||
panic(err) | ||
} | ||
} |
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,7 @@ | ||
/** @type import('hardhat/config').HardhatUserConfig */ | ||
module.exports = { | ||
solidity: '0.8.19', | ||
paths: { | ||
sources: './solidity' | ||
} | ||
} |
Oops, something went wrong.