Skip to content

Commit

Permalink
try to make CI green
Browse files Browse the repository at this point in the history
  • Loading branch information
rnons committed Sep 3, 2024
1 parent d5f34ec commit 30149f3
Show file tree
Hide file tree
Showing 351 changed files with 449 additions and 1,776 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions projects/1inch/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/1inch/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/aave/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/aave/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/algebra/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/algebra/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer, firstCounterValue } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
7 changes: 0 additions & 7 deletions projects/anyswap/jest.config.js

This file was deleted.

1 change: 1 addition & 0 deletions projects/anyswap/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
3 changes: 1 addition & 2 deletions projects/anyswap/src/processor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "./ftmAnalysis.js"
// import "./ftmAnalysis.js"
// import { ERC20Context, ERC20Processor } from '@sentio/sdk/eth/builtin/erc20'
// // import { chain, conversion } from '@sentio/sdk/utils';

Expand Down Expand Up @@ -124,4 +124,3 @@ import "./ftmAnalysis.js"
// // BscAnyswapRouterProcessor.bind({address: routerAddress_BSC, network: 56, startBlock: startBlock_BSC})
// // .onEventLogAnySwapIn(handleSwapInBSC, inFilterBSC)
// // .onEventLogAnySwapOut(handleSwapOutBSC, outFilterBSC)

8 changes: 0 additions & 8 deletions projects/aperture/jest.config.ts

This file was deleted.

8 changes: 0 additions & 8 deletions projects/aptos-overview/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/aptos-overview/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
// import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/aptos-webhook/jest.config.ts

This file was deleted.

3 changes: 3 additions & 0 deletions projects/aptos-webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
"build": "sentio build",
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {
"@manahippo/coin-list": "^4.1.32"
}
}
1 change: 1 addition & 0 deletions projects/aptos-webhook/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 3 additions & 5 deletions projects/aptos-webhook/src/processor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CHAIN_IDS, Counter, Gauge, MetricOptions} from "@sentio/sdk";
import {Counter, Gauge, MetricOptions} from "@sentio/sdk";
import {getPriceBySymbol, getPriceByType} from "@sentio/sdk/utils";
import { aptos_coin, coin, managed_coin, resource_account, aptos_account } from "@sentio/sdk/aptos/builtin/0x1";

Expand All @@ -8,7 +8,7 @@ import { amm } from "./types/aptos/auxexchange.js";
// import { TransactionPayload_EntryFunctionPayload } from "aptos-sdk/src/generated";
import { router, swap } from "./types/aptos/pancake-swap.js";
// import { token, token_transfers } from "@sentio/sdk/lib/builtin/aptos/0x3";
import {AptosContext, getChainQueryClient} from "@sentio/sdk/aptos";
import {AptosContext, AptosNetwork, getChainQueryClient} from "@sentio/sdk/aptos";
import * as soffle3 from "./types/aptos/soffle3.js";
import * as topaz from "./types/aptos/topaz.js";
import * as bluemoves from "./types/aptos/bluemoves.js";
Expand All @@ -28,7 +28,7 @@ async function handleTransfer(ctx: AptosContext, to: string, type: string, amoun
let scaledAmount = amount.scaleDown(symbol.decimals)
const ts = Number(ctx.transaction.timestamp) / 1000
const date = new Date(ts)
const tokenPrice = (await getPriceByType(CHAIN_IDS.APTOS_MAINNET,
const tokenPrice = (await getPriceByType(AptosNetwork.MAIN_NET,
symbol.token_type.type, date))!
if (tokenPrice == null) {
console.log("null token0 price:" + symbol.symbol + " " + symbol.token_type.type)
Expand Down Expand Up @@ -58,5 +58,3 @@ aptos_account.bind({startVersion: 97000000})
.onEntryTransfer(async (call, ctx) => {
await handleTransfer(ctx, call.arguments_decoded[0], "0x1::aptos_coin::AptosCoin", call.arguments_decoded[1])
})


8 changes: 0 additions & 8 deletions projects/arb/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/arb/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/arbitrum-camelot/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/arbitrum-camelot/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer, firstCounterValue } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/argo/jest.config.ts

This file was deleted.

3 changes: 3 additions & 0 deletions projects/argo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
},
"devDependencies": {
"typescript": "^5.0.3"
},
"dependencies": {
"lru-cache": "^11.0.0"
}
}
8 changes: 0 additions & 8 deletions projects/arthswap/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/arthswap/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
10 changes: 5 additions & 5 deletions projects/arthswap/src/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { PancakeRouterProcessor } from './types/eth/pancakerouter.js'
import { PancakePairProcessor, PancakePairContext } from './types/eth/pancakepair.js'

import { getPriceByType, getPriceBySymbol, token } from "@sentio/sdk/utils"
import { CHAIN_IDS, Gauge, Counter } from "@sentio/sdk"
import { Gauge, Counter } from "@sentio/sdk"
import { EthChainId } from "@sentio/sdk/eth"
import { ERC20Context, ERC20Processor, getERC20Contract } from '@sentio/sdk/eth/builtin/erc20'
import { MasterChefProcessor } from './types/eth/masterchef.js'

Expand Down Expand Up @@ -137,7 +138,7 @@ const tradingVolume_gauge = Gauge.register('tradingVolume', volOptions)
//first pair created at 1647497
for (let i = 0; i < PairWatching.length; i++) {
let address = PairWatching[i]
PancakePairProcessor.bind({ address: address, network: CHAIN_IDS.ASTAR, startBlock: 2700000 })
PancakePairProcessor.bind({ address: address, network: EthChainId.ASTAR, startBlock: 2700000 })
.onEventSwap(async (event, ctx) => {
const info = await getOrCreatePool(ctx)

Expand Down Expand Up @@ -299,13 +300,12 @@ for (let i = 0; i < PairWatching.length; i++) {
ctx.meter.Counter('burn').add(1, { pairName: pairName })

})
.onAllEvents(async (event, ctx) => { })

}



MasterChefProcessor.bind({ address: '0xc5b016c5597D298Fe9eD22922CE290A048aA5B75', network: CHAIN_IDS.ASTAR })
MasterChefProcessor.bind({ address: '0xc5b016c5597D298Fe9eD22922CE290A048aA5B75', network: EthChainId.ASTAR })
.onEventDeposit(async (event, ctx) => {
const user = event.args.user
const pid = Number(event.args.pid)
Expand Down Expand Up @@ -340,4 +340,4 @@ MasterChefProcessor.bind({ address: '0xc5b016c5597D298Fe9eD22922CE290A048aA5B75'
amount
}
)
})
})
8 changes: 0 additions & 8 deletions projects/astar-webhook/jest.config.ts

