Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/common/src/ai/descriptions/solidity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const solidityERC20Descriptions = {
flashmint:
"Whether to include built-in flash loans to allow lending tokens without requiring collateral as long as they're returned in the same transaction.",
crossChainBridging:
'Whether to allow authorized bridge contracts to mint and burn tokens for cross-chain transfers. Options are to use custom bridges on any chain, or the SuperchainERC20 standard with the predeployed SuperchainTokenBridge. The SuperchainERC20 feature is only available on chains in the Superchain, and requires deploying your contract to the same address on every chain in the Superchain.',
'Whether to allow authorized bridge contracts to mint and burn tokens for cross-chain transfers. Options are to use custom bridges on any chain, to embed an ERC-7786 based bridge directly in the token contract, or to use the SuperchainERC20 standard with the predeployed SuperchainTokenBridge. The SuperchainERC20 feature is only available on chains in the Superchain, and requires deploying your contract to the same address on every chain in the Superchain.',
premintChainId: 'The chain ID of the network on which to premint tokens.',
callback:
'Whether to include support for code execution after transfers and approvals on recipient contracts in a single transaction.',
Expand Down
1 change: 1 addition & 0 deletions packages/core/solidity/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module.exports = {
enabled: true,
runs: 200,
},
viaIR: true,
},
},
};
4 changes: 2 additions & 2 deletions packages/core/solidity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"devDependencies": {
"@openzeppelin/community-contracts": "git+https://github.com/OpenZeppelin/openzeppelin-community-contracts.git#b0ddd27",
"@openzeppelin/contracts": "^5.5.0",
"@openzeppelin/contracts": "git+https://github.com/OpenZeppelin/openzeppelin-contracts.git#master",
"@openzeppelin/contracts-upgradeable": "^5.5.0",
"@types/node": "^20.0.0",
"@types/semver": "^7.5.7",
Expand All @@ -41,4 +41,4 @@
"ts-node": "^10.4.0",
"typescript": "^5.0.0"
}
}
}
1 change: 1 addition & 0 deletions packages/core/solidity/remappings.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@openzeppelin/community-contracts/=node_modules/@openzeppelin/community-contracts/contracts/
@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/
@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/contracts/
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^6.1.0",
"@openzeppelin/contracts": "^5.5.0",
"@openzeppelin/contracts-unreleased": "git+https://github.com/OpenZeppelin/openzeppelin-contracts.git#master",
"hardhat": "^2.22.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^6.1.0",
"@openzeppelin/contracts": "^5.5.0",
"@openzeppelin/contracts-unreleased": "git+https://github.com/OpenZeppelin/openzeppelin-contracts.git#master",
"@openzeppelin/contracts-upgradeable": "^5.5.0",
"@openzeppelin/hardhat-upgrades": "^3.0.0",
"hardhat": "^2.22.0"
Expand Down
31 changes: 31 additions & 0 deletions packages/core/solidity/src/erc20.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,37 @@ testERC20('erc20 crossChainBridging custom managed', {
access: 'managed',
});

testERC20('erc20 crossChainBridging embedded', {
crossChainBridging: 'embedded',
});

testERC20('erc20 crossChainBridging embedded ownable', {
crossChainBridging: 'embedded',
access: 'ownable',
});

testERC20('erc20 crossChainBridging embedded ownable mintable burnable', {
crossChainBridging: 'embedded',
access: 'ownable',
mintable: true,
burnable: true,
});

testERC20('erc20 crossChainBridging embedded roles', {
crossChainBridging: 'embedded',
access: 'roles',
});

testERC20('erc20 crossChainBridging embedded managed', {
crossChainBridging: 'embedded',
access: 'managed',
});

testERC20('erc20 crossChainBridging embedded upgradeable', {
crossChainBridging: 'embedded',
upgradeable: 'transparent',
});

testERC20('erc20 crossChainBridging superchain', {
crossChainBridging: 'superchain',
});
Expand Down
Loading
Loading