diff --git a/ignition/deployments/chain-137/deployed_addresses.json b/ignition/deployments/chain-137/deployed_addresses.json new file mode 100644 index 0000000..8f477bf --- /dev/null +++ b/ignition/deployments/chain-137/deployed_addresses.json @@ -0,0 +1,6 @@ +{ + "TestERC721#TestERC721": "0x663cb1fc4604a7f958dda49d964bbd1b526e6b3a", + "SmartWalletV1#SmartWalletV1": "0x360c179c809122dddfa0fb584b5433f0dbddb4cd", + "SmartWalletFactoryV1#SmartWalletFactoryV1": "0x4442c3302524899acf23c971afba39710925df77", + "NftRent#NftRent": "0x3265b195cc42afefcb58297c4e9edbeff6ec05f8" +} diff --git a/ignition/deployments/chain-137/journal.jsonl b/ignition/deployments/chain-137/journal.jsonl new file mode 100644 index 0000000..25b1fee --- /dev/null +++ b/ignition/deployments/chain-137/journal.jsonl @@ -0,0 +1,2 @@ + +{"chainId":137,"type":"DEPLOYMENT_INITIALIZE"} \ No newline at end of file diff --git a/scripts/deploy.ts b/scripts/deploy.ts new file mode 100644 index 0000000..6f5e577 --- /dev/null +++ b/scripts/deploy.ts @@ -0,0 +1,9 @@ +import hre from 'hardhat'; + +export const deploy = async () => { + const f = await hre.viem.deployContract('SmartWalletV1', []); + + console.log(f.address); +}; + +deploy(); diff --git a/scripts/deploy_factory.ts b/scripts/deploy_factory.ts new file mode 100644 index 0000000..660dbfc --- /dev/null +++ b/scripts/deploy_factory.ts @@ -0,0 +1,23 @@ +import hre from 'hardhat'; + +export const deploy = async () => { + const f = await hre.viem.deployContract('SmartWalletFactoryV1', [ + { + clRegistrar: '0x0Bc5EDC7219D272d9dEDd919CE2b4726129AC02B', + clRegistry: '0x08a8eea76D2395807Ce7D1FC942382515469cCA1', + uniswapV3Router: '0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45', + wethToken: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', + linkToken: '0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39', + linkTokenNative: '0xb0897686c545045afc77cf20ec7a532e3120e0f1', + linkTokenPegSwap: '0xAA1DC356dc4B18f30C347798FD5379F3D77ABC5b', + linkFeePerExecution: '1500000000000000000', + wethToLinkSwapPath: + '0x53e0bca35ec356bd5dddfebbd1fc0fd03fabad39000bb80d500b1d8e8ef31e21c99d1db9a6444d3adf1270', + }, + '0x360c179c809122dddfa0fb584b5433f0dbddb4cd', + ]); + + console.log(f.address); +}; + +deploy(); diff --git a/scripts/deploy_nftrent.ts b/scripts/deploy_nftrent.ts new file mode 100644 index 0000000..7152080 --- /dev/null +++ b/scripts/deploy_nftrent.ts @@ -0,0 +1,11 @@ +import hre from 'hardhat'; + +export const deploy = async () => { + const f = await hre.viem.deployContract('NftRent', [ + '0x4442c3302524899acf23c971afba39710925df77', + ]); + + console.log(f.address); +}; + +deploy(); diff --git a/scripts/deploy_test721.ts b/scripts/deploy_test721.ts new file mode 100644 index 0000000..c81201e --- /dev/null +++ b/scripts/deploy_test721.ts @@ -0,0 +1,13 @@ +import hre from 'hardhat'; + +export const deploy = async () => { + const f = await hre.viem.deployContract('TestERC721', [ + 'Test 721', + 'NTT', + 'test-metadata', + ]); + + console.log(f.address); +}; + +deploy();