Skip to content
Merged
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
2 changes: 1 addition & 1 deletion DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ error 10143 で失敗します。

| 設定場所 | 変数 |
|---|---|
| `pkgs/contract/.env` | `PRIVATE_KEY`(Sepolia) / `PRODUCTION_PRIVATE_KEY`(Base) / `ALCHEMY_API_KEY` / `ETHERSCAN_API_KEY` / `BASESCAN_API_KEY` |
| `pkgs/contract/.env` | `PRIVATE_KEY`(Sepolia / Base Sepolia) / `PRODUCTION_PRIVATE_KEY`(Base) / `ALCHEMY_API_KEY` / `ETHERSCAN_API_KEY`(Etherscan API v2 の単一キーで全チェーンを verify) |
| `pkgs/subgraph/config/<net>.json` | `address`(BigBang) / `startBlock` |
| `pkgs/frontend/.env`(Sepolia)<br>`pkgs/frontend/.env.base`(Base) | `VITE_BIGBANG_ADDRESS` ほか `VITE_*` / `VITE_GOLDSKY_GRAPHQL_ENDPOINT` |
| Vercel の環境変数(**`VITE_` 無し = サーバー専用**) | `NAMESPACE_API_KEY` / `NAMESPACE_MODE` / `ENS_PARENT_NAME` / `NAMESPACE_TIMEOUT_MS` |
Expand Down
13 changes: 7 additions & 6 deletions pkgs/contract/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const {
ALCHEMY_API_KEY,
COINMARKETCAP_API_KEY,
PRODUCTION_PRIVATE_KEY,
BASESCAN_API_KEY,
GAS_REPORT,
} = process.env;

Expand Down Expand Up @@ -47,18 +46,20 @@ const config: HardhatUserConfig = {
url: `https://eth-holesky.g.alchemy.com/v2/${ALCHEMY_API_KEY}`,
accounts: PRIVATE_KEY !== undefined ? [PRIVATE_KEY] : [],
},
baseSepolia: {
url: `https://base-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY}`,
accounts: PRIVATE_KEY !== undefined ? [PRIVATE_KEY] : [],
},
base: {
url: `https://base-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}`,
accounts:
PRODUCTION_PRIVATE_KEY !== undefined ? [PRODUCTION_PRIVATE_KEY] : [],
},
},
etherscan: {
apiKey: {
sepolia: ETHERSCAN_API_KEY ?? "",
holesky: ETHERSCAN_API_KEY ?? "",
base: BASESCAN_API_KEY ?? "",
},
// Single Etherscan.io key → Etherscan API v2 (multichain: sepolia, base,
// baseSepolia, ...). Per-explorer keys force the retired v1 endpoint.
apiKey: ETHERSCAN_API_KEY ?? "",
},
gasReporter: {
enabled: true,
Expand Down
17 changes: 17 additions & 0 deletions pkgs/contract/outputs/contracts-baseSepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"contracts": {
"HatsTimeFrameModule": "0x7fa6c0F8e4412ED72Ded8d591ABF58B276A992C9",
"ThanksTokenFactory_Implementation": "0x6E50A9C909043Bf518d31E43E35fffe34306A1D4",
"SplitsCreator": "0xbEDa908672b45ce6dd6a5a9461d5e83f03F27C9F",
"ScheduledDistributor": "0x406B184Ffe30FB5Bc096D373c42295F8F6474367",
"ThanksTokenFactory": "0xAaD7C0dE8B4729D3397EB44DF9757060E09Eeb1F",
"SplitsCreatorFactory": "0x68ff212A14F3d41db0BcFf4dE5D2375e88976383",
"ScheduledDistributorFactory": "0x4A6A3111eAc4b18E19298da6b94337262eB13758",
"BigBang": "0xCf5D0D5d95C8B14bE2E5C1E49740eBa312f7d696"
},
"implementations": {
"SplitsCreatorFactory_Implementation": "0xaFE964766cCD100F9FCd288F863B0972f8283885",
"ScheduledDistributorFactory_Implementation": "0xF0FA1255d179542d424D2110e17CA7cbe409E75B",
"BigBang_Implementation": "0xD91A21d104DB994572cEE83aD73cc745A4582f41"
}
}
165 changes: 165 additions & 0 deletions pkgs/subgraph/config/base-sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
{
"network": "base-sepolia",
"startBlock": 54335364,
"contracts": [
{
"address": "0xCf5D0D5d95C8B14bE2E5C1E49740eBa312f7d696",
"file": "BigBang",
"mappingFile": "bigbangMapping",
"entities": [
{
"name": "Executed"
}
],
"handlers": [
{
"event": "Executed(indexed address,indexed address,indexed uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,address,address,address,address,address)",
"handler": "handleExecuted"
}
]
},
{
"address": "0x4A6A3111eAc4b18E19298da6b94337262eB13758",
"file": "ScheduledDistributorFactory",
"mappingFile": "scheduledDistributorMapping",
"entities": [
{
"name": "ScheduledDistributor"
}
],
"handlers": [
{
"event": "ScheduledDistributorCreated(indexed address,indexed address,address,address[],address,uint256,bytes32)",
"handler": "handleScheduledDistributorCreated"
}
]
}
],
"templatesContracts": [
{
"file": "HatsFractionTokenModule",
"mappingFile": "hatsModuleMapping",
"entities": [
{
"name": "InitialMint"
},
{
"name": "TransferSignle"
}
],
"handlers": [
{
"event": "InitialMint(indexed uint256,indexed address,indexed uint256,uint256)",
"handler": "handleRoleShareInitialMint"
},
{
"event": "TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)",
"handler": "handleRoleShareTransferSingle"
}
]
},
{
"file": "ThanksToken",
"mappingFile": "thanksTokenMapping",
"entities": [
{
"name": "TokenMinted"
},
{
"name": "Transfer"
}
],
"handlers": [
{
"event": "TokenMinted(indexed address,indexed address,uint256,bytes)",
"handler": "handleTokenMinted"
},
{
"event": "Transfer(indexed address,indexed address,uint256)",
"handler": "handleTransfer"
}
]
},
{
"file": "ScheduledDistributor",
"mappingFile": "scheduledDistributorMapping",
"entities": [
{
"name": "ScheduledDistributor"
},
{
"name": "ScheduledDistributorDeposit"
},
{
"name": "ScheduledDistributorTokenBalance"
}
],
"handlers": [
{
"event": "RuleCreated(indexed address,address,address[],address,uint256)",
"handler": "handleRuleCreated"
},
{
"event": "Deposited(indexed address,indexed address,uint256)",
"handler": "handleDeposited"
},
{
"event": "Executed(indexed address,indexed address,indexed address,uint256)",
"handler": "handleExecuted"
},
{
"event": "Reclaimed(indexed address,indexed address,uint256)",
"handler": "handleReclaimed"
}
]
},
{
"file": "HatsQuestModule",
"mappingFile": "questMapping",
"entities": [
{
"name": "Quest"
},
{
"name": "SubmissionAttempt"
},
{
"name": "QuestApproval"
},
{
"name": "EscrowedRoleShare"
}
],
"handlers": [
{
"event": "QuestCreated(indexed uint256,indexed address,indexed uint256,address,uint256,string)",
"handler": "handleQuestCreated"
},
{
"event": "CompletionSubmitted(indexed uint256,indexed address)",
"handler": "handleCompletionSubmitted"
},
{
"event": "SubmissionWithdrawn(indexed uint256,indexed address)",
"handler": "handleSubmissionWithdrawn"
},
{
"event": "SubmissionRejected(indexed uint256,indexed address,indexed address)",
"handler": "handleSubmissionRejected"
},
{
"event": "QuestApproved(indexed uint256,indexed address,uint8)",
"handler": "handleQuestApproved"
},
{
"event": "QuestCompleted(indexed uint256,indexed address,uint256)",
"handler": "handleQuestCompleted"
},
{
"event": "QuestCancelled(indexed uint256,indexed address,uint256)",
"handler": "handleQuestCancelled"
}
]
}
]
}
4 changes: 4 additions & 0 deletions pkgs/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"deploy:base": "goldsky subgraph deploy toban-base/0.0.1 --path .",
"update:base": "goldsky subgraph update toban-base/0.0.1",
"delete:base": "goldsky subgraph delete toban-base/0.0.1",
"prepare:base-sepolia": "mustache config/base-sepolia.json subgraph.template.yaml > subgraph.yaml",
"deploy:base-sepolia": "goldsky subgraph deploy toban-base-sepolia/0.0.1 --path .",
"update:base-sepolia": "goldsky subgraph update toban-base-sepolia/0.0.1",
"delete:base-sepolia": "goldsky subgraph delete toban-base-sepolia/0.0.1",
"create-local": "graph create --node http://localhost:8020/ poap-xyz/poap",
"remove-local": "graph remove --node http://localhost:8020/ poap-xyz/poap",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 poap-xyz/poap"
Expand Down
Loading