This file was deleted.

9 changes: 5 additions & 4 deletions projects/astar-webhook/src/processor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {CHAIN_IDS, Counter, Exporter, Gauge} from '@sentio/sdk'
import {Counter, Exporter, Gauge} from '@sentio/sdk'
import { EthChainId } from "@sentio/sdk/eth"
import { ERC20Processor } from '@sentio/sdk/eth/builtin'
import { getPriceBySymbol, token } from "@sentio/sdk/utils"

Expand Down Expand Up @@ -31,7 +32,7 @@ const exporter = Exporter.register('astaralert', 'astaralert')
async function getTokenInfo(address: string): Promise<token.TokenInfo> {

try {
return await token.getERC20TokenInfo(CHAIN_IDS.ASTAR, address)
return await token.getERC20TokenInfo(EthChainId.ASTAR, address)
} catch (error) {
console.log(error, address)
return token.NATIVE_ETH
Expand All @@ -49,7 +50,7 @@ async function getOrCreateToken(address: string) : Promise<token.TokenInfo> {
}

for (const token of tokenWatching) {
ERC20Processor.bind({ address: token , network: CHAIN_IDS.ASTAR, startBlock: 3050000})
ERC20Processor.bind({ address: token , network: EthChainId.ASTAR, startBlock: 3050000})
.onEventTransfer(
async (event, ctx) => {
let token = await getOrCreateToken(ctx.address)
Expand Down Expand Up @@ -78,4 +79,4 @@ for (const token of tokenWatching) {
}
}
)
}
}
8 changes: 0 additions & 8 deletions projects/astar-zkevm/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/astar-zkevm/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer, firstCounterValue } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/aux-exchange/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/aux-exchange/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
// import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/balancer/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/balancer/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/bancor/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/bancor/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/baseNFT/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/baseNFT/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/bend-dao/jest.config.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/bend-dao/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
8 changes: 0 additions & 8 deletions projects/bluemove-dex/jest.config.ts

This file was deleted.

2 changes: 2 additions & 0 deletions projects/bluemove-dex/src/helper/clmm-helper.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @ts-nocheck

import { SuiObjectProcessor, SuiContext, SuiObjectContext } from "@sentio/sdk/sui"
import { getPriceByType, token } from "@sentio/sdk/utils"
import * as constant from '../constant.js'
Expand Down
1 change: 1 addition & 0 deletions projects/bluemove-dex/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import { TestProcessorServer, firstCounterValue } from '@sentio/sdk/testing'
import { before, describe, test } from 'node:test'
import { expect } from 'chai'
Expand Down
Loading

0 comments on commit 30149f3

Please sign in to comment.