Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions deployment/sepolia-deployed-contracts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{"USDC":"0xC1eE32b97226825f5646109D770944491D7a1B47",
"EANFT":"0x349f04e3800bDbbCAb473f6e84a42Bf9e62aab39",
"RWReceivableImpl":"0xe79492b21BB9625BB83Cf55041607b5978B838F3",
"HumaConfig":"0x7eDb3AD12f48F9B6Bb44a275caD3084255EEdE7E",
"HumaConfigTimelock":"0x6D16F401a2814FF3c5e4e591EA49e178E11AB942",
"ArfPoolTimelock":"0x6bd5c1e23A997F2607B76D672c17735DA7510eB8",
"ArfPoolProxyAdminTimelock":"0x1b54e9067d22A785fdD44f581959D13604d814ef",
"ArfPoolFeeManager":"0xAdbB0f7545e1d1870773848Afb8950fA615701D5",
"ArfHDTImpl":"0x5861434f38529206024c60e742b5d802a3645c3e",
"ArfHDT":"0x33Bf0695769fc5F801d6bc671F9bb9c800E76b53",
"ArfPoolConfig":"0x9eb5c6E54f69C20ecD182ab1024c5Be570c0684c",
"ArfPoolImpl":"0x746a334B358bc5B651D17bAEca9EB90F80062e3a",
"ArfPool":"0xA62778EbAC1a43B4390Fe3a8286575003Ae339cd",
"RWReceivable":"0x4d3b200ef2F4030F1f8118Ea3CE41024DEd6f586"}
7 changes: 7 additions & 0 deletions deployment/sepolia-initialized-contracts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{"HumaConfig":"Done",
"EANFT":"Done",
"ArfPoolFeeManager":"Done",
"ArfHDT":"Done",
"ArfPoolConfig":"Done",
"ArfPool":"Done",
"RWReceivable":"Done"}
14 changes: 14 additions & 0 deletions deployment/sepolia-verified-contracts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{"USDC":"Done",
"EANFT":"Done",
"HumaConfig":"Done",
"HumaConfigTimelock":"Done",
"ArfPoolTimelock":"Done",
"ArfPoolProxyAdminTimelock":"Done",
"ArfPoolFeeManager":"Done",
"ArfHDTImpl":"Done",
"ArfHDT":"Done",
"ArfPoolConfig":"Done",
"ArfPoolImpl":"Done",
"ArfPool":"Done",
"RWReceivableImpl":"Done",
"RWReceivable":"Done"}
70 changes: 70 additions & 0 deletions deployment/sepolia/deploy-arf-pool.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
const {deploy} = require("../utils.js");

const HUMA_OWNER_EOA='0x1e7A60fdc43E70d67A3C81AFAE1e95efC48b681b';
const POOL_OWNER_EOA='0x242c334d3bd2882515547fFCF2733F3BB3701ACA';

async function deployContracts() {
const network = (await hre.ethers.provider.getNetwork()).name;
console.log("network : ", network);
const accounts = await hre.ethers.getSigners();
if (accounts.length == 0) {
throw new Error("Accounts not set!");
}
const [deployer, eaService] = await accounts;
console.log("deployer address: " + deployer.address);
console.log("ea service address: " + eaService.address);

const usdc = await deploy("TestToken", "USDC");
const evaluationAgentNFT = await deploy("EvaluationAgentNFT", "EANFT", [], eaService);

const humaConfig = await deploy("HumaConfig", "HumaConfig");
const humaConfigTL = await deploy("TimelockController", "HumaConfigTimelock", [
0,
[HUMA_OWNER_EOA],
[deployer.address],
]);

const rwrImpl = await deploy("RealWorldReceivable", "RWReceivableImpl");
const rwr = await deploy("TransparentUpgradeableProxy", "RWReceivable", [
rwrImpl.address,
humaConfigTL.address,
[],
]);

const baseCreditPoolTL = await deploy("TimelockController", "ArfPoolTimelock", [
0,
[POOL_OWNER_EOA],
[deployer.address],
]);

const baseCreditPoolProxyAdminTL = await deploy("TimelockController", "ArfPoolProxyAdminTimelock", [
0,
[POOL_OWNER_EOA],
[deployer.address],
]);

const bc_feeManager = await deploy("BaseFeeManager", "ArfPoolFeeManager");
const bc_hdtImpl = await deploy("HDT", "ArfHDTImpl");
const bc_hdt = await deploy("TransparentUpgradeableProxy", "ArfHDT", [
bc_hdtImpl.address,
baseCreditPoolProxyAdminTL.address,
[],
]);
const bc_poolConfig = await deploy("BasePoolConfig", "ArfPoolConfig");

const bc_poolImpl = await deploy("BaseCreditPool", "ArfPoolImpl");
const bc_pool = await deploy("TransparentUpgradeableProxy", "ArfPool", [
bc_poolImpl.address,
baseCreditPoolProxyAdminTL.address,
[],
]);
// End of deploying base credit pool

}

deployContracts()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});
Loading