@sentio/sdk 2.61.0 → 2.62.0-rc.1
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/builtin/0x1.d.ts +31 -0
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js +62 -1
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/iota/builtin/0x1.d.ts +65 -110
- package/lib/iota/builtin/0x1.d.ts.map +1 -1
- package/lib/iota/builtin/0x1.js.map +1 -1
- package/lib/iota/builtin/0x2.d.ts +595 -853
- package/lib/iota/builtin/0x2.d.ts.map +1 -1
- package/lib/iota/builtin/0x2.js.map +1 -1
- package/lib/iota/builtin/0x3.d.ts +289 -405
- package/lib/iota/builtin/0x3.d.ts.map +1 -1
- package/lib/iota/builtin/0x3.js +42 -1
- package/lib/iota/builtin/0x3.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +10 -0
- package/lib/sui/builtin/0x1.d.ts.map +1 -1
- package/lib/sui/builtin/0x1.js +109 -1
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +109 -0
- package/lib/sui/builtin/0x2.d.ts.map +1 -1
- package/lib/sui/builtin/0x2.js +437 -1
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +4 -0
- package/lib/sui/builtin/0x3.d.ts.map +1 -1
- package/lib/sui/builtin/0x3.js +41 -1
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/testing/test-processor-server.d.ts.map +1 -1
- package/lib/testing/test-processor-server.js +2 -2
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/testing/test-provider.js +2 -2
- package/package.json +16 -16
- package/src/aptos/abis/0x1.json +111 -9
- package/src/aptos/builtin/0x1.ts +118 -1
- package/src/iota/abis/0x3.json +70 -0
- package/src/iota/builtin/0x1.ts +65 -110
- package/src/iota/builtin/0x2.ts +595 -853
- package/src/iota/builtin/0x3.ts +341 -404
- package/src/sui/abis/0x1.json +123 -0
- package/src/sui/abis/0x2.json +607 -32
- package/src/sui/abis/0x3.json +52 -0
- package/src/sui/builtin/0x1.ts +153 -1
- package/src/sui/builtin/0x2.ts +708 -44
- package/src/sui/builtin/0x3.ts +57 -1
- package/src/testing/test-processor-server.ts +2 -2
- 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
|
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 {
|
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(
|
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) {
|