Skip to content

Commit

Permalink
merge with dev
Browse files Browse the repository at this point in the history
  • Loading branch information
toyv0 committed Jan 21, 2024
1 parent 5700df7 commit 6c1e3b6
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 1,354 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NETWORK_NAME=MAINNET
NETWORK_NAME=mainnet
JSONRPC_ENDPOINT=https://3.138.194.94:443

# TODO: Extract the start block number from the receipt
Expand Down
57 changes: 22 additions & 35 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1043,19 +1043,6 @@ type PoolRemoveLiquidityOneEvent implements PoolEvent @entity {
transaction: Bytes!
}

type PoolRampAEvent implements PoolEvent @entity {
id: ID!
pool: Pool!
old_A: BigInt!
new_A: BigInt!
initial_time: BigInt!
future_time: BigInt!

block: Block!
timestamp: BigInt!
transaction: Bytes!
}

type PoolStopRampAEvent implements PoolEvent @entity {
id: ID!
pool: Pool!
Expand Down Expand Up @@ -1551,25 +1538,25 @@ type EthAssetManagerReclaimEthEvent implements Event @entity {
amount: BigInt!
}

# type EthAssetManagerSweepTokenEvent implements Event @entity {
# id: ID!
# cursor: BigInt!
# index: BigInt!
# block: Block!
# timestamp: BigInt!
# contract: Contract!
# transaction: Transaction!
# token: Bytes!
# amount: BigInt!
# }

# type EthAssetManagerSweepEthEvent implements Event @entity {
# id: ID!
# cursor: BigInt!
# index: BigInt!
# block: Block!
# timestamp: BigInt!
# contract: Contract!
# transaction: Transaction!
# amount: BigInt!
# }
type EthAssetManagerSweepTokenEvent implements Event @entity {
id: ID!
cursor: BigInt!
index: BigInt!
block: Block!
timestamp: BigInt!
contract: Contract!
transaction: Transaction!
token: Bytes!
amount: BigInt!
}

type EthAssetManagerSweepEthEvent implements Event @entity {
id: ID!
cursor: BigInt!
index: BigInt!
block: Block!
timestamp: BigInt!
contract: Contract!
transaction: Transaction!
amount: BigInt!
}
3 changes: 0 additions & 3 deletions subgraph/handlers/FactoryPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ export function handleAddLiquidity(event: AddLiquidity): void {
}
}

export function handleRampA(): void {}
export function handleStopRampA(): void {}

export function handleRemoveLiquidity(event: RemoveLiquidity): void {
createFactoryPoolEvent<PoolRemoveLiquidityEvent>(event);
let pool = getOrCreatePool(event.address, event);
Expand Down
8 changes: 1 addition & 7 deletions subgraph/handlers/TransmuterBuffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import {
SetAmo,
SetFlowRate,
SetSource,
SetDivertToAmo,
SetTransmuter,
} from '../generated/TransmuterBuffer_alETH/TransmuterBuffer';
import { SetDivertToAmo, SetTransmuter } from '../generated/TransmuterBuffer_alUSD/TransmuterBuffer';
import { createEvent, getOrCreateUnderlyingToken } from '../utils/entities';

function getOrCreateTransmuterBuffer(event: ethereum.Event): TransmuterBuffer {
Expand Down Expand Up @@ -89,12 +89,6 @@ export function handleSetAlchemist(event: SetAlchemist): void {
entity.save();
}

export function handleSetTransmuter(event: SetTransmuter): void {
const entity = createTransmuterBufferEvent<TransmuterBufferSetTransmuter>(event);
entity.transmuter = event.params.transmuter;
entity.save();
}

export function handleSetFlowRate(event: SetFlowRate): void {
const entity = createTransmuterBufferEvent<TransmuterBufferSetFlowRateEvent>(event);
entity.flowRate = event.params.flowRate;
Expand Down
Loading

0 comments on commit 6c1e3b6

Please sign in to comment.