@sentio/sdk 2.53.3-rc.5 → 2.54.0-rc.10
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.map +1 -1
- package/lib/aptos/aptos-plugin.js +6 -2
- package/lib/aptos/aptos-plugin.js.map +1 -1
- package/lib/aptos/aptos-processor.d.ts.map +1 -1
- package/lib/aptos/aptos-processor.js +7 -0
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/aptos/builtin/0x1.d.ts +840 -815
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js +1200 -1137
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts +67 -52
- package/lib/aptos/builtin/0x3.d.ts.map +1 -1
- package/lib/aptos/builtin/0x3.js +66 -53
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/builtin/0x4.d.ts +113 -113
- package/lib/aptos/builtin/0x4.d.ts.map +1 -1
- package/lib/aptos/builtin/0x4.js +149 -149
- package/lib/aptos/builtin/0x4.js.map +1 -1
- package/lib/btc/btc-plugin.d.ts.map +1 -1
- package/lib/btc/btc-plugin.js +5 -2
- package/lib/btc/btc-plugin.js.map +1 -1
- package/lib/btc/btc-processor.d.ts +1 -0
- package/lib/btc/btc-processor.d.ts.map +1 -1
- package/lib/btc/btc-processor.js +1 -0
- package/lib/btc/btc-processor.js.map +1 -1
- package/lib/cosmos/cosmos-plugin.d.ts.map +1 -1
- package/lib/cosmos/cosmos-plugin.js +1 -0
- package/lib/cosmos/cosmos-plugin.js.map +1 -1
- package/lib/cosmos/cosmos-processor.d.ts.map +1 -1
- package/lib/cosmos/cosmos-processor.js +3 -0
- package/lib/cosmos/cosmos-processor.js.map +1 -1
- package/lib/cosmos/types.d.ts +1 -0
- package/lib/cosmos/types.d.ts.map +1 -1
- package/lib/eth/base-processor.d.ts.map +1 -1
- package/lib/eth/base-processor.js +1 -0
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/fuel/asset-processor.d.ts.map +1 -1
- package/lib/fuel/asset-processor.js +3 -0
- package/lib/fuel/asset-processor.js.map +1 -1
- package/lib/fuel/base-processor.d.ts.map +1 -1
- package/lib/fuel/base-processor.js +2 -0
- package/lib/fuel/base-processor.js.map +1 -1
- package/lib/fuel/fuel-plugin.d.ts +4 -2
- package/lib/fuel/fuel-plugin.d.ts.map +1 -1
- package/lib/fuel/fuel-plugin.js +58 -25
- package/lib/fuel/fuel-plugin.js.map +1 -1
- package/lib/fuel/fuel-processor.d.ts +3 -2
- package/lib/fuel/fuel-processor.d.ts.map +1 -1
- package/lib/fuel/fuel-processor.js +22 -24
- 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 +3 -0
- package/lib/fuel/global-processor.js.map +1 -1
- package/lib/fuel/transaction.d.ts +5 -1
- package/lib/fuel/transaction.d.ts.map +1 -1
- package/lib/fuel/transaction.js +17 -10
- package/lib/fuel/transaction.js.map +1 -1
- package/lib/fuel/types.d.ts +7 -1
- package/lib/fuel/types.d.ts.map +1 -1
- package/lib/fuel/types.js.map +1 -1
- package/lib/move/filter.d.ts +4 -0
- package/lib/move/filter.d.ts.map +1 -1
- package/lib/move/filter.js +4 -0
- package/lib/move/filter.js.map +1 -1
- package/lib/stark/starknet-plugin.d.ts.map +1 -1
- package/lib/stark/starknet-plugin.js +2 -1
- package/lib/stark/starknet-plugin.js.map +1 -1
- package/lib/stark/starknet-processor.d.ts +1 -0
- package/lib/stark/starknet-processor.d.ts.map +1 -1
- package/lib/stark/starknet-processor.js +4 -0
- package/lib/stark/starknet-processor.js.map +1 -1
- package/lib/store/codegen.js +22 -5
- package/lib/store/codegen.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +83 -0
- package/lib/sui/builtin/0x1.d.ts.map +1 -1
- package/lib/sui/builtin/0x1.js +345 -1
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/context.d.ts +1 -0
- package/lib/sui/context.d.ts.map +1 -1
- package/lib/sui/context.js +2 -0
- package/lib/sui/context.js.map +1 -1
- package/lib/sui/sui-object-processor.d.ts.map +1 -1
- package/lib/sui/sui-object-processor.js +2 -0
- package/lib/sui/sui-object-processor.js.map +1 -1
- package/lib/sui/sui-plugin.d.ts.map +1 -1
- package/lib/sui/sui-plugin.js +10 -5
- package/lib/sui/sui-plugin.js.map +1 -1
- package/lib/sui/sui-processor.d.ts.map +1 -1
- package/lib/sui/sui-processor.js +6 -0
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/testing/fuel-facet.d.ts.map +1 -1
- package/lib/testing/fuel-facet.js +8 -7
- package/lib/testing/fuel-facet.js.map +1 -1
- package/package.json +8 -8
- package/src/aptos/abis/0x1.json +3816 -3657
- package/src/aptos/abis/0x3.json +247 -219
- package/src/aptos/abis/0x4.json +576 -576
- package/src/aptos/aptos-plugin.ts +6 -2
- package/src/aptos/aptos-processor.ts +8 -0
- package/src/aptos/builtin/0x1.ts +2374 -2235
- package/src/aptos/builtin/0x3.ts +154 -113
- package/src/aptos/builtin/0x4.ts +280 -282
- package/src/btc/btc-plugin.ts +5 -2
- package/src/btc/btc-processor.ts +2 -0
- package/src/cosmos/cosmos-plugin.ts +1 -0
- package/src/cosmos/cosmos-processor.ts +5 -1
- package/src/cosmos/types.ts +1 -0
- package/src/eth/base-processor.ts +2 -0
- package/src/fuel/asset-processor.ts +5 -1
- package/src/fuel/base-processor.ts +2 -0
- package/src/fuel/fuel-plugin.ts +66 -24
- package/src/fuel/fuel-processor.ts +38 -31
- package/src/fuel/global-processor.ts +5 -1
- package/src/fuel/transaction.ts +18 -9
- package/src/fuel/types.ts +8 -0
- package/src/move/filter.ts +4 -0
- package/src/stark/starknet-plugin.ts +2 -1
- package/src/stark/starknet-processor.ts +7 -1
- package/src/store/codegen.ts +20 -4
- package/src/sui/abis/0x1.json +391 -0
- package/src/sui/builtin/0x1.ts +510 -1
- package/src/sui/context.ts +2 -0
- package/src/sui/sui-object-processor.ts +2 -0
- package/src/sui/sui-plugin.ts +10 -5
- package/src/sui/sui-processor.ts +7 -0
- package/src/testing/fuel-facet.ts +8 -7
@@ -96,7 +96,8 @@ export class AptosPlugin extends Plugin {
|
|
96
96
|
}
|
97
97
|
}),
|
98
98
|
fetchConfig: handler.fetchConfig,
|
99
|
-
handlerId
|
99
|
+
handlerId,
|
100
|
+
handlerName: handler.handlerName
|
100
101
|
}
|
101
102
|
contractConfig.moveEventConfigs.push(eventHandlerConfig)
|
102
103
|
}
|
@@ -115,7 +116,8 @@ export class AptosPlugin extends Plugin {
|
|
115
116
|
}
|
116
117
|
}),
|
117
118
|
fetchConfig: handler.fetchConfig,
|
118
|
-
handlerId
|
119
|
+
handlerId,
|
120
|
+
handlerName: handler.handlerName
|
119
121
|
}
|
120
122
|
contractConfig.moveCallConfigs.push(functionHandlerConfig)
|
121
123
|
}
|
@@ -134,6 +136,7 @@ export class AptosPlugin extends Plugin {
|
|
134
136
|
const handlerId = handlers.aptosResourceHandlers.push(handler.handler) - 1
|
135
137
|
accountConfig.moveResourceChangeConfigs.push({
|
136
138
|
handlerId: handlerId,
|
139
|
+
handlerName: handler.handlerName,
|
137
140
|
type: handler.type
|
138
141
|
})
|
139
142
|
}
|
@@ -189,6 +192,7 @@ export class AptosPlugin extends Plugin {
|
|
189
192
|
// on resource change
|
190
193
|
accountConfig.moveResourceChangeConfigs.push({
|
191
194
|
handlerId,
|
195
|
+
handlerName: handler.handlerName,
|
192
196
|
type: handler.type
|
193
197
|
})
|
194
198
|
}
|
@@ -76,6 +76,8 @@ export class AptosTransactionProcessor<T extends GeneralTransactionResponse, CT
|
|
76
76
|
AptosProcessorState.INSTANCE.addValue(this)
|
77
77
|
this.coder = defaultMoveCoder(this.config.network)
|
78
78
|
// this.loadTypes(this.coder)
|
79
|
+
|
80
|
+
return proxyProcessor(this)
|
79
81
|
}
|
80
82
|
|
81
83
|
protected onMoveEvent(
|
@@ -98,6 +100,7 @@ export class AptosTransactionProcessor<T extends GeneralTransactionResponse, CT
|
|
98
100
|
const allEventType = new Set(_filters.map((f) => accountTypeString(processor.config.address) + '::' + f.type))
|
99
101
|
|
100
102
|
this.eventHandlers.push({
|
103
|
+
handlerName: getHandlerName(),
|
101
104
|
handler: async function (data) {
|
102
105
|
if (!data.transaction) {
|
103
106
|
throw new ServerError(Status.INVALID_ARGUMENT, 'event is null')
|
@@ -156,6 +159,7 @@ export class AptosTransactionProcessor<T extends GeneralTransactionResponse, CT
|
|
156
159
|
const processor = this
|
157
160
|
|
158
161
|
this.callHandlers.push({
|
162
|
+
handlerName: getHandlerName(),
|
159
163
|
handler: async function (data) {
|
160
164
|
if (!data.transaction) {
|
161
165
|
throw new ServerError(Status.INVALID_ARGUMENT, 'call is null')
|
@@ -197,6 +201,7 @@ export class AptosTransactionProcessor<T extends GeneralTransactionResponse, CT
|
|
197
201
|
|
198
202
|
const processor = this
|
199
203
|
this.callHandlers.push({
|
204
|
+
handlerName: getHandlerName(),
|
200
205
|
handler: async function (data) {
|
201
206
|
if (!data.transaction) {
|
202
207
|
throw new ServerError(Status.INVALID_ARGUMENT, 'call is null')
|
@@ -237,6 +242,7 @@ export class AptosTransactionProcessor<T extends GeneralTransactionResponse, CT
|
|
237
242
|
|
238
243
|
const processor = this
|
239
244
|
this.resourceChangeHandlers.push({
|
245
|
+
handlerName: getHandlerName(),
|
240
246
|
handler: async function (data) {
|
241
247
|
if (!data.resources || !data.version) {
|
242
248
|
throw new ServerError(Status.INVALID_ARGUMENT, 'resource is null')
|
@@ -347,6 +353,7 @@ export class AptosModulesProcessor extends AptosTransactionProcessor<
|
|
347
353
|
> {
|
348
354
|
private constructor(options: AptosBindOptions) {
|
349
355
|
super(ALL_ADDRESS, options)
|
356
|
+
return proxyProcessor(this)
|
350
357
|
}
|
351
358
|
|
352
359
|
static bind(options: AptosBindOptions): AptosModulesProcessor {
|
@@ -358,6 +365,7 @@ export class AptosGlobalProcessor {
|
|
358
365
|
private baseProcessor
|
359
366
|
private constructor(options: AptosBindOptions) {
|
360
367
|
this.baseProcessor = new AptosTransactionProcessor('*', options)
|
368
|
+
return proxyProcessor(this)
|
361
369
|
}
|
362
370
|
|
363
371
|
static bind(options: AptosBindOptions): AptosGlobalProcessor {
|