@sentio/sdk 4.0.0-rc.1 → 4.0.0-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.
- package/lib/aptos/aptos-plugin.d.ts +1 -1
- package/lib/aptos/aptos-plugin.d.ts.map +1 -1
- package/lib/aptos/aptos-plugin.js +43 -42
- package/lib/aptos/aptos-plugin.js.map +1 -1
- package/lib/aptos/aptos-processor.d.ts +1 -1
- package/lib/aptos/aptos-processor.d.ts.map +1 -1
- package/lib/aptos/aptos-processor.js +25 -25
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/aptos/aptos-resource-processor-template.d.ts +1 -1
- package/lib/aptos/aptos-resource-processor-template.d.ts.map +1 -1
- package/lib/aptos/aptos-resource-processor-template.js +10 -5
- package/lib/aptos/aptos-resource-processor-template.js.map +1 -1
- package/lib/aptos/context.d.ts +1 -1
- package/lib/aptos/context.d.ts.map +1 -1
- package/lib/aptos/context.js +8 -6
- package/lib/aptos/context.js.map +1 -1
- package/lib/aptos/data.d.ts +4 -4
- package/lib/aptos/data.d.ts.map +1 -1
- package/lib/core/base-context.d.ts +3 -2
- package/lib/core/base-context.d.ts.map +1 -1
- package/lib/core/base-context.js +12 -11
- package/lib/core/base-context.js.map +1 -1
- package/lib/core/core-plugin.d.ts.map +1 -1
- package/lib/core/core-plugin.js +6 -4
- package/lib/core/core-plugin.js.map +1 -1
- package/lib/core/event-logger.d.ts +10 -2
- package/lib/core/event-logger.d.ts.map +1 -1
- package/lib/core/event-logger.js +42 -26
- package/lib/core/event-logger.js.map +1 -1
- package/lib/core/exporter.d.ts.map +1 -1
- package/lib/core/exporter.js +5 -3
- package/lib/core/exporter.js.map +1 -1
- package/lib/core/handler-options.d.ts +1 -1
- package/lib/core/handler-options.d.ts.map +1 -1
- package/lib/core/handler-register.d.ts +1 -1
- package/lib/core/handler-register.d.ts.map +1 -1
- package/lib/core/handler-register.js +2 -2
- package/lib/core/handler-register.js.map +1 -1
- package/lib/core/meter.d.ts +4 -3
- package/lib/core/meter.d.ts.map +1 -1
- package/lib/core/meter.js +5 -4
- package/lib/core/meter.js.map +1 -1
- package/lib/core/normalization.d.ts +1 -1
- package/lib/core/normalization.d.ts.map +1 -1
- package/lib/core/normalization.js +41 -31
- package/lib/core/normalization.js.map +1 -1
- package/lib/core/numberish.d.ts +1 -1
- package/lib/core/numberish.d.ts.map +1 -1
- package/lib/core/numberish.js +35 -30
- package/lib/core/numberish.js.map +1 -1
- package/lib/core/partition-handler-manager.d.ts +1 -1
- package/lib/core/partition-handler-manager.d.ts.map +1 -1
- package/lib/core/partition-handler-manager.js +10 -9
- package/lib/core/partition-handler-manager.js.map +1 -1
- package/lib/cosmos/context.d.ts.map +1 -1
- package/lib/cosmos/context.js +4 -2
- package/lib/cosmos/context.js.map +1 -1
- package/lib/cosmos/cosmos-plugin.d.ts.map +1 -1
- package/lib/cosmos/cosmos-plugin.js +11 -10
- package/lib/cosmos/cosmos-plugin.js.map +1 -1
- package/lib/cosmos/cosmos-processor.js.map +1 -1
- package/lib/eth/abi-decoder/decode-worker.js +2 -2
- package/lib/eth/abi-decoder/decode-worker.js.map +1 -1
- package/lib/eth/account-processor.d.ts +2 -2
- package/lib/eth/account-processor.d.ts.map +1 -1
- package/lib/eth/account-processor.js +10 -9
- package/lib/eth/account-processor.js.map +1 -1
- package/lib/eth/base-processor-template.d.ts +3 -3
- package/lib/eth/base-processor-template.d.ts.map +1 -1
- package/lib/eth/base-processor-template.js +12 -8
- package/lib/eth/base-processor-template.js.map +1 -1
- package/lib/eth/base-processor.d.ts +1 -1
- package/lib/eth/base-processor.d.ts.map +1 -1
- package/lib/eth/base-processor.js +53 -46
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +48 -46
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +18 -16
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +38 -36
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +20 -18
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +30 -28
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +24 -22
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/file.d.ts.map +1 -1
- package/lib/eth/codegen/file.js +2 -1
- package/lib/eth/codegen/file.js.map +1 -1
- package/lib/eth/codegen/function-calls.js +1 -1
- package/lib/eth/context.d.ts +1 -1
- package/lib/eth/context.d.ts.map +1 -1
- package/lib/eth/context.js +12 -10
- package/lib/eth/context.js.map +1 -1
- package/lib/eth/eth-plugin.d.ts.map +1 -1
- package/lib/eth/eth-plugin.js +83 -75
- package/lib/eth/eth-plugin.js.map +1 -1
- package/lib/eth/eth.d.ts +6 -6
- package/lib/eth/eth.d.ts.map +1 -1
- package/lib/eth/eth.js +22 -14
- package/lib/eth/eth.js.map +1 -1
- package/lib/eth/index.d.ts +1 -1
- package/lib/eth/index.d.ts.map +1 -1
- package/lib/eth/index.js +0 -1
- package/lib/eth/index.js.map +1 -1
- package/lib/fuel/asset-processor.d.ts +2 -2
- package/lib/fuel/asset-processor.d.ts.map +1 -1
- package/lib/fuel/asset-processor.js +5 -3
- package/lib/fuel/asset-processor.js.map +1 -1
- package/lib/fuel/context.d.ts.map +1 -1
- package/lib/fuel/context.js +4 -2
- package/lib/fuel/context.js.map +1 -1
- package/lib/fuel/fuel-plugin.d.ts.map +1 -1
- package/lib/fuel/fuel-plugin.js +41 -53
- package/lib/fuel/fuel-plugin.js.map +1 -1
- package/lib/fuel/fuel-processor-template.d.ts.map +1 -1
- package/lib/fuel/fuel-processor-template.js +7 -5
- package/lib/fuel/fuel-processor-template.js.map +1 -1
- package/lib/fuel/fuel-processor.d.ts.map +1 -1
- package/lib/fuel/fuel-processor.js +30 -20
- package/lib/fuel/fuel-processor.js.map +1 -1
- package/lib/fuel/global-processor.d.ts.map +1 -1
- package/lib/fuel/global-processor.js +2 -1
- package/lib/fuel/global-processor.js.map +1 -1
- package/lib/fuel/types.d.ts +10 -4
- package/lib/fuel/types.d.ts.map +1 -1
- package/lib/fuel/types.js.map +1 -1
- package/lib/iota/context.d.ts +1 -1
- package/lib/iota/context.d.ts.map +1 -1
- package/lib/iota/context.js +8 -6
- package/lib/iota/context.js.map +1 -1
- package/lib/iota/iota-object-processor-template.d.ts +1 -1
- package/lib/iota/iota-object-processor-template.d.ts.map +1 -1
- package/lib/iota/iota-object-processor-template.js +17 -12
- package/lib/iota/iota-object-processor-template.js.map +1 -1
- package/lib/iota/iota-object-processor.d.ts +1 -1
- package/lib/iota/iota-object-processor.d.ts.map +1 -1
- package/lib/iota/iota-object-processor.js +23 -16
- package/lib/iota/iota-object-processor.js.map +1 -1
- package/lib/iota/iota-plugin-part.d.ts +1 -1
- package/lib/iota/iota-plugin-part.d.ts.map +1 -1
- package/lib/iota/iota-plugin-part.js +16 -15
- package/lib/iota/iota-plugin-part.js.map +1 -1
- package/lib/iota/iota-processor.d.ts +1 -1
- package/lib/iota/iota-processor.d.ts.map +1 -1
- package/lib/iota/iota-processor.js +18 -17
- package/lib/iota/iota-processor.js.map +1 -1
- package/lib/iota/network.js +2 -2
- package/lib/iota/network.js.map +1 -1
- package/lib/move/filter.d.ts +1 -1
- package/lib/move/filter.d.ts.map +1 -1
- package/lib/move/index.d.ts +1 -1
- package/lib/move/index.d.ts.map +1 -1
- package/lib/move/index.js +0 -1
- package/lib/move/index.js.map +1 -1
- package/lib/solana/builtin/types.d.ts +4 -4
- package/lib/solana/solana-context.d.ts.map +1 -1
- package/lib/solana/solana-context.js +4 -3
- package/lib/solana/solana-context.js.map +1 -1
- package/lib/solana/solana-plugin.d.ts.map +1 -1
- package/lib/solana/solana-plugin.js +19 -18
- package/lib/solana/solana-plugin.js.map +1 -1
- package/lib/solana/solana-processor.d.ts.map +1 -1
- package/lib/solana/solana-processor.js +8 -3
- package/lib/solana/solana-processor.js.map +1 -1
- package/lib/store/cache.d.ts.map +1 -1
- package/lib/store/cache.js +22 -17
- package/lib/store/cache.js.map +1 -1
- package/lib/store/convert.d.ts +1 -1
- package/lib/store/convert.d.ts.map +1 -1
- package/lib/store/convert.js +67 -104
- package/lib/store/convert.js.map +1 -1
- package/lib/store/decorators.d.ts +1 -1
- package/lib/store/decorators.d.ts.map +1 -1
- package/lib/store/decorators.js +3 -1
- package/lib/store/decorators.js.map +1 -1
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +24 -16
- package/lib/store/store.js.map +1 -1
- package/lib/store/types.js +24 -32
- package/lib/store/types.js.map +1 -1
- package/lib/store/util.d.ts +1 -1
- package/lib/store/util.d.ts.map +1 -1
- package/lib/store/util.js +13 -17
- package/lib/store/util.js.map +1 -1
- package/lib/sui/context.d.ts +1 -1
- package/lib/sui/context.d.ts.map +1 -1
- package/lib/sui/context.js +8 -6
- package/lib/sui/context.js.map +1 -1
- package/lib/sui/sui-object-processor-template.d.ts +1 -1
- package/lib/sui/sui-object-processor-template.d.ts.map +1 -1
- package/lib/sui/sui-object-processor-template.js +17 -12
- package/lib/sui/sui-object-processor-template.js.map +1 -1
- package/lib/sui/sui-object-processor.d.ts +1 -1
- package/lib/sui/sui-object-processor.d.ts.map +1 -1
- package/lib/sui/sui-object-processor.js +23 -16
- package/lib/sui/sui-object-processor.js.map +1 -1
- package/lib/sui/sui-plugin-part.d.ts +1 -1
- package/lib/sui/sui-plugin-part.d.ts.map +1 -1
- package/lib/sui/sui-plugin-part.js +16 -15
- package/lib/sui/sui-plugin-part.js.map +1 -1
- package/lib/sui/sui-plugin.d.ts +1 -1
- package/lib/sui/sui-plugin.d.ts.map +1 -1
- package/lib/sui/sui-plugin.js +35 -34
- package/lib/sui/sui-plugin.js.map +1 -1
- package/lib/sui/sui-processor.d.ts +1 -1
- package/lib/sui/sui-processor.d.ts.map +1 -1
- package/lib/sui/sui-processor.js +18 -17
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/testing/aptos-facet.d.ts.map +1 -1
- package/lib/testing/aptos-facet.js +18 -11
- package/lib/testing/aptos-facet.js.map +1 -1
- package/lib/testing/cosmos-facet.d.ts.map +1 -1
- package/lib/testing/cosmos-facet.js +10 -6
- package/lib/testing/cosmos-facet.js.map +1 -1
- package/lib/testing/eth-facet.d.ts +1 -1
- package/lib/testing/eth-facet.d.ts.map +1 -1
- package/lib/testing/eth-facet.js +34 -18
- package/lib/testing/eth-facet.js.map +1 -1
- package/lib/testing/fuel-facet.d.ts.map +1 -1
- package/lib/testing/fuel-facet.js +28 -18
- package/lib/testing/fuel-facet.js.map +1 -1
- package/lib/testing/iota-facet.d.ts.map +1 -1
- package/lib/testing/iota-facet.js +32 -20
- package/lib/testing/iota-facet.js.map +1 -1
- package/lib/testing/memory-database.d.ts +1 -1
- package/lib/testing/memory-database.d.ts.map +1 -1
- package/lib/testing/memory-database.js +81 -71
- package/lib/testing/memory-database.js.map +1 -1
- package/lib/testing/metric-utils.d.ts +2 -2
- package/lib/testing/metric-utils.d.ts.map +1 -1
- package/lib/testing/metric-utils.js +13 -12
- package/lib/testing/metric-utils.js.map +1 -1
- package/lib/testing/solana-facet.d.ts +3 -2
- package/lib/testing/solana-facet.d.ts.map +1 -1
- package/lib/testing/solana-facet.js +8 -5
- package/lib/testing/solana-facet.js.map +1 -1
- package/lib/testing/sui-facet.d.ts.map +1 -1
- package/lib/testing/sui-facet.js +30 -20
- package/lib/testing/sui-facet.js.map +1 -1
- package/lib/testing/test-processor-server.d.ts +19 -13
- package/lib/testing/test-processor-server.d.ts.map +1 -1
- package/lib/testing/test-processor-server.js +22 -20
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/utils/price.d.ts +1 -1
- package/lib/utils/price.d.ts.map +1 -1
- package/lib/utils/price.js +19 -12
- package/lib/utils/price.js.map +1 -1
- package/package.json +5 -7
- package/src/aptos/aptos-plugin.ts +105 -91
- package/src/aptos/aptos-processor.ts +33 -25
- package/src/aptos/aptos-resource-processor-template.ts +15 -6
- package/src/aptos/context.ts +8 -7
- package/src/aptos/data.ts +4 -4
- package/src/core/base-context.ts +19 -12
- package/src/core/core-plugin.ts +10 -7
- package/src/core/event-logger.ts +63 -34
- package/src/core/exporter.ts +5 -4
- package/src/core/handler-options.ts +1 -1
- package/src/core/handler-register.ts +3 -3
- package/src/core/meter.ts +9 -7
- package/src/core/normalization.ts +53 -31
- package/src/core/numberish.ts +46 -30
- package/src/core/partition-handler-manager.ts +13 -11
- package/src/cosmos/context.ts +4 -3
- package/src/cosmos/cosmos-plugin.ts +19 -15
- package/src/cosmos/cosmos-processor.ts +2 -2
- package/src/eth/abi-decoder/decode-worker.ts +2 -2
- package/src/eth/account-processor.ts +21 -12
- package/src/eth/base-processor-template.ts +22 -10
- package/src/eth/base-processor.ts +66 -54
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +177 -116
- package/src/eth/builtin/internal/erc1155-processor.ts +73 -38
- package/src/eth/builtin/internal/erc20-processor.ts +152 -91
- package/src/eth/builtin/internal/erc20bytes-processor.ts +80 -46
- package/src/eth/builtin/internal/erc721-processor.ts +109 -65
- package/src/eth/builtin/internal/weth9-processor.ts +95 -56
- package/src/eth/codegen/file.ts +2 -1
- package/src/eth/codegen/function-calls.ts +1 -1
- package/src/eth/context.ts +18 -11
- package/src/eth/eth-plugin.ts +135 -118
- package/src/eth/eth.ts +29 -20
- package/src/eth/index.ts +1 -1
- package/src/fuel/asset-processor.ts +16 -8
- package/src/fuel/context.ts +4 -3
- package/src/fuel/fuel-plugin.ts +71 -73
- package/src/fuel/fuel-processor-template.ts +7 -6
- package/src/fuel/fuel-processor.ts +35 -23
- package/src/fuel/global-processor.ts +3 -3
- package/src/fuel/types.ts +10 -4
- package/src/iota/context.ts +8 -7
- package/src/iota/iota-object-processor-template.ts +25 -15
- package/src/iota/iota-object-processor.ts +33 -22
- package/src/iota/iota-plugin-part.ts +41 -34
- package/src/iota/iota-processor.ts +25 -17
- package/src/iota/network.ts +2 -2
- package/src/move/filter.ts +1 -1
- package/src/move/index.ts +1 -1
- package/src/solana/solana-context.ts +4 -3
- package/src/solana/solana-plugin.ts +27 -24
- package/src/solana/solana-processor.ts +14 -6
- package/src/store/cache.ts +22 -18
- package/src/store/convert.ts +68 -104
- package/src/store/decorators.ts +3 -2
- package/src/store/store.ts +30 -22
- package/src/store/types.ts +24 -33
- package/src/store/util.ts +13 -18
- package/src/sui/context.ts +8 -7
- package/src/sui/sui-object-processor-template.ts +25 -15
- package/src/sui/sui-object-processor.ts +33 -22
- package/src/sui/sui-plugin-part.ts +41 -34
- package/src/sui/sui-plugin.ts +49 -47
- package/src/sui/sui-processor.ts +25 -17
- package/src/testing/aptos-facet.ts +18 -11
- package/src/testing/cosmos-facet.ts +10 -6
- package/src/testing/eth-facet.ts +40 -18
- package/src/testing/fuel-facet.ts +28 -18
- package/src/testing/iota-facet.ts +32 -20
- package/src/testing/memory-database.ts +109 -85
- package/src/testing/metric-utils.ts +15 -14
- package/src/testing/solana-facet.ts +11 -6
- package/src/testing/sui-facet.ts +30 -20
- package/src/testing/test-processor-server.ts +64 -58
- package/src/utils/price.ts +20 -13
|
@@ -24,7 +24,13 @@ import {
|
|
|
24
24
|
PreprocessResult,
|
|
25
25
|
encodeCallData,
|
|
26
26
|
} from "@sentio/sdk/eth";
|
|
27
|
-
import {
|
|
27
|
+
import {
|
|
28
|
+
EthCallParam,
|
|
29
|
+
EthCallContext,
|
|
30
|
+
EthCallContextSchema,
|
|
31
|
+
PreparedData,
|
|
32
|
+
} from "@sentio/protos";
|
|
33
|
+
import { create } from "@bufbuild/protobuf";
|
|
28
34
|
|
|
29
35
|
import { EACAggregatorProxy__factory } from "./index.js";
|
|
30
36
|
import {
|
|
@@ -1099,177 +1105,232 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
1099
1105
|
context: this.context,
|
|
1100
1106
|
|
|
1101
1107
|
acceptOwnership(overrides?: Overrides): EthCallParam {
|
|
1102
|
-
return this.view.encodeCall.acceptOwnership(
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1108
|
+
return this.view.encodeCall.acceptOwnership(
|
|
1109
|
+
create(EthCallContextSchema, {
|
|
1110
|
+
chainId: this.context.chainId.toString(),
|
|
1111
|
+
address: this.context.address,
|
|
1112
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1113
|
+
}),
|
|
1114
|
+
);
|
|
1107
1115
|
},
|
|
1108
1116
|
accessController(overrides?: Overrides): EthCallParam {
|
|
1109
|
-
return this.view.encodeCall.accessController(
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1117
|
+
return this.view.encodeCall.accessController(
|
|
1118
|
+
create(EthCallContextSchema, {
|
|
1119
|
+
chainId: this.context.chainId.toString(),
|
|
1120
|
+
address: this.context.address,
|
|
1121
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1122
|
+
}),
|
|
1123
|
+
);
|
|
1114
1124
|
},
|
|
1115
1125
|
aggregator(overrides?: Overrides): EthCallParam {
|
|
1116
|
-
return this.view.encodeCall.aggregator(
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1126
|
+
return this.view.encodeCall.aggregator(
|
|
1127
|
+
create(EthCallContextSchema, {
|
|
1128
|
+
chainId: this.context.chainId.toString(),
|
|
1129
|
+
address: this.context.address,
|
|
1130
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1131
|
+
}),
|
|
1132
|
+
);
|
|
1121
1133
|
},
|
|
1122
1134
|
confirmAggregator(
|
|
1123
1135
|
_aggregator: string,
|
|
1124
1136
|
overrides?: Overrides,
|
|
1125
1137
|
): EthCallParam {
|
|
1126
|
-
return this.view.encodeCall.confirmAggregator(
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1138
|
+
return this.view.encodeCall.confirmAggregator(
|
|
1139
|
+
_aggregator,
|
|
1140
|
+
create(EthCallContextSchema, {
|
|
1141
|
+
chainId: this.context.chainId.toString(),
|
|
1142
|
+
address: this.context.address,
|
|
1143
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1144
|
+
}),
|
|
1145
|
+
);
|
|
1131
1146
|
},
|
|
1132
1147
|
decimals(overrides?: Overrides): EthCallParam {
|
|
1133
|
-
return this.view.encodeCall.decimals(
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1148
|
+
return this.view.encodeCall.decimals(
|
|
1149
|
+
create(EthCallContextSchema, {
|
|
1150
|
+
chainId: this.context.chainId.toString(),
|
|
1151
|
+
address: this.context.address,
|
|
1152
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1153
|
+
}),
|
|
1154
|
+
);
|
|
1138
1155
|
},
|
|
1139
1156
|
description(overrides?: Overrides): EthCallParam {
|
|
1140
|
-
return this.view.encodeCall.description(
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1157
|
+
return this.view.encodeCall.description(
|
|
1158
|
+
create(EthCallContextSchema, {
|
|
1159
|
+
chainId: this.context.chainId.toString(),
|
|
1160
|
+
address: this.context.address,
|
|
1161
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1162
|
+
}),
|
|
1163
|
+
);
|
|
1145
1164
|
},
|
|
1146
1165
|
getAnswer(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
|
1147
|
-
return this.view.encodeCall.getAnswer(
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1166
|
+
return this.view.encodeCall.getAnswer(
|
|
1167
|
+
_roundId,
|
|
1168
|
+
create(EthCallContextSchema, {
|
|
1169
|
+
chainId: this.context.chainId.toString(),
|
|
1170
|
+
address: this.context.address,
|
|
1171
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1172
|
+
}),
|
|
1173
|
+
);
|
|
1152
1174
|
},
|
|
1153
1175
|
getRoundData(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
|
1154
|
-
return this.view.encodeCall.getRoundData(
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1176
|
+
return this.view.encodeCall.getRoundData(
|
|
1177
|
+
_roundId,
|
|
1178
|
+
create(EthCallContextSchema, {
|
|
1179
|
+
chainId: this.context.chainId.toString(),
|
|
1180
|
+
address: this.context.address,
|
|
1181
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1182
|
+
}),
|
|
1183
|
+
);
|
|
1159
1184
|
},
|
|
1160
1185
|
getTimestamp(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
|
1161
|
-
return this.view.encodeCall.getTimestamp(
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1186
|
+
return this.view.encodeCall.getTimestamp(
|
|
1187
|
+
_roundId,
|
|
1188
|
+
create(EthCallContextSchema, {
|
|
1189
|
+
chainId: this.context.chainId.toString(),
|
|
1190
|
+
address: this.context.address,
|
|
1191
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1192
|
+
}),
|
|
1193
|
+
);
|
|
1166
1194
|
},
|
|
1167
1195
|
latestAnswer(overrides?: Overrides): EthCallParam {
|
|
1168
|
-
return this.view.encodeCall.latestAnswer(
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1196
|
+
return this.view.encodeCall.latestAnswer(
|
|
1197
|
+
create(EthCallContextSchema, {
|
|
1198
|
+
chainId: this.context.chainId.toString(),
|
|
1199
|
+
address: this.context.address,
|
|
1200
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1201
|
+
}),
|
|
1202
|
+
);
|
|
1173
1203
|
},
|
|
1174
1204
|
latestRound(overrides?: Overrides): EthCallParam {
|
|
1175
|
-
return this.view.encodeCall.latestRound(
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1205
|
+
return this.view.encodeCall.latestRound(
|
|
1206
|
+
create(EthCallContextSchema, {
|
|
1207
|
+
chainId: this.context.chainId.toString(),
|
|
1208
|
+
address: this.context.address,
|
|
1209
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1210
|
+
}),
|
|
1211
|
+
);
|
|
1180
1212
|
},
|
|
1181
1213
|
latestRoundData(overrides?: Overrides): EthCallParam {
|
|
1182
|
-
return this.view.encodeCall.latestRoundData(
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1214
|
+
return this.view.encodeCall.latestRoundData(
|
|
1215
|
+
create(EthCallContextSchema, {
|
|
1216
|
+
chainId: this.context.chainId.toString(),
|
|
1217
|
+
address: this.context.address,
|
|
1218
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1219
|
+
}),
|
|
1220
|
+
);
|
|
1187
1221
|
},
|
|
1188
1222
|
latestTimestamp(overrides?: Overrides): EthCallParam {
|
|
1189
|
-
return this.view.encodeCall.latestTimestamp(
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1223
|
+
return this.view.encodeCall.latestTimestamp(
|
|
1224
|
+
create(EthCallContextSchema, {
|
|
1225
|
+
chainId: this.context.chainId.toString(),
|
|
1226
|
+
address: this.context.address,
|
|
1227
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1228
|
+
}),
|
|
1229
|
+
);
|
|
1194
1230
|
},
|
|
1195
1231
|
owner(overrides?: Overrides): EthCallParam {
|
|
1196
|
-
return this.view.encodeCall.owner(
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1232
|
+
return this.view.encodeCall.owner(
|
|
1233
|
+
create(EthCallContextSchema, {
|
|
1234
|
+
chainId: this.context.chainId.toString(),
|
|
1235
|
+
address: this.context.address,
|
|
1236
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1237
|
+
}),
|
|
1238
|
+
);
|
|
1201
1239
|
},
|
|
1202
1240
|
phaseAggregators(arg0: BigNumberish, overrides?: Overrides): EthCallParam {
|
|
1203
|
-
return this.view.encodeCall.phaseAggregators(
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1241
|
+
return this.view.encodeCall.phaseAggregators(
|
|
1242
|
+
arg0,
|
|
1243
|
+
create(EthCallContextSchema, {
|
|
1244
|
+
chainId: this.context.chainId.toString(),
|
|
1245
|
+
address: this.context.address,
|
|
1246
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1247
|
+
}),
|
|
1248
|
+
);
|
|
1208
1249
|
},
|
|
1209
1250
|
phaseId(overrides?: Overrides): EthCallParam {
|
|
1210
|
-
return this.view.encodeCall.phaseId(
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1251
|
+
return this.view.encodeCall.phaseId(
|
|
1252
|
+
create(EthCallContextSchema, {
|
|
1253
|
+
chainId: this.context.chainId.toString(),
|
|
1254
|
+
address: this.context.address,
|
|
1255
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1256
|
+
}),
|
|
1257
|
+
);
|
|
1215
1258
|
},
|
|
1216
1259
|
proposeAggregator(
|
|
1217
1260
|
_aggregator: string,
|
|
1218
1261
|
overrides?: Overrides,
|
|
1219
1262
|
): EthCallParam {
|
|
1220
|
-
return this.view.encodeCall.proposeAggregator(
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1263
|
+
return this.view.encodeCall.proposeAggregator(
|
|
1264
|
+
_aggregator,
|
|
1265
|
+
create(EthCallContextSchema, {
|
|
1266
|
+
chainId: this.context.chainId.toString(),
|
|
1267
|
+
address: this.context.address,
|
|
1268
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1269
|
+
}),
|
|
1270
|
+
);
|
|
1225
1271
|
},
|
|
1226
1272
|
proposedAggregator(overrides?: Overrides): EthCallParam {
|
|
1227
|
-
return this.view.encodeCall.proposedAggregator(
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1273
|
+
return this.view.encodeCall.proposedAggregator(
|
|
1274
|
+
create(EthCallContextSchema, {
|
|
1275
|
+
chainId: this.context.chainId.toString(),
|
|
1276
|
+
address: this.context.address,
|
|
1277
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1278
|
+
}),
|
|
1279
|
+
);
|
|
1232
1280
|
},
|
|
1233
1281
|
proposedGetRoundData(
|
|
1234
1282
|
_roundId: BigNumberish,
|
|
1235
1283
|
overrides?: Overrides,
|
|
1236
1284
|
): EthCallParam {
|
|
1237
|
-
return this.view.encodeCall.proposedGetRoundData(
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1285
|
+
return this.view.encodeCall.proposedGetRoundData(
|
|
1286
|
+
_roundId,
|
|
1287
|
+
create(EthCallContextSchema, {
|
|
1288
|
+
chainId: this.context.chainId.toString(),
|
|
1289
|
+
address: this.context.address,
|
|
1290
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1291
|
+
}),
|
|
1292
|
+
);
|
|
1242
1293
|
},
|
|
1243
1294
|
proposedLatestRoundData(overrides?: Overrides): EthCallParam {
|
|
1244
|
-
return this.view.encodeCall.proposedLatestRoundData(
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1295
|
+
return this.view.encodeCall.proposedLatestRoundData(
|
|
1296
|
+
create(EthCallContextSchema, {
|
|
1297
|
+
chainId: this.context.chainId.toString(),
|
|
1298
|
+
address: this.context.address,
|
|
1299
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1300
|
+
}),
|
|
1301
|
+
);
|
|
1249
1302
|
},
|
|
1250
1303
|
setController(
|
|
1251
1304
|
_accessController: string,
|
|
1252
1305
|
overrides?: Overrides,
|
|
1253
1306
|
): EthCallParam {
|
|
1254
|
-
return this.view.encodeCall.setController(
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1307
|
+
return this.view.encodeCall.setController(
|
|
1308
|
+
_accessController,
|
|
1309
|
+
create(EthCallContextSchema, {
|
|
1310
|
+
chainId: this.context.chainId.toString(),
|
|
1311
|
+
address: this.context.address,
|
|
1312
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1313
|
+
}),
|
|
1314
|
+
);
|
|
1259
1315
|
},
|
|
1260
1316
|
transferOwnership(_to: string, overrides?: Overrides): EthCallParam {
|
|
1261
|
-
return this.view.encodeCall.transferOwnership(
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1317
|
+
return this.view.encodeCall.transferOwnership(
|
|
1318
|
+
_to,
|
|
1319
|
+
create(EthCallContextSchema, {
|
|
1320
|
+
chainId: this.context.chainId.toString(),
|
|
1321
|
+
address: this.context.address,
|
|
1322
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1323
|
+
}),
|
|
1324
|
+
);
|
|
1266
1325
|
},
|
|
1267
1326
|
version(overrides?: Overrides): EthCallParam {
|
|
1268
|
-
return this.view.encodeCall.version(
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1327
|
+
return this.view.encodeCall.version(
|
|
1328
|
+
create(EthCallContextSchema, {
|
|
1329
|
+
chainId: this.context.chainId.toString(),
|
|
1330
|
+
address: this.context.address,
|
|
1331
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
1332
|
+
}),
|
|
1333
|
+
);
|
|
1273
1334
|
},
|
|
1274
1335
|
};
|
|
1275
1336
|
}
|
|
@@ -24,7 +24,13 @@ import {
|
|
|
24
24
|
PreprocessResult,
|
|
25
25
|
encodeCallData,
|
|
26
26
|
} from "@sentio/sdk/eth";
|
|
27
|
-
import {
|
|
27
|
+
import {
|
|
28
|
+
EthCallParam,
|
|
29
|
+
EthCallContext,
|
|
30
|
+
EthCallContextSchema,
|
|
31
|
+
PreparedData,
|
|
32
|
+
} from "@sentio/protos";
|
|
33
|
+
import { create } from "@bufbuild/protobuf";
|
|
28
34
|
|
|
29
35
|
import { ERC1155__factory } from "./index.js";
|
|
30
36
|
import {
|
|
@@ -531,33 +537,45 @@ export class ERC1155BoundContractView extends BoundContractView<
|
|
|
531
537
|
id: BigNumberish,
|
|
532
538
|
overrides?: Overrides,
|
|
533
539
|
): EthCallParam {
|
|
534
|
-
return this.view.encodeCall.balanceOf(
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
540
|
+
return this.view.encodeCall.balanceOf(
|
|
541
|
+
account,
|
|
542
|
+
id,
|
|
543
|
+
create(EthCallContextSchema, {
|
|
544
|
+
chainId: this.context.chainId.toString(),
|
|
545
|
+
address: this.context.address,
|
|
546
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
547
|
+
}),
|
|
548
|
+
);
|
|
539
549
|
},
|
|
540
550
|
balanceOfBatch(
|
|
541
551
|
accounts: string[],
|
|
542
552
|
ids: BigNumberish[],
|
|
543
553
|
overrides?: Overrides,
|
|
544
554
|
): EthCallParam {
|
|
545
|
-
return this.view.encodeCall.balanceOfBatch(
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
555
|
+
return this.view.encodeCall.balanceOfBatch(
|
|
556
|
+
accounts,
|
|
557
|
+
ids,
|
|
558
|
+
create(EthCallContextSchema, {
|
|
559
|
+
chainId: this.context.chainId.toString(),
|
|
560
|
+
address: this.context.address,
|
|
561
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
562
|
+
}),
|
|
563
|
+
);
|
|
550
564
|
},
|
|
551
565
|
isApprovedForAll(
|
|
552
566
|
account: string,
|
|
553
567
|
operator: string,
|
|
554
568
|
overrides?: Overrides,
|
|
555
569
|
): EthCallParam {
|
|
556
|
-
return this.view.encodeCall.isApprovedForAll(
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
570
|
+
return this.view.encodeCall.isApprovedForAll(
|
|
571
|
+
account,
|
|
572
|
+
operator,
|
|
573
|
+
create(EthCallContextSchema, {
|
|
574
|
+
chainId: this.context.chainId.toString(),
|
|
575
|
+
address: this.context.address,
|
|
576
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
577
|
+
}),
|
|
578
|
+
);
|
|
561
579
|
},
|
|
562
580
|
safeBatchTransferFrom(
|
|
563
581
|
from: string,
|
|
@@ -573,11 +591,11 @@ export class ERC1155BoundContractView extends BoundContractView<
|
|
|
573
591
|
ids,
|
|
574
592
|
amounts,
|
|
575
593
|
data,
|
|
576
|
-
{
|
|
594
|
+
create(EthCallContextSchema, {
|
|
577
595
|
chainId: this.context.chainId.toString(),
|
|
578
596
|
address: this.context.address,
|
|
579
597
|
blockTag: this.context.getBlockTag(overrides),
|
|
580
|
-
},
|
|
598
|
+
}),
|
|
581
599
|
);
|
|
582
600
|
},
|
|
583
601
|
safeTransferFrom(
|
|
@@ -588,39 +606,56 @@ export class ERC1155BoundContractView extends BoundContractView<
|
|
|
588
606
|
data: BytesLike,
|
|
589
607
|
overrides?: Overrides,
|
|
590
608
|
): EthCallParam {
|
|
591
|
-
return this.view.encodeCall.safeTransferFrom(
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
609
|
+
return this.view.encodeCall.safeTransferFrom(
|
|
610
|
+
from,
|
|
611
|
+
to,
|
|
612
|
+
id,
|
|
613
|
+
amount,
|
|
614
|
+
data,
|
|
615
|
+
create(EthCallContextSchema, {
|
|
616
|
+
chainId: this.context.chainId.toString(),
|
|
617
|
+
address: this.context.address,
|
|
618
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
619
|
+
}),
|
|
620
|
+
);
|
|
596
621
|
},
|
|
597
622
|
setApprovalForAll(
|
|
598
623
|
operator: string,
|
|
599
624
|
approved: boolean,
|
|
600
625
|
overrides?: Overrides,
|
|
601
626
|
): EthCallParam {
|
|
602
|
-
return this.view.encodeCall.setApprovalForAll(
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
627
|
+
return this.view.encodeCall.setApprovalForAll(
|
|
628
|
+
operator,
|
|
629
|
+
approved,
|
|
630
|
+
create(EthCallContextSchema, {
|
|
631
|
+
chainId: this.context.chainId.toString(),
|
|
632
|
+
address: this.context.address,
|
|
633
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
634
|
+
}),
|
|
635
|
+
);
|
|
607
636
|
},
|
|
608
637
|
supportsInterface(
|
|
609
638
|
interfaceId: BytesLike,
|
|
610
639
|
overrides?: Overrides,
|
|
611
640
|
): EthCallParam {
|
|
612
|
-
return this.view.encodeCall.supportsInterface(
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
641
|
+
return this.view.encodeCall.supportsInterface(
|
|
642
|
+
interfaceId,
|
|
643
|
+
create(EthCallContextSchema, {
|
|
644
|
+
chainId: this.context.chainId.toString(),
|
|
645
|
+
address: this.context.address,
|
|
646
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
647
|
+
}),
|
|
648
|
+
);
|
|
617
649
|
},
|
|
618
650
|
uri(id: BigNumberish, overrides?: Overrides): EthCallParam {
|
|
619
|
-
return this.view.encodeCall.uri(
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
651
|
+
return this.view.encodeCall.uri(
|
|
652
|
+
id,
|
|
653
|
+
create(EthCallContextSchema, {
|
|
654
|
+
chainId: this.context.chainId.toString(),
|
|
655
|
+
address: this.context.address,
|
|
656
|
+
blockTag: this.context.getBlockTag(overrides),
|
|
657
|
+
}),
|
|
658
|
+
);
|
|
624
659
|
},
|
|
625
660
|
};
|
|
626
661
|
}
|