Skip to content
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

[SC-1345] add OrderRegistrator and SafeOrderBuilder for linea #346

Merged
merged 1 commit into from
Jan 8, 2025
Merged
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
1 change: 1 addition & 0 deletions deployments/linea/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
59144
230 changes: 230 additions & 0 deletions deployments/linea/Create3Deployer.json

Large diffs are not rendered by default.

174 changes: 174 additions & 0 deletions deployments/linea/OrderRegistrator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"address": "0xb81e7Ab02D761D3C250169619d5599dde07d8E80",
"abi": [
{
"inputs": [
{
"internalType": "contract IOrderMixin",
"name": "limitOrderProtocol",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "BadSignature",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "salt",
"type": "uint256"
},
{
"internalType": "Address",
"name": "maker",
"type": "uint256"
},
{
"internalType": "Address",
"name": "receiver",
"type": "uint256"
},
{
"internalType": "Address",
"name": "makerAsset",
"type": "uint256"
},
{
"internalType": "Address",
"name": "takerAsset",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "makingAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "takingAmount",
"type": "uint256"
},
{
"internalType": "MakerTraits",
"name": "makerTraits",
"type": "uint256"
}
],
"indexed": false,
"internalType": "struct IOrderMixin.Order",
"name": "order",
"type": "tuple"
},
{
"indexed": false,
"internalType": "bytes",
"name": "extension",
"type": "bytes"
},
{
"indexed": false,
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "OrderRegistered",
"type": "event"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "salt",
"type": "uint256"
},
{
"internalType": "Address",
"name": "maker",
"type": "uint256"
},
{
"internalType": "Address",
"name": "receiver",
"type": "uint256"
},
{
"internalType": "Address",
"name": "makerAsset",
"type": "uint256"
},
{
"internalType": "Address",
"name": "takerAsset",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "makingAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "takingAmount",
"type": "uint256"
},
{
"internalType": "MakerTraits",
"name": "makerTraits",
"type": "uint256"
}
],
"internalType": "struct IOrderMixin.Order",
"name": "order",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "extension",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "registerOrder",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"transactionHash": "0xc978a34fd1fec68a2e29b09b55c5aa0cb4764d754f0f888ed8de113b98e809ff",
"receipt": {
"to": "0x65B3Db8bAeF0215A1F9B14c506D2a3078b2C84AE",
"from": "0xa38038f9Ac2b3A7b4247804A46C787960E160Aed",
"contractAddress": null,
"transactionIndex": 2,
"gasUsed": "461934",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x6dbe81aa2e319b936b8a7f80fe01186d58d13ac223b3f098be576d1d3d2b2c7a",
"transactionHash": "0xc978a34fd1fec68a2e29b09b55c5aa0cb4764d754f0f888ed8de113b98e809ff",
"logs": [],
"blockNumber": 14250992,
"cumulativeGasUsed": "621629",
"status": 1
},
"args": [
"0x111111125421ca6dc452d289314280a0f8842a65"
],
"numDeployments": 1,
"bytecode": "0x60a03461006a57601f61071338819003918201601f19168301916001600160401b0383118484101761006f5780849260209460405283398101031261006a57516001600160a01b038116810361006a5760805260405161068d908161008682396080518161013f0152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe608060405260048036101561001357600080fd5b6000803560e01c63dfcb3e341461002957600080fd5b346102a057610140367ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0181811261029c5761010080911261029c576101049367ffffffffffffffff85358181116102985761008890369084016102a3565b909161012435908111610294576100a290369085016102a3565b9390976100af8385610385565b901561028e575073ffffffffffffffffffffffffffffffffffffffff90602060405180927f802b2ef100000000000000000000000000000000000000000000000000000000825261013b8683016004358152602435602082015260443560408201526064356060820152608435608082015260a43560a082015260c43560c082015260e060e435910152565b81857f0000000000000000000000000000000000000000000000000000000000000000165afa9081156102835786918b918b91610245575b5061018193602435166104c6565b1561021d5750916102087f1e8610b3a2275f01a103e27257e911d890537b0c70578537ea077ec0a27b5bc996979261021794876040519889986101fd8a6004358152602435602082015260443560408201526064356060820152608435608082015260a43560a082015260c43560c082015260e060e435910152565b890152870191610346565b91848303610120860152610346565b0390a180f35b6040517f5cd5d233000000000000000000000000000000000000000000000000000000008152fd5b925050506020813d60201161027b575b81610262602093836102d6565b81010312610277575185908a90610181610173565b8880fd5b3d9150610255565b6040513d8b823e3d90fd5b88525086fd5b8680fd5b8580fd5b8280fd5b80fd5b9181601f840112156102d15782359167ffffffffffffffff83116102d157602083818601950101116102d157565b600080fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761031757604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0938186528686013760008582860101520116010190565b9060e4357f0200000000000000000000000000000000000000000000000000000000000000161561049857801561046f5767ffffffffffffffff811161031757604051906103fb60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601836102d6565b808252602082019236828201116102d1578160009260209286378301015273ffffffffffffffffffffffffffffffffffffffff91829151902016906004351603610448575b600190600090565b6000907fdc11ee6b0000000000000000000000000000000000000000000000000000000090565b50506000907fb2d25e490000000000000000000000000000000000000000000000000000000090565b905015610440576000907f74896a7b0000000000000000000000000000000000000000000000000000000090565b90919273ffffffffffffffffffffffffffffffffffffffff9182811692831561064c57604093848414918215610641575b8261056f575b5050610565576020928260009384978351937f1626ba7e0000000000000000000000000000000000000000000000000000000098898652600486015260248501528160448501526064840137606401915afa610557575090565b600051143d60201416919050565b5050505050600190565b909150600085518580604114610629576040146105e4575080805b610599575b50161438806104fd565b817f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a16060830151106105cc575b5061058f565b6080828a6020945282805260015afa505138816105c6565b807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60208b01358060ff1c601b01602084015260208c8b85013716606082015261058a565b5086890135821a602082015280878a8183013761058a565b6041851492506104f7565b50505050505060009056fea264697066735822122005f433d40755973a3aabb754dc4e18af01fbf2047a67356b74dadd93deb0435564736f6c63430008170033",
"deployedBytecode": "0x608060405260048036101561001357600080fd5b6000803560e01c63dfcb3e341461002957600080fd5b346102a057610140367ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0181811261029c5761010080911261029c576101049367ffffffffffffffff85358181116102985761008890369084016102a3565b909161012435908111610294576100a290369085016102a3565b9390976100af8385610385565b901561028e575073ffffffffffffffffffffffffffffffffffffffff90602060405180927f802b2ef100000000000000000000000000000000000000000000000000000000825261013b8683016004358152602435602082015260443560408201526064356060820152608435608082015260a43560a082015260c43560c082015260e060e435910152565b81857f0000000000000000000000000000000000000000000000000000000000000000165afa9081156102835786918b918b91610245575b5061018193602435166104c6565b1561021d5750916102087f1e8610b3a2275f01a103e27257e911d890537b0c70578537ea077ec0a27b5bc996979261021794876040519889986101fd8a6004358152602435602082015260443560408201526064356060820152608435608082015260a43560a082015260c43560c082015260e060e435910152565b890152870191610346565b91848303610120860152610346565b0390a180f35b6040517f5cd5d233000000000000000000000000000000000000000000000000000000008152fd5b925050506020813d60201161027b575b81610262602093836102d6565b81010312610277575185908a90610181610173565b8880fd5b3d9150610255565b6040513d8b823e3d90fd5b88525086fd5b8680fd5b8580fd5b8280fd5b80fd5b9181601f840112156102d15782359167ffffffffffffffff83116102d157602083818601950101116102d157565b600080fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761031757604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0938186528686013760008582860101520116010190565b9060e4357f0200000000000000000000000000000000000000000000000000000000000000161561049857801561046f5767ffffffffffffffff811161031757604051906103fb60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601836102d6565b808252602082019236828201116102d1578160009260209286378301015273ffffffffffffffffffffffffffffffffffffffff91829151902016906004351603610448575b600190600090565b6000907fdc11ee6b0000000000000000000000000000000000000000000000000000000090565b50506000907fb2d25e490000000000000000000000000000000000000000000000000000000090565b905015610440576000907f74896a7b0000000000000000000000000000000000000000000000000000000090565b90919273ffffffffffffffffffffffffffffffffffffffff9182811692831561064c57604093848414918215610641575b8261056f575b5050610565576020928260009384978351937f1626ba7e0000000000000000000000000000000000000000000000000000000098898652600486015260248501528160448501526064840137606401915afa610557575090565b600051143d60201416919050565b5050505050600190565b909150600085518580604114610629576040146105e4575080805b610599575b50161438806104fd565b817f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a16060830151106105cc575b5061058f565b6080828a6020945282805260015afa505138816105c6565b807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60208b01358060ff1c601b01602084015260208c8b85013716606082015261058a565b5086890135821a602082015280878a8183013761058a565b6041851492506104f7565b50505050505060009056fea264697066735822122005f433d40755973a3aabb754dc4e18af01fbf2047a67356b74dadd93deb0435564736f6c63430008170033"
}
Loading
Loading