From dd4eed3a41533217c77c9a0c1244794cc05f0347 Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Tue, 2 Jul 2024 15:58:26 +0300 Subject: [PATCH] update contract addresses --- .../abis/VestingScheduler_v2.json | 24 ++++++++++++++++--- .../config/optimism-mainnet.json | 4 +++- .../config/optimism-sepolia.json | 4 ++-- subgraphs/vesting-scheduler/package.json | 4 ++-- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/subgraphs/vesting-scheduler/abis/VestingScheduler_v2.json b/subgraphs/vesting-scheduler/abis/VestingScheduler_v2.json index 2f5fc58..21551f8 100644 --- a/subgraphs/vesting-scheduler/abis/VestingScheduler_v2.json +++ b/subgraphs/vesting-scheduler/abis/VestingScheduler_v2.json @@ -441,7 +441,6 @@ { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "uint256", "name": "totalAmount", "type": "uint256" }, { "internalType": "uint32", "name": "totalDuration", "type": "uint32" }, - { "internalType": "uint32", "name": "cliffPeriod", "type": "uint32" }, { "internalType": "bytes", "name": "ctx", "type": "bytes" } ], "name": "createAndExecuteVestingScheduleFromAmountAndDuration", @@ -458,8 +457,7 @@ }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "uint256", "name": "totalAmount", "type": "uint256" }, - { "internalType": "uint32", "name": "totalDuration", "type": "uint32" }, - { "internalType": "uint32", "name": "cliffPeriod", "type": "uint32" } + { "internalType": "uint32", "name": "totalDuration", "type": "uint32" } ], "name": "createAndExecuteVestingScheduleFromAmountAndDuration", "outputs": [], @@ -490,6 +488,26 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "contract ISuperToken", + "name": "superToken", + "type": "address" + }, + { "internalType": "address", "name": "receiver", "type": "address" }, + { "internalType": "uint32", "name": "startDate", "type": "uint32" }, + { "internalType": "uint32", "name": "cliffDate", "type": "uint32" }, + { "internalType": "int96", "name": "flowRate", "type": "int96" }, + { "internalType": "uint256", "name": "cliffAmount", "type": "uint256" }, + { "internalType": "uint32", "name": "endDate", "type": "uint32" }, + { "internalType": "bytes", "name": "ctx", "type": "bytes" } + ], + "name": "createVestingSchedule", + "outputs": [{ "internalType": "bytes", "name": "newCtx", "type": "bytes" }], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { diff --git a/subgraphs/vesting-scheduler/config/optimism-mainnet.json b/subgraphs/vesting-scheduler/config/optimism-mainnet.json index edbdb8e..6f15399 100644 --- a/subgraphs/vesting-scheduler/config/optimism-mainnet.json +++ b/subgraphs/vesting-scheduler/config/optimism-mainnet.json @@ -1,5 +1,7 @@ { "network": "optimism", "vestingSchedulerAddress": "0x65377d4dfE9c01639A41952B5083D58964782892", - "vestingSchedulerStartBlock": 67820482 + "vestingSchedulerStartBlock": 67820482, + "vestingSchedulerAddress_v2": "0xe567b32C10B0dB72d9490eB1B9A409C5ADed192C", + "vestingSchedulerStartBlock_v2": 122162549 } diff --git a/subgraphs/vesting-scheduler/config/optimism-sepolia.json b/subgraphs/vesting-scheduler/config/optimism-sepolia.json index 694ce9a..824bced 100644 --- a/subgraphs/vesting-scheduler/config/optimism-sepolia.json +++ b/subgraphs/vesting-scheduler/config/optimism-sepolia.json @@ -2,6 +2,6 @@ "network": "optimism-sepolia", "vestingSchedulerAddress": "0xd902aAE48a0b59e7A02fedc0Ccb789e0cB586945", "vestingSchedulerStartBlock": 14057406, - "vestingSchedulerAddress_v2": "0x38BFcAc468B2032CcBC07fc4b5B10F0CF9B1A273", - "vestingSchedulerStartBlock_v2": 14052310 + "vestingSchedulerAddress_v2": "0x3aa62b96f44D0f8892BeBBC819DE8e02E9DE69A8", + "vestingSchedulerStartBlock_v2": 14061097 } diff --git a/subgraphs/vesting-scheduler/package.json b/subgraphs/vesting-scheduler/package.json index 5bba420..03e3970 100644 --- a/subgraphs/vesting-scheduler/package.json +++ b/subgraphs/vesting-scheduler/package.json @@ -1,6 +1,6 @@ { "name": "vesting-scheduler-subgraph", - "version": "1.1.0", + "version": "1.0.3", "description": "A subgraph for the vesting scheduler contracts", "keywords": [ "subgraph" @@ -9,7 +9,7 @@ "author": "Superfluid", "scripts": { "build": "graph build ./optimism-sepolia.subgraph.yaml", - "deploy:test": "goldsky subgraph deploy vesting-v1-optimism-mainnet/1.1.8 --path ./build", + "deploy:test": "goldsky subgraph deploy vesting-v1-sepolia-mainnet/1.0.3 --path ./build", "dev": "nodemon -e ts -x yarn test", "gen": "npm-run-all -s gen:yaml gen:types", "gen:types": "graph codegen ./optimism-sepolia.subgraph.yaml --output-dir src/types/",