Skip to content

Commit

Permalink
feat: midas app base network (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyamospan authored Nov 14, 2024
1 parent 5d8884a commit 214fe57
Show file tree
Hide file tree
Showing 5 changed files with 351 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,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"
}
]
97 changes: 97 additions & 0 deletions base/midas/b2c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"blockchainName": "base",
"chainId": 8453,
"contracts": [
{
"address": "0x8978e327fe7c72fa4eaf4649c23147e279ae1470",
"contractName": "MTbillDepositVault",
"selectors": {
"0x6e26b9f8": {
"erc20OfInterest": [
"tokenIn"
],
"method": "depositRequest",
"plugin": "Midas"
},
"0xc02dd27a": {
"erc20OfInterest": [
"tokenIn"
],
"method": "depositInstant",
"plugin": "Midas"
}
}
},
{
"address": "0x80b666d60293217661e7382737bb3e42348f7ce5",
"contractName": "MBasisDepositVault",
"selectors": {
"0x6e26b9f8": {
"erc20OfInterest": [
"tokenIn"
],
"method": "depositRequest",
"plugin": "Midas"
},
"0xc02dd27a": {
"erc20OfInterest": [
"tokenIn"
],
"method": "depositInstant",
"plugin": "Midas"
}
}
},
{
"address": "0x2a8c22e3b10036f3aef5875d04f8441d4188b656",
"contractName": "MTbillRedemptionVault",
"selectors": {
"0x8b53f75e": {
"erc20OfInterest": [
"tokenOut"
],
"method": "redeemInstant",
"plugin": "Midas"
},
"0xbfc2d46a": {
"erc20OfInterest": [
"tokenOut"
],
"method": "redeemRequest",
"plugin": "Midas"
},
"0xd5f73f5c": {
"erc20OfInterest": [],
"method": "redeemFiatRequest",
"plugin": "Midas"
}
}
},
{
"address": "0xf804a646c034749b5484bf7dfe875f6a4f969840",
"contractName": "MBasisRedemptionVaultSwapper",
"selectors": {
"0x8b53f75e": {
"erc20OfInterest": [
"tokenOut"
],
"method": "redeemInstant",
"plugin": "Midas"
},
"0xbfc2d46a": {
"erc20OfInterest": [
"tokenOut"
],
"method": "redeemRequest",
"plugin": "Midas"
},
"0xd5f73f5c": {
"erc20OfInterest": [],
"method": "redeemFiatRequest",
"plugin": "Midas"
}
}
}
],
"name": "Midas"
}

0 comments on commit 214fe57

Please sign in to comment.