@keep-network/tbtc-v2 1.6.0-dev.0 → 1.6.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/BLS.json +1 -1
- package/artifacts/Bank.json +3 -3
- package/artifacts/BeaconAuthorization.json +1 -1
- package/artifacts/BeaconDkg.json +1 -1
- package/artifacts/BeaconDkgValidator.json +1 -1
- package/artifacts/BeaconInactivity.json +1 -1
- package/artifacts/BeaconSortitionPool.json +3 -3
- package/artifacts/Bridge.json +5 -5
- package/artifacts/BridgeGovernance.json +2 -2
- package/artifacts/BridgeGovernanceParameters.json +2 -2
- package/artifacts/Deposit.json +2 -2
- package/artifacts/DepositSweep.json +2 -2
- package/artifacts/DonationVault.json +3 -3
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/EcdsaSortitionPool.json +3 -3
- package/artifacts/Fraud.json +2 -2
- package/artifacts/KeepRegistry.json +1 -1
- package/artifacts/KeepStake.json +2 -2
- package/artifacts/KeepToken.json +2 -2
- package/artifacts/KeepTokenStaking.json +1 -1
- package/artifacts/LightRelay.json +18 -18
- package/artifacts/LightRelayMaintainerProxy.json +8 -8
- package/artifacts/MaintainerProxy.json +19 -19
- package/artifacts/MovingFunds.json +2 -2
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeacon.json +2 -2
- package/artifacts/RandomBeaconChaosnet.json +2 -2
- package/artifacts/RandomBeaconGovernance.json +2 -2
- package/artifacts/Redemption.json +2 -2
- package/artifacts/ReimbursementPool.json +2 -2
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +3 -3
- package/artifacts/TBTCToken.json +3 -3
- package/artifacts/TBTCVault.json +23 -23
- package/artifacts/TokenStaking.json +1 -1
- package/artifacts/TokenholderGovernor.json +9 -9
- package/artifacts/TokenholderTimelock.json +8 -8
- package/artifacts/VendingMachine.json +3 -3
- package/artifacts/VendingMachineKeep.json +1 -1
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/VendingMachineV2.json +3 -3
- package/artifacts/VendingMachineV3.json +3 -3
- package/artifacts/WalletCoordinator.json +5 -5
- package/artifacts/WalletRegistry.json +5 -5
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +2 -2
- package/artifacts/solcInputs/{6cc4a0b423ac26dbfcae644b54bee6ae.json → d2d7e276da75d7184610fe11a4a103b7.json} +4 -1
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
- package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
- package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
- package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
- package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
- package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
- package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
- package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.dbg.json +1 -1
- package/build/contracts/bridge/WalletCoordinator.sol/WalletCoordinator.dbg.json +1 -1
- package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
- package/build/contracts/l2/L2TBTC.sol/L2TBTC.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/IWormholeTokenBridge.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +2 -15
- package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
- package/build/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.dbg.json +1 -1
- package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
- package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
- package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
- package/build/contracts/vault/TBTCOptimisticMinting.sol/TBTCOptimisticMinting.dbg.json +1 -1
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
- package/contracts/l2/L2WormholeGateway.sol +7 -27
- package/deploy/01_deploy_light_relay.ts +3 -0
- package/deploy/09_deploy_bridge_governance.ts +5 -2
- package/deploy/19_authorize_spv_maintainer_in_bridge.ts +3 -3
- package/deploy/24_transfer_tbtc_ownership.ts +1 -1
- package/deploy/28_authorize_bridge_in_reimbursement_pool.ts +1 -1
- package/deploy/40_authorize_light_relay_maintainer_proxy_in_reimbursement_pool.ts +1 -1
- package/deploy/41_authorize_light_relay_maintainer_proxy_in_light_relay.ts +3 -1
- package/export/artifacts/@keep-network/bitcoin-spv-sol/contracts/BTCUtils.sol/BTCUtils.json +20 -20
- package/export/artifacts/@keep-network/ecdsa/contracts/EcdsaDkgValidator.sol/EcdsaDkgValidator.json +1986 -1986
- package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaDkg.sol/EcdsaDkg.json +20 -20
- package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaInactivity.sol/EcdsaInactivity.json +1836 -1836
- package/export/artifacts/@keep-network/random-beacon/contracts/ReimbursementPool.sol/ReimbursementPool.json +545 -545
- package/export/artifacts/@keep-network/sortition-pools/contracts/Chaosnet.sol/Chaosnet.json +506 -506
- package/export/artifacts/@keep-network/sortition-pools/contracts/Rewards.sol/Rewards.json +23 -23
- package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionPool.sol/SortitionPool.json +2456 -2456
- package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionTree.sol/SortitionTree.json +465 -465
- package/export/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json +568 -568
- package/export/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +603 -603
- package/export/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +1001 -1001
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +1877 -1877
- package/export/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol/ERC20Upgradeable.json +654 -654
- package/export/artifacts/@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol/ERC20WithPermit.json +2534 -2534
- package/export/artifacts/@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol/MisfundRecovery.json +736 -736
- package/export/artifacts/contracts/bank/Bank.sol/Bank.json +1872 -1872
- package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +7061 -7061
- package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +1257 -1257
- package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +972 -972
- package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +1122 -1122
- package/export/artifacts/contracts/bridge/WalletCoordinator.sol/WalletCoordinator.json +5403 -5403
- package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +2961 -2961
- package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +3599 -4067
- package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2393 -2393
- package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +1921 -1921
- package/export/artifacts/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.json +1013 -1013
- package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +1874 -1874
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +8094 -8094
- package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +1923 -1923
- package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +129 -129
- package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +2046 -2046
- package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +353 -353
- package/export/artifacts/contracts/test/SepoliaLightRelay.sol/SepoliaLightRelay.json +12024 -0
- package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +568 -568
- package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +2291 -2291
- package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +1698 -1698
- package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +189 -189
- package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +1448 -1448
- package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2847 -2847
- package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +858 -858
- package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +3476 -3476
- package/export/deploy/01_deploy_light_relay.js +3 -0
- package/export/deploy/09_deploy_bridge_governance.js +4 -2
- package/export/deploy/19_authorize_spv_maintainer_in_bridge.js +3 -3
- package/export/deploy/24_transfer_tbtc_ownership.js +1 -1
- package/export/deploy/28_authorize_bridge_in_reimbursement_pool.js +1 -1
- package/export/deploy/40_authorize_light_relay_maintainer_proxy_in_reimbursement_pool.js +1 -1
- package/export/deploy/41_authorize_light_relay_maintainer_proxy_in_light_relay.js +7 -3
- package/export/hardhat.config.js +23 -0
- package/export/typechain/SepoliaLightRelay.js +2 -0
- package/export/typechain/factories/L2WormholeGateway__factory.js +1 -14
- package/export/typechain/factories/SepoliaLightRelay__factory.js +535 -0
- package/export/typechain/factories/WormholeBridgeStub__factory.js +1 -1
- package/export/typechain/index.js +3 -1
- package/package.json +3 -3
|
@@ -281,14 +281,17 @@ contract L2WormholeGateway is
|
|
|
281
281
|
/// - The receiver of the canonical tBTC should be abi-encoded in the
|
|
282
282
|
/// payload.
|
|
283
283
|
/// - The receiver of the canonical tBTC must not be the zero address.
|
|
284
|
+
///
|
|
284
285
|
/// The Wormhole Token Bridge contract has protection against redeeming
|
|
285
286
|
/// the same VAA again. When a Token Bridge VAA is redeemed, its
|
|
286
287
|
/// message body hash is stored in a map. This map is used to check
|
|
287
288
|
/// whether the hash has already been set in this map. For this reason,
|
|
288
|
-
/// this function does not have to be nonReentrant.
|
|
289
|
+
/// this function does not have to be nonReentrant in theory. However,
|
|
290
|
+
/// to make this function non-dependent on Wormhole Bridge implementation,
|
|
291
|
+
/// we are making it nonReentrant anyway.
|
|
289
292
|
/// @param encodedVm A byte array containing a Wormhole VAA signed by the
|
|
290
293
|
/// guardians.
|
|
291
|
-
function receiveTbtc(bytes calldata encodedVm) external {
|
|
294
|
+
function receiveTbtc(bytes calldata encodedVm) external nonReentrant {
|
|
292
295
|
// ITokenBridge.completeTransferWithPayload completes a contract-controlled
|
|
293
296
|
// transfer of an ERC20 token. Calling this function is not enough to
|
|
294
297
|
// ensure L2WormholeGateway received Wormhole tBTC representation.
|
|
@@ -318,40 +321,17 @@ contract L2WormholeGateway is
|
|
|
318
321
|
if (mintedAmount + amount > mintingLimit) {
|
|
319
322
|
bridgeToken.safeTransfer(receiver, amount);
|
|
320
323
|
} else {
|
|
321
|
-
// The function is non-reentrant
|
|
322
|
-
// call that does not allow to use the same VAA again.
|
|
324
|
+
// The function is non-reentrant.
|
|
323
325
|
// slither-disable-next-line reentrancy-benign
|
|
324
326
|
mintedAmount += amount;
|
|
325
327
|
tbtc.mint(receiver, amount);
|
|
326
328
|
}
|
|
327
329
|
|
|
328
|
-
// The function is non-reentrant
|
|
329
|
-
// call that does not allow to use the same VAA again.
|
|
330
|
+
// The function is non-reentrant.
|
|
330
331
|
// slither-disable-next-line reentrancy-events
|
|
331
332
|
emit WormholeTbtcReceived(receiver, amount);
|
|
332
333
|
}
|
|
333
334
|
|
|
334
|
-
/// @notice Allows to deposit Wormhole tBTC token in exchange for canonical
|
|
335
|
-
/// tBTC. Useful in a situation when user received wormhole tBTC
|
|
336
|
-
/// instead of canonical tBTC. One example of such situation is
|
|
337
|
-
/// when the minting limit was exceeded but the user minted anyway.
|
|
338
|
-
/// @dev Requirements:
|
|
339
|
-
/// - The sender must have at least `amount` of the Wormhole tBTC and
|
|
340
|
-
/// it has to be approved for L2WormholeGateway.
|
|
341
|
-
/// - The minting limit must allow for minting the given amount.
|
|
342
|
-
/// @param amount The amount of Wormhole tBTC to deposit.
|
|
343
|
-
function depositWormholeTbtc(uint256 amount) external {
|
|
344
|
-
require(
|
|
345
|
-
mintedAmount + amount <= mintingLimit,
|
|
346
|
-
"Minting limit exceeded"
|
|
347
|
-
);
|
|
348
|
-
|
|
349
|
-
emit WormholeTbtcDeposited(msg.sender, amount);
|
|
350
|
-
mintedAmount += amount;
|
|
351
|
-
bridgeToken.safeTransferFrom(msg.sender, address(this), amount);
|
|
352
|
-
tbtc.mint(msg.sender, amount);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
335
|
/// @notice Lets the governance to update the tBTC gateway address on the
|
|
356
336
|
/// chain with the given Wormhole ID.
|
|
357
337
|
/// @dev Use toWormholeAddress function to convert between Ethereum and
|
|
@@ -9,6 +9,9 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
|
9
9
|
if (hre.network.name === "goerli") {
|
|
10
10
|
return "GoerliLightRelay"
|
|
11
11
|
}
|
|
12
|
+
if (hre.network.name === "sepolia") {
|
|
13
|
+
return "SepoliaLightRelay"
|
|
14
|
+
}
|
|
12
15
|
if (hre.network.name === "system_tests") {
|
|
13
16
|
return "SystemTestRelay"
|
|
14
17
|
}
|
|
@@ -17,8 +17,11 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
|
17
17
|
}
|
|
18
18
|
)
|
|
19
19
|
|
|
20
|
-
// 60 seconds for Goerli. 48 hours otherwise.
|
|
21
|
-
const GOVERNANCE_DELAY =
|
|
20
|
+
// 60 seconds for Goerli/Sepolia. 48 hours otherwise.
|
|
21
|
+
const GOVERNANCE_DELAY =
|
|
22
|
+
hre.network.name === "goerli" || hre.network.name === "sepolia"
|
|
23
|
+
? 60
|
|
24
|
+
: 172800
|
|
22
25
|
|
|
23
26
|
const bridgeGovernance = await deploy("BridgeGovernance", {
|
|
24
27
|
contract: "BridgeGovernance",
|
|
@@ -21,9 +21,9 @@ func.tags = ["AuthorizeSpvMaintainer"]
|
|
|
21
21
|
func.dependencies = ["Bridge"]
|
|
22
22
|
|
|
23
23
|
// SPV maintainer can submit SPV proofs to the Bridge. We authorize spvMaintainer
|
|
24
|
-
// account for Hardhat network (unit tests) and Goerli (
|
|
25
|
-
// want to authorize it for Mainnet deployment. SPV maintainer will be
|
|
26
|
-
// separately by the Governance when sweeping will be activated.
|
|
24
|
+
// account for Hardhat network (unit tests) and Goerli/Sepolia (testnets) but we
|
|
25
|
+
// DO NOT want to authorize it for Mainnet deployment. SPV maintainer will be
|
|
26
|
+
// authorized separately by the Governance when sweeping will be activated.
|
|
27
27
|
//
|
|
28
28
|
// Note that at this point MaintainerProxy contract is already authorized in the
|
|
29
29
|
// Bridge (see AuthorizeMaintainerProxyInBridge tag).
|
|
@@ -8,7 +8,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
|
8
8
|
// In unit tests we cover VendingMachine, VendingMachineV2, and TBTCVault
|
|
9
9
|
// contracts. All those tests require minting TBTC. To make the test setup
|
|
10
10
|
// easier, we leave the responsibility of transferring the TBTC ownership
|
|
11
|
-
// to the test. In system tests and on
|
|
11
|
+
// to the test. In system tests and on testnet, TBTCVault is the owner of TBTC
|
|
12
12
|
// token, just like on v1.0 mainnet, after transferring the ownership from the
|
|
13
13
|
// VendingMachine.
|
|
14
14
|
if (hre.network.name !== "hardhat") {
|
|
@@ -24,6 +24,6 @@ func.dependencies = ["ReimbursementPool", "Bridge"]
|
|
|
24
24
|
// On mainnet, the ReimbursementPool ownership is passed to the Threshold
|
|
25
25
|
// Council / DAO and that address is not controlled by the dev team.
|
|
26
26
|
// Hence, this step can be executed only for non-mainnet networks such as
|
|
27
|
-
// Hardhat (unit tests) and Goerli (
|
|
27
|
+
// Hardhat (unit tests) and Goerli or Sepolia (testnets).
|
|
28
28
|
func.skip = async (hre: HardhatRuntimeEnvironment): Promise<boolean> =>
|
|
29
29
|
hre.network.name === "mainnet"
|
|
@@ -26,6 +26,6 @@ func.dependencies = ["ReimbursementPool", "LightRelayMaintainerProxy"]
|
|
|
26
26
|
// On mainnet, the ReimbursementPool ownership is passed to the Threshold
|
|
27
27
|
// Council / DAO and that address is not controlled by the dev team.
|
|
28
28
|
// Hence, this step can be executed only for non-mainnet networks such as
|
|
29
|
-
// Hardhat (unit tests) and Goerli (
|
|
29
|
+
// Hardhat (unit tests) and Goerli or Sepolia (testnets).
|
|
30
30
|
func.skip = async (hre: HardhatRuntimeEnvironment): Promise<boolean> =>
|
|
31
31
|
hre.network.name === "mainnet"
|
|
@@ -24,4 +24,6 @@ func.tags = ["AuthorizeLightRelayMaintainerProxyInLightRelay"]
|
|
|
24
24
|
func.dependencies = ["LightRelay", "LightRelayMaintainerProxy"]
|
|
25
25
|
|
|
26
26
|
func.skip = async (hre: HardhatRuntimeEnvironment): Promise<boolean> =>
|
|
27
|
-
hre.network.name === "goerli" ||
|
|
27
|
+
hre.network.name === "goerli" ||
|
|
28
|
+
hre.network.name === "sepolia" ||
|
|
29
|
+
hre.network.name === "system_tests"
|
|
@@ -109,32 +109,32 @@
|
|
|
109
109
|
{
|
|
110
110
|
"ast": {
|
|
111
111
|
"nodeType": "YulBlock",
|
|
112
|
-
"src": "0:201:
|
|
112
|
+
"src": "0:201:126",
|
|
113
113
|
"statements": [
|
|
114
114
|
{
|
|
115
115
|
"nodeType": "YulBlock",
|
|
116
|
-
"src": "6:3:
|
|
116
|
+
"src": "6:3:126",
|
|
117
117
|
"statements": []
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"body": {
|
|
121
121
|
"nodeType": "YulBlock",
|
|
122
|
-
"src": "123:76:
|
|
122
|
+
"src": "123:76:126",
|
|
123
123
|
"statements": [
|
|
124
124
|
{
|
|
125
125
|
"nodeType": "YulAssignment",
|
|
126
|
-
"src": "133:26:
|
|
126
|
+
"src": "133:26:126",
|
|
127
127
|
"value": {
|
|
128
128
|
"arguments": [
|
|
129
129
|
{
|
|
130
130
|
"name": "headStart",
|
|
131
131
|
"nodeType": "YulIdentifier",
|
|
132
|
-
"src": "145:9:
|
|
132
|
+
"src": "145:9:126"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"kind": "number",
|
|
136
136
|
"nodeType": "YulLiteral",
|
|
137
|
-
"src": "156:2:
|
|
137
|
+
"src": "156:2:126",
|
|
138
138
|
"type": "",
|
|
139
139
|
"value": "32"
|
|
140
140
|
}
|
|
@@ -142,16 +142,16 @@
|
|
|
142
142
|
"functionName": {
|
|
143
143
|
"name": "add",
|
|
144
144
|
"nodeType": "YulIdentifier",
|
|
145
|
-
"src": "141:3:
|
|
145
|
+
"src": "141:3:126"
|
|
146
146
|
},
|
|
147
147
|
"nodeType": "YulFunctionCall",
|
|
148
|
-
"src": "141:18:
|
|
148
|
+
"src": "141:18:126"
|
|
149
149
|
},
|
|
150
150
|
"variableNames": [
|
|
151
151
|
{
|
|
152
152
|
"name": "tail",
|
|
153
153
|
"nodeType": "YulIdentifier",
|
|
154
|
-
"src": "133:4:
|
|
154
|
+
"src": "133:4:126"
|
|
155
155
|
}
|
|
156
156
|
]
|
|
157
157
|
},
|
|
@@ -161,24 +161,24 @@
|
|
|
161
161
|
{
|
|
162
162
|
"name": "headStart",
|
|
163
163
|
"nodeType": "YulIdentifier",
|
|
164
|
-
"src": "175:9:
|
|
164
|
+
"src": "175:9:126"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"name": "value0",
|
|
168
168
|
"nodeType": "YulIdentifier",
|
|
169
|
-
"src": "186:6:
|
|
169
|
+
"src": "186:6:126"
|
|
170
170
|
}
|
|
171
171
|
],
|
|
172
172
|
"functionName": {
|
|
173
173
|
"name": "mstore",
|
|
174
174
|
"nodeType": "YulIdentifier",
|
|
175
|
-
"src": "168:6:
|
|
175
|
+
"src": "168:6:126"
|
|
176
176
|
},
|
|
177
177
|
"nodeType": "YulFunctionCall",
|
|
178
|
-
"src": "168:25:
|
|
178
|
+
"src": "168:25:126"
|
|
179
179
|
},
|
|
180
180
|
"nodeType": "YulExpressionStatement",
|
|
181
|
-
"src": "168:25:
|
|
181
|
+
"src": "168:25:126"
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
184
|
},
|
|
@@ -188,13 +188,13 @@
|
|
|
188
188
|
{
|
|
189
189
|
"name": "headStart",
|
|
190
190
|
"nodeType": "YulTypedName",
|
|
191
|
-
"src": "92:9:
|
|
191
|
+
"src": "92:9:126",
|
|
192
192
|
"type": ""
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
"name": "value0",
|
|
196
196
|
"nodeType": "YulTypedName",
|
|
197
|
-
"src": "103:6:
|
|
197
|
+
"src": "103:6:126",
|
|
198
198
|
"type": ""
|
|
199
199
|
}
|
|
200
200
|
],
|
|
@@ -202,16 +202,16 @@
|
|
|
202
202
|
{
|
|
203
203
|
"name": "tail",
|
|
204
204
|
"nodeType": "YulTypedName",
|
|
205
|
-
"src": "114:4:
|
|
205
|
+
"src": "114:4:126",
|
|
206
206
|
"type": ""
|
|
207
207
|
}
|
|
208
208
|
],
|
|
209
|
-
"src": "14:185:
|
|
209
|
+
"src": "14:185:126"
|
|
210
210
|
}
|
|
211
211
|
]
|
|
212
212
|
},
|
|
213
213
|
"contents": "{\n { }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_library_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n}",
|
|
214
|
-
"id":
|
|
214
|
+
"id": 126,
|
|
215
215
|
"language": "Yul",
|
|
216
216
|
"name": "#utility.yul"
|
|
217
217
|
}
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"immutableReferences": {},
|
|
220
220
|
"linkReferences": {},
|
|
221
221
|
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x51 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x56E04EC EQ PUSH1 0x56 JUMPI DUP1 PUSH4 0x8CC71569 EQ PUSH1 0x71 JUMPI DUP1 PUSH4 0x8DB69E60 EQ PUSH1 0x79 JUMPI DUP1 PUSH4 0xD4258CA7 EQ PUSH1 0x81 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x5F PUSH3 0x127500 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x5F PUSH2 0x7E0 DUP2 JUMP JUMPDEST PUSH1 0x5F PUSH1 0x0 NOT DUP2 JUMP JUMPDEST PUSH1 0x5F PUSH28 0xFFFF0000000000000000000000000000000000000000000000000000 DUP2 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x21 0xD8 0x5F GT 0xF6 0x4E 0xD4 0x4F 0xFB 0xA5 SWAP12 0xFC PUSH12 0x4A327F00D51E8E91CA784A04 DUP14 CALLDATACOPY 0x29 0xDB ADD 0xB3 PUSH32 0x64736F6C63430008110033000000000000000000000000000000000000000000 ",
|
|
222
|
-
"sourceMap": "175:38691:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;443:62;;485:20;443:62;;;;;168:25:
|
|
222
|
+
"sourceMap": "175:38691:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;443:62;;485:20;443:62;;;;;168:25:126;;;156:2;141:18;443:62:0;;;;;;;534:53;;583:4;534:53;;616:104;;-1:-1:-1;;616:104:0;;339:97;;378:58;339:97;"
|
|
223
223
|
},
|
|
224
224
|
"gasEstimates": {
|
|
225
225
|
"creation": {
|