From f757209c19849bb3fbc5a44d6e80855615500617 Mon Sep 17 00:00:00 2001 From: noel Date: Tue, 13 Aug 2024 00:41:18 +0900 Subject: [PATCH] docs: reward token Altlayer Inu --- .../17000/run-latest.json | 283 ++++++++++++++++++ .../script/CreateAVSRewardsSubmission.s.sol | 91 ++++++ docs/Deployments.md | 6 + 3 files changed, 380 insertions(+) create mode 100644 contracts/broadcast/CreateAVSRewardsSubmission.s.sol/17000/run-latest.json create mode 100644 contracts/script/CreateAVSRewardsSubmission.s.sol diff --git a/contracts/broadcast/CreateAVSRewardsSubmission.s.sol/17000/run-latest.json b/contracts/broadcast/CreateAVSRewardsSubmission.s.sol/17000/run-latest.json new file mode 100644 index 0000000..95e8ada --- /dev/null +++ b/contracts/broadcast/CreateAVSRewardsSubmission.s.sol/17000/run-latest.json @@ -0,0 +1,283 @@ +{ + "transactions": [ + { + "hash": "0xe3174548d32b8c9e122c17f80ddbf926e2a126dda570c2e7fe0ca1f9a5bee0d3", + "transactionType": "CREATE", + "contractName": "AltLayerInu", + "contractAddress": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "function": null, + "arguments": null, + "transaction": { + "from": "0x31cc55d177824193a5fa2bf34da8afafbd366111", + "gas": "0xe5446", + "value": "0x0", + "input": "0x608060405234801561001057600080fd5b50604080518082018252600c81526b416c744c6179657220496e7560a01b602080830191825283518085019094526006845265414c54494e5560d01b9084015281519192916100619160039161007d565b50805161007590600490602084019061007d565b505050610151565b82805461008990610116565b90600052602060002090601f0160209004810192826100ab57600085556100f1565b82601f106100c457805160ff19168380011785556100f1565b828001600101855582156100f1579182015b828111156100f15782518255916020019190600101906100d6565b506100fd929150610101565b5090565b5b808211156100fd5760008155600101610102565b600181811c9082168061012a57607f821691505b6020821081141561014b57634e487b7160e01b600052602260045260246000fd5b50919050565b610b32806101606000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806340c10f191161008c5780639dc29fac116100665780639dc29fac146101a2578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806340c10f191461015c57806370a082311461017157806395d89b411461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc6101ee565b6040516100e99190610950565b60405180910390f35b6101056101003660046109c1565b610280565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046109eb565b610298565b604051601281526020016100e9565b6101056101573660046109c1565b6102bc565b61016f61016a3660046109c1565b6102de565b005b61011961017f366004610a27565b6001600160a01b031660009081526020819052604090205490565b6100dc6102ec565b61016f6101b03660046109c1565b6102fb565b6101056101c33660046109c1565b610305565b6101056101d63660046109c1565b610385565b6101196101e9366004610a49565b610393565b6060600380546101fd90610a7c565b80601f016020809104026020016040519081016040528092919081815260200182805461022990610a7c565b80156102765780601f1061024b57610100808354040283529160200191610276565b820191906000526020600020905b81548152906001019060200180831161025957829003601f168201915b5050505050905090565b60003361028e8185856103be565b5060019392505050565b6000336102a68582856104e3565b6102b185858561055d565b506001949350505050565b60003361028e8185856102cf8383610393565b6102d99190610acd565b6103be565b6102e8828261072b565b5050565b6060600480546101fd90610a7c565b6102e8828261080a565b600033816103138286610393565b9050838110156103785760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102b182868684036103be565b60003361028e81858561055d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104205760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161036f565b6001600160a01b0382166104815760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161036f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006104ef8484610393565b90506000198114610557578181101561054a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161036f565b61055784848484036103be565b50505050565b6001600160a01b0383166105c15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161036f565b6001600160a01b0382166106235760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161036f565b6001600160a01b0383166000908152602081905260409020548181101561069b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161036f565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906106d2908490610acd565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161071e91815260200190565b60405180910390a3610557565b6001600160a01b0382166107815760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161036f565b80600260008282546107939190610acd565b90915550506001600160a01b038216600090815260208190526040812080548392906107c0908490610acd565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821661086a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161036f565b6001600160a01b038216600090815260208190526040902054818110156108de5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161036f565b6001600160a01b038316600090815260208190526040812083830390556002805484929061090d908490610ae5565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016104d6565b600060208083528351808285015260005b8181101561097d57858101830151858201604001528201610961565b8181111561098f576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146109bc57600080fd5b919050565b600080604083850312156109d457600080fd5b6109dd836109a5565b946020939093013593505050565b600080600060608486031215610a0057600080fd5b610a09846109a5565b9250610a17602085016109a5565b9150604084013590509250925092565b600060208284031215610a3957600080fd5b610a42826109a5565b9392505050565b60008060408385031215610a5c57600080fd5b610a65836109a5565b9150610a73602084016109a5565b90509250929050565b600181811c90821680610a9057607f821691505b60208210811415610ab157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610ae057610ae0610ab7565b500190565b600082821015610af757610af7610ab7565b50039056fea264697066735822122013b0fd8678b4e5101e474fb46ab83dd2822f0dfd2460fac0200cfe33dee0f07564736f6c634300080c0033", + "nonce": "0x236", + "chainId": "0x4268" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x718c1011655848a905264c43bf66940f9d01e7d049dee97300262975019730eb", + "transactionType": "CALL", + "contractName": "AltLayerInu", + "contractAddress": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "function": "mint(address,uint256)", + "arguments": [ + "0x31Cc55D177824193A5fa2BF34da8AfAfbd366111", + "1000000000000000000000000" + ], + "transaction": { + "from": "0x31cc55d177824193a5fa2bf34da8afafbd366111", + "to": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "gas": "0x170f4", + "value": "0x0", + "input": "0x40c10f1900000000000000000000000031cc55d177824193a5fa2bf34da8afafbd36611100000000000000000000000000000000000000000000d3c21bcecceda1000000", + "nonce": "0x237", + "chainId": "0x4268" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x7222488d746ccdde617a34ef101a8c7030aa8e5319944d62379fb08d2f66fa74", + "transactionType": "CALL", + "contractName": "AltLayerInu", + "contractAddress": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "function": "approve(address,uint256)", + "arguments": [ + "0xAE9a4497dee2540DaF489BeddB0706128a99ec63", + "1000000000000000000000000" + ], + "transaction": { + "from": "0x31cc55d177824193a5fa2bf34da8afafbd366111", + "to": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "gas": "0xf9a4", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000ae9a4497dee2540daf489beddb0706128a99ec6300000000000000000000000000000000000000000000d3c21bcecceda1000000", + "nonce": "0x238", + "chainId": "0x4268" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xb147018da4bf5edacc6cc78a0db2c63d88e8a52cf32fab7e05f0b57c1dd5706b", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0xae9a4497dee2540daf489beddb0706128a99ec63", + "function": "createAVSRewardsSubmission(((address,uint96)[],address,uint256,uint32,uint32)[])", + "arguments": [ + "[([(0x05037A81BD7B4C9E0F7B430f1F2A22c31a2FD943, 1000000000000000000), (0x31B6F59e1627cEfC9fA174aD03859fC337666af7, 1000000000000000000), (0x3A8fBdf9e77DFc25d09741f51d3E181b25d0c4E0, 1000000000000000000), (0x46281E3B7fDcACdBa44CADf069a94a588Fd4C6Ef, 1000000000000000000), (0x70EB4D3c164a6B4A5f908D4FBb5a9cAfFb66bAB6, 1000000000000000000), (0x7673a47463F80c6a3553Db9E54c8cDcd5313d0ac, 1000000000000000000), (0x7D704507b76571a51d9caE8AdDAbBFd0ba0e63d3, 1000000000000000000), (0x80528D6e9A2BAbFc766965E0E26d5aB08D9CFaF9, 1000000000000000000), (0x9281ff96637710Cd9A5CAcce9c6FAD8C9F54631c, 1000000000000000000), (0xaccc5A86732BE85b5012e8614AF237801636F8e5, 1000000000000000000), (0xbeaC0eeEeeeeEEeEeEEEEeeEEeEeeeEeeEEBEaC0, 1000000000000000000)], 0x4Bd30dAf919a3f74ec57f0557716Bcc660251Ec0, 1000000000000000000000000, 1722470400, 2419200)]" + ], + "transaction": { + "from": "0x31cc55d177824193a5fa2bf34da8afafbd366111", + "to": "0xae9a4497dee2540daf489beddb0706128a99ec63", + "gas": "0x4c57a", + "value": "0x0", + "input": "0xfce36c7d00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004bd30daf919a3f74ec57f0557716bcc660251ec000000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000000000000000000000000000000000000066aad000000000000000000000000000000000000000000000000000000000000024ea00000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000005037a81bd7b4c9e0f7b430f1f2a22c31a2fd9430000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000031b6f59e1627cefc9fa174ad03859fc337666af70000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000003a8fbdf9e77dfc25d09741f51d3e181b25d0c4e00000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000046281e3b7fdcacdba44cadf069a94a588fd4c6ef0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000070eb4d3c164a6b4a5f908d4fbb5a9caffb66bab60000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000007673a47463f80c6a3553db9e54c8cdcd5313d0ac0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000007d704507b76571a51d9cae8addabbfd0ba0e63d30000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000080528d6e9a2babfc766965e0e26d5ab08d9cfaf90000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000009281ff96637710cd9a5cacce9c6fad8c9f54631c0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000accc5a86732be85b5012e8614af237801636f8e50000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000beac0eeeeeeeeeeeeeeeeeeeeeeeeeeeeeebeac00000000000000000000000000000000000000000000000000de0b6b3a7640000", + "nonce": "0x239", + "chainId": "0x4268" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x574912", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xe3174548d32b8c9e122c17f80ddbf926e2a126dda570c2e7fe0ca1f9a5bee0d3", + "transactionIndex": "0x9", + "blockHash": "0x51b50b77f4189cf611e994c0a26988069029df9c13b4ba6381583acb046fbda5", + "blockNumber": "0x1fb11d", + "gasUsed": "0xb068a", + "effectiveGasPrice": "0x1cb7b", + "from": "0x31cc55d177824193a5fa2bf34da8afafbd366111", + "to": null, + "contractAddress": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x960db4", + "logs": [ + { + "address": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x00000000000000000000000031cc55d177824193a5fa2bf34da8afafbd366111" + ], + "data": "0x00000000000000000000000000000000000000000000d3c21bcecceda1000000", + "blockHash": "0x319929a34040a09cc7b675d393fe5d084950434a7a7a0ddd4ea0dc313b5d36cd", + "blockNumber": "0x1fb11f", + "transactionHash": "0x718c1011655848a905264c43bf66940f9d01e7d049dee97300262975019730eb", + "transactionIndex": "0x16", + "logIndex": "0x23", + "removed": false + } + ], + "logsBloom": "0x00000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000020000000000000000004800000000000000000000000010000000000000000000000002000000000000000000000000000000000080000200000000000000000000002000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x718c1011655848a905264c43bf66940f9d01e7d049dee97300262975019730eb", + "transactionIndex": "0x16", + "blockHash": "0x319929a34040a09cc7b675d393fe5d084950434a7a7a0ddd4ea0dc313b5d36cd", + "blockNumber": "0x1fb11f", + "gasUsed": "0x10b1f", + "effectiveGasPrice": "0x1cb7b", + "from": "0x31cc55d177824193a5fa2bf34da8afafbd366111", + "to": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "contractAddress": null + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x4be758", + "logs": [ + { + "address": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "topics": [ + "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "0x00000000000000000000000031cc55d177824193a5fa2bf34da8afafbd366111", + "0x000000000000000000000000ae9a4497dee2540daf489beddb0706128a99ec63" + ], + "data": "0x00000000000000000000000000000000000000000000d3c21bcecceda1000000", + "blockHash": "0x620790f4d3b14dc1509fc156719e57210a4e9bf75e3e3acf4a872ae491fa6420", + "blockNumber": "0x1fb120", + "transactionHash": "0x7222488d746ccdde617a34ef101a8c7030aa8e5319944d62379fb08d2f66fa74", + "transactionIndex": "0xb", + "logIndex": "0xa", + "removed": false + } + ], + "logsBloom": "0x00000000000000020000000000000000000000000000000000000000000000000000000000000000000008000200000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000002000000000000000000000000000000000080000200000000020000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x7222488d746ccdde617a34ef101a8c7030aa8e5319944d62379fb08d2f66fa74", + "transactionIndex": "0xb", + "blockHash": "0x620790f4d3b14dc1509fc156719e57210a4e9bf75e3e3acf4a872ae491fa6420", + "blockNumber": "0x1fb120", + "gasUsed": "0xb4bd", + "effectiveGasPrice": "0x1cb7b", + "from": "0x31cc55d177824193a5fa2bf34da8afafbd366111", + "to": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "contractAddress": null + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x4f115c", + "logs": [ + { + "address": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "topics": [ + "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "0x00000000000000000000000031cc55d177824193a5fa2bf34da8afafbd366111", + "0x000000000000000000000000ae9a4497dee2540daf489beddb0706128a99ec63" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xf34463d49b181866cd013caa4142c69ffce9a031f6dabbc0fcfc8cff1f2d235d", + "blockNumber": "0x1fb121", + "transactionHash": "0xb147018da4bf5edacc6cc78a0db2c63d88e8a52cf32fab7e05f0b57c1dd5706b", + "transactionIndex": "0xa", + "logIndex": "0xb", + "removed": false + }, + { + "address": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x00000000000000000000000031cc55d177824193a5fa2bf34da8afafbd366111", + "0x000000000000000000000000ae9a4497dee2540daf489beddb0706128a99ec63" + ], + "data": "0x00000000000000000000000000000000000000000000d3c21bcecceda1000000", + "blockHash": "0xf34463d49b181866cd013caa4142c69ffce9a031f6dabbc0fcfc8cff1f2d235d", + "blockNumber": "0x1fb121", + "transactionHash": "0xb147018da4bf5edacc6cc78a0db2c63d88e8a52cf32fab7e05f0b57c1dd5706b", + "transactionIndex": "0xa", + "logIndex": "0xc", + "removed": false + }, + { + "address": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "topics": [ + "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "0x000000000000000000000000ae9a4497dee2540daf489beddb0706128a99ec63", + "0x000000000000000000000000acc1fb458a1317e886db376fc8141540537e68fe" + ], + "data": "0x00000000000000000000000000000000000000000000d3c21bcecceda1000000", + "blockHash": "0xf34463d49b181866cd013caa4142c69ffce9a031f6dabbc0fcfc8cff1f2d235d", + "blockNumber": "0x1fb121", + "transactionHash": "0xb147018da4bf5edacc6cc78a0db2c63d88e8a52cf32fab7e05f0b57c1dd5706b", + "transactionIndex": "0xa", + "logIndex": "0xd", + "removed": false + }, + { + "address": "0xacc1fb458a1317e886db376fc8141540537e68fe", + "topics": [ + "0x450a367a380c4e339e5ae7340c8464ef27af7781ad9945cfe8abd828f89e6281", + "0x000000000000000000000000ae9a4497dee2540daf489beddb0706128a99ec63", + "0x0000000000000000000000000000000000000000000000000000000000000001", + "0xe99441f5e2e0f4107d3ba751ceae4ad559871c75f6dd2df0e5c06701dcc9be22" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004bd30daf919a3f74ec57f0557716bcc660251ec000000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000000000000000000000000000000000000066aad000000000000000000000000000000000000000000000000000000000000024ea00000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000005037a81bd7b4c9e0f7b430f1f2a22c31a2fd9430000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000031b6f59e1627cefc9fa174ad03859fc337666af70000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000003a8fbdf9e77dfc25d09741f51d3e181b25d0c4e00000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000046281e3b7fdcacdba44cadf069a94a588fd4c6ef0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000070eb4d3c164a6b4a5f908d4fbb5a9caffb66bab60000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000007673a47463f80c6a3553db9e54c8cdcd5313d0ac0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000007d704507b76571a51d9cae8addabbfd0ba0e63d30000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000080528d6e9a2babfc766965e0e26d5ab08d9cfaf90000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000009281ff96637710cd9a5cacce9c6fad8c9f54631c0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000accc5a86732be85b5012e8614af237801636f8e50000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000beac0eeeeeeeeeeeeeeeeeeeeeeeeeeeeeebeac00000000000000000000000000000000000000000000000000de0b6b3a7640000", + "blockHash": "0xf34463d49b181866cd013caa4142c69ffce9a031f6dabbc0fcfc8cff1f2d235d", + "blockNumber": "0x1fb121", + "transactionHash": "0xb147018da4bf5edacc6cc78a0db2c63d88e8a52cf32fab7e05f0b57c1dd5706b", + "transactionIndex": "0xa", + "logIndex": "0xe", + "removed": false + }, + { + "address": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "topics": [ + "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "0x000000000000000000000000ae9a4497dee2540daf489beddb0706128a99ec63", + "0x000000000000000000000000acc1fb458a1317e886db376fc8141540537e68fe" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xf34463d49b181866cd013caa4142c69ffce9a031f6dabbc0fcfc8cff1f2d235d", + "blockNumber": "0x1fb121", + "transactionHash": "0xb147018da4bf5edacc6cc78a0db2c63d88e8a52cf32fab7e05f0b57c1dd5706b", + "transactionIndex": "0xa", + "logIndex": "0xf", + "removed": false + }, + { + "address": "0x4bd30daf919a3f74ec57f0557716bcc660251ec0", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x000000000000000000000000ae9a4497dee2540daf489beddb0706128a99ec63", + "0x000000000000000000000000acc1fb458a1317e886db376fc8141540537e68fe" + ], + "data": "0x00000000000000000000000000000000000000000000d3c21bcecceda1000000", + "blockHash": "0xf34463d49b181866cd013caa4142c69ffce9a031f6dabbc0fcfc8cff1f2d235d", + "blockNumber": "0x1fb121", + "transactionHash": "0xb147018da4bf5edacc6cc78a0db2c63d88e8a52cf32fab7e05f0b57c1dd5706b", + "transactionIndex": "0xa", + "logIndex": "0x10", + "removed": false + } + ], + "logsBloom": "0x00000000000000020000000000000000000000000000000000000000000000000000000002000000000008000240000000000002000000800000000000240000000000000000000000000019000000000000000000040000000000000000000000001000000000000000000000004000000000000000000000000010000000000000000000000002000100000000000000000000010000000080000200000000020000000000002000000000000000000000000000000000000000000000000000000002000000000000000000008000000000000000000000001000000040000010000000001020000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xb147018da4bf5edacc6cc78a0db2c63d88e8a52cf32fab7e05f0b57c1dd5706b", + "transactionIndex": "0xa", + "blockHash": "0xf34463d49b181866cd013caa4142c69ffce9a031f6dabbc0fcfc8cff1f2d235d", + "blockNumber": "0x1fb121", + "gasUsed": "0x34333", + "effectiveGasPrice": "0x1cb7b", + "from": "0x31cc55d177824193a5fa2bf34da8afafbd366111", + "to": "0xae9a4497dee2540daf489beddb0706128a99ec63", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1722920465, + "chain": 17000, + "commit": "a646617" +} \ No newline at end of file diff --git a/contracts/script/CreateAVSRewardsSubmission.s.sol b/contracts/script/CreateAVSRewardsSubmission.s.sol new file mode 100644 index 0000000..dafa3c4 --- /dev/null +++ b/contracts/script/CreateAVSRewardsSubmission.s.sol @@ -0,0 +1,91 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.12; + +import "eigenlayer-core/contracts/interfaces/IRewardsCoordinator.sol"; +import "eigenlayer-middleware/interfaces/IServiceManager.sol"; + +import "forge-std/Script.sol"; +import "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol"; +import {MachServiceManager} from "../src/core/MachServiceManager.sol"; + +import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; + +contract AltLayerInu is ERC20 { + constructor() ERC20("AltLayer Inu", "ALTINU") {} + + function mint(address account, uint256 amount) external { + _mint(account, amount); + } + + function burn(address account, uint256 amount) external { + _burn(account, amount); + } +} + +// forge script ./script/CreateAVSRewardsSubmission.s.sol:CreateAVSRewardsSubmission \ +// --private-key $PK \ +// --rpc-url $URL --broadcast --slow +contract CreateAVSRewardsSubmission is Script { + function run() external { + vm.startBroadcast(); + IRewardsCoordinator.StrategyAndMultiplier[] memory strategiesAndMultipliers = + new IRewardsCoordinator.StrategyAndMultiplier[](11); + + strategiesAndMultipliers[0] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0x05037A81BD7B4C9E0F7B430f1F2A22c31a2FD943)), 1 ether + ); + strategiesAndMultipliers[1] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0x31B6F59e1627cEfC9fA174aD03859fC337666af7)), 1 ether + ); + strategiesAndMultipliers[2] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0x3A8fBdf9e77DFc25d09741f51d3E181b25d0c4E0)), 1 ether + ); + strategiesAndMultipliers[3] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0x46281E3B7fDcACdBa44CADf069a94a588Fd4C6Ef)), 1 ether + ); + strategiesAndMultipliers[4] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0x70EB4D3c164a6B4A5f908D4FBb5a9cAfFb66bAB6)), 1 ether + ); + strategiesAndMultipliers[5] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0x7673a47463F80c6a3553Db9E54c8cDcd5313d0ac)), 1 ether + ); + strategiesAndMultipliers[6] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0x7D704507b76571a51d9caE8AdDAbBFd0ba0e63d3)), 1 ether + ); + strategiesAndMultipliers[7] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0x80528D6e9A2BAbFc766965E0E26d5aB08D9CFaF9)), 1 ether + ); + strategiesAndMultipliers[8] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0x9281ff96637710Cd9A5CAcce9c6FAD8C9F54631c)), 1 ether + ); + strategiesAndMultipliers[9] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0xaccc5A86732BE85b5012e8614AF237801636F8e5)), 1 ether + ); + strategiesAndMultipliers[10] = IRewardsCoordinator.StrategyAndMultiplier( + IStrategy(address(0xbeaC0eeEeeeeEEeEeEEEEeeEEeEeeeEeeEEBEaC0)), 1 ether + ); + + IRewardsCoordinator.RewardsSubmission[] memory rewardsSubmissions = + new IRewardsCoordinator.RewardsSubmission[](1) ; + + AltLayerInu rewardToken = new AltLayerInu(); + uint256 amount = 1000000 ether; + + uint32 CALCULATION_INTERVAL_SECONDS = 7 days; + address serviceManager = 0xAE9a4497dee2540DaF489BeddB0706128a99ec63; + uint32 startTimestamp = uint32(block.timestamp) - uint32(block.timestamp % CALCULATION_INTERVAL_SECONDS); + + rewardsSubmissions[0] = IRewardsCoordinator.RewardsSubmission({ + strategiesAndMultipliers: strategiesAndMultipliers, + token: IERC20(rewardToken), + amount: amount, + startTimestamp: startTimestamp, + duration: uint32(28 days) + }); + rewardToken.mint(0x31Cc55D177824193A5fa2BF34da8AfAfbd366111, amount); + rewardToken.approve(address(serviceManager), amount); + IRewardsCoordinator(serviceManager).createAVSRewardsSubmission(rewardsSubmissions); + + vm.stopBroadcast(); + } +} diff --git a/docs/Deployments.md b/docs/Deployments.md index c30fd43..027cc38 100644 --- a/docs/Deployments.md +++ b/docs/Deployments.md @@ -109,6 +109,12 @@ | ProxyAdmin | [`0xeBaE2a37884e7aeC83c0e69A146e4920c6aAE6Dc`](https://holesky.etherscan.io/address/0xeBaE2a37884e7aeC83c0e69A146e4920c6aAE6Dc) | | MachServiceManagerRegistry | [`0x5c36928d11d7a39641ed520d2213afc9ec806d71`](https://holesky.etherscan.io/address/0x5c36928d11d7a39641ed520d2213afc9ec806d71) | +### Reward Token + +| Name | Address | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------- | +| Altlayer Inu | [`0x4bd30daf919a3f74ec57f0557716bcc660251ec0`](https://holesky.etherscan.io/address/0x4bd30daf919a3f74ec57f0557716bcc660251ec0) | + #### Rollup Chain IDs - AltLayer: