@malda-protocol/protocol-config
Version:
Centralized contract addresses, constants, and token configurations for Malda Protocol
104 lines (103 loc) • 3.72 kB
JavaScript
export const MIGRATOR_ABI = [
{
inputs: [{ internalType: 'address', name: 'target', type: 'address' }],
name: 'AddressEmptyCode',
type: 'error',
},
{
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
name: 'AddressInsufficientBalance',
type: 'error',
},
{ inputs: [], name: 'FailedInnerCall', type: 'error' },
{
inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
name: 'SafeERC20FailedOperation',
type: 'error',
},
{
inputs: [
{
components: [
{
internalType: 'address',
name: 'mendiComptroller',
type: 'address',
},
{ internalType: 'address', name: 'maldaOperator', type: 'address' },
{ internalType: 'address', name: 'userV1', type: 'address' },
{ internalType: 'address', name: 'userV2', type: 'address' },
],
internalType: 'struct Migrator.MigrationParams',
name: 'params',
type: 'tuple',
},
],
name: 'getAllCollateralMarkets',
outputs: [{ internalType: 'address[]', name: 'markets', type: 'address[]' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'address',
name: 'mendiComptroller',
type: 'address',
},
{ internalType: 'address', name: 'maldaOperator', type: 'address' },
{ internalType: 'address', name: 'userV1', type: 'address' },
{ internalType: 'address', name: 'userV2', type: 'address' },
],
internalType: 'struct Migrator.MigrationParams',
name: 'params',
type: 'tuple',
},
],
name: 'getAllPositions',
outputs: [
{
components: [
{ internalType: 'address', name: 'mendiMarket', type: 'address' },
{ internalType: 'address', name: 'maldaMarket', type: 'address' },
{
internalType: 'uint256',
name: 'collateralUnderlyingAmount',
type: 'uint256',
},
{ internalType: 'uint256', name: 'borrowAmount', type: 'uint256' },
],
internalType: 'struct Migrator.Position[]',
name: 'positions',
type: 'tuple[]',
},
],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'address',
name: 'mendiComptroller',
type: 'address',
},
{ internalType: 'address', name: 'maldaOperator', type: 'address' },
{ internalType: 'address', name: 'userV1', type: 'address' },
{ internalType: 'address', name: 'userV2', type: 'address' },
],
internalType: 'struct Migrator.MigrationParams',
name: 'params',
type: 'tuple',
},
],
name: 'migrateAllPositions',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
];