diff --git a/artifacts/goerli-dev/abis/MigrationHelper.abi.js b/artifacts/goerli-dev/abis/MigrationHelper.abi.js new file mode 100644 index 0000000..60caea8 --- /dev/null +++ b/artifacts/goerli-dev/abis/MigrationHelper.abi.js @@ -0,0 +1,349 @@ +module.exports = [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "globals_", + "type": "address" + } + ], + "name": "GlobalsSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "LenderAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + } + ], + "name": "LoanAddedToTransitionLoanManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "LoanManagerUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newOwner_", + "type": "address" + } + ], + "name": "OwnershipAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "PendingAdminSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "PendingLenderSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "poolV2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lp1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lp2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount_", + "type": "uint256" + } + ], + "name": "TokensAirdropped", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "addLoansToLM", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1Address_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "lpsV1_", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "lpsV2_", + "type": "address[]" + } + ], + "name": "airdropTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "globalsV2", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalsV2_", + "type": "address" + } + ], + "name": "setGlobals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "setPendingAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolV2ManagerAddress_", + "type": "address" + }, + { + "internalType": "address", + "name": "loanFactoryAddress_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "setPendingLenders", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "takeOwnershipOfLoans", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "upgradeLoanManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +]; \ No newline at end of file diff --git a/artifacts/goerli-dev/addresses/MigrationHelper.address.js b/artifacts/goerli-dev/addresses/MigrationHelper.address.js new file mode 100644 index 0000000..680340d --- /dev/null +++ b/artifacts/goerli-dev/addresses/MigrationHelper.address.js @@ -0,0 +1 @@ +module.exports = "0x0000000000000000000000000000000000000000"; \ No newline at end of file diff --git a/artifacts/goerli-dev/json/MigrationHelper.abi.json b/artifacts/goerli-dev/json/MigrationHelper.abi.json new file mode 100644 index 0000000..c49a8e9 --- /dev/null +++ b/artifacts/goerli-dev/json/MigrationHelper.abi.json @@ -0,0 +1,349 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "globals_", + "type": "address" + } + ], + "name": "GlobalsSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "LenderAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + } + ], + "name": "LoanAddedToTransitionLoanManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "LoanManagerUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newOwner_", + "type": "address" + } + ], + "name": "OwnershipAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "PendingAdminSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "PendingLenderSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "poolV2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lp1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lp2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount_", + "type": "uint256" + } + ], + "name": "TokensAirdropped", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "addLoansToLM", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1Address_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "lpsV1_", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "lpsV2_", + "type": "address[]" + } + ], + "name": "airdropTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "globalsV2", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalsV2_", + "type": "address" + } + ], + "name": "setGlobals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "setPendingAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolV2ManagerAddress_", + "type": "address" + }, + { + "internalType": "address", + "name": "loanFactoryAddress_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "setPendingLenders", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "takeOwnershipOfLoans", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "upgradeLoanManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/artifacts/goerli/abis/MigrationHelper.abi.js b/artifacts/goerli/abis/MigrationHelper.abi.js new file mode 100644 index 0000000..60caea8 --- /dev/null +++ b/artifacts/goerli/abis/MigrationHelper.abi.js @@ -0,0 +1,349 @@ +module.exports = [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "globals_", + "type": "address" + } + ], + "name": "GlobalsSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "LenderAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + } + ], + "name": "LoanAddedToTransitionLoanManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "LoanManagerUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newOwner_", + "type": "address" + } + ], + "name": "OwnershipAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "PendingAdminSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "PendingLenderSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "poolV2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lp1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lp2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount_", + "type": "uint256" + } + ], + "name": "TokensAirdropped", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "addLoansToLM", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1Address_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "lpsV1_", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "lpsV2_", + "type": "address[]" + } + ], + "name": "airdropTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "globalsV2", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalsV2_", + "type": "address" + } + ], + "name": "setGlobals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "setPendingAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolV2ManagerAddress_", + "type": "address" + }, + { + "internalType": "address", + "name": "loanFactoryAddress_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "setPendingLenders", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "takeOwnershipOfLoans", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "upgradeLoanManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +]; \ No newline at end of file diff --git a/artifacts/goerli/addresses/MigrationHelper.address.js b/artifacts/goerli/addresses/MigrationHelper.address.js new file mode 100644 index 0000000..680340d --- /dev/null +++ b/artifacts/goerli/addresses/MigrationHelper.address.js @@ -0,0 +1 @@ +module.exports = "0x0000000000000000000000000000000000000000"; \ No newline at end of file diff --git a/artifacts/goerli/json/MigrationHelper.abi.json b/artifacts/goerli/json/MigrationHelper.abi.json new file mode 100644 index 0000000..c49a8e9 --- /dev/null +++ b/artifacts/goerli/json/MigrationHelper.abi.json @@ -0,0 +1,349 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "globals_", + "type": "address" + } + ], + "name": "GlobalsSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "LenderAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + } + ], + "name": "LoanAddedToTransitionLoanManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "LoanManagerUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newOwner_", + "type": "address" + } + ], + "name": "OwnershipAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "PendingAdminSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "PendingLenderSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "poolV2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lp1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lp2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount_", + "type": "uint256" + } + ], + "name": "TokensAirdropped", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "addLoansToLM", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1Address_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "lpsV1_", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "lpsV2_", + "type": "address[]" + } + ], + "name": "airdropTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "globalsV2", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalsV2_", + "type": "address" + } + ], + "name": "setGlobals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "setPendingAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolV2ManagerAddress_", + "type": "address" + }, + { + "internalType": "address", + "name": "loanFactoryAddress_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "setPendingLenders", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "takeOwnershipOfLoans", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "upgradeLoanManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/artifacts/mainnet-stage/abis/MigrationHelper.abi.js b/artifacts/mainnet-stage/abis/MigrationHelper.abi.js new file mode 100644 index 0000000..60caea8 --- /dev/null +++ b/artifacts/mainnet-stage/abis/MigrationHelper.abi.js @@ -0,0 +1,349 @@ +module.exports = [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "globals_", + "type": "address" + } + ], + "name": "GlobalsSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "LenderAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + } + ], + "name": "LoanAddedToTransitionLoanManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "LoanManagerUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newOwner_", + "type": "address" + } + ], + "name": "OwnershipAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "PendingAdminSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "PendingLenderSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "poolV2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lp1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lp2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount_", + "type": "uint256" + } + ], + "name": "TokensAirdropped", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "addLoansToLM", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1Address_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "lpsV1_", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "lpsV2_", + "type": "address[]" + } + ], + "name": "airdropTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "globalsV2", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalsV2_", + "type": "address" + } + ], + "name": "setGlobals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "setPendingAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolV2ManagerAddress_", + "type": "address" + }, + { + "internalType": "address", + "name": "loanFactoryAddress_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "setPendingLenders", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "takeOwnershipOfLoans", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "upgradeLoanManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +]; \ No newline at end of file diff --git a/artifacts/mainnet-stage/addresses/MigrationHelper.address.js b/artifacts/mainnet-stage/addresses/MigrationHelper.address.js new file mode 100644 index 0000000..680340d --- /dev/null +++ b/artifacts/mainnet-stage/addresses/MigrationHelper.address.js @@ -0,0 +1 @@ +module.exports = "0x0000000000000000000000000000000000000000"; \ No newline at end of file diff --git a/artifacts/mainnet-stage/json/MigrationHelper.abi.json b/artifacts/mainnet-stage/json/MigrationHelper.abi.json new file mode 100644 index 0000000..c49a8e9 --- /dev/null +++ b/artifacts/mainnet-stage/json/MigrationHelper.abi.json @@ -0,0 +1,349 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "globals_", + "type": "address" + } + ], + "name": "GlobalsSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "LenderAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + } + ], + "name": "LoanAddedToTransitionLoanManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "LoanManagerUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newOwner_", + "type": "address" + } + ], + "name": "OwnershipAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "PendingAdminSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "PendingLenderSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "poolV2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lp1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lp2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount_", + "type": "uint256" + } + ], + "name": "TokensAirdropped", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "addLoansToLM", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1Address_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "lpsV1_", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "lpsV2_", + "type": "address[]" + } + ], + "name": "airdropTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "globalsV2", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalsV2_", + "type": "address" + } + ], + "name": "setGlobals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "setPendingAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolV2ManagerAddress_", + "type": "address" + }, + { + "internalType": "address", + "name": "loanFactoryAddress_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "setPendingLenders", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "takeOwnershipOfLoans", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "upgradeLoanManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/artifacts/mainnet/abis/MigrationHelper.abi.js b/artifacts/mainnet/abis/MigrationHelper.abi.js new file mode 100644 index 0000000..60caea8 --- /dev/null +++ b/artifacts/mainnet/abis/MigrationHelper.abi.js @@ -0,0 +1,349 @@ +module.exports = [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "globals_", + "type": "address" + } + ], + "name": "GlobalsSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "LenderAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + } + ], + "name": "LoanAddedToTransitionLoanManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "LoanManagerUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newOwner_", + "type": "address" + } + ], + "name": "OwnershipAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "PendingAdminSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "PendingLenderSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "poolV2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lp1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lp2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount_", + "type": "uint256" + } + ], + "name": "TokensAirdropped", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "addLoansToLM", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1Address_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "lpsV1_", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "lpsV2_", + "type": "address[]" + } + ], + "name": "airdropTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "globalsV2", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalsV2_", + "type": "address" + } + ], + "name": "setGlobals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "setPendingAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolV2ManagerAddress_", + "type": "address" + }, + { + "internalType": "address", + "name": "loanFactoryAddress_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "setPendingLenders", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "takeOwnershipOfLoans", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "upgradeLoanManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +]; \ No newline at end of file diff --git a/artifacts/mainnet/addresses/MigrationHelper.address.js b/artifacts/mainnet/addresses/MigrationHelper.address.js new file mode 100644 index 0000000..680340d --- /dev/null +++ b/artifacts/mainnet/addresses/MigrationHelper.address.js @@ -0,0 +1 @@ +module.exports = "0x0000000000000000000000000000000000000000"; \ No newline at end of file diff --git a/artifacts/mainnet/json/MigrationHelper.abi.json b/artifacts/mainnet/json/MigrationHelper.abi.json new file mode 100644 index 0000000..c49a8e9 --- /dev/null +++ b/artifacts/mainnet/json/MigrationHelper.abi.json @@ -0,0 +1,349 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "globals_", + "type": "address" + } + ], + "name": "GlobalsSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "LenderAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + } + ], + "name": "LoanAddedToTransitionLoanManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "LoanManagerUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newOwner_", + "type": "address" + } + ], + "name": "OwnershipAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "PendingAdminSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "PendingLenderSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "poolV2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lp1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lp2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount_", + "type": "uint256" + } + ], + "name": "TokensAirdropped", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "addLoansToLM", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1Address_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "lpsV1_", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "lpsV2_", + "type": "address[]" + } + ], + "name": "airdropTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "globalsV2", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalsV2_", + "type": "address" + } + ], + "name": "setGlobals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "setPendingAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolV2ManagerAddress_", + "type": "address" + }, + { + "internalType": "address", + "name": "loanFactoryAddress_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "setPendingLenders", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "takeOwnershipOfLoans", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "upgradeLoanManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/config.json b/config.json index c63bf1e..d96349e 100644 --- a/config.json +++ b/config.json @@ -44,6 +44,10 @@ "repo": "@maplelabs/maple-token", "alias": ["mapleToken"] }, + "migrationHelper": { + "repo": "@maplelabs/migration-helpers", + "alias": ["migrationHelpers"] + }, "mplRewards": { "repo": "@maplelabs/mpl-rewards", "alias": ["mplRewards"] diff --git a/package.json b/package.json index 5220cb5..75de0fd 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "@maplelabs/mapleGlobals": "npm:@maplelabs/globals@v1.0.0", "@maplelabs/mapleGlobalsV2": "npm:@maplelabs/globals-v2@1.0.0-rc.0", "@maplelabs/mapleToken": "npm:@maplelabs/maple-token@1.0.0 ", + "@maplelabs/migrationHelpers": "npm:@maplelabs/migration-helpers@1.0.0-rc.1", "@maplelabs/mplRewards": "npm:@maplelabs/mpl-rewards@v1.0.0", "@maplelabs/pool": "npm:@maplelabs/pool@v1.0.0", "@maplelabs/poolV2": "npm:@maplelabs/pool-v2@1.0.0-rc.1.1", diff --git a/scripts/build-addresses.js b/scripts/build-addresses.js index dee40d7..6e6947f 100644 --- a/scripts/build-addresses.js +++ b/scripts/build-addresses.js @@ -111,6 +111,9 @@ const build = (project = 'mainnet') => { LINK: getAddress(`../artifacts/${project}/addresses/LINK.address.js`), xMPL: getAddress(`../artifacts/${project}/addresses/xMPL.address.js`), + // misc + MigrationHelper: getAddress(`../artifacts/${project}/addresses/MigrationHelper.address.js`), + // manifest manifest: require(`../artifacts/${project}/manifest.json`) } diff --git a/src/abis/MigrationHelper.abi.json b/src/abis/MigrationHelper.abi.json new file mode 100644 index 0000000..c49a8e9 --- /dev/null +++ b/src/abis/MigrationHelper.abi.json @@ -0,0 +1,349 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "globals_", + "type": "address" + } + ], + "name": "GlobalsSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "LenderAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + } + ], + "name": "LoanAddedToTransitionLoanManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loanManager_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "LoanManagerUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newOwner_", + "type": "address" + } + ], + "name": "OwnershipAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "PendingAdminSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "loan_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "pendingLender_", + "type": "address" + } + ], + "name": "PendingLenderSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "poolV2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lp1_", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lp2_", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount_", + "type": "uint256" + } + ], + "name": "TokensAirdropped", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "addLoansToLM", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1Address_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "lpsV1_", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "lpsV2_", + "type": "address[]" + } + ], + "name": "airdropTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "globalsV2", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalsV2_", + "type": "address" + } + ], + "name": "setGlobals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingAdmin_", + "type": "address" + } + ], + "name": "setPendingAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "poolV1_", + "type": "address" + }, + { + "internalType": "address", + "name": "poolV2ManagerAddress_", + "type": "address" + }, + { + "internalType": "address", + "name": "loanFactoryAddress_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "setPendingLenders", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "address[]", + "name": "loans_", + "type": "address[]" + } + ], + "name": "takeOwnershipOfLoans", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transitionLoanManager_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "version_", + "type": "uint256" + } + ], + "name": "upgradeLoanManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/src/addresses/goerli-dev.ts b/src/addresses/goerli-dev.ts index 8849baa..32fdd30 100644 --- a/src/addresses/goerli-dev.ts +++ b/src/addresses/goerli-dev.ts @@ -40,6 +40,7 @@ export default { MapleGlobalsV2: '0x0acc30a976111691703995Bf51203F4380ECAa0f', MapleToken: '0x500Fdc7C16E8d56AF9F396e245Caa5e0592F67A7', MapleTreasury: '0x6A8796369f5fD8Fd6ef3BA09f09CBAD91C5eE8DA', + MigrationHelper: '0x0000000000000000000000000000000000000000', MplRewardsFactory: '0x147d2BAE3F2a1a446BDa53d06e04baDF720c146D', NonTransparentProxy: '0xaE8A4A09402DcE71Be1927ccc8Df8FB16f18FCB1', PoolDeployer: '0x2636723aF37F3f4a487bE33568e5b04873218579', diff --git a/src/addresses/goerli.ts b/src/addresses/goerli.ts index 2d8f92d..6e5f88a 100644 --- a/src/addresses/goerli.ts +++ b/src/addresses/goerli.ts @@ -38,6 +38,7 @@ export default { MapleGlobalsV2: '0xfA5B2f6B789c6C7212A784e61Acd1911fE040224', MapleToken: '0x5B3a84d1e0D4bC874F83099f3eA185A14b215cB9', MapleTreasury: '0xf27bc135Ba778BdC8Bf98a8FEC7170EcA252ef17', + MigrationHelper: '0x0000000000000000000000000000000000000000', MplRewardsFactory: '0x71DBFe9f99b70510ada39e23BE0f6711AAe5444B', NonTransparentProxy: '0xb9e55DE06998238e736EC8C9A29d57C94A785Bd5', PoolDeployer: '0x3a61f638Ec187C209Bec7687a6714412D9614EBe', diff --git a/src/addresses/mainnet-stage.ts b/src/addresses/mainnet-stage.ts index 5facd50..e4079af 100644 --- a/src/addresses/mainnet-stage.ts +++ b/src/addresses/mainnet-stage.ts @@ -38,6 +38,7 @@ export default { MapleGlobalsV2: '0x0000000000000000000000000000000000000000', MapleToken: '0x33349B282065b0284d756F0577FB39c158F935e6', MapleTreasury: '0xa9466EaBd096449d650D5AEB0dD3dA6F52FD0B19', + MigrationHelper: '0x0000000000000000000000000000000000000000', MplRewardsFactory: '0x0155729EbCd47Cb1fBa02bF5a8DA20FaF3860535', NonTransparentProxy: '0x0000000000000000000000000000000000000000', PoolDeployer: '0x0000000000000000000000000000000000000000', diff --git a/src/addresses/mainnet.ts b/src/addresses/mainnet.ts index 410a3cd..b2b7a30 100644 --- a/src/addresses/mainnet.ts +++ b/src/addresses/mainnet.ts @@ -26,11 +26,11 @@ export default { LoanV2Initializer: '0xCba99a6648450a7bE7f20B1C3258F74Adb662020', LoanV2Refinancer: '0x2cF4C679bc9B6073A3f68f7584809E5F177cC59A', LoanV3: '0xaf451789de6c85cdbfdee52476f22f272f222187', - LoanV3Initializer: '0xff2ce989b5b5881db21f67cbe25145ffb053bccd', - LoanV3Refinancer: '0x7a4312bc6b0f720dc775c45bef4bb3c26c34472b', LoanV301: '0x24fBA17b4f797A24398ff9dEA2531F828a80A3FF', LoanV301Initializer: '0x0000000000000000000000000000000000000000', LoanV301Refinancer: '0x0000000000000000000000000000000000000000', + LoanV3Initializer: '0xff2ce989b5b5881db21f67cbe25145ffb053bccd', + LoanV3Refinancer: '0x7a4312bc6b0f720dc775c45bef4bb3c26c34472b', LoanV4: '0x0000000000000000000000000000000000000000', LoanV4Initializer: '0x0000000000000000000000000000000000000000', LoanV4Refinancer: '0x0000000000000000000000000000000000000000', @@ -38,6 +38,7 @@ export default { MapleGlobalsV2: '0x0000000000000000000000000000000000000000', MapleToken: '0x33349B282065b0284d756F0577FB39c158F935e6', MapleTreasury: '0xa9466EaBd096449d650D5AEB0dD3dA6F52FD0B19', + MigrationHelper: '0x0000000000000000000000000000000000000000', MplRewardsFactory: '0x0155729EbCd47Cb1fBa02bF5a8DA20FaF3860535', NonTransparentProxy: '0x0000000000000000000000000000000000000000', PoolDeployer: '0x0000000000000000000000000000000000000000', diff --git a/src/index.ts b/src/index.ts index 8b9ff82..1de4256 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,6 +24,7 @@ import * as stakeLockerImports from './typechain/stakeLocker' import * as poolV2Imports from './typechain/poolV2' import * as withdrawalManagerImports from './typechain/withdrawalManager' import * as environmentMocksImports from './typechain/environmentMocks' +import * as migrationHelpersImports from './typechain/migrationHelpers' // Addresses import goerliAddresses from './addresses/goerli' @@ -121,6 +122,10 @@ const mapleToken = { factory: mapleTokenImports.MapleToken__factory } +const migrationHelpers = { + core: migrationHelpersImports.MigrationHelper__factory +} + const xmpl = { factory: xmplImports.XMPL__factory } @@ -258,6 +263,8 @@ interface ContractTypes { // environmentMocks bPool: environmentMocksImports.BPool erc20: environmentMocksImports.MintSpecialToken + // PoolV2: migrationHelper + migrationHelpers: migrationHelpersImports.MigrationHelper } export { @@ -278,6 +285,7 @@ export { mapleGlobalsV2, mapleRewards, mapleToken, + migrationHelpers, xmpl, pool, premiumCalc, diff --git a/yarn.lock b/yarn.lock index 1a04ed9..ad597f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -986,6 +986,11 @@ resolved "https://registry.yarnpkg.com/@maplelabs/maple-token/-/maple-token-1.0.0.tgz#c160531e3be688d4cd90c524a1baa2d585da772c" integrity sha512-WiJFk15Xic43gnqKC8u6Fnl11AfCADbtcY1668PswnMMIC08RJJgDlwlDy5dq1bYqyWFpMfPem6Ye/McMNua+A== +"@maplelabs/migrationHelpers@npm:@maplelabs/migration-helpers@1.0.0-rc.1": + version "1.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@maplelabs/migration-helpers/-/migration-helpers-1.0.0-rc.1.tgz#77fff54da6102b9d86bd74c43deffe4a77b86142" + integrity sha512-wprKbT+EddVm723rStzsG4gqf+VLsZ8uNEwK7FAZvBlwarZGbEkcDRKRsurlGj1yPLyrLWeYKy1HPWHukyDnqA== + "@maplelabs/mplRewards@npm:@maplelabs/mpl-rewards@v1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@maplelabs/mpl-rewards/-/mpl-rewards-1.0.0.tgz#7915e10bd59bd80374784f0f8772817ca87e45ad"