Skip to content

Commit

Permalink
Merge pull request #126 from hackdays-io/issue/115
Browse files Browse the repository at this point in the history
deployed addresses
  • Loading branch information
yu23ki14 authored Oct 2, 2024
2 parents 2b8348d + 1a3cf8c commit dc9f483
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ These solutions were combined with ideas from [Hats Protocol](https://www.hatspr

## Related Contract Addresses

### Sepolia

| ContractAddress | Name | Memo |
| ------------------------------------------ | ----------------------- | ---- |
| 0xf1af43dfca3fde2e73379d8f9da29513c1da8d87 | BigBang | |
| 0xb8f7ca7a5b1e457b8735884419e114f90d53e1d5 | FractionToken | |
| 0x8da1c0864962c5e26c99cf839b0dc48e39104568 | SplitsCreatorFactory | |
| 0xda9fbab4436e4124cd6ee6864d4b46d0dd412414 | SplitsCreatorIMPL | |
| 0xd4a66507ea8c8382fa8474ed6cae4163676a434a | HatsTimeFrameModuleIMPL | |
| 0x3bc1A0Ad72417f2d411118085256fC53CBdDd137 | Hats | |
| 0x0a3f85fa597B6a967271286aA0724811acDF5CD9 | HatsModuleFactory | |
| 0x80f1B766817D04870f115fEBbcCADF8DBF75E017 | PullSplitsFactory | |

### Holesky

| ContractAddress | Name | Memo |
Expand Down
25 changes: 25 additions & 0 deletions pkgs/contract/scripts/createSplit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { viem } from "hardhat";

const create = async () => {
const contract = await viem.getContractAt(
"SplitsCreator",
"0xf7f536b25d3f1aEb84E32A35ca8E48b6fd0597A7"
);

const res = await contract.write.create([
[
{
hatId: BigInt(
"0x0000023900010001000000000000000000000000000000000000000000000000"
),
multiplierBottom: 1n,
multiplierTop: 1n,
wearers: ["0x777EE5eeEd30c3712bEE6C83260D786857d9C556"],
},
],
]);

console.log(res);
};

create();

0 comments on commit dc9f483

Please sign in to comment.