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
199 changes: 0 additions & 199 deletions contracts/SubnetProjectVote.sol

This file was deleted.

6 changes: 0 additions & 6 deletions publish/testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,6 @@
"address": "0x45B94e2D1373eC761f8f322c37Fa80ea7eDe61D7",
"bytecodeHash": "d38c34ddc8be512acb83f9fa950a52a4a48119c348759db8334c190c4e6296cf",
"lastUpdate": "Tue, 16 Apr 2024 03:16:07 GMT"
},
"SubnetProjectVote": {
"innerAddress": "0x897391d9EBE527429b275cf194D36f9E8826aBcB",
"address": "0x117fB7631b269efefd4c6b2393a8b24B7939CB82",
"bytecodeHash": "d3fec5dfe9a0fae6aafb5dbd1aa6c5db333971d3a8ab50fc3e150f62d7b674ce",
"lastUpdate": "Mon, 18 Aug 2025 07:22:47 GMT"
}
}
}
4 changes: 0 additions & 4 deletions scripts/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ import {
L2Vesting,
L2Vesting__factory,
Airdropper__factory,
SubnetProjectVote,
SubnetProjectVote__factory,
} from '../src';

export type Contracts = {
Expand Down Expand Up @@ -105,7 +103,6 @@ export type Contracts = {
sqtRedeem: SQTRedeem;
airdropperLite: AirdropperLite;
l2Vesting: L2Vesting;
subnetProjectVote: SubnetProjectVote;
};

export const UPGRADEBAL_CONTRACTS: Partial<
Expand Down Expand Up @@ -138,7 +135,6 @@ export const UPGRADEBAL_CONTRACTS: Partial<
SQTRedeem: [CONTRACTS.SQTRedeem, SQTRedeem__factory],
L2Vesting: [CONTRACTS.L2Vesting, L2Vesting__factory],
Airdropper: [CONTRACTS.Airdropper, Airdropper__factory],
SubnetProjectVote: [CONTRACTS.SubnetProjectVote, SubnetProjectVote__factory],
};

export type Config = number | string | string[];
Expand Down
15 changes: 3 additions & 12 deletions scripts/deployContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ import {
AirdropperLite,
L2Vesting,
UniswapPriceOracle,
SubnetProjectVote,
} from '../src';
import { Config, ContractConfig, Contracts, UPGRADEBAL_CONTRACTS } from './contracts';
import { l1StandardBridge } from './L1StandardBridge';
Expand Down Expand Up @@ -525,17 +524,9 @@ export async function deployContracts(
initConfig: [settingsAddress],
});

if (network === 'mainnet') {
//deploy uniswapPriceOracle contract
const uniswapPriceOracle = await deployContract<UniswapPriceOracle>('UniswapPriceOracle', 'child', {
deployConfig: [...config['UniswapPriceOracle']],
});
}

//deploy subnetProjectVote contract
const subnetProjectVote = await deployContract<SubnetProjectVote>('SubnetProjectVote', 'child', {
proxyAdmin,
initConfig: [settingsAddress],
//deploy uniswapPriceOracle contract
const uniswapPriceOracle = await deployContract<UniswapPriceOracle>('UniswapPriceOracle', 'child', {
deployConfig: [...config['UniswapPriceOracle']],
});

// Register addresses on settings contract
Expand Down
2 changes: 0 additions & 2 deletions src/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import L2SQToken from './artifacts/contracts/l2/L2SQToken.sol/L2SQToken.json';
import AirdropperLite from './artifacts/contracts/root/AirdropperLite.sol/AirdropperLite.json';
import L2Vesting from './artifacts/contracts/l2/L2Vesting.sol/L2Vesting.json';
import UniswapPriceOracle from './artifacts/contracts/l2/UniswapPriceOracle.sol/UniswapPriceOracle.json';
import SubnetProjectVote from './artifacts/contracts/SubnetProjectVote.sol/SubnetProjectVote.json';

export default {
Settings,
Expand Down Expand Up @@ -76,5 +75,4 @@ export default {
AirdropperLite,
L2Vesting,
UniswapPriceOracle,
SubnetProjectVote,
};
2 changes: 0 additions & 2 deletions src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
RewardsBooster,
StakingAllocation,
L2Vesting,
SubnetProjectVote,
} from './typechain';
import { CONTRACT_FACTORY, ContractDeploymentInner, ContractName, FactoryContstructor, SdkOptions } from './types';
import assert from 'assert';
Expand Down Expand Up @@ -74,7 +73,6 @@ export class ContractSDK {
readonly sqtRedeem!: SQTRedeem;
readonly stakingAllocation!: StakingAllocation;
readonly l2Vesting!: L2Vesting;
readonly subnetProjectVote!: SubnetProjectVote;

constructor(
// eslint-disable-next-line no-unused-vars
Expand Down
2 changes: 0 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import {
AirdropperLite__factory,
L2Vesting__factory,
UniswapPriceOracle__factory,
SubnetProjectVote__factory,
} from './typechain';

export type SubqueryNetwork = 'testnet' | 'testnet-mumbai' | 'mainnet' | 'local';
Expand Down Expand Up @@ -140,7 +139,6 @@ export const CONTRACT_FACTORY: Record<ContractName, FactoryContstructor> = {
AirdropperLite: AirdropperLite__factory,
L2Vesting: L2Vesting__factory,
UniswapPriceOracle: UniswapPriceOracle__factory,
SubnetProjectVote: SubnetProjectVote__factory,
};

export enum SQContracts {
Expand Down