-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e783bf
commit e70b541
Showing
52 changed files
with
5,244 additions
and
9,153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; | ||
import { ethers, run } from 'hardhat'; | ||
|
||
export const sleep = (ms: number): Promise<void> => { | ||
return new Promise((resolve) => { | ||
setTimeout(() => resolve(), ms); | ||
}); | ||
}; | ||
|
||
async function main() { | ||
const accounts: SignerWithAddress[] = await ethers.getSigners(); | ||
const owner = accounts[0]; | ||
console.log('Deployer address: ' + (await owner.getAddress())); | ||
// We get the contract to deploy | ||
const emotableRepoFactory = await ethers.getContractFactory('RMRKEmotesRepository'); | ||
const emotableRepo = await emotableRepoFactory.deploy(); | ||
await emotableRepo.waitForDeployment(); | ||
console.log('RMRKEmotesRepository deployed to:', await emotableRepo.getAddress()); | ||
await sleep(1000); | ||
|
||
await run('verify:verify', { | ||
address: await emotableRepo.getAddress(), | ||
constructorArguments: [], | ||
}); | ||
} | ||
|
||
// We recommend this pattern to be able to use async/await everywhere | ||
// and properly handle errors. | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; | ||
import { ethers, run } from 'hardhat'; | ||
|
||
export const sleep = (ms: number): Promise<void> => { | ||
return new Promise((resolve) => { | ||
setTimeout(() => resolve(), ms); | ||
}); | ||
}; | ||
|
||
async function main() { | ||
const accounts: SignerWithAddress[] = await ethers.getSigners(); | ||
const owner = accounts[0]; | ||
console.log('Deployer address: ' + (await owner.getAddress())); | ||
// We get the contract to deploy | ||
const royaltiesSplitterFactory = await ethers.getContractFactory('RMRKRoyaltiesSplitter'); | ||
const royaltiesSplitter = await royaltiesSplitterFactory.deploy( | ||
['0x147d79f1c9244b85cba959262fb71ad38069febb', '0xacD3d4b7b0706d39e6cA6E8c75dDdD446b8cdB1D'], | ||
[7000, 3000], | ||
); | ||
await royaltiesSplitter.waitForDeployment(); | ||
console.log('RMRK Royalties Splitter deployed to:', await royaltiesSplitter.getAddress()); | ||
await sleep(10000); | ||
|
||
await run('verify:verify', { | ||
address: await royaltiesSplitter.getAddress(), | ||
constructorArguments: [], | ||
}); | ||
} | ||
|
||
// We recommend this pattern to be able to use async/await everywhere | ||
// and properly handle errors. | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; | ||
import { ethers, run } from 'hardhat'; | ||
|
||
export const sleep = (ms: number): Promise<void> => { | ||
return new Promise((resolve) => { | ||
setTimeout(() => resolve(), ms); | ||
}); | ||
}; | ||
|
||
async function main() { | ||
const accounts: SignerWithAddress[] = await ethers.getSigners(); | ||
const owner = accounts[0]; | ||
console.log('Deployer address: ' + (await owner.getAddress())); | ||
// We get the contract to deploy | ||
const tokenAttributesRepoFactory = await ethers.getContractFactory( | ||
'RMRKTokenAttributesRepository', | ||
); | ||
const tokenAttributesRepo = await tokenAttributesRepoFactory.deploy(); | ||
await tokenAttributesRepo.waitForDeployment(); | ||
console.log('RMRKTokenAttributesRepository deployed to:', await tokenAttributesRepo.getAddress()); | ||
await sleep(10000); | ||
|
||
await run('verify:verify', { | ||
address: await tokenAttributesRepo.getAddress(), | ||
constructorArguments: [], | ||
}); | ||
} | ||
|
||
// We recommend this pattern to be able to use async/await everywhere | ||
// and properly handle errors. | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.