@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.
@@ -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
  }
@@ -41,6 +41,7 @@ export interface SuiBindOptions {
41
41
  address: string
42
42
  network?: SuiNetwork
43
43
  startCheckpoint?: bigint
44
+ endCheckpoint?: bigint
44
45
  baseLabels?: Labels
45
46
  }
46
47