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

add state view contract #187

Merged
merged 6 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2348
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8537
1 change: 1 addition & 0 deletions .forge-snapshots/StateView_extsload_getLiquidity.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1503
1 change: 1 addition & 0 deletions .forge-snapshots/StateView_extsload_getPositionInfo.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2942
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1740
1 change: 1 addition & 0 deletions .forge-snapshots/StateView_extsload_getSlot0.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1621
1 change: 1 addition & 0 deletions .forge-snapshots/StateView_extsload_getTickBitmap.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1698
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2772
1 change: 1 addition & 0 deletions .forge-snapshots/StateView_extsload_getTickInfo.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3038
1 change: 1 addition & 0 deletions .forge-snapshots/StateView_extsload_getTickLiquidity.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1917
53 changes: 53 additions & 0 deletions broadcast/DeployStateView.s.sol/11155111/run-1721766499.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"transactions": [
{
"hash": "0xc101c6b9b2e5782c734e46af5af4a82b5cf3fc882417de0a84d915ace2d5d319",
"transactionType": "CREATE",
"contractName": "StateView",
"contractAddress": "0xc7a3b85d43ff66ad98a895de0eae4b9e24c932d7",
"function": null,
"arguments": [
"0xc021A7Deb4a939fd7E661a0669faB5ac7Ba2D5d6"
],
"transaction": {
"from": "0xb7a249bdeff39727b5eb4c7ad458f682bae6adad",
"gas": "0x1423e9",
"value": "0x0",
"input": "0x60a0604052348015600e575f80fd5b50604051611240380380611240833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f80fd5b81516001600160a01b0381168114605f575f80fd5b9392505050565b6080516111756100cb5f395f81816102b3015281816103470152818161037d015281816103e801528181610424015281816104610152818161049a015281816104d40152818161050b0152818161054601528181610572015261059e01526111755ff3fe608060405234801561000f575f80fd5b50600436106100cf575f3560e01c80639ec538c81161007d578063dc4c90d311610058578063dc4c90d3146102ae578063f0928f29146102fa578063fa6793d51461032e575f80fd5b80639ec538c814610205578063c815641c14610218578063caedab5414610270575f80fd5b80637c40f1fe116100ad5780637c40f1fe146101685780638a2bb9e6146101b157806397fd7b42146101c4575f80fd5b80631c7ccb4c146100d357806353e9c1fb146100f95780637388426b14610121575b5f80fd5b6100e66100e1366004610e8e565b610341565b6040519081526020015b60405180910390f35b61010c610107366004610ed8565b610376565b604080519283526020830191909152016100f0565b61013461012f366004610f11565b6103b0565b6040805182516fffffffffffffffffffffffffffffffff1681526020808401519082015291810151908201526060016100f0565b61017b610176366004610f7c565b61041b565b604080516fffffffffffffffffffffffffffffffff9095168552600f9390930b60208501529183015260608201526080016100f0565b61010c6101bf366004610f7c565b61045a565b6101d76101d2366004610fa6565b610492565b604080516fffffffffffffffffffffffffffffffff90941684526020840192909252908201526060016100f0565b61010c610213366004610fc6565b6104cd565b61022b610226366004610fc6565b610502565b6040805173ffffffffffffffffffffffffffffffffffffffff909516855260029390930b602085015262ffffff918216928401929092521660608201526080016100f0565b61028361027e366004610f7c565b61053f565b604080516fffffffffffffffffffffffffffffffff9093168352600f9190910b6020830152016100f0565b6102d57f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100f0565b61030d610308366004610fa6565b61056c565b6040516fffffffffffffffffffffffffffffffff90911681526020016100f0565b61030d61033c366004610fc6565b610598565b5f61036d7f000000000000000000000000000000000000000000000000000000000000000084846105c3565b90505b92915050565b5f806103a47f00000000000000000000000000000000000000000000000000000000000000008686866106c6565b91509150935093915050565b6103e360405180606001604052805f6fffffffffffffffffffffffffffffffff1681526020015f81526020015f81525090565b6104117f00000000000000000000000000000000000000000000000000000000000000008787878787610762565b9695505050505050565b5f805f8061044a7f00000000000000000000000000000000000000000000000000000000000000008787610811565b9299919850965090945092505050565b5f806104877f00000000000000000000000000000000000000000000000000000000000000008585610914565b915091509250929050565b5f805f6104c07f00000000000000000000000000000000000000000000000000000000000000008686610a02565b9250925092509250925092565b5f806104f97f000000000000000000000000000000000000000000000000000000000000000084610ae9565b91509150915091565b5f805f806105307f000000000000000000000000000000000000000000000000000000000000000086610b62565b93509350935093509193509193565b5f806104877f00000000000000000000000000000000000000000000000000000000000000008585610c47565b5f61036d7f00000000000000000000000000000000000000000000000000000000000000008484610d0b565b5f6103707f000000000000000000000000000000000000000000000000000000000000000083610db0565b5f806105ce84610dc9565b90505f6105dc600583610fdd565b60408051600187900b60208201529081018290529091505f90606001604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00181529082905280516020909101207f1e2eaeaf00000000000000000000000000000000000000000000000000000000825260048201819052915073ffffffffffffffffffffffffffffffffffffffff881690631e2eaeaf90602401602060405180830381865afa158015610697573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106bb9190611015565b979650505050505050565b5f805f806106d48888610ae9565b915091505f806106e58a8a8a610914565b915091505f806106f68c8c8b610914565b915091505f6107058d8d610b62565b50509150508a60020b8160020b12156107275782850398508184039750610752565b8960020b8160020b126107435784830398508382039750610752565b82858803039850818487030397505b5050505050505094509492505050565b61079560405180606001604052805f6fffffffffffffffffffffffffffffffff1681526020015f81526020015f81525090565b5f604051836026820152846006820152856003820152868152603a600c82012091505f60408201525f60208201525f8152505f805f6107d58b8b86610a02565b604080516060810182526fffffffffffffffffffffffffffffffff90941684526020840192909252908201529450505050509695505050505050565b5f805f805f6108208787610e05565b6040517f35fd631a00000000000000000000000000000000000000000000000000000000815260048101829052600360248201529091505f9073ffffffffffffffffffffffffffffffffffffffff8a16906335fd631a906044015f60405180830381865afa158015610894573d5f803e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526108d99190810190611059565b602081015160408201516060909201516fffffffffffffffffffffffffffffffff82169c60809290921d9b5091995090975095505050505050565b5f805f6109218585610e05565b90505f73ffffffffffffffffffffffffffffffffffffffff87166335fd631a61094b846001610fdd565b60405160e083901b7fffffffff000000000000000000000000000000000000000000000000000000001681526004810191909152600260248201526044015b5f60405180830381865afa1580156109a4573d5f803e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526109e99190810190611059565b6020810151604090910151909890975095505050505050565b5f805f80610a108686610e59565b6040517f35fd631a00000000000000000000000000000000000000000000000000000000815260048101829052600360248201529091505f9073ffffffffffffffffffffffffffffffffffffffff8916906335fd631a906044015f60405180830381865afa158015610a84573d5f803e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610ac99190810190611059565b60208101516040820151606090920151909a919950975095505050505050565b5f805f610af584610dc9565b90505f610b03600183610fdd565b6040517f35fd631a00000000000000000000000000000000000000000000000000000000815260048101829052600260248201529091505f9073ffffffffffffffffffffffffffffffffffffffff8816906335fd631a9060440161098a565b5f805f805f610b7086610dc9565b6040517f1e2eaeaf000000000000000000000000000000000000000000000000000000008152600481018290529091505f9073ffffffffffffffffffffffffffffffffffffffff891690631e2eaeaf90602401602060405180830381865afa158015610bde573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c029190611015565b905073ffffffffffffffffffffffffffffffffffffffff811695508060a01c60020b945062ffffff8160b81c16935062ffffff8160d01c169250505092959194509250565b5f805f610c548585610e05565b6040517f1e2eaeaf000000000000000000000000000000000000000000000000000000008152600481018290529091505f9073ffffffffffffffffffffffffffffffffffffffff881690631e2eaeaf90602401602060405180830381865afa158015610cc2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ce69190611015565b6fffffffffffffffffffffffffffffffff81169860809190911d975095505050505050565b5f80610d178484610e59565b6040517f1e2eaeaf0000000000000000000000000000000000000000000000000000000081526004810182905290915073ffffffffffffffffffffffffffffffffffffffff861690631e2eaeaf90602401602060405180830381865afa158015610d83573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610da79190611015565b95945050505050565b5f80610dbb83610dc9565b90505f610d17600383610fdd565b6040515f90610de8908390600690602001918252602082015260400190565b604051602081830303815290604052805190602001209050919050565b5f80610e1084610dc9565b90505f610e1e600483610fdd565b60408051600287900b60208201529081018290529091506060015b604051602081830303815290604052805190602001209250505092915050565b5f80610e6484610dc9565b90505f610e72600683610fdd565b6040805160208101879052908101829052909150606001610e39565b5f8060408385031215610e9f575f80fd5b823591506020830135600181900b8114610eb7575f80fd5b809150509250929050565b8035600281900b8114610ed3575f80fd5b919050565b5f805f60608486031215610eea575f80fd5b83359250610efa60208501610ec2565b9150610f0860408501610ec2565b90509250925092565b5f805f805f60a08688031215610f25575f80fd5b85359450602086013573ffffffffffffffffffffffffffffffffffffffff81168114610f4f575f80fd5b9350610f5d60408701610ec2565b9250610f6b60608701610ec2565b949793965091946080013592915050565b5f8060408385031215610f8d575f80fd5b82359150610f9d60208401610ec2565b90509250929050565b5f8060408385031215610fb7575f80fd5b50508035926020909101359150565b5f60208284031215610fd6575f80fd5b5035919050565b80820180821115610370577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f60208284031215611025575f80fd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f60208284031215611069575f80fd5b815167ffffffffffffffff81111561107f575f80fd5b8201601f8101841361108f575f80fd5b805167ffffffffffffffff8111156110a9576110a961102c565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811067ffffffffffffffff821117156110f4576110f461102c565b604052918252602081840181019290810187841115611111575f80fd5b6020850194505b8385101561113457845180825260209586019590935001611118565b50969550505050505056fea2646970667358221220971f98e14cbd02081966516fbabc391e3ce3b60bb72adf272027a3f38994423764736f6c634300081a0033000000000000000000000000c021a7deb4a939fd7e661a0669fab5ac7ba2d5d6",
"nonce": "0x2",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x1b55e19",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"transactionHash": "0xc101c6b9b2e5782c734e46af5af4a82b5cf3fc882417de0a84d915ace2d5d319",
"transactionIndex": "0x28",
"blockHash": "0x2019e9767cbfb5a4f556f04336703d7ecaef3557bcc39212fb1dd3458970f59a",
"blockNumber": "0x611a85",
"gasUsed": "0xf7e16",
"effectiveGasPrice": "0x1240761eb",
"from": "0xb7a249bdeff39727b5eb4c7ad458f682bae6adad",
"to": null,
"contractAddress": "0xc7a3b85d43ff66ad98a895de0eae4b9e24c932d7"
}
],
"libraries": [],
"pending": [],
"returns": {
"state": {
"internal_type": "contract StateView",
"value": "0xc7A3b85D43fF66AD98A895dE0EaE4b9e24C932D7"
}
},
"timestamp": 1721766499,
"chain": 11155111,
"commit": "e0aff22"
}
Loading
Loading