@sentio/sdk 2.3.5 → 2.4.0-rc.1
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.
- package/lib/aptos/api.js +5 -1
- package/lib/aptos/api.js.map +1 -1
- package/lib/aptos/tests/aptos.test.js.map +1 -1
- package/lib/eth/account-processor.d.ts +2 -2
- package/lib/eth/account-processor.js +2 -2
- package/lib/eth/account-processor.js.map +1 -1
- package/lib/eth/builtin/eacaggregatorproxy.d.ts +2 -2
- package/lib/eth/builtin/eacaggregatorproxy.js +2 -2
- package/lib/eth/builtin/eacaggregatorproxy.js.map +1 -1
- package/lib/eth/builtin/erc1155.d.ts +2 -2
- package/lib/eth/builtin/erc1155.js +2 -2
- package/lib/eth/builtin/erc1155.js.map +1 -1
- package/lib/eth/builtin/erc20.d.ts +2 -2
- package/lib/eth/builtin/erc20.js +2 -2
- package/lib/eth/builtin/erc20.js.map +1 -1
- package/lib/eth/builtin/erc20bytes.d.ts +2 -2
- package/lib/eth/builtin/erc20bytes.js +2 -2
- package/lib/eth/builtin/erc20bytes.js.map +1 -1
- package/lib/eth/builtin/erc721.d.ts +2 -2
- package/lib/eth/builtin/erc721.js +2 -2
- package/lib/eth/builtin/erc721.js.map +1 -1
- package/lib/eth/builtin/internal/{eacaggregatorproxy_processor.d.ts → eacaggregatorproxy-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{eacaggregatorproxy_processor.js → eacaggregatorproxy-processor.js} +1 -1
- package/lib/eth/builtin/internal/{eacaggregatorproxy_processor.js.map → eacaggregatorproxy-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{eacaggregatorproxy_test-utils.d.ts → eacaggregatorproxy-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{eacaggregatorproxy_test-utils.js → eacaggregatorproxy-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{eacaggregatorproxy_test-utils.js.map → eacaggregatorproxy-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc1155_processor.d.ts → erc1155-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc1155_processor.js → erc1155-processor.js} +1 -1
- package/lib/eth/builtin/internal/{erc1155_processor.js.map → erc1155-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc1155_test-utils.d.ts → erc1155-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc1155_test-utils.js → erc1155-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{erc1155_test-utils.js.map → erc1155-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc20_processor.d.ts → erc20-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc20_processor.js → erc20-processor.js} +1 -1
- package/lib/eth/builtin/internal/{erc20_processor.js.map → erc20-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc20_test-utils.d.ts → erc20-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc20_test-utils.js → erc20-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{erc20_test-utils.js.map → erc20-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc20bytes_processor.d.ts → erc20bytes-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc20bytes_processor.js → erc20bytes-processor.js} +1 -1
- package/lib/eth/builtin/internal/{erc20bytes_processor.js.map → erc20bytes-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc20bytes_test-utils.d.ts → erc20bytes-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc20bytes_test-utils.js → erc20bytes-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{erc20bytes_test-utils.js.map → erc20bytes-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc721_processor.d.ts → erc721-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc721_processor.js → erc721-processor.js} +1 -1
- package/lib/eth/builtin/internal/{erc721_processor.js.map → erc721-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc721_test-utils.d.ts → erc721-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc721_test-utils.js → erc721-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{erc721_test-utils.js.map → erc721-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{weth9_processor.d.ts → weth9-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{weth9_processor.js → weth9-processor.js} +1 -1
- package/lib/eth/builtin/internal/{weth9_processor.js.map → weth9-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{weth9_test-utils.d.ts → weth9-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{weth9_test-utils.js → weth9-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{weth9_test-utils.js.map → weth9-test-utils.js.map} +1 -1
- package/lib/eth/builtin/weth9.d.ts +2 -2
- package/lib/eth/builtin/weth9.js +2 -2
- package/lib/eth/builtin/weth9.js.map +1 -1
- package/lib/eth/codegen/ethers-sentio.js +2 -2
- package/lib/eth/codegen/ethers-sentio.js.map +1 -1
- package/lib/eth/codegen/file.js +3 -3
- package/lib/eth/codegen/file.js.map +1 -1
- package/lib/eth/generic-processor.test.js.map +1 -1
- package/lib/eth/tests/account.test.d.ts +1 -0
- package/lib/eth/tests/account.test.js.map +1 -0
- package/lib/eth/tests/codegen.test.d.ts +1 -0
- package/lib/eth/tests/codegen.test.js.map +1 -0
- package/lib/eth/tests/erc20-template.test.d.ts +1 -0
- package/lib/eth/tests/erc20-template.test.js.map +1 -0
- package/lib/eth/tests/erc20.d.ts +1 -0
- package/lib/eth/tests/erc20.js +52 -0
- package/lib/eth/tests/erc20.js.map +1 -0
- package/lib/eth/tests/erc20.test.d.ts +1 -0
- package/lib/eth/tests/erc20.test.js.map +1 -0
- package/lib/eth/tests/error-capture.test.d.ts +1 -0
- package/lib/eth/tests/error-capture.test.js.map +1 -0
- package/lib/eth/tests/logger.test.d.ts +1 -0
- package/lib/eth/tests/logger.test.js.map +1 -0
- package/lib/eth/tests/types/anyswaprouter.d.ts +3 -0
- package/lib/eth/tests/types/anyswaprouter.js +7 -0
- package/lib/eth/tests/types/anyswaprouter.js.map +1 -0
- package/lib/eth/tests/types/commitmentpool.d.ts +3 -0
- package/lib/eth/tests/types/commitmentpool.js +7 -0
- package/lib/eth/tests/types/commitmentpool.js.map +1 -0
- package/lib/eth/tests/types/index.d.ts +12 -0
- package/lib/eth/tests/types/index.js +16 -0
- package/lib/eth/tests/types/index.js.map +1 -0
- package/lib/eth/tests/types/internal/AnyswapRouter.d.ts +122 -0
- package/lib/eth/tests/types/internal/AnyswapRouter.js +2 -0
- package/lib/eth/tests/types/internal/AnyswapRouter.js.map +1 -0
- package/lib/eth/tests/types/internal/CommitmentPool.d.ts +176 -0
- package/lib/eth/tests/types/internal/CommitmentPool.js +2 -0
- package/lib/eth/tests/types/internal/CommitmentPool.js.map +1 -0
- package/lib/eth/tests/types/internal/MembershipStakerV3.d.ts +81 -0
- package/lib/eth/tests/types/internal/MembershipStakerV3.js +2 -0
- package/lib/eth/tests/types/internal/MembershipStakerV3.js.map +1 -0
- package/lib/eth/tests/types/internal/Pyth.d.ts +204 -0
- package/lib/eth/tests/types/internal/Pyth.js +2 -0
- package/lib/eth/tests/types/internal/Pyth.js.map +1 -0
- package/lib/eth/tests/types/internal/Seaport.d.ts +350 -0
- package/lib/eth/tests/types/internal/Seaport.js +2 -0
- package/lib/eth/tests/types/internal/Seaport.js.map +1 -0
- package/lib/eth/tests/types/internal/TokenExchange.d.ts +128 -0
- package/lib/eth/tests/types/internal/TokenExchange.js +2 -0
- package/lib/eth/tests/types/internal/TokenExchange.js.map +1 -0
- package/lib/eth/tests/types/internal/anyswaprouter-processor.d.ts +463 -0
- package/lib/eth/tests/types/internal/anyswaprouter-processor.js +425 -0
- package/lib/eth/tests/types/internal/anyswaprouter-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/anyswaprouter-test-utils.d.ts +9 -0
- package/lib/eth/tests/types/internal/anyswaprouter-test-utils.js +124 -0
- package/lib/eth/tests/types/internal/anyswaprouter-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/commitmentpool-processor.d.ts +348 -0
- package/lib/eth/tests/types/internal/commitmentpool-processor.js +607 -0
- package/lib/eth/tests/types/internal/commitmentpool-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/commitmentpool-test-utils.d.ts +9 -0
- package/lib/eth/tests/types/internal/commitmentpool-test-utils.js +87 -0
- package/lib/eth/tests/types/internal/commitmentpool-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/common.d.ts +10 -0
- package/lib/eth/tests/types/internal/common.js +8 -0
- package/lib/eth/tests/types/internal/common.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.d.ts +988 -0
- package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.js +1269 -0
- package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.d.ts +792 -0
- package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.js +1040 -0
- package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.d.ts +549 -0
- package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.js +721 -0
- package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/Pyth__factory.d.ts +1130 -0
- package/lib/eth/tests/types/internal/factories/Pyth__factory.js +1486 -0
- package/lib/eth/tests/types/internal/factories/Pyth__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/Seaport__factory.d.ts +2018 -0
- package/lib/eth/tests/types/internal/factories/Seaport__factory.js +2610 -0
- package/lib/eth/tests/types/internal/factories/Seaport__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/TokenExchange__factory.d.ts +651 -0
- package/lib/eth/tests/types/internal/factories/TokenExchange__factory.js +853 -0
- package/lib/eth/tests/types/internal/factories/TokenExchange__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/index.d.ts +6 -0
- package/lib/eth/tests/types/internal/factories/index.js +10 -0
- package/lib/eth/tests/types/internal/factories/index.js.map +1 -0
- package/lib/eth/tests/types/internal/index.d.ts +13 -0
- package/lib/eth/tests/types/internal/index.js +8 -0
- package/lib/eth/tests/types/internal/index.js.map +1 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-processor.d.ts +287 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-processor.js +596 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.d.ts +11 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.js +109 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/pyth-processor.d.ts +422 -0
- package/lib/eth/tests/types/internal/pyth-processor.js +890 -0
- package/lib/eth/tests/types/internal/pyth-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/pyth-test-utils.d.ts +13 -0
- package/lib/eth/tests/types/internal/pyth-test-utils.js +131 -0
- package/lib/eth/tests/types/internal/pyth-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/seaport-processor.d.ts +211 -0
- package/lib/eth/tests/types/internal/seaport-processor.js +237 -0
- package/lib/eth/tests/types/internal/seaport-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/seaport-test-utils.d.ts +6 -0
- package/lib/eth/tests/types/internal/seaport-test-utils.js +61 -0
- package/lib/eth/tests/types/internal/seaport-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/tokenexchange-processor.d.ts +334 -0
- package/lib/eth/tests/types/internal/tokenexchange-processor.js +667 -0
- package/lib/eth/tests/types/internal/tokenexchange-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/tokenexchange-test-utils.d.ts +13 -0
- package/lib/eth/tests/types/internal/tokenexchange-test-utils.js +149 -0
- package/lib/eth/tests/types/internal/tokenexchange-test-utils.js.map +1 -0
- package/lib/eth/tests/types/membershipstakerv3.d.ts +3 -0
- package/lib/eth/tests/types/membershipstakerv3.js +7 -0
- package/lib/eth/tests/types/membershipstakerv3.js.map +1 -0
- package/lib/eth/tests/types/pyth.d.ts +3 -0
- package/lib/eth/tests/types/pyth.js +7 -0
- package/lib/eth/tests/types/pyth.js.map +1 -0
- package/lib/eth/tests/types/seaport.d.ts +3 -0
- package/lib/eth/tests/types/seaport.js +7 -0
- package/lib/eth/tests/types/seaport.js.map +1 -0
- package/lib/eth/tests/types/tokenexchange.d.ts +3 -0
- package/lib/eth/tests/types/tokenexchange.js +7 -0
- package/lib/eth/tests/types/tokenexchange.js.map +1 -0
- package/lib/solana/builtin/types.d.ts +8 -8
- package/lib/solana/tests/solana.test.js.map +1 -1
- package/lib/sui/sui-processor.js +2 -8
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/sui/tests/sui.test.js.map +1 -1
- package/lib/sui/utils.d.ts +2 -0
- package/lib/sui/utils.js +11 -0
- package/lib/sui/utils.js.map +1 -0
- package/lib/testing/aptos-facet.d.ts +12 -0
- package/lib/testing/aptos-facet.js +91 -0
- package/lib/testing/aptos-facet.js.map +1 -0
- package/lib/testing/eth-facet.d.ts +27 -0
- package/lib/testing/eth-facet.js +211 -0
- package/lib/testing/eth-facet.js.map +1 -0
- package/lib/testing/solana-facet.d.ts +7 -0
- package/lib/testing/solana-facet.js +22 -0
- package/lib/testing/solana-facet.js.map +1 -0
- package/lib/testing/sui-facet.d.ts +12 -0
- package/lib/testing/sui-facet.js +103 -0
- package/lib/testing/sui-facet.js.map +1 -0
- package/lib/testing/test-processor-server.d.ts +9 -23
- package/lib/testing/test-processor-server.js +13 -227
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/utils/dex-price.js +1 -1
- package/lib/utils/dex-price.js.map +1 -1
- package/lib/utils/price.js +5 -1
- package/lib/utils/price.js.map +1 -1
- package/lib/utils/token.js +1 -1
- package/lib/utils/token.js.map +1 -1
- package/package.json +5 -6
- package/src/aptos/api.ts +5 -1
- package/src/eth/account-processor.ts +2 -5
- package/src/eth/builtin/eacaggregatorproxy.ts +2 -2
- package/src/eth/builtin/erc1155.ts +2 -2
- package/src/eth/builtin/erc20.ts +2 -2
- package/src/eth/builtin/erc20bytes.ts +2 -2
- package/src/eth/builtin/erc721.ts +2 -2
- package/src/eth/builtin/internal/{eacaggregatorproxy_processor.ts → eacaggregatorproxy-processor.ts} +0 -0
- package/src/eth/builtin/internal/{eacaggregatorproxy_test-utils.ts → eacaggregatorproxy-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{erc1155_processor.ts → erc1155-processor.ts} +0 -0
- package/src/eth/builtin/internal/{erc1155_test-utils.ts → erc1155-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{erc20_processor.ts → erc20-processor.ts} +0 -0
- package/src/eth/builtin/internal/{erc20_test-utils.ts → erc20-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{erc20bytes_processor.ts → erc20bytes-processor.ts} +0 -0
- package/src/eth/builtin/internal/{erc20bytes_test-utils.ts → erc20bytes-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{erc721_processor.ts → erc721-processor.ts} +0 -0
- package/src/eth/builtin/internal/{erc721_test-utils.ts → erc721-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{weth9_processor.ts → weth9-processor.ts} +0 -0
- package/src/eth/builtin/internal/{weth9_test-utils.ts → weth9-test-utils.ts} +1 -1
- package/src/eth/builtin/weth9.ts +2 -2
- package/src/eth/codegen/ethers-sentio.ts +2 -2
- package/src/eth/codegen/file.ts +3 -3
- package/src/eth/tests/abis/eth/CommitmentPool.json +1034 -0
- package/src/eth/tests/abis/eth/MembershipStakerV3.json +706 -0
- package/src/eth/tests/abis/eth/Pyth.json +1471 -0
- package/src/eth/tests/abis/eth/Seaport.json +2595 -0
- package/src/eth/tests/abis/eth/TokenExchange.json +838 -0
- package/src/eth/tests/abis/eth/anyswapRouter.json +490 -0
- package/src/eth/tests/erc20.ts +63 -0
- package/src/eth/tests/types/anyswaprouter.ts +7 -0
- package/src/eth/tests/types/commitmentpool.ts +7 -0
- package/src/eth/tests/types/index.ts +33 -0
- package/src/eth/tests/types/internal/AnyswapRouter.ts +122 -0
- package/src/eth/tests/types/internal/CommitmentPool.ts +208 -0
- package/src/eth/tests/types/internal/MembershipStakerV3.ts +108 -0
- package/src/eth/tests/types/internal/Pyth.ts +246 -0
- package/src/eth/tests/types/internal/Seaport.ts +389 -0
- package/src/eth/tests/types/internal/TokenExchange.ts +142 -0
- package/src/eth/tests/types/internal/anyswaprouter-processor.ts +1396 -0
- package/src/eth/tests/types/internal/anyswaprouter-test-utils.ts +187 -0
- package/src/eth/tests/types/internal/commitmentpool-processor.ts +1575 -0
- package/src/eth/tests/types/internal/commitmentpool-test-utils.ts +150 -0
- package/src/eth/tests/types/internal/common.ts +23 -0
- package/src/eth/tests/types/internal/factories/AnyswapRouter__factory.ts +1278 -0
- package/src/eth/tests/types/internal/factories/CommitmentPool__factory.ts +1049 -0
- package/src/eth/tests/types/internal/factories/MembershipStakerV3__factory.ts +730 -0
- package/src/eth/tests/types/internal/factories/Pyth__factory.ts +1492 -0
- package/src/eth/tests/types/internal/factories/Seaport__factory.ts +2616 -0
- package/src/eth/tests/types/internal/factories/TokenExchange__factory.ts +862 -0
- package/src/eth/tests/types/internal/factories/index.ts +9 -0
- package/src/eth/tests/types/internal/index.ts +16 -0
- package/src/eth/tests/types/internal/membershipstakerv3-processor.ts +1399 -0
- package/src/eth/tests/types/internal/membershipstakerv3-test-utils.ts +188 -0
- package/src/eth/tests/types/internal/pyth-processor.ts +2043 -0
- package/src/eth/tests/types/internal/pyth-test-utils.ts +226 -0
- package/src/eth/tests/types/internal/seaport-processor.ts +678 -0
- package/src/eth/tests/types/internal/seaport-test-utils.ts +100 -0
- package/src/eth/tests/types/internal/tokenexchange-processor.ts +1570 -0
- package/src/eth/tests/types/internal/tokenexchange-test-utils.ts +244 -0
- package/src/eth/tests/types/membershipstakerv3.ts +7 -0
- package/src/eth/tests/types/pyth.ts +7 -0
- package/src/eth/tests/types/seaport.ts +7 -0
- package/src/eth/tests/types/tokenexchange.ts +7 -0
- package/src/sui/sui-processor.ts +2 -7
- package/src/sui/utils.ts +11 -0
- package/src/testing/aptos-facet.ts +111 -0
- package/src/testing/eth-facet.ts +233 -0
- package/src/testing/solana-facet.ts +25 -0
- package/src/testing/sui-facet.ts +119 -0
- package/src/testing/test-processor-server.ts +15 -252
- package/src/utils/dex-price.ts +1 -1
- package/src/utils/price.ts +5 -1
- package/src/utils/token.ts +1 -3
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BaseContract, BigNumberish, BytesLike, Interface } from "ethers";
|
|
5
|
+
import type { ContractRunner } from "ethers/providers";
|
|
6
|
+
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common.js";
|
|
7
|
+
|
|
8
|
+
export type SpentItemStruct = {
|
|
9
|
+
itemType: BigNumberish;
|
|
10
|
+
token: string;
|
|
11
|
+
identifier: BigNumberish;
|
|
12
|
+
amount: BigNumberish;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type SpentItemStructOutput = [bigint, string, bigint, bigint] & {
|
|
16
|
+
itemType: bigint;
|
|
17
|
+
token: string;
|
|
18
|
+
identifier: bigint;
|
|
19
|
+
amount: bigint;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type ReceivedItemStruct = {
|
|
23
|
+
itemType: BigNumberish;
|
|
24
|
+
token: string;
|
|
25
|
+
identifier: BigNumberish;
|
|
26
|
+
amount: BigNumberish;
|
|
27
|
+
recipient: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type ReceivedItemStructOutput = [
|
|
31
|
+
bigint,
|
|
32
|
+
string,
|
|
33
|
+
bigint,
|
|
34
|
+
bigint,
|
|
35
|
+
string
|
|
36
|
+
] & {
|
|
37
|
+
itemType: bigint;
|
|
38
|
+
token: string;
|
|
39
|
+
identifier: bigint;
|
|
40
|
+
amount: bigint;
|
|
41
|
+
recipient: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type OfferItemStruct = {
|
|
45
|
+
itemType: BigNumberish;
|
|
46
|
+
token: string;
|
|
47
|
+
identifierOrCriteria: BigNumberish;
|
|
48
|
+
startAmount: BigNumberish;
|
|
49
|
+
endAmount: BigNumberish;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type OfferItemStructOutput = [bigint, string, bigint, bigint, bigint] & {
|
|
53
|
+
itemType: bigint;
|
|
54
|
+
token: string;
|
|
55
|
+
identifierOrCriteria: bigint;
|
|
56
|
+
startAmount: bigint;
|
|
57
|
+
endAmount: bigint;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type ConsiderationItemStruct = {
|
|
61
|
+
itemType: BigNumberish;
|
|
62
|
+
token: string;
|
|
63
|
+
identifierOrCriteria: BigNumberish;
|
|
64
|
+
startAmount: BigNumberish;
|
|
65
|
+
endAmount: BigNumberish;
|
|
66
|
+
recipient: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export type ConsiderationItemStructOutput = [
|
|
70
|
+
bigint,
|
|
71
|
+
string,
|
|
72
|
+
bigint,
|
|
73
|
+
bigint,
|
|
74
|
+
bigint,
|
|
75
|
+
string
|
|
76
|
+
] & {
|
|
77
|
+
itemType: bigint;
|
|
78
|
+
token: string;
|
|
79
|
+
identifierOrCriteria: bigint;
|
|
80
|
+
startAmount: bigint;
|
|
81
|
+
endAmount: bigint;
|
|
82
|
+
recipient: string;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type OrderComponentsStruct = {
|
|
86
|
+
offerer: string;
|
|
87
|
+
zone: string;
|
|
88
|
+
offer: OfferItemStruct[];
|
|
89
|
+
consideration: ConsiderationItemStruct[];
|
|
90
|
+
orderType: BigNumberish;
|
|
91
|
+
startTime: BigNumberish;
|
|
92
|
+
endTime: BigNumberish;
|
|
93
|
+
zoneHash: BytesLike;
|
|
94
|
+
salt: BigNumberish;
|
|
95
|
+
conduitKey: BytesLike;
|
|
96
|
+
counter: BigNumberish;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type OrderComponentsStructOutput = [
|
|
100
|
+
string,
|
|
101
|
+
string,
|
|
102
|
+
OfferItemStructOutput[],
|
|
103
|
+
ConsiderationItemStructOutput[],
|
|
104
|
+
bigint,
|
|
105
|
+
bigint,
|
|
106
|
+
bigint,
|
|
107
|
+
string,
|
|
108
|
+
bigint,
|
|
109
|
+
string,
|
|
110
|
+
bigint
|
|
111
|
+
] & {
|
|
112
|
+
offerer: string;
|
|
113
|
+
zone: string;
|
|
114
|
+
offer: OfferItemStructOutput[];
|
|
115
|
+
consideration: ConsiderationItemStructOutput[];
|
|
116
|
+
orderType: bigint;
|
|
117
|
+
startTime: bigint;
|
|
118
|
+
endTime: bigint;
|
|
119
|
+
zoneHash: string;
|
|
120
|
+
salt: bigint;
|
|
121
|
+
conduitKey: string;
|
|
122
|
+
counter: bigint;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export type OrderParametersStruct = {
|
|
126
|
+
offerer: string;
|
|
127
|
+
zone: string;
|
|
128
|
+
offer: OfferItemStruct[];
|
|
129
|
+
consideration: ConsiderationItemStruct[];
|
|
130
|
+
orderType: BigNumberish;
|
|
131
|
+
startTime: BigNumberish;
|
|
132
|
+
endTime: BigNumberish;
|
|
133
|
+
zoneHash: BytesLike;
|
|
134
|
+
salt: BigNumberish;
|
|
135
|
+
conduitKey: BytesLike;
|
|
136
|
+
totalOriginalConsiderationItems: BigNumberish;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export type OrderParametersStructOutput = [
|
|
140
|
+
string,
|
|
141
|
+
string,
|
|
142
|
+
OfferItemStructOutput[],
|
|
143
|
+
ConsiderationItemStructOutput[],
|
|
144
|
+
bigint,
|
|
145
|
+
bigint,
|
|
146
|
+
bigint,
|
|
147
|
+
string,
|
|
148
|
+
bigint,
|
|
149
|
+
string,
|
|
150
|
+
bigint
|
|
151
|
+
] & {
|
|
152
|
+
offerer: string;
|
|
153
|
+
zone: string;
|
|
154
|
+
offer: OfferItemStructOutput[];
|
|
155
|
+
consideration: ConsiderationItemStructOutput[];
|
|
156
|
+
orderType: bigint;
|
|
157
|
+
startTime: bigint;
|
|
158
|
+
endTime: bigint;
|
|
159
|
+
zoneHash: string;
|
|
160
|
+
salt: bigint;
|
|
161
|
+
conduitKey: string;
|
|
162
|
+
totalOriginalConsiderationItems: bigint;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export type AdvancedOrderStruct = {
|
|
166
|
+
parameters: OrderParametersStruct;
|
|
167
|
+
numerator: BigNumberish;
|
|
168
|
+
denominator: BigNumberish;
|
|
169
|
+
signature: BytesLike;
|
|
170
|
+
extraData: BytesLike;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export type AdvancedOrderStructOutput = [
|
|
174
|
+
OrderParametersStructOutput,
|
|
175
|
+
bigint,
|
|
176
|
+
bigint,
|
|
177
|
+
string,
|
|
178
|
+
string
|
|
179
|
+
] & {
|
|
180
|
+
parameters: OrderParametersStructOutput;
|
|
181
|
+
numerator: bigint;
|
|
182
|
+
denominator: bigint;
|
|
183
|
+
signature: string;
|
|
184
|
+
extraData: string;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
export type CriteriaResolverStruct = {
|
|
188
|
+
orderIndex: BigNumberish;
|
|
189
|
+
side: BigNumberish;
|
|
190
|
+
index: BigNumberish;
|
|
191
|
+
identifier: BigNumberish;
|
|
192
|
+
criteriaProof: BytesLike[];
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export type CriteriaResolverStructOutput = [
|
|
196
|
+
bigint,
|
|
197
|
+
bigint,
|
|
198
|
+
bigint,
|
|
199
|
+
bigint,
|
|
200
|
+
string[]
|
|
201
|
+
] & {
|
|
202
|
+
orderIndex: bigint;
|
|
203
|
+
side: bigint;
|
|
204
|
+
index: bigint;
|
|
205
|
+
identifier: bigint;
|
|
206
|
+
criteriaProof: string[];
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export type FulfillmentComponentStruct = {
|
|
210
|
+
orderIndex: BigNumberish;
|
|
211
|
+
itemIndex: BigNumberish;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export type FulfillmentComponentStructOutput = [bigint, bigint] & {
|
|
215
|
+
orderIndex: bigint;
|
|
216
|
+
itemIndex: bigint;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export type ExecutionStruct = {
|
|
220
|
+
item: ReceivedItemStruct;
|
|
221
|
+
offerer: string;
|
|
222
|
+
conduitKey: BytesLike;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export type ExecutionStructOutput = [
|
|
226
|
+
ReceivedItemStructOutput,
|
|
227
|
+
string,
|
|
228
|
+
string
|
|
229
|
+
] & { item: ReceivedItemStructOutput; offerer: string; conduitKey: string };
|
|
230
|
+
|
|
231
|
+
export type OrderStruct = {
|
|
232
|
+
parameters: OrderParametersStruct;
|
|
233
|
+
signature: BytesLike;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export type OrderStructOutput = [OrderParametersStructOutput, string] & {
|
|
237
|
+
parameters: OrderParametersStructOutput;
|
|
238
|
+
signature: string;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export type AdditionalRecipientStruct = {
|
|
242
|
+
amount: BigNumberish;
|
|
243
|
+
recipient: string;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
export type AdditionalRecipientStructOutput = [bigint, string] & {
|
|
247
|
+
amount: bigint;
|
|
248
|
+
recipient: string;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export type BasicOrderParametersStruct = {
|
|
252
|
+
considerationToken: string;
|
|
253
|
+
considerationIdentifier: BigNumberish;
|
|
254
|
+
considerationAmount: BigNumberish;
|
|
255
|
+
offerer: string;
|
|
256
|
+
zone: string;
|
|
257
|
+
offerToken: string;
|
|
258
|
+
offerIdentifier: BigNumberish;
|
|
259
|
+
offerAmount: BigNumberish;
|
|
260
|
+
basicOrderType: BigNumberish;
|
|
261
|
+
startTime: BigNumberish;
|
|
262
|
+
endTime: BigNumberish;
|
|
263
|
+
zoneHash: BytesLike;
|
|
264
|
+
salt: BigNumberish;
|
|
265
|
+
offererConduitKey: BytesLike;
|
|
266
|
+
fulfillerConduitKey: BytesLike;
|
|
267
|
+
totalOriginalAdditionalRecipients: BigNumberish;
|
|
268
|
+
additionalRecipients: AdditionalRecipientStruct[];
|
|
269
|
+
signature: BytesLike;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export type BasicOrderParametersStructOutput = [
|
|
273
|
+
string,
|
|
274
|
+
bigint,
|
|
275
|
+
bigint,
|
|
276
|
+
string,
|
|
277
|
+
string,
|
|
278
|
+
string,
|
|
279
|
+
bigint,
|
|
280
|
+
bigint,
|
|
281
|
+
bigint,
|
|
282
|
+
bigint,
|
|
283
|
+
bigint,
|
|
284
|
+
string,
|
|
285
|
+
bigint,
|
|
286
|
+
string,
|
|
287
|
+
string,
|
|
288
|
+
bigint,
|
|
289
|
+
AdditionalRecipientStructOutput[],
|
|
290
|
+
string
|
|
291
|
+
] & {
|
|
292
|
+
considerationToken: string;
|
|
293
|
+
considerationIdentifier: bigint;
|
|
294
|
+
considerationAmount: bigint;
|
|
295
|
+
offerer: string;
|
|
296
|
+
zone: string;
|
|
297
|
+
offerToken: string;
|
|
298
|
+
offerIdentifier: bigint;
|
|
299
|
+
offerAmount: bigint;
|
|
300
|
+
basicOrderType: bigint;
|
|
301
|
+
startTime: bigint;
|
|
302
|
+
endTime: bigint;
|
|
303
|
+
zoneHash: string;
|
|
304
|
+
salt: bigint;
|
|
305
|
+
offererConduitKey: string;
|
|
306
|
+
fulfillerConduitKey: string;
|
|
307
|
+
totalOriginalAdditionalRecipients: bigint;
|
|
308
|
+
additionalRecipients: AdditionalRecipientStructOutput[];
|
|
309
|
+
signature: string;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
export type FulfillmentStruct = {
|
|
313
|
+
offerComponents: FulfillmentComponentStruct[];
|
|
314
|
+
considerationComponents: FulfillmentComponentStruct[];
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
export type FulfillmentStructOutput = [
|
|
318
|
+
FulfillmentComponentStructOutput[],
|
|
319
|
+
FulfillmentComponentStructOutput[]
|
|
320
|
+
] & {
|
|
321
|
+
offerComponents: FulfillmentComponentStructOutput[];
|
|
322
|
+
considerationComponents: FulfillmentComponentStructOutput[];
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
export interface SeaportInterface extends Interface {}
|
|
326
|
+
|
|
327
|
+
export interface CounterIncrementedEventObject {
|
|
328
|
+
newCounter: bigint;
|
|
329
|
+
offerer: string;
|
|
330
|
+
}
|
|
331
|
+
export type CounterIncrementedEvent = TypedEvent<
|
|
332
|
+
[bigint, string],
|
|
333
|
+
CounterIncrementedEventObject
|
|
334
|
+
>;
|
|
335
|
+
|
|
336
|
+
export type CounterIncrementedEventFilter =
|
|
337
|
+
TypedEventFilter<CounterIncrementedEvent>;
|
|
338
|
+
|
|
339
|
+
export interface OrderCancelledEventObject {
|
|
340
|
+
orderHash: string;
|
|
341
|
+
offerer: string;
|
|
342
|
+
zone: string;
|
|
343
|
+
}
|
|
344
|
+
export type OrderCancelledEvent = TypedEvent<
|
|
345
|
+
[string, string, string],
|
|
346
|
+
OrderCancelledEventObject
|
|
347
|
+
>;
|
|
348
|
+
|
|
349
|
+
export type OrderCancelledEventFilter = TypedEventFilter<OrderCancelledEvent>;
|
|
350
|
+
|
|
351
|
+
export interface OrderFulfilledEventObject {
|
|
352
|
+
orderHash: string;
|
|
353
|
+
offerer: string;
|
|
354
|
+
zone: string;
|
|
355
|
+
recipient: string;
|
|
356
|
+
offer: SpentItemStructOutput[];
|
|
357
|
+
consideration: ReceivedItemStructOutput[];
|
|
358
|
+
}
|
|
359
|
+
export type OrderFulfilledEvent = TypedEvent<
|
|
360
|
+
[
|
|
361
|
+
string,
|
|
362
|
+
string,
|
|
363
|
+
string,
|
|
364
|
+
string,
|
|
365
|
+
SpentItemStructOutput[],
|
|
366
|
+
ReceivedItemStructOutput[]
|
|
367
|
+
],
|
|
368
|
+
OrderFulfilledEventObject
|
|
369
|
+
>;
|
|
370
|
+
|
|
371
|
+
export type OrderFulfilledEventFilter = TypedEventFilter<OrderFulfilledEvent>;
|
|
372
|
+
|
|
373
|
+
export interface OrderValidatedEventObject {
|
|
374
|
+
orderHash: string;
|
|
375
|
+
offerer: string;
|
|
376
|
+
zone: string;
|
|
377
|
+
}
|
|
378
|
+
export type OrderValidatedEvent = TypedEvent<
|
|
379
|
+
[string, string, string],
|
|
380
|
+
OrderValidatedEventObject
|
|
381
|
+
>;
|
|
382
|
+
|
|
383
|
+
export type OrderValidatedEventFilter = TypedEventFilter<OrderValidatedEvent>;
|
|
384
|
+
|
|
385
|
+
export interface Seaport extends BaseContract {
|
|
386
|
+
connect(runner: null | ContractRunner): this;
|
|
387
|
+
|
|
388
|
+
interface: SeaportInterface;
|
|
389
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BaseContract, Interface } from "ethers";
|
|
5
|
+
import type { ContractRunner } from "ethers/providers";
|
|
6
|
+
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common.js";
|
|
7
|
+
|
|
8
|
+
export interface TokenExchangeInterface extends Interface {}
|
|
9
|
+
|
|
10
|
+
export interface TokenExchangeEventObject {
|
|
11
|
+
buyer: string;
|
|
12
|
+
sold_id: bigint;
|
|
13
|
+
tokens_sold: bigint;
|
|
14
|
+
bought_id: bigint;
|
|
15
|
+
tokens_bought: bigint;
|
|
16
|
+
}
|
|
17
|
+
export type TokenExchangeEvent = TypedEvent<
|
|
18
|
+
[string, bigint, bigint, bigint, bigint],
|
|
19
|
+
TokenExchangeEventObject
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type TokenExchangeEventFilter = TypedEventFilter<TokenExchangeEvent>;
|
|
23
|
+
|
|
24
|
+
export interface AddLiquidityEventObject {
|
|
25
|
+
provider: string;
|
|
26
|
+
token_amounts: [bigint, bigint, bigint];
|
|
27
|
+
fees: [bigint, bigint, bigint];
|
|
28
|
+
invariant: bigint;
|
|
29
|
+
token_supply: bigint;
|
|
30
|
+
}
|
|
31
|
+
export type AddLiquidityEvent = TypedEvent<
|
|
32
|
+
[string, [bigint, bigint, bigint], [bigint, bigint, bigint], bigint, bigint],
|
|
33
|
+
AddLiquidityEventObject
|
|
34
|
+
>;
|
|
35
|
+
|
|
36
|
+
export type AddLiquidityEventFilter = TypedEventFilter<AddLiquidityEvent>;
|
|
37
|
+
|
|
38
|
+
export interface RemoveLiquidityEventObject {
|
|
39
|
+
provider: string;
|
|
40
|
+
token_amounts: [bigint, bigint, bigint];
|
|
41
|
+
fees: [bigint, bigint, bigint];
|
|
42
|
+
token_supply: bigint;
|
|
43
|
+
}
|
|
44
|
+
export type RemoveLiquidityEvent = TypedEvent<
|
|
45
|
+
[string, [bigint, bigint, bigint], [bigint, bigint, bigint], bigint],
|
|
46
|
+
RemoveLiquidityEventObject
|
|
47
|
+
>;
|
|
48
|
+
|
|
49
|
+
export type RemoveLiquidityEventFilter = TypedEventFilter<RemoveLiquidityEvent>;
|
|
50
|
+
|
|
51
|
+
export interface RemoveLiquidityOneEventObject {
|
|
52
|
+
provider: string;
|
|
53
|
+
token_amount: bigint;
|
|
54
|
+
coin_amount: bigint;
|
|
55
|
+
}
|
|
56
|
+
export type RemoveLiquidityOneEvent = TypedEvent<
|
|
57
|
+
[string, bigint, bigint],
|
|
58
|
+
RemoveLiquidityOneEventObject
|
|
59
|
+
>;
|
|
60
|
+
|
|
61
|
+
export type RemoveLiquidityOneEventFilter =
|
|
62
|
+
TypedEventFilter<RemoveLiquidityOneEvent>;
|
|
63
|
+
|
|
64
|
+
export interface RemoveLiquidityImbalanceEventObject {
|
|
65
|
+
provider: string;
|
|
66
|
+
token_amounts: [bigint, bigint, bigint];
|
|
67
|
+
fees: [bigint, bigint, bigint];
|
|
68
|
+
invariant: bigint;
|
|
69
|
+
token_supply: bigint;
|
|
70
|
+
}
|
|
71
|
+
export type RemoveLiquidityImbalanceEvent = TypedEvent<
|
|
72
|
+
[string, [bigint, bigint, bigint], [bigint, bigint, bigint], bigint, bigint],
|
|
73
|
+
RemoveLiquidityImbalanceEventObject
|
|
74
|
+
>;
|
|
75
|
+
|
|
76
|
+
export type RemoveLiquidityImbalanceEventFilter =
|
|
77
|
+
TypedEventFilter<RemoveLiquidityImbalanceEvent>;
|
|
78
|
+
|
|
79
|
+
export interface CommitNewAdminEventObject {
|
|
80
|
+
deadline: bigint;
|
|
81
|
+
admin: string;
|
|
82
|
+
}
|
|
83
|
+
export type CommitNewAdminEvent = TypedEvent<
|
|
84
|
+
[bigint, string],
|
|
85
|
+
CommitNewAdminEventObject
|
|
86
|
+
>;
|
|
87
|
+
|
|
88
|
+
export type CommitNewAdminEventFilter = TypedEventFilter<CommitNewAdminEvent>;
|
|
89
|
+
|
|
90
|
+
export interface NewAdminEventObject {
|
|
91
|
+
admin: string;
|
|
92
|
+
}
|
|
93
|
+
export type NewAdminEvent = TypedEvent<[string], NewAdminEventObject>;
|
|
94
|
+
|
|
95
|
+
export type NewAdminEventFilter = TypedEventFilter<NewAdminEvent>;
|
|
96
|
+
|
|
97
|
+
export interface CommitNewFeeEventObject {
|
|
98
|
+
deadline: bigint;
|
|
99
|
+
fee: bigint;
|
|
100
|
+
admin_fee: bigint;
|
|
101
|
+
}
|
|
102
|
+
export type CommitNewFeeEvent = TypedEvent<
|
|
103
|
+
[bigint, bigint, bigint],
|
|
104
|
+
CommitNewFeeEventObject
|
|
105
|
+
>;
|
|
106
|
+
|
|
107
|
+
export type CommitNewFeeEventFilter = TypedEventFilter<CommitNewFeeEvent>;
|
|
108
|
+
|
|
109
|
+
export interface NewFeeEventObject {
|
|
110
|
+
fee: bigint;
|
|
111
|
+
admin_fee: bigint;
|
|
112
|
+
}
|
|
113
|
+
export type NewFeeEvent = TypedEvent<[bigint, bigint], NewFeeEventObject>;
|
|
114
|
+
|
|
115
|
+
export type NewFeeEventFilter = TypedEventFilter<NewFeeEvent>;
|
|
116
|
+
|
|
117
|
+
export interface RampAEventObject {
|
|
118
|
+
old_A: bigint;
|
|
119
|
+
new_A: bigint;
|
|
120
|
+
initial_time: bigint;
|
|
121
|
+
future_time: bigint;
|
|
122
|
+
}
|
|
123
|
+
export type RampAEvent = TypedEvent<
|
|
124
|
+
[bigint, bigint, bigint, bigint],
|
|
125
|
+
RampAEventObject
|
|
126
|
+
>;
|
|
127
|
+
|
|
128
|
+
export type RampAEventFilter = TypedEventFilter<RampAEvent>;
|
|
129
|
+
|
|
130
|
+
export interface StopRampAEventObject {
|
|
131
|
+
A: bigint;
|
|
132
|
+
t: bigint;
|
|
133
|
+
}
|
|
134
|
+
export type StopRampAEvent = TypedEvent<[bigint, bigint], StopRampAEventObject>;
|
|
135
|
+
|
|
136
|
+
export type StopRampAEventFilter = TypedEventFilter<StopRampAEvent>;
|
|
137
|
+
|
|
138
|
+
export interface TokenExchange extends BaseContract {
|
|
139
|
+
connect(runner: null | ContractRunner): this;
|
|
140
|
+
|
|
141
|
+
interface: TokenExchangeInterface;
|
|
142
|
+
}
|