@sentio/sdk 2.61.1-rc.1 → 2.62.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.
Files changed (45) hide show
  1. package/lib/aptos/builtin/0x1.d.ts +31 -0
  2. package/lib/aptos/builtin/0x1.d.ts.map +1 -1
  3. package/lib/aptos/builtin/0x1.js +62 -1
  4. package/lib/aptos/builtin/0x1.js.map +1 -1
  5. package/lib/iota/builtin/0x1.d.ts +65 -110
  6. package/lib/iota/builtin/0x1.d.ts.map +1 -1
  7. package/lib/iota/builtin/0x1.js.map +1 -1
  8. package/lib/iota/builtin/0x2.d.ts +595 -853
  9. package/lib/iota/builtin/0x2.d.ts.map +1 -1
  10. package/lib/iota/builtin/0x2.js.map +1 -1
  11. package/lib/iota/builtin/0x3.d.ts +289 -405
  12. package/lib/iota/builtin/0x3.d.ts.map +1 -1
  13. package/lib/iota/builtin/0x3.js +42 -1
  14. package/lib/iota/builtin/0x3.js.map +1 -1
  15. package/lib/sui/builtin/0x1.d.ts +10 -0
  16. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  17. package/lib/sui/builtin/0x1.js +109 -1
  18. package/lib/sui/builtin/0x1.js.map +1 -1
  19. package/lib/sui/builtin/0x2.d.ts +109 -0
  20. package/lib/sui/builtin/0x2.d.ts.map +1 -1
  21. package/lib/sui/builtin/0x2.js +437 -1
  22. package/lib/sui/builtin/0x2.js.map +1 -1
  23. package/lib/sui/builtin/0x3.d.ts +4 -0
  24. package/lib/sui/builtin/0x3.d.ts.map +1 -1
  25. package/lib/sui/builtin/0x3.js +41 -1
  26. package/lib/sui/builtin/0x3.js.map +1 -1
  27. package/lib/testing/test-processor-server.d.ts.map +1 -1
  28. package/lib/testing/test-processor-server.js +2 -2
  29. package/lib/testing/test-processor-server.js.map +1 -1
  30. package/lib/testing/test-provider.js +2 -2
  31. package/package.json +16 -16
  32. package/src/aptos/abis/0x1.json +111 -9
  33. package/src/aptos/builtin/0x1.ts +118 -1
  34. package/src/iota/abis/0x3.json +70 -0
  35. package/src/iota/builtin/0x1.ts +65 -110
  36. package/src/iota/builtin/0x2.ts +595 -853
  37. package/src/iota/builtin/0x3.ts +341 -404
  38. package/src/sui/abis/0x1.json +123 -0
  39. package/src/sui/abis/0x2.json +607 -32
  40. package/src/sui/abis/0x3.json +52 -0
  41. package/src/sui/builtin/0x1.ts +153 -1
  42. package/src/sui/builtin/0x2.ts +708 -44
  43. package/src/sui/builtin/0x3.ts +57 -1
  44. package/src/testing/test-processor-server.ts +2 -2
  45. package/src/testing/test-provider.ts +2 -2
@@ -18,7 +18,6 @@ import {
18
18
  } from '@sentio/protos'
19
19
  import { CallContext } from 'nice-grpc-common'
20
20
  import { Endpoints, PluginManager, ProcessorServiceImpl, State, StoreContext } from '@sentio/runtime'
21
- import { CHAIN_MAP } from '@sentio/chain'
22
21
 
23
22
  import { AptosFacet } from './aptos-facet.js'
24
23
  import { SolanaFacet } from './solana-facet.js'
@@ -32,6 +31,7 @@ import { Subject } from 'rxjs'
32
31
  import { MemoryDatabase } from './memory-database.js'
33
32
  import { DatabaseSchemaState } from '../core/database-schema.js'
34
33
  import { IotaFacet } from './iota-facet.js'
34
+ import { ChainInfo } from '@sentio/chain'
35
35
 
36
36
  export const TEST_CONTEXT: CallContext = <CallContext>{}
37
37
 
@@ -73,7 +73,7 @@ export class TestProcessorServer implements ProcessorServiceImplementation {
73
73
  this.starknet = new StarknetFacet(this)
74
74
  this.btc = new BTCFacet(this)
75
75
 
76
- for (const k in CHAIN_MAP) {
76
+ for (const k of Object.keys(ChainInfo)) {
77
77
  const http = httpEndpoints[k] || ''
78
78
  Endpoints.INSTANCE.chainServer.set(k, http)
79
79
  }
@@ -1,5 +1,5 @@
1
1
  import { Endpoints } from '@sentio/runtime'
2
- import { CHAIN_MAP } from '@sentio/chain'
2
+ import { ChainInfo } from '@sentio/chain'
3
3
 
4
4
  export function loadTestProvidersFromEnv(requiredChainIds: string[] | string): boolean {
5
5
  const found: string[] = []
@@ -8,7 +8,7 @@ export function loadTestProvidersFromEnv(requiredChainIds: string[] | string): b
8
8
  requiredChainIds = [requiredChainIds]
9
9
  }
10
10
 
11
- for (const k of Object.keys(CHAIN_MAP)) {
11
+ for (const k of Object.keys(ChainInfo)) {
12
12
  const envKey = 'TEST_ENDPOINT_' + k
13
13
  const http = process.env[envKey]
14
14
  if (!http) {