Skip to content

Commit 38d832a

Browse files
committed
add x-ogn abi, regen types, fix issues made from typegen after sqd bump
1 parent f29c276 commit 38d832a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+7620
-5513
lines changed

abi/x-ogn.json

Lines changed: 1030 additions & 0 deletions
Large diffs are not rendered by default.

src/abi/aave-lending-pool.ts

Lines changed: 177 additions & 160 deletions
Large diffs are not rendered by default.

src/abi/aave-token.ts

Lines changed: 187 additions & 160 deletions
Large diffs are not rendered by default.

src/abi/balancer-composable-stable-pool.ts

Lines changed: 325 additions & 276 deletions
Large diffs are not rendered by default.

src/abi/balancer-meta-pool-strategy.ts

Lines changed: 227 additions & 197 deletions
Large diffs are not rendered by default.

src/abi/balancer-meta-stable-pool.ts

Lines changed: 273 additions & 232 deletions
Large diffs are not rendered by default.

src/abi/balancer-rate-provider.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
import * as ethers from 'ethers'
2-
import {LogEvent, Func, ContractBase} from './abi.support'
3-
import {ABI_JSON} from './balancer-rate-provider.abi'
4-
5-
export const abi = new ethers.Interface(ABI_JSON);
1+
import * as p from '@subsquid/evm-codec'
2+
import { event, fun, indexed, ContractBase } from '@subsquid/evm-abi'
3+
import type { EventParams as EParams, FunctionArguments, FunctionReturn } from '@subsquid/evm-abi'
64

75
export const functions = {
8-
getRate: new Func<[], {}, bigint>(
9-
abi, '0x679aefce'
10-
),
11-
rocketTokenRETH: new Func<[], {}, string>(
12-
abi, '0xdb5dacc9'
13-
),
6+
getRate: fun("0x679aefce", {}, p.uint256),
7+
rocketTokenRETH: fun("0xdb5dacc9", {}, p.address),
148
}
159

1610
export class Contract extends ContractBase {
1711

18-
getRate(): Promise<bigint> {
19-
return this.eth_call(functions.getRate, [])
12+
getRate() {
13+
return this.eth_call(functions.getRate, {})
2014
}
2115

22-
rocketTokenRETH(): Promise<string> {
23-
return this.eth_call(functions.rocketTokenRETH, [])
16+
rocketTokenRETH() {
17+
return this.eth_call(functions.rocketTokenRETH, {})
2418
}
2519
}
20+
21+
/// Function types
22+
export type GetRateParams = FunctionArguments<typeof functions.getRate>
23+
export type GetRateReturn = FunctionReturn<typeof functions.getRate>
24+
25+
export type RocketTokenRETHParams = FunctionArguments<typeof functions.rocketTokenRETH>
26+
export type RocketTokenRETHReturn = FunctionReturn<typeof functions.rocketTokenRETH>
27+

src/abi/balancer-vault.ts

Lines changed: 159 additions & 143 deletions
Large diffs are not rendered by default.

src/abi/balancer-weighted-pool-2-token.ts

Lines changed: 229 additions & 192 deletions
Large diffs are not rendered by default.

src/abi/base-reward-pool-4626.ts

Lines changed: 337 additions & 284 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)