diff --git a/base/midas/abis/0x2a8c22e3b10036f3aef5875d04f8441d4188b656.abi.json b/base/midas/abis/0x2a8c22e3b10036f3aef5875d04f8441d4188b656.abi.json new file mode 100644 index 00000000..cf89e703 --- /dev/null +++ b/base/midas/abis/0x2a8c22e3b10036f3aef5875d04f8441d4188b656.abi.json @@ -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" + } +] \ No newline at end of file diff --git a/base/midas/abis/0x80b666d60293217661e7382737bb3e42348f7ce5.abi.json b/base/midas/abis/0x80b666d60293217661e7382737bb3e42348f7ce5.abi.json new file mode 100644 index 00000000..8da0615f --- /dev/null +++ b/base/midas/abis/0x80b666d60293217661e7382737bb3e42348f7ce5.abi.json @@ -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" + } +] \ No newline at end of file diff --git a/base/midas/abis/0x8978e327fe7c72fa4eaf4649c23147e279ae1470.abi.json b/base/midas/abis/0x8978e327fe7c72fa4eaf4649c23147e279ae1470.abi.json new file mode 100644 index 00000000..8da0615f --- /dev/null +++ b/base/midas/abis/0x8978e327fe7c72fa4eaf4649c23147e279ae1470.abi.json @@ -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" + } +] \ No newline at end of file diff --git a/base/midas/abis/0xf804a646c034749b5484bf7dfe875f6a4f969840.abi.json b/base/midas/abis/0xf804a646c034749b5484bf7dfe875f6a4f969840.abi.json new file mode 100644 index 00000000..cf89e703 --- /dev/null +++ b/base/midas/abis/0xf804a646c034749b5484bf7dfe875f6a4f969840.abi.json @@ -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" + } +] \ No newline at end of file diff --git a/base/midas/b2c.json b/base/midas/b2c.json new file mode 100644 index 00000000..5f8e460b --- /dev/null +++ b/base/midas/b2c.json @@ -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" +} \ No newline at end of file