You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
854 B
TypeScript

2 years ago
import hre from "hardhat";
const { ethers } = hre;
import fs from "fs";
async function main() {
const accounts = await ethers.getSigners();
console.log(accounts[0].address);
const Git3 = await hre.ethers.getContractAt(
2 years ago
"Git3Hub",
2 years ago
"0xee2879cd03A3D82C0Ffb648AA5773bcEBb0d5741"
2 years ago
);
let rept
2 years ago
// let owner = await Git3.repoNameToOwner(Buffer.from("helloworld1"))
// console.log(owner)
2 years ago
// return
2 years ago
rept = await Git3.createRepo(Buffer.from("helloworld"))
2 years ago
console.log("rept", "https://explorer.galileo.web3q.io/tx/" + rept.hash);
// rept = await Git3.transferOwnership(Buffer.from("helloworld"), "0x1eD9c2F6814eA5225Bb78f2F2CA802Ded120077A")
// console.log("rept", "https://explorer.galileo.web3q.io/tx/" + rept.hash)
}
main().catch((error) => {
console.error(error);
process.exit(1);
});