Citadel-DAO / citadel-multisig

Citadel DAO's EVM multisig operations.
GNU Affero General Public License v3.0
0 stars 2 forks source link

Vesting distribution of ECP rewards #10

Closed petrovska-petro closed 2 years ago

petrovska-petro commented 2 years ago

Requirements:

  1. coins should be claimable at-will
  2. ideally one contract for all ECPS

Task

ref of request

petrovska-petro commented 2 years ago

for stream creation: https://github.com/sablierhq/sablier/blob/develop/packages/protocol/contracts/Sablier.sol#L179, it will return the streamID probably worthy to dump those data into a json for log purposes

petrovska-petro commented 2 years ago

Thinking that the streamID will differ in the tx once it is mined in the msig, from the fork output. still we can grab those events in dune and drop a csv/json file in the repo

petrovska-petro commented 2 years ago

rinkeby stream testing

Events In This Transaction
--------------------------
├── ISablier (0xC1f3af5DC05b0C51955804b2afc80eF8FeED67b9)
│   └── CreateStream
│       ├── streamId: 100463
│       ├── sender: 0x6b11a8B734C3eeFd41Ff7b0e2D15F2b0F46D336b
│       ├── recipient: 0x10C7a2ca16116E5C998Bfa3BC9CEF464475B18ff
│       ├── deposit: 999999999999999979200
│       ├── tokenAddress: 0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735
│       ├── startTime: 1651842000
│       └── stopTime: 1651881600
│   
└── Gnosis Safe (0x6b11a8B734C3eeFd41Ff7b0e2D15F2b0F46D336b)
    └── ExecutionSuccess
        ├── txHash: 0xb6dc5db34d878e26693c3b0d855c24f42b29b7eb3f132130fc28692b2435074f
        └── payment: 0
{
│   'ethereum_client': <gnosis.eth.ethereum_client.EthereumClient object at 0x7fcba469dd00>,
│   'safe_address': '0x6b11a8B734C3eeFd41Ff7b0e2D15F2b0F46D336b',
│   'to': '0x40A2aCCbd92BCA938b02010E17A5b8929b49130D',
│   'value': 0,
│   'data': HexBytes('0x8d80ff0a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000019200c7ad46e0b8a400bb3c915120d284aafba8fc473500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000c1f3af5dc05b0c51955804b2afc80ef8feed67b900000000000000000000000000000000000000000000003635c9adc5de9faec000c1f3af5dc05b0c51955804b2afc80ef8feed67b9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4cc1b4bf600000000000000000000000010c7a2ca16116e5c998bfa3bc9cef464475b18ff00000000000000000000000000000000000000000000003635c9adc5de9faec0000000000000000000000000c7ad46e0b8a400bb3c915120d284aafba8fc47350000000000000000000000000000000000000000000000000000000062751bd0000000000000000000000000000000000000000000000000000000006275b6800000000000000000000000000000'),
│   'operation': 1,
│   'safe_tx_gas': 0,
│   'base_gas': 0,
│   'gas_price': 0,
│   'gas_token': '0x0000000000000000000000000000000000000000',
│   'refund_receiver': '0x0000000000000000000000000000000000000000',
│   'signatures': b'',
│   '_safe_nonce': 44,
│   '_safe_version': '1.3.0',
│   '_chain_id': None
}
petrovska-petro commented 2 years ago

test: https://rinkeby.etherscan.io/tx/0x2fdf20665ff504290528ea6e24b449b808518c9aaddb3cb55a030df788a7c812#eventlog

petrovska-petro commented 2 years ago

claim test: https://rinkeby.etherscan.io/tx/0x7dcd03a14def44b338c3054cd5dcdb0a7c7b828942bea5b0b3ac2085bac7a752#eventlog

petrovska-petro commented 2 years ago

cancel test

Events In This Transaction
--------------------------
├── ISablier (0xC1f3af5DC05b0C51955804b2afc80eF8FeED67b9)
│   └── CancelStream
│       ├── streamId: 100463
│       ├── sender: 0x6b11a8B734C3eeFd41Ff7b0e2D15F2b0F46D336b
│       ├── recipient: 0x10C7a2ca16116E5C998Bfa3BC9CEF464475B18ff
│       ├── senderBalance: 969898989898989878816
│       └── recipientBalance: 9469696969696969500
│   
└── Gnosis Safe (0x6b11a8B734C3eeFd41Ff7b0e2D15F2b0F46D336b)
    └── ExecutionSuccess
        ├── txHash: 0xbbd0c8a45d0dd30081e1b244a50ccf7a25bf4965eef20e18159c50940ace7be9
        └── payment: 0
{
│   'ethereum_client': <gnosis.eth.ethereum_client.EthereumClient object at 0x7fbf27cdfeb0>,
│   'safe_address': '0x6b11a8B734C3eeFd41Ff7b0e2D15F2b0F46D336b',
│   'to': '0x40A2aCCbd92BCA938b02010E17A5b8929b49130D',
│   'value': 0,
│   'data': HexBytes('0x8d80ff0a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000007900c1f3af5dc05b0c51955804b2afc80ef8feed67b9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000246db9241b000000000000000000000000000000000000000000000000000000000001886f00000000000000'),
│   'operation': 1,
│   'safe_tx_gas': 0,
│   'base_gas': 0,
│   'gas_price': 0,
│   'gas_token': '0x0000000000000000000000000000000000000000',
│   'refund_receiver': '0x0000000000000000000000000000000000000000',
│   'signatures': b'',
│   '_safe_nonce': 45,
│   '_safe_version': '1.3.0',
│   '_chain_id': None
}
petrovska-petro commented 2 years ago

cancel tx: https://rinkeby.etherscan.io/tx/0xd609faff7a345e39ee83053d2d154c3f290a79b2f7ecfac6d442ca344919213f