Skip to content

Commit

Permalink
Feat/midas (#2) (#240)
Browse files Browse the repository at this point in the history
* wip: midas b2c and abis

* fix: addresses to lowercase

* fix: midas erc20OfInterest

* chore: mbtc added

* fix: to lower case

* fix: format
---------

Co-authored-by: Jonathan <[email protected]>
  • Loading branch information
kostyamospan and Jojoooo1 authored Nov 1, 2024
1 parent 0c05fd9 commit b06fd29
Show file tree
Hide file tree
Showing 9 changed files with 709 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minReceiveAmount",
"type": "uint256"
}
],
"name": "redeemInstant",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
}
],
"name": "redeemRequest",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
}
],
"name": "redeemFiatRequest",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountToken",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minReceiveAmount",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "referrerId",
"type": "bytes32"
}
],
"name": "depositInstant",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountToken",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "referrerId",
"type": "bytes32"
}
],
"name": "depositRequest",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minReceiveAmount",
"type": "uint256"
}
],
"name": "redeemInstant",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
}
],
"name": "redeemRequest",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
}
],
"name": "redeemFiatRequest",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minReceiveAmount",
"type": "uint256"
}
],
"name": "redeemInstant",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
}
],
"name": "redeemRequest",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
}
],
"name": "redeemFiatRequest",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minReceiveAmount",
"type": "uint256"
}
],
"name": "redeemInstant",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
}
],
"name": "redeemRequest",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountMTokenIn",
"type": "uint256"
}
],
"name": "redeemFiatRequest",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit b06fd29

Please sign in to comment.