Skip to content

Commit ff420ac

Browse files
authored
add ierc1271 bindings generation (#184)
Co-authored-by: nksazonov <nsazonov@openware.com>
1 parent 4ed5628 commit ff420ac

File tree

3 files changed

+215
-0
lines changed

3 files changed

+215
-0
lines changed

contracts/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ABIGEN_VERSION ?= 1.12.2
1212

1313
BINDINGS = \
1414
abi/itoken/ierc20.go \
15+
abi/ierc1271/ierc1271.go \
1516
abi/iadjudicator/iyellow_adjudicator.go \
1617
abi/iuniswap_v3_factory/iuniswap_v3_factory.go \
1718
abi/iuniswap_v3_pool/iuniswap_v3_pool.go \
@@ -46,6 +47,7 @@ compile: ${ROOT_DIR}/artifacts
4647

4748
# <go_file>_GO = <struct_name> <path_to_artifact>
4849
ierc20_GO = IERC20 @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json
50+
ierc1271_GO = IERC1271 @openzeppelin/contracts/interfaces/IERC1271.sol/IERC1271.json
4951
iyellow_adjudicator_GO = IYellowAdjudicator contracts/interfaces/IYellowAdjudicator.sol/IYellowAdjudicator.json
5052
iuniswap_v3_factory_GO = IUniswapV3Factory @uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol/IUniswapV3Factory.json
5153
iuniswap_v3_pool_GO = IUniswapV3Pool @uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json

hardhat.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ const config: HardhatUserConfig = {
187187
'@syncswap/core-contracts/contracts/interfaces/factory/IBasePoolFactory.sol',
188188
'@syncswap/core-contracts/contracts/interfaces/pool/IBasePool.sol',
189189
'@syncswap/core-contracts/contracts/SyncSwapRouter.sol',
190+
'@openzeppelin/contracts/interfaces/IERC1271.sol',
190191
],
191192
},
192193
};

pkg/abi/ierc1271/ierc1271.go

Lines changed: 212 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)