Skip to content

Commit

Permalink
Merge pull request #143 from loicttn/feat/ethereum/kiln-pooling
Browse files Browse the repository at this point in the history
Add Kiln Pooling contracts
  • Loading branch information
adrienlacombe authored Aug 4, 2023
2 parents 3dc5706 + c93bef0 commit fe95449
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[
{
"inputs": [],
"name": "stake",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "requestExit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "exitQueues",
"type": "address[]"
},
{
"internalType": "uint32[][]",
"name": "ticketIds",
"type": "uint32[][]"
},
{
"internalType": "uint32[][]",
"name": "casksIds",
"type": "uint32[][]"
}
],
"name": "multiClaim",
"outputs": [
{
"internalType": "enum IvExitQueue.ClaimStatus[][]",
"name": "statuses",
"type": "uint8[][]"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[
{
"inputs": [
{
"internalType": "uint32[]",
"name": "ticketIds",
"type": "uint32[]"
},
{
"internalType": "uint32[]",
"name": "caskIds",
"type": "uint32[]"
},
{
"internalType": "uint16",
"name": "maxClaimDepth",
"type": "uint16"
}
],
"name": "claim",
"outputs": [
{
"internalType": "enum IvExitQueue.ClaimStatus[]",
"name": "statuses",
"type": "uint8[]"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
28 changes: 28 additions & 0 deletions ethereum/kiln/b2c.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,34 @@
"plugin": "Kiln"
}
}
},
{
"address": "0x5db5235b5c7e247488784986e58019fffd98fda4",
"contractName": "LedgerLiveV2",
"selectors": {
"0x3a4b66f1": {
"method": "stake",
"plugin": "Kiln"
},
"0x721c6513": {
"method": "requestExit",
"plugin": "Kiln"
},
"0xa6d95360": {
"method": "multiClaim",
"plugin": "Kiln"
}
}
},
{
"address": "0x8d6fd650500f82c7d978a440348e5a9b886943bf",
"contractName": "KilnExitQueueV2",
"selectors": {
"0x10dd50a7": {
"method": "claim",
"plugin": "Kiln"
}
}
}
],
"name": "kiln"
Expand Down

0 comments on commit fe95449

Please sign in to comment.