@sentio/sdk 2.59.0-rc.4 → 2.59.0-rc.6
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 +11 -5
- package/lib/aptos/aptos-plugin.js.map +1 -1
- package/lib/aptos/aptos-processor.d.ts +1 -0
- package/lib/aptos/aptos-processor.d.ts.map +1 -1
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts.map +1 -1
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/builtin/0x4.d.ts.map +1 -1
- package/lib/aptos/builtin/0x4.js.map +1 -1
- package/lib/aptos/codegen/codegen.js +4 -4
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/aptos/network.d.ts +1 -0
- package/lib/aptos/network.d.ts.map +1 -1
- package/lib/aptos/network.js +1 -0
- package/lib/aptos/network.js.map +1 -1
- package/lib/sui/sui-plugin.d.ts.map +1 -1
- package/lib/sui/sui-plugin.js +9 -4
- package/lib/sui/sui-plugin.js.map +1 -1
- package/lib/sui/sui-processor.d.ts +1 -0
- package/lib/sui/sui-processor.d.ts.map +1 -1
- package/lib/sui/sui-processor.js.map +1 -1
- package/package.json +7 -6
- package/src/aptos/aptos-plugin.ts +11 -5
- package/src/aptos/aptos-processor.ts +1 -0
- package/src/aptos/builtin/0x1.ts +1 -0
- package/src/aptos/builtin/0x3.ts +1 -0
- package/src/aptos/builtin/0x4.ts +1 -0
- package/src/aptos/codegen/codegen.ts +6 -4
- package/src/aptos/network.ts +1 -0
- package/src/sui/sui-plugin.ts +9 -4
- package/src/sui/sui-processor.ts +1 -0
package/src/sui/sui-plugin.ts
CHANGED
@@ -64,6 +64,7 @@ export class SuiPlugin extends Plugin {
|
|
64
64
|
objectId: instance.contract?.address || '',
|
65
65
|
network: <SuiNetwork>instance.contract?.chainId || SuiNetwork.MAIN_NET,
|
66
66
|
startCheckpoint: instance.startBlock || 0n,
|
67
|
+
endCheckpoint: instance.endBlock || 0n,
|
67
68
|
baseLabels: instance.baseLabels
|
68
69
|
},
|
69
70
|
NoopContext
|
@@ -88,7 +89,8 @@ export class SuiPlugin extends Plugin {
|
|
88
89
|
address: suiProcessor.config.address,
|
89
90
|
abi: ''
|
90
91
|
},
|
91
|
-
startBlock: suiProcessor.config.startCheckpoint
|
92
|
+
startBlock: suiProcessor.config.startCheckpoint,
|
93
|
+
endBlock: suiProcessor.config.endCheckpoint
|
92
94
|
})
|
93
95
|
for (const handler of suiProcessor.eventHandlers) {
|
94
96
|
const handlerId = handlers.suiEventHandlers.push(handler.handler) - 1
|
@@ -131,7 +133,8 @@ export class SuiPlugin extends Plugin {
|
|
131
133
|
const objectChangeHandler: MoveResourceChangeConfig = {
|
132
134
|
type: handler.type,
|
133
135
|
handlerId,
|
134
|
-
handlerName: handler.handlerName
|
136
|
+
handlerName: handler.handlerName,
|
137
|
+
includeDeleted: false
|
135
138
|
}
|
136
139
|
contractConfig.moveResourceChangeConfigs.push(objectChangeHandler)
|
137
140
|
}
|
@@ -142,7 +145,8 @@ export class SuiPlugin extends Plugin {
|
|
142
145
|
const accountConfig = AccountConfig.fromPartial({
|
143
146
|
address: processor.config.address,
|
144
147
|
chainId: processor.getChainId(),
|
145
|
-
startBlock: processor.config.startCheckpoint // TODO maybe use another field
|
148
|
+
startBlock: processor.config.startCheckpoint, // TODO maybe use another field
|
149
|
+
endBlock: processor.config.endCheckpoint
|
146
150
|
})
|
147
151
|
|
148
152
|
for (const handler of processor.objectChangeHandlers) {
|
@@ -150,7 +154,8 @@ export class SuiPlugin extends Plugin {
|
|
150
154
|
const objectChangeHandler: MoveResourceChangeConfig = {
|
151
155
|
type: handler.type,
|
152
156
|
handlerId,
|
153
|
-
handlerName: handler.handlerName
|
157
|
+
handlerName: handler.handlerName,
|
158
|
+
includeDeleted: false
|
154
159
|
}
|
155
160
|
accountConfig.moveResourceChangeConfigs.push(objectChangeHandler)
|
156
161
|
}
|