@sentio/sdk 2.5.1-rc.1 → 2.5.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/lib/eth/codegen/event-handler.js.map +1 -1
  2. package/lib/eth/codegen/functions-handler.js +4 -9
  3. package/lib/eth/codegen/functions-handler.js.map +1 -1
  4. package/lib/eth/context.js.map +1 -1
  5. package/lib/eth/index.d.ts +0 -1
  6. package/lib/eth/index.js +0 -1
  7. package/lib/eth/index.js.map +1 -1
  8. package/lib/move/abstract-codegen.js +3 -9
  9. package/lib/move/abstract-codegen.js.map +1 -1
  10. package/lib/sui/sui-processor.js.map +1 -1
  11. package/lib/utils/dex-price.test.js.map +1 -1
  12. package/lib/utils/erc20.test.js.map +1 -1
  13. package/package.json +5 -8
  14. package/src/eth/codegen/event-handler.ts +1 -1
  15. package/src/eth/codegen/functions-handler.ts +4 -10
  16. package/src/eth/context.ts +0 -1
  17. package/src/eth/index.ts +0 -1
  18. package/src/move/abstract-codegen.ts +3 -10
  19. package/src/sui/sui-processor.ts +1 -1
  20. package/lib/aptos/tests/aptos.test.d.ts +0 -1
  21. package/lib/aptos/tests/aptos.test.js.map +0 -1
  22. package/lib/aptos/tests/souffl3.d.ts +0 -1
  23. package/lib/aptos/tests/souffl3.js +0 -43
  24. package/lib/aptos/tests/souffl3.js.map +0 -1
  25. package/lib/aptos/tests/types/index.d.ts +0 -3
  26. package/lib/aptos/tests/types/index.js +0 -7
  27. package/lib/aptos/tests/types/index.js.map +0 -1
  28. package/lib/aptos/tests/types/reserved.d.ts +0 -340
  29. package/lib/aptos/tests/types/reserved.js +0 -287
  30. package/lib/aptos/tests/types/reserved.js.map +0 -1
  31. package/lib/aptos/tests/types/soffl3.d.ts +0 -801
  32. package/lib/aptos/tests/types/soffl3.js +0 -514
  33. package/lib/aptos/tests/types/soffl3.js.map +0 -1
  34. package/lib/aptos/tests/types/souffle.d.ts +0 -335
  35. package/lib/aptos/tests/types/souffle.js +0 -281
  36. package/lib/aptos/tests/types/souffle.js.map +0 -1
  37. package/lib/eth/error.d.ts +0 -1
  38. package/lib/eth/error.js +0 -3
  39. package/lib/eth/error.js.map +0 -1
  40. package/lib/eth/tests/account.test.d.ts +0 -1
  41. package/lib/eth/tests/account.test.js.map +0 -1
  42. package/lib/eth/tests/codegen.test.d.ts +0 -1
  43. package/lib/eth/tests/codegen.test.js.map +0 -1
  44. package/lib/eth/tests/erc20-template.test.d.ts +0 -1
  45. package/lib/eth/tests/erc20-template.test.js.map +0 -1
  46. package/lib/eth/tests/erc20.d.ts +0 -1
  47. package/lib/eth/tests/erc20.js +0 -52
  48. package/lib/eth/tests/erc20.js.map +0 -1
  49. package/lib/eth/tests/erc20.test.d.ts +0 -1
  50. package/lib/eth/tests/erc20.test.js.map +0 -1
  51. package/lib/eth/tests/error-capture.test.d.ts +0 -1
  52. package/lib/eth/tests/error-capture.test.js.map +0 -1
  53. package/lib/eth/tests/logger.test.d.ts +0 -1
  54. package/lib/eth/tests/logger.test.js.map +0 -1
  55. package/lib/eth/tests/types/anyswaprouter.d.ts +0 -3
  56. package/lib/eth/tests/types/anyswaprouter.js +0 -7
  57. package/lib/eth/tests/types/anyswaprouter.js.map +0 -1
  58. package/lib/eth/tests/types/commitmentpool.d.ts +0 -3
  59. package/lib/eth/tests/types/commitmentpool.js +0 -7
  60. package/lib/eth/tests/types/commitmentpool.js.map +0 -1
  61. package/lib/eth/tests/types/index.d.ts +0 -12
  62. package/lib/eth/tests/types/index.js +0 -16
  63. package/lib/eth/tests/types/index.js.map +0 -1
  64. package/lib/eth/tests/types/internal/AnyswapRouter.d.ts +0 -122
  65. package/lib/eth/tests/types/internal/AnyswapRouter.js +0 -2
  66. package/lib/eth/tests/types/internal/AnyswapRouter.js.map +0 -1
  67. package/lib/eth/tests/types/internal/CommitmentPool.d.ts +0 -176
  68. package/lib/eth/tests/types/internal/CommitmentPool.js +0 -2
  69. package/lib/eth/tests/types/internal/CommitmentPool.js.map +0 -1
  70. package/lib/eth/tests/types/internal/MembershipStakerV3.d.ts +0 -81
  71. package/lib/eth/tests/types/internal/MembershipStakerV3.js +0 -2
  72. package/lib/eth/tests/types/internal/MembershipStakerV3.js.map +0 -1
  73. package/lib/eth/tests/types/internal/Pyth.d.ts +0 -204
  74. package/lib/eth/tests/types/internal/Pyth.js +0 -2
  75. package/lib/eth/tests/types/internal/Pyth.js.map +0 -1
  76. package/lib/eth/tests/types/internal/Seaport.d.ts +0 -350
  77. package/lib/eth/tests/types/internal/Seaport.js +0 -2
  78. package/lib/eth/tests/types/internal/Seaport.js.map +0 -1
  79. package/lib/eth/tests/types/internal/TokenExchange.d.ts +0 -128
  80. package/lib/eth/tests/types/internal/TokenExchange.js +0 -2
  81. package/lib/eth/tests/types/internal/TokenExchange.js.map +0 -1
  82. package/lib/eth/tests/types/internal/anyswaprouter-processor.d.ts +0 -463
  83. package/lib/eth/tests/types/internal/anyswaprouter-processor.js +0 -425
  84. package/lib/eth/tests/types/internal/anyswaprouter-processor.js.map +0 -1
  85. package/lib/eth/tests/types/internal/anyswaprouter-test-utils.d.ts +0 -9
  86. package/lib/eth/tests/types/internal/anyswaprouter-test-utils.js +0 -124
  87. package/lib/eth/tests/types/internal/anyswaprouter-test-utils.js.map +0 -1
  88. package/lib/eth/tests/types/internal/commitmentpool-processor.d.ts +0 -348
  89. package/lib/eth/tests/types/internal/commitmentpool-processor.js +0 -607
  90. package/lib/eth/tests/types/internal/commitmentpool-processor.js.map +0 -1
  91. package/lib/eth/tests/types/internal/commitmentpool-test-utils.d.ts +0 -9
  92. package/lib/eth/tests/types/internal/commitmentpool-test-utils.js +0 -87
  93. package/lib/eth/tests/types/internal/commitmentpool-test-utils.js.map +0 -1
  94. package/lib/eth/tests/types/internal/common.d.ts +0 -10
  95. package/lib/eth/tests/types/internal/common.js +0 -8
  96. package/lib/eth/tests/types/internal/common.js.map +0 -1
  97. package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.d.ts +0 -988
  98. package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.js +0 -1269
  99. package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.js.map +0 -1
  100. package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.d.ts +0 -792
  101. package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.js +0 -1040
  102. package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.js.map +0 -1
  103. package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.d.ts +0 -549
  104. package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.js +0 -721
  105. package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.js.map +0 -1
  106. package/lib/eth/tests/types/internal/factories/Pyth__factory.d.ts +0 -1130
  107. package/lib/eth/tests/types/internal/factories/Pyth__factory.js +0 -1486
  108. package/lib/eth/tests/types/internal/factories/Pyth__factory.js.map +0 -1
  109. package/lib/eth/tests/types/internal/factories/Seaport__factory.d.ts +0 -2018
  110. package/lib/eth/tests/types/internal/factories/Seaport__factory.js +0 -2610
  111. package/lib/eth/tests/types/internal/factories/Seaport__factory.js.map +0 -1
  112. package/lib/eth/tests/types/internal/factories/TokenExchange__factory.d.ts +0 -651
  113. package/lib/eth/tests/types/internal/factories/TokenExchange__factory.js +0 -853
  114. package/lib/eth/tests/types/internal/factories/TokenExchange__factory.js.map +0 -1
  115. package/lib/eth/tests/types/internal/factories/index.d.ts +0 -6
  116. package/lib/eth/tests/types/internal/factories/index.js +0 -10
  117. package/lib/eth/tests/types/internal/factories/index.js.map +0 -1
  118. package/lib/eth/tests/types/internal/index.d.ts +0 -13
  119. package/lib/eth/tests/types/internal/index.js +0 -8
  120. package/lib/eth/tests/types/internal/index.js.map +0 -1
  121. package/lib/eth/tests/types/internal/membershipstakerv3-processor.d.ts +0 -287
  122. package/lib/eth/tests/types/internal/membershipstakerv3-processor.js +0 -596
  123. package/lib/eth/tests/types/internal/membershipstakerv3-processor.js.map +0 -1
  124. package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.d.ts +0 -11
  125. package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.js +0 -109
  126. package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.js.map +0 -1
  127. package/lib/eth/tests/types/internal/pyth-processor.d.ts +0 -422
  128. package/lib/eth/tests/types/internal/pyth-processor.js +0 -890
  129. package/lib/eth/tests/types/internal/pyth-processor.js.map +0 -1
  130. package/lib/eth/tests/types/internal/pyth-test-utils.d.ts +0 -13
  131. package/lib/eth/tests/types/internal/pyth-test-utils.js +0 -131
  132. package/lib/eth/tests/types/internal/pyth-test-utils.js.map +0 -1
  133. package/lib/eth/tests/types/internal/seaport-processor.d.ts +0 -211
  134. package/lib/eth/tests/types/internal/seaport-processor.js +0 -237
  135. package/lib/eth/tests/types/internal/seaport-processor.js.map +0 -1
  136. package/lib/eth/tests/types/internal/seaport-test-utils.d.ts +0 -6
  137. package/lib/eth/tests/types/internal/seaport-test-utils.js +0 -61
  138. package/lib/eth/tests/types/internal/seaport-test-utils.js.map +0 -1
  139. package/lib/eth/tests/types/internal/tokenexchange-processor.d.ts +0 -334
  140. package/lib/eth/tests/types/internal/tokenexchange-processor.js +0 -667
  141. package/lib/eth/tests/types/internal/tokenexchange-processor.js.map +0 -1
  142. package/lib/eth/tests/types/internal/tokenexchange-test-utils.d.ts +0 -13
  143. package/lib/eth/tests/types/internal/tokenexchange-test-utils.js +0 -149
  144. package/lib/eth/tests/types/internal/tokenexchange-test-utils.js.map +0 -1
  145. package/lib/eth/tests/types/membershipstakerv3.d.ts +0 -3
  146. package/lib/eth/tests/types/membershipstakerv3.js +0 -7
  147. package/lib/eth/tests/types/membershipstakerv3.js.map +0 -1
  148. package/lib/eth/tests/types/pyth.d.ts +0 -3
  149. package/lib/eth/tests/types/pyth.js +0 -7
  150. package/lib/eth/tests/types/pyth.js.map +0 -1
  151. package/lib/eth/tests/types/seaport.d.ts +0 -3
  152. package/lib/eth/tests/types/seaport.js +0 -7
  153. package/lib/eth/tests/types/seaport.js.map +0 -1
  154. package/lib/eth/tests/types/tokenexchange.d.ts +0 -3
  155. package/lib/eth/tests/types/tokenexchange.js +0 -7
  156. package/lib/eth/tests/types/tokenexchange.js.map +0 -1
  157. package/lib/solana/tests/solana.test.d.ts +0 -1
  158. package/lib/solana/tests/solana.test.js.map +0 -1
  159. package/lib/solana/tests/types/basic_1.d.ts +0 -26
  160. package/lib/solana/tests/types/basic_1.js +0 -63
  161. package/lib/solana/tests/types/basic_1.js.map +0 -1
  162. package/lib/solana/tests/types/basic_1_processor.d.ts +0 -21
  163. package/lib/solana/tests/types/basic_1_processor.js +0 -35
  164. package/lib/solana/tests/types/basic_1_processor.js.map +0 -1
  165. package/lib/solana/tests/types/token_bridge.d.ts +0 -29
  166. package/lib/solana/tests/types/token_bridge.js +0 -938
  167. package/lib/solana/tests/types/token_bridge.js.map +0 -1
  168. package/lib/solana/tests/types/token_bridge_processor.d.ts +0 -212
  169. package/lib/solana/tests/types/token_bridge_processor.js +0 -134
  170. package/lib/solana/tests/types/token_bridge_processor.js.map +0 -1
  171. package/lib/solana/tests/wormhole-token-bridge.d.ts +0 -15
  172. package/lib/solana/tests/wormhole-token-bridge.js +0 -79
  173. package/lib/solana/tests/wormhole-token-bridge.js.map +0 -1
  174. package/lib/sui/tests/sui.test.d.ts +0 -1
  175. package/lib/sui/tests/sui.test.js.map +0 -1
  176. package/lib/sui/tests/types/index.d.ts +0 -1
  177. package/lib/sui/tests/types/index.js +0 -5
  178. package/lib/sui/tests/types/index.js.map +0 -1
  179. package/lib/sui/tests/types/testnet/index.d.ts +0 -1
  180. package/lib/sui/tests/types/testnet/index.js +0 -5
  181. package/lib/sui/tests/types/testnet/index.js.map +0 -1
  182. package/lib/sui/tests/types/testnet/swap.d.ts +0 -249
  183. package/lib/sui/tests/types/testnet/swap.js +0 -310
  184. package/lib/sui/tests/types/testnet/swap.js.map +0 -1
  185. package/src/aptos/tests/abis/reserved.json +0 -402
  186. package/src/aptos/tests/abis/soffl3.json +0 -1411
  187. package/src/aptos/tests/abis/souffle.json +0 -389
  188. package/src/aptos/tests/souffl3.ts +0 -56
  189. package/src/aptos/tests/types/index.ts +0 -6
  190. package/src/aptos/tests/types/reserved.ts +0 -766
  191. package/src/aptos/tests/types/soffl3.ts +0 -1528
  192. package/src/aptos/tests/types/souffle.ts +0 -765
  193. package/src/eth/error.ts +0 -4
  194. package/src/eth/tests/abis/eth/CommitmentPool.json +0 -1034
  195. package/src/eth/tests/abis/eth/MembershipStakerV3.json +0 -706
  196. package/src/eth/tests/abis/eth/Pyth.json +0 -1471
  197. package/src/eth/tests/abis/eth/Seaport.json +0 -2595
  198. package/src/eth/tests/abis/eth/TokenExchange.json +0 -838
  199. package/src/eth/tests/abis/eth/anyswapRouter.json +0 -490
  200. package/src/eth/tests/erc20.ts +0 -63
  201. package/src/eth/tests/types/anyswaprouter.ts +0 -7
  202. package/src/eth/tests/types/commitmentpool.ts +0 -7
  203. package/src/eth/tests/types/index.ts +0 -33
  204. package/src/eth/tests/types/internal/AnyswapRouter.ts +0 -122
  205. package/src/eth/tests/types/internal/CommitmentPool.ts +0 -208
  206. package/src/eth/tests/types/internal/MembershipStakerV3.ts +0 -108
  207. package/src/eth/tests/types/internal/Pyth.ts +0 -246
  208. package/src/eth/tests/types/internal/Seaport.ts +0 -389
  209. package/src/eth/tests/types/internal/TokenExchange.ts +0 -142
  210. package/src/eth/tests/types/internal/anyswaprouter-processor.ts +0 -1396
  211. package/src/eth/tests/types/internal/anyswaprouter-test-utils.ts +0 -187
  212. package/src/eth/tests/types/internal/commitmentpool-processor.ts +0 -1575
  213. package/src/eth/tests/types/internal/commitmentpool-test-utils.ts +0 -150
  214. package/src/eth/tests/types/internal/common.ts +0 -23
  215. package/src/eth/tests/types/internal/factories/AnyswapRouter__factory.ts +0 -1278
  216. package/src/eth/tests/types/internal/factories/CommitmentPool__factory.ts +0 -1049
  217. package/src/eth/tests/types/internal/factories/MembershipStakerV3__factory.ts +0 -730
  218. package/src/eth/tests/types/internal/factories/Pyth__factory.ts +0 -1492
  219. package/src/eth/tests/types/internal/factories/Seaport__factory.ts +0 -2616
  220. package/src/eth/tests/types/internal/factories/TokenExchange__factory.ts +0 -862
  221. package/src/eth/tests/types/internal/factories/index.ts +0 -9
  222. package/src/eth/tests/types/internal/index.ts +0 -16
  223. package/src/eth/tests/types/internal/membershipstakerv3-processor.ts +0 -1399
  224. package/src/eth/tests/types/internal/membershipstakerv3-test-utils.ts +0 -188
  225. package/src/eth/tests/types/internal/pyth-processor.ts +0 -2043
  226. package/src/eth/tests/types/internal/pyth-test-utils.ts +0 -226
  227. package/src/eth/tests/types/internal/seaport-processor.ts +0 -678
  228. package/src/eth/tests/types/internal/seaport-test-utils.ts +0 -100
  229. package/src/eth/tests/types/internal/tokenexchange-processor.ts +0 -1570
  230. package/src/eth/tests/types/internal/tokenexchange-test-utils.ts +0 -244
  231. package/src/eth/tests/types/membershipstakerv3.ts +0 -7
  232. package/src/eth/tests/types/pyth.ts +0 -7
  233. package/src/eth/tests/types/seaport.ts +0 -7
  234. package/src/eth/tests/types/tokenexchange.ts +0 -7
  235. package/src/solana/tests/abis/basic_1.json +0 -62
  236. package/src/solana/tests/abis/token_bridge.json +0 -937
  237. package/src/solana/tests/types/basic_1.ts +0 -62
  238. package/src/solana/tests/types/basic_1_processor.ts +0 -42
  239. package/src/solana/tests/types/token_bridge.ts +0 -937
  240. package/src/solana/tests/types/token_bridge_processor.ts +0 -150
  241. package/src/solana/tests/wormhole-token-bridge.ts +0 -96
  242. package/src/sui/tests/abis/testnet/swap.json +0 -1752
  243. package/src/sui/tests/types/index.ts +0 -3
  244. package/src/sui/tests/types/testnet/index.ts +0 -4
  245. package/src/sui/tests/types/testnet/swap.ts +0 -698
@@ -1,422 +0,0 @@
1
- import { BigNumberish, Overrides, BytesLike } from "ethers";
2
- import { Networkish } from "ethers/providers";
3
- import { Trace, BindOptions, BaseProcessor, BaseProcessorTemplate, BoundContractView, ContractContext, ContractView, TypedCallTrace } from "@sentio/sdk/eth";
4
- import { EthFetchConfig } from "@sentio/protos";
5
- import { Pyth } from "./index.js";
6
- import { AdminChangedEvent, AdminChangedEventFilter, BatchPriceFeedUpdateEvent, BatchPriceFeedUpdateEventFilter, BeaconUpgradedEvent, BeaconUpgradedEventFilter, ContractUpgradedEvent, ContractUpgradedEventFilter, DataSourcesSetEvent, DataSourcesSetEventFilter, FeeSetEvent, FeeSetEventFilter, GovernanceDataSourceSetEvent, GovernanceDataSourceSetEventFilter, OwnershipTransferredEvent, OwnershipTransferredEventFilter, PriceFeedUpdateEvent, PriceFeedUpdateEventFilter, UpgradedEvent, UpgradedEventFilter, ValidPeriodSetEvent, ValidPeriodSetEventFilter, PythInternalStructs, PythStructs, PythGovernanceInstructions } from "./Pyth.js";
7
- export interface ChainIdCallObject {
8
- }
9
- export type ChainIdCallTrace = TypedCallTrace<[], ChainIdCallObject> & Trace;
10
- export interface ExecuteGovernanceInstructionCallObject {
11
- encodedVM: string;
12
- }
13
- export type ExecuteGovernanceInstructionCallTrace = TypedCallTrace<[
14
- string
15
- ], ExecuteGovernanceInstructionCallObject> & Trace;
16
- export interface GetEmaPriceCallObject {
17
- id: string;
18
- }
19
- export type GetEmaPriceCallTrace = TypedCallTrace<[
20
- string
21
- ], GetEmaPriceCallObject> & Trace;
22
- export interface GetEmaPriceNoOlderThanCallObject {
23
- id: string;
24
- age: bigint;
25
- }
26
- export type GetEmaPriceNoOlderThanCallTrace = TypedCallTrace<[
27
- string,
28
- bigint
29
- ], GetEmaPriceNoOlderThanCallObject> & Trace;
30
- export interface GetEmaPriceUnsafeCallObject {
31
- id: string;
32
- }
33
- export type GetEmaPriceUnsafeCallTrace = TypedCallTrace<[
34
- string
35
- ], GetEmaPriceUnsafeCallObject> & Trace;
36
- export interface GetPriceCallObject {
37
- id: string;
38
- }
39
- export type GetPriceCallTrace = TypedCallTrace<[string], GetPriceCallObject> & Trace;
40
- export interface GetPriceNoOlderThanCallObject {
41
- id: string;
42
- age: bigint;
43
- }
44
- export type GetPriceNoOlderThanCallTrace = TypedCallTrace<[
45
- string,
46
- bigint
47
- ], GetPriceNoOlderThanCallObject> & Trace;
48
- export interface GetPriceUnsafeCallObject {
49
- id: string;
50
- }
51
- export type GetPriceUnsafeCallTrace = TypedCallTrace<[
52
- string
53
- ], GetPriceUnsafeCallObject> & Trace;
54
- export interface GetUpdateFee_bytes_arrayCallObject {
55
- updateData: string[];
56
- }
57
- export type GetUpdateFee_bytes_arrayCallTrace = TypedCallTrace<[
58
- string[]
59
- ], GetUpdateFee_bytes_arrayCallObject> & Trace;
60
- export interface GetUpdateFee_uint256CallObject {
61
- updateDataSize: bigint;
62
- }
63
- export type GetUpdateFee_uint256CallTrace = TypedCallTrace<[
64
- bigint
65
- ], GetUpdateFee_uint256CallObject> & Trace;
66
- export interface GetValidTimePeriodCallObject {
67
- }
68
- export type GetValidTimePeriodCallTrace = TypedCallTrace<[
69
- ], GetValidTimePeriodCallObject> & Trace;
70
- export interface GovernanceDataSourceCallObject {
71
- }
72
- export type GovernanceDataSourceCallTrace = TypedCallTrace<[
73
- ], GovernanceDataSourceCallObject> & Trace;
74
- export interface GovernanceDataSourceIndexCallObject {
75
- }
76
- export type GovernanceDataSourceIndexCallTrace = TypedCallTrace<[
77
- ], GovernanceDataSourceIndexCallObject> & Trace;
78
- export interface HashDataSourceCallObject {
79
- ds: PythInternalStructs.DataSourceStructOutput;
80
- }
81
- export type HashDataSourceCallTrace = TypedCallTrace<[
82
- PythInternalStructs.DataSourceStructOutput
83
- ], HashDataSourceCallObject> & Trace;
84
- export interface InitializeCallObject {
85
- wormhole: string;
86
- dataSourceEmitterChainIds: bigint[];
87
- dataSourceEmitterAddresses: string[];
88
- governanceEmitterChainId: bigint;
89
- governanceEmitterAddress: string;
90
- governanceInitialSequence: bigint;
91
- validTimePeriodSeconds: bigint;
92
- singleUpdateFeeInWei: bigint;
93
- }
94
- export type InitializeCallTrace = TypedCallTrace<[
95
- string,
96
- bigint[],
97
- string[],
98
- bigint,
99
- string,
100
- bigint,
101
- bigint,
102
- bigint
103
- ], InitializeCallObject> & Trace;
104
- export interface IsValidDataSourceCallObject {
105
- dataSourceChainId: bigint;
106
- dataSourceEmitterAddress: string;
107
- }
108
- export type IsValidDataSourceCallTrace = TypedCallTrace<[
109
- bigint,
110
- string
111
- ], IsValidDataSourceCallObject> & Trace;
112
- export interface IsValidGovernanceDataSourceCallObject {
113
- governanceChainId: bigint;
114
- governanceEmitterAddress: string;
115
- }
116
- export type IsValidGovernanceDataSourceCallTrace = TypedCallTrace<[
117
- bigint,
118
- string
119
- ], IsValidGovernanceDataSourceCallObject> & Trace;
120
- export interface LastExecutedGovernanceSequenceCallObject {
121
- }
122
- export type LastExecutedGovernanceSequenceCallTrace = TypedCallTrace<[
123
- ], LastExecutedGovernanceSequenceCallObject> & Trace;
124
- export interface LatestPriceInfoPublishTimeCallObject {
125
- priceId: string;
126
- }
127
- export type LatestPriceInfoPublishTimeCallTrace = TypedCallTrace<[
128
- string
129
- ], LatestPriceInfoPublishTimeCallObject> & Trace;
130
- export interface OwnerCallObject {
131
- }
132
- export type OwnerCallTrace = TypedCallTrace<[], OwnerCallObject> & Trace;
133
- export interface ParseAuthorizeGovernanceDataSourceTransferPayloadCallObject {
134
- encodedPayload: string;
135
- }
136
- export type ParseAuthorizeGovernanceDataSourceTransferPayloadCallTrace = TypedCallTrace<[
137
- string
138
- ], ParseAuthorizeGovernanceDataSourceTransferPayloadCallObject> & Trace;
139
- export interface ParseGovernanceInstructionCallObject {
140
- encodedInstruction: string;
141
- }
142
- export type ParseGovernanceInstructionCallTrace = TypedCallTrace<[
143
- string
144
- ], ParseGovernanceInstructionCallObject> & Trace;
145
- export interface ParsePriceFeedUpdatesCallObject {
146
- updateData: string[];
147
- priceIds: string[];
148
- minPublishTime: bigint;
149
- maxPublishTime: bigint;
150
- }
151
- export type ParsePriceFeedUpdatesCallTrace = TypedCallTrace<[
152
- string[],
153
- string[],
154
- bigint,
155
- bigint
156
- ], ParsePriceFeedUpdatesCallObject> & Trace;
157
- export interface ParseRequestGovernanceDataSourceTransferPayloadCallObject {
158
- encodedPayload: string;
159
- }
160
- export type ParseRequestGovernanceDataSourceTransferPayloadCallTrace = TypedCallTrace<[
161
- string
162
- ], ParseRequestGovernanceDataSourceTransferPayloadCallObject> & Trace;
163
- export interface ParseSetDataSourcesPayloadCallObject {
164
- encodedPayload: string;
165
- }
166
- export type ParseSetDataSourcesPayloadCallTrace = TypedCallTrace<[
167
- string
168
- ], ParseSetDataSourcesPayloadCallObject> & Trace;
169
- export interface ParseSetFeePayloadCallObject {
170
- encodedPayload: string;
171
- }
172
- export type ParseSetFeePayloadCallTrace = TypedCallTrace<[
173
- string
174
- ], ParseSetFeePayloadCallObject> & Trace;
175
- export interface ParseSetValidPeriodPayloadCallObject {
176
- encodedPayload: string;
177
- }
178
- export type ParseSetValidPeriodPayloadCallTrace = TypedCallTrace<[
179
- string
180
- ], ParseSetValidPeriodPayloadCallObject> & Trace;
181
- export interface ParseUpgradeContractPayloadCallObject {
182
- encodedPayload: string;
183
- }
184
- export type ParseUpgradeContractPayloadCallTrace = TypedCallTrace<[
185
- string
186
- ], ParseUpgradeContractPayloadCallObject> & Trace;
187
- export interface PriceFeedExistsCallObject {
188
- id: string;
189
- }
190
- export type PriceFeedExistsCallTrace = TypedCallTrace<[
191
- string
192
- ], PriceFeedExistsCallObject> & Trace;
193
- export interface ProxiableUUIDCallObject {
194
- }
195
- export type ProxiableUUIDCallTrace = TypedCallTrace<[
196
- ], ProxiableUUIDCallObject> & Trace;
197
- export interface PythUpgradableMagicCallObject {
198
- }
199
- export type PythUpgradableMagicCallTrace = TypedCallTrace<[
200
- ], PythUpgradableMagicCallObject> & Trace;
201
- export interface QueryPriceFeedCallObject {
202
- id: string;
203
- }
204
- export type QueryPriceFeedCallTrace = TypedCallTrace<[
205
- string
206
- ], QueryPriceFeedCallObject> & Trace;
207
- export interface RenounceOwnershipCallObject {
208
- }
209
- export type RenounceOwnershipCallTrace = TypedCallTrace<[
210
- ], RenounceOwnershipCallObject> & Trace;
211
- export interface SingleUpdateFeeInWeiCallObject {
212
- }
213
- export type SingleUpdateFeeInWeiCallTrace = TypedCallTrace<[
214
- ], SingleUpdateFeeInWeiCallObject> & Trace;
215
- export interface TransferOwnershipCallObject {
216
- newOwner: string;
217
- }
218
- export type TransferOwnershipCallTrace = TypedCallTrace<[
219
- string
220
- ], TransferOwnershipCallObject> & Trace;
221
- export interface UpdatePriceFeedsCallObject {
222
- updateData: string[];
223
- }
224
- export type UpdatePriceFeedsCallTrace = TypedCallTrace<[
225
- string[]
226
- ], UpdatePriceFeedsCallObject> & Trace;
227
- export interface UpdatePriceFeedsIfNecessaryCallObject {
228
- updateData: string[];
229
- priceIds: string[];
230
- publishTimes: bigint[];
231
- }
232
- export type UpdatePriceFeedsIfNecessaryCallTrace = TypedCallTrace<[
233
- string[],
234
- string[],
235
- bigint[]
236
- ], UpdatePriceFeedsIfNecessaryCallObject> & Trace;
237
- export interface UpgradeToCallObject {
238
- newImplementation: string;
239
- }
240
- export type UpgradeToCallTrace = TypedCallTrace<[string], UpgradeToCallObject> & Trace;
241
- export interface UpgradeToAndCallCallObject {
242
- newImplementation: string;
243
- data: string;
244
- }
245
- export type UpgradeToAndCallCallTrace = TypedCallTrace<[
246
- string,
247
- string
248
- ], UpgradeToAndCallCallObject> & Trace;
249
- export interface ValidDataSourcesCallObject {
250
- }
251
- export type ValidDataSourcesCallTrace = TypedCallTrace<[
252
- ], ValidDataSourcesCallObject> & Trace;
253
- export interface ValidTimePeriodSecondsCallObject {
254
- }
255
- export type ValidTimePeriodSecondsCallTrace = TypedCallTrace<[
256
- ], ValidTimePeriodSecondsCallObject> & Trace;
257
- export interface VersionCallObject {
258
- }
259
- export type VersionCallTrace = TypedCallTrace<[], VersionCallObject> & Trace;
260
- export interface WormholeCallObject {
261
- }
262
- export type WormholeCallTrace = TypedCallTrace<[], WormholeCallObject> & Trace;
263
- export declare class PythContractView extends ContractView<Pyth> {
264
- constructor(contract: Pyth);
265
- chainId(overrides?: Overrides): Promise<bigint>;
266
- getEmaPrice(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
267
- getEmaPriceNoOlderThan(id: BytesLike, age: BigNumberish, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
268
- getEmaPriceUnsafe(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
269
- getPrice(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
270
- getPriceNoOlderThan(id: BytesLike, age: BigNumberish, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
271
- getPriceUnsafe(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
272
- getUpdateFee_bytes_array(updateData: BytesLike[], overrides?: Overrides): Promise<bigint>;
273
- getUpdateFee_uint256(updateDataSize: BigNumberish, overrides?: Overrides): Promise<bigint>;
274
- getValidTimePeriod(overrides?: Overrides): Promise<bigint>;
275
- governanceDataSource(overrides?: Overrides): Promise<PythInternalStructs.DataSourceStructOutput>;
276
- governanceDataSourceIndex(overrides?: Overrides): Promise<bigint>;
277
- hashDataSource(ds: PythInternalStructs.DataSourceStruct, overrides?: Overrides): Promise<string>;
278
- isValidDataSource(dataSourceChainId: BigNumberish, dataSourceEmitterAddress: BytesLike, overrides?: Overrides): Promise<boolean>;
279
- isValidGovernanceDataSource(governanceChainId: BigNumberish, governanceEmitterAddress: BytesLike, overrides?: Overrides): Promise<boolean>;
280
- lastExecutedGovernanceSequence(overrides?: Overrides): Promise<bigint>;
281
- latestPriceInfoPublishTime(priceId: BytesLike, overrides?: Overrides): Promise<bigint>;
282
- owner(overrides?: Overrides): Promise<string>;
283
- parseAuthorizeGovernanceDataSourceTransferPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.AuthorizeGovernanceDataSourceTransferPayloadStructOutput>;
284
- parseGovernanceInstruction(encodedInstruction: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.GovernanceInstructionStructOutput>;
285
- parseRequestGovernanceDataSourceTransferPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.RequestGovernanceDataSourceTransferPayloadStructOutput>;
286
- parseSetDataSourcesPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.SetDataSourcesPayloadStructOutput>;
287
- parseSetFeePayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.SetFeePayloadStructOutput>;
288
- parseSetValidPeriodPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.SetValidPeriodPayloadStructOutput>;
289
- parseUpgradeContractPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.UpgradeContractPayloadStructOutput>;
290
- priceFeedExists(id: BytesLike, overrides?: Overrides): Promise<boolean>;
291
- proxiableUUID(overrides?: Overrides): Promise<string>;
292
- pythUpgradableMagic(overrides?: Overrides): Promise<bigint>;
293
- queryPriceFeed(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceFeedStructOutput>;
294
- singleUpdateFeeInWei(overrides?: Overrides): Promise<bigint>;
295
- validDataSources(overrides?: Overrides): Promise<PythInternalStructs.DataSourceStructOutput[]>;
296
- validTimePeriodSeconds(overrides?: Overrides): Promise<bigint>;
297
- version(overrides?: Overrides): Promise<string>;
298
- wormhole(overrides?: Overrides): Promise<string>;
299
- }
300
- export declare class PythBoundContractView extends BoundContractView<Pyth, PythContractView> {
301
- chainId(overrides?: Overrides): Promise<bigint>;
302
- getEmaPrice(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
303
- getEmaPriceNoOlderThan(id: BytesLike, age: BigNumberish, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
304
- getEmaPriceUnsafe(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
305
- getPrice(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
306
- getPriceNoOlderThan(id: BytesLike, age: BigNumberish, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
307
- getPriceUnsafe(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceStructOutput>;
308
- getUpdateFee_bytes_array(updateData: BytesLike[], overrides?: Overrides): Promise<bigint>;
309
- getUpdateFee_uint256(updateDataSize: BigNumberish, overrides?: Overrides): Promise<bigint>;
310
- getValidTimePeriod(overrides?: Overrides): Promise<bigint>;
311
- governanceDataSource(overrides?: Overrides): Promise<PythInternalStructs.DataSourceStructOutput>;
312
- governanceDataSourceIndex(overrides?: Overrides): Promise<bigint>;
313
- hashDataSource(ds: PythInternalStructs.DataSourceStruct, overrides?: Overrides): Promise<string>;
314
- isValidDataSource(dataSourceChainId: BigNumberish, dataSourceEmitterAddress: BytesLike, overrides?: Overrides): Promise<boolean>;
315
- isValidGovernanceDataSource(governanceChainId: BigNumberish, governanceEmitterAddress: BytesLike, overrides?: Overrides): Promise<boolean>;
316
- lastExecutedGovernanceSequence(overrides?: Overrides): Promise<bigint>;
317
- latestPriceInfoPublishTime(priceId: BytesLike, overrides?: Overrides): Promise<bigint>;
318
- owner(overrides?: Overrides): Promise<string>;
319
- parseAuthorizeGovernanceDataSourceTransferPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.AuthorizeGovernanceDataSourceTransferPayloadStructOutput>;
320
- parseGovernanceInstruction(encodedInstruction: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.GovernanceInstructionStructOutput>;
321
- parseRequestGovernanceDataSourceTransferPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.RequestGovernanceDataSourceTransferPayloadStructOutput>;
322
- parseSetDataSourcesPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.SetDataSourcesPayloadStructOutput>;
323
- parseSetFeePayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.SetFeePayloadStructOutput>;
324
- parseSetValidPeriodPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.SetValidPeriodPayloadStructOutput>;
325
- parseUpgradeContractPayload(encodedPayload: BytesLike, overrides?: Overrides): Promise<PythGovernanceInstructions.UpgradeContractPayloadStructOutput>;
326
- priceFeedExists(id: BytesLike, overrides?: Overrides): Promise<boolean>;
327
- proxiableUUID(overrides?: Overrides): Promise<string>;
328
- pythUpgradableMagic(overrides?: Overrides): Promise<bigint>;
329
- queryPriceFeed(id: BytesLike, overrides?: Overrides): Promise<PythStructs.PriceFeedStructOutput>;
330
- singleUpdateFeeInWei(overrides?: Overrides): Promise<bigint>;
331
- validDataSources(overrides?: Overrides): Promise<PythInternalStructs.DataSourceStructOutput[]>;
332
- validTimePeriodSeconds(overrides?: Overrides): Promise<bigint>;
333
- version(overrides?: Overrides): Promise<string>;
334
- wormhole(overrides?: Overrides): Promise<string>;
335
- }
336
- export type PythContext = ContractContext<Pyth, PythBoundContractView>;
337
- export declare class PythProcessor extends BaseProcessor<Pyth, PythBoundContractView> {
338
- onEventAdminChanged(handler: (event: AdminChangedEvent, ctx: PythContext) => void, filter?: AdminChangedEventFilter | AdminChangedEventFilter[], fetchConfig?: EthFetchConfig): this;
339
- onEventBatchPriceFeedUpdate(handler: (event: BatchPriceFeedUpdateEvent, ctx: PythContext) => void, filter?: BatchPriceFeedUpdateEventFilter | BatchPriceFeedUpdateEventFilter[], fetchConfig?: EthFetchConfig): this;
340
- onEventBeaconUpgraded(handler: (event: BeaconUpgradedEvent, ctx: PythContext) => void, filter?: BeaconUpgradedEventFilter | BeaconUpgradedEventFilter[], fetchConfig?: EthFetchConfig): this;
341
- onEventContractUpgraded(handler: (event: ContractUpgradedEvent, ctx: PythContext) => void, filter?: ContractUpgradedEventFilter | ContractUpgradedEventFilter[], fetchConfig?: EthFetchConfig): this;
342
- onEventDataSourcesSet(handler: (event: DataSourcesSetEvent, ctx: PythContext) => void, filter?: DataSourcesSetEventFilter | DataSourcesSetEventFilter[], fetchConfig?: EthFetchConfig): this;
343
- onEventFeeSet(handler: (event: FeeSetEvent, ctx: PythContext) => void, filter?: FeeSetEventFilter | FeeSetEventFilter[], fetchConfig?: EthFetchConfig): this;
344
- onEventGovernanceDataSourceSet(handler: (event: GovernanceDataSourceSetEvent, ctx: PythContext) => void, filter?: GovernanceDataSourceSetEventFilter | GovernanceDataSourceSetEventFilter[], fetchConfig?: EthFetchConfig): this;
345
- onEventOwnershipTransferred(handler: (event: OwnershipTransferredEvent, ctx: PythContext) => void, filter?: OwnershipTransferredEventFilter | OwnershipTransferredEventFilter[], fetchConfig?: EthFetchConfig): this;
346
- onEventPriceFeedUpdate(handler: (event: PriceFeedUpdateEvent, ctx: PythContext) => void, filter?: PriceFeedUpdateEventFilter | PriceFeedUpdateEventFilter[], fetchConfig?: EthFetchConfig): this;
347
- onEventUpgraded(handler: (event: UpgradedEvent, ctx: PythContext) => void, filter?: UpgradedEventFilter | UpgradedEventFilter[], fetchConfig?: EthFetchConfig): this;
348
- onEventValidPeriodSet(handler: (event: ValidPeriodSetEvent, ctx: PythContext) => void, filter?: ValidPeriodSetEventFilter | ValidPeriodSetEventFilter[], fetchConfig?: EthFetchConfig): this;
349
- onCallChainId(handler: (call: ChainIdCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
350
- onCallExecuteGovernanceInstruction(handler: (call: ExecuteGovernanceInstructionCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
351
- onCallGetEmaPrice(handler: (call: GetEmaPriceCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
352
- onCallGetEmaPriceNoOlderThan(handler: (call: GetEmaPriceNoOlderThanCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
353
- onCallGetEmaPriceUnsafe(handler: (call: GetEmaPriceUnsafeCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
354
- onCallGetPrice(handler: (call: GetPriceCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
355
- onCallGetPriceNoOlderThan(handler: (call: GetPriceNoOlderThanCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
356
- onCallGetPriceUnsafe(handler: (call: GetPriceUnsafeCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
357
- onCallGetUpdateFee_bytes_array(handler: (call: GetUpdateFee_bytes_arrayCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
358
- onCallGetUpdateFee_uint256(handler: (call: GetUpdateFee_uint256CallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
359
- onCallGetValidTimePeriod(handler: (call: GetValidTimePeriodCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
360
- onCallGovernanceDataSource(handler: (call: GovernanceDataSourceCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
361
- onCallGovernanceDataSourceIndex(handler: (call: GovernanceDataSourceIndexCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
362
- onCallHashDataSource(handler: (call: HashDataSourceCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
363
- onCallInitialize(handler: (call: InitializeCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
364
- onCallIsValidDataSource(handler: (call: IsValidDataSourceCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
365
- onCallIsValidGovernanceDataSource(handler: (call: IsValidGovernanceDataSourceCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
366
- onCallLastExecutedGovernanceSequence(handler: (call: LastExecutedGovernanceSequenceCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
367
- onCallLatestPriceInfoPublishTime(handler: (call: LatestPriceInfoPublishTimeCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
368
- onCallOwner(handler: (call: OwnerCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
369
- onCallParseAuthorizeGovernanceDataSourceTransferPayload(handler: (call: ParseAuthorizeGovernanceDataSourceTransferPayloadCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
370
- onCallParseGovernanceInstruction(handler: (call: ParseGovernanceInstructionCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
371
- onCallParsePriceFeedUpdates(handler: (call: ParsePriceFeedUpdatesCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
372
- onCallParseRequestGovernanceDataSourceTransferPayload(handler: (call: ParseRequestGovernanceDataSourceTransferPayloadCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
373
- onCallParseSetDataSourcesPayload(handler: (call: ParseSetDataSourcesPayloadCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
374
- onCallParseSetFeePayload(handler: (call: ParseSetFeePayloadCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
375
- onCallParseSetValidPeriodPayload(handler: (call: ParseSetValidPeriodPayloadCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
376
- onCallParseUpgradeContractPayload(handler: (call: ParseUpgradeContractPayloadCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
377
- onCallPriceFeedExists(handler: (call: PriceFeedExistsCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
378
- onCallProxiableUUID(handler: (call: ProxiableUUIDCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
379
- onCallPythUpgradableMagic(handler: (call: PythUpgradableMagicCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
380
- onCallQueryPriceFeed(handler: (call: QueryPriceFeedCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
381
- onCallRenounceOwnership(handler: (call: RenounceOwnershipCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
382
- onCallSingleUpdateFeeInWei(handler: (call: SingleUpdateFeeInWeiCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
383
- onCallTransferOwnership(handler: (call: TransferOwnershipCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
384
- onCallUpdatePriceFeeds(handler: (call: UpdatePriceFeedsCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
385
- onCallUpdatePriceFeedsIfNecessary(handler: (call: UpdatePriceFeedsIfNecessaryCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
386
- onCallUpgradeTo(handler: (call: UpgradeToCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
387
- onCallUpgradeToAndCall(handler: (call: UpgradeToAndCallCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
388
- onCallValidDataSources(handler: (call: ValidDataSourcesCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
389
- onCallValidTimePeriodSeconds(handler: (call: ValidTimePeriodSecondsCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
390
- onCallVersion(handler: (call: VersionCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
391
- onCallWormhole(handler: (call: WormholeCallTrace, ctx: PythContext) => void, fetchConfig?: EthFetchConfig): this;
392
- static filters: {
393
- AdminChanged(previousAdmin?: null, newAdmin?: null): import("ethers").DeferredTopicFilter;
394
- BatchPriceFeedUpdate(chainId?: null, sequenceNumber?: null): import("ethers").DeferredTopicFilter;
395
- BeaconUpgraded(beacon?: string | null): import("ethers").DeferredTopicFilter;
396
- ContractUpgraded(oldImplementation?: null, newImplementation?: null): import("ethers").DeferredTopicFilter;
397
- DataSourcesSet(oldDataSources?: null, newDataSources?: null): import("ethers").DeferredTopicFilter;
398
- FeeSet(oldFee?: null, newFee?: null): import("ethers").DeferredTopicFilter;
399
- GovernanceDataSourceSet(oldDataSource?: null, newDataSource?: null, initialSequence?: null): import("ethers").DeferredTopicFilter;
400
- OwnershipTransferred(previousOwner?: string | null, newOwner?: string | null): import("ethers").DeferredTopicFilter;
401
- PriceFeedUpdate(id?: BytesLike | null, publishTime?: null, price?: null, conf?: null): import("ethers").DeferredTopicFilter;
402
- Upgraded(implementation?: string | null): import("ethers").DeferredTopicFilter;
403
- ValidPeriodSet(oldValidPeriod?: null, newValidPeriod?: null): import("ethers").DeferredTopicFilter;
404
- };
405
- protected CreateBoundContractView(): PythBoundContractView;
406
- static bind(options: BindOptions): PythProcessor;
407
- }
408
- export declare class PythProcessorTemplate extends BaseProcessorTemplate<Pyth, PythBoundContractView> {
409
- bindInternal(options: BindOptions): PythProcessor;
410
- onEventAdminChanged(handler: (event: AdminChangedEvent, ctx: PythContext) => void, filter?: AdminChangedEventFilter | AdminChangedEventFilter[], fetchConfig?: EthFetchConfig): this;
411
- onEventBatchPriceFeedUpdate(handler: (event: BatchPriceFeedUpdateEvent, ctx: PythContext) => void, filter?: BatchPriceFeedUpdateEventFilter | BatchPriceFeedUpdateEventFilter[], fetchConfig?: EthFetchConfig): this;
412
- onEventBeaconUpgraded(handler: (event: BeaconUpgradedEvent, ctx: PythContext) => void, filter?: BeaconUpgradedEventFilter | BeaconUpgradedEventFilter[], fetchConfig?: EthFetchConfig): this;
413
- onEventContractUpgraded(handler: (event: ContractUpgradedEvent, ctx: PythContext) => void, filter?: ContractUpgradedEventFilter | ContractUpgradedEventFilter[], fetchConfig?: EthFetchConfig): this;
414
- onEventDataSourcesSet(handler: (event: DataSourcesSetEvent, ctx: PythContext) => void, filter?: DataSourcesSetEventFilter | DataSourcesSetEventFilter[], fetchConfig?: EthFetchConfig): this;
415
- onEventFeeSet(handler: (event: FeeSetEvent, ctx: PythContext) => void, filter?: FeeSetEventFilter | FeeSetEventFilter[], fetchConfig?: EthFetchConfig): this;
416
- onEventGovernanceDataSourceSet(handler: (event: GovernanceDataSourceSetEvent, ctx: PythContext) => void, filter?: GovernanceDataSourceSetEventFilter | GovernanceDataSourceSetEventFilter[], fetchConfig?: EthFetchConfig): this;
417
- onEventOwnershipTransferred(handler: (event: OwnershipTransferredEvent, ctx: PythContext) => void, filter?: OwnershipTransferredEventFilter | OwnershipTransferredEventFilter[], fetchConfig?: EthFetchConfig): this;
418
- onEventPriceFeedUpdate(handler: (event: PriceFeedUpdateEvent, ctx: PythContext) => void, filter?: PriceFeedUpdateEventFilter | PriceFeedUpdateEventFilter[], fetchConfig?: EthFetchConfig): this;
419
- onEventUpgraded(handler: (event: UpgradedEvent, ctx: PythContext) => void, filter?: UpgradedEventFilter | UpgradedEventFilter[], fetchConfig?: EthFetchConfig): this;
420
- onEventValidPeriodSet(handler: (event: ValidPeriodSetEvent, ctx: PythContext) => void, filter?: ValidPeriodSetEventFilter | ValidPeriodSetEventFilter[], fetchConfig?: EthFetchConfig): this;
421
- }
422
- export declare function getPythContract(address: string, network?: Networkish): PythContractView;