@sentio/runtime 3.2.0 → 3.3.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/chunk-5M6FVPAW.js +26070 -0
- package/lib/chunk-5M6FVPAW.js.map +1 -0
- package/lib/chunk-D6CHVWKJ.js +60244 -0
- package/lib/{chunk-WQZPRG3V.js.map → chunk-D6CHVWKJ.js.map} +1 -1
- package/lib/chunk-I45UXGDM.js +1697 -0
- package/lib/{chunk-TW627LH5.js.map → chunk-I45UXGDM.js.map} +1 -1
- package/lib/chunk-KVSDPGUI.js +50 -0
- package/lib/chunk-L2A6JPIQ.js +21 -0
- package/lib/{chunk-CJDESLYQ.js.map → chunk-L2A6JPIQ.js.map} +1 -1
- package/lib/getMachineId-bsd-QYFPRONP.js +41 -0
- package/lib/{getMachineId-bsd-CDSZ2S36.js.map → getMachineId-bsd-QYFPRONP.js.map} +1 -1
- package/lib/getMachineId-darwin-XC67FIUW.js +41 -0
- package/lib/{getMachineId-darwin-LM5BSWCG.js.map → getMachineId-darwin-XC67FIUW.js.map} +1 -1
- package/lib/getMachineId-linux-4G7ZY7LQ.js +33 -0
- package/lib/{getMachineId-linux-UA53ZQFA.js.map → getMachineId-linux-4G7ZY7LQ.js.map} +1 -1
- package/lib/getMachineId-unsupported-5IH5IW7P.js +24 -0
- package/lib/{getMachineId-unsupported-LDR77GGJ.js.map → getMachineId-unsupported-5IH5IW7P.js.map} +1 -1
- package/lib/getMachineId-win-WSA3TUKL.js +43 -0
- package/lib/{getMachineId-win-XULW45X4.js.map → getMachineId-win-WSA3TUKL.js.map} +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +139 -1
- package/lib/index.js.map +1 -1
- package/lib/{processor-BUTmbpmJ.d.ts → processor-MLp_j8IT.d.ts} +16 -0
- package/lib/processor-runner.js +30646 -73
- package/lib/processor-runner.js.map +1 -1
- package/lib/test-processor.test.d.ts +1 -1
- package/lib/test-processor.test.js.map +1 -1
- package/package.json +1 -1
- package/src/gen/processor/protos/processor.ts +164 -2
- package/src/gen/service/common/protos/common.ts +34 -0
- package/lib/chunk-AUPVVLD3.js +0 -3
- package/lib/chunk-CJDESLYQ.js +0 -3
- package/lib/chunk-TW627LH5.js +0 -3
- package/lib/chunk-VRBW2KLF.js +0 -26
- package/lib/chunk-VRBW2KLF.js.map +0 -1
- package/lib/chunk-WQZPRG3V.js +0 -117
- package/lib/getMachineId-bsd-CDSZ2S36.js +0 -3
- package/lib/getMachineId-darwin-LM5BSWCG.js +0 -4
- package/lib/getMachineId-linux-UA53ZQFA.js +0 -3
- package/lib/getMachineId-unsupported-LDR77GGJ.js +0 -3
- package/lib/getMachineId-win-XULW45X4.js +0 -3
- /package/lib/{chunk-AUPVVLD3.js.map → chunk-KVSDPGUI.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Plugin, D as DataBinding, a as ProcessResult, H as HandlerType } from './processor-
|
|
1
|
+
import { P as Plugin, D as DataBinding, a as ProcessResult, H as HandlerType } from './processor-MLp_j8IT.js';
|
|
2
2
|
import { ProcessStreamResponse_Partitions, InitResponse, ProcessConfigResponse } from '@sentio/protos';
|
|
3
3
|
import 'rxjs';
|
|
4
4
|
import 'node:async_hooks';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/test-processor.test.ts"],"sourcesContent":["import { Plugin, PluginManager } from './plugin.js'\nimport { DataBinding, HandlerType, ProcessResult } from './gen/processor/protos/processor.js'\nimport { AccountConfig, InitResponse, ProcessConfigResponse, ProcessStreamResponse_Partitions } from '@sentio/protos'\n\nexport class TestPlugin extends Plugin {\n async processBinding(request: DataBinding): Promise<ProcessResult> {\n const dbContext = PluginManager.INSTANCE.dbContextLocalStorage.getStore()\n if (dbContext) {\n await dbContext.sendRequest({\n get: {\n entity: 'Test',\n id: '1'\n }\n })\n }\n\n return ProcessResult.fromPartial({\n states: {\n configUpdated: true\n }\n })\n }\n supportedHandlers = [HandlerType.UNKNOWN, HandlerType.ETH_LOG]\n\n async partition(request: DataBinding): Promise<ProcessStreamResponse_Partitions> {\n return {\n partitions: request.handlerIds.reduce(\n (acc, id) => ({\n ...acc,\n [id]: {\n userValue: 'test'\n }\n }),\n {}\n )\n }\n }\n\n async init(config: InitResponse): Promise<void> {\n config.chainIds = ['1']\n }\n\n async configure(config: ProcessConfigResponse, forChainId?: string): Promise<void> {\n config.accountConfigs = [\n AccountConfig.fromPartial({\n address: '0x',\n chainId: '1'\n })\n ]\n }\n}\n\nPluginManager.INSTANCE.plugins = []\nPluginManager.INSTANCE.register(new TestPlugin())\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/test-processor.test.ts"],"sourcesContent":["import { Plugin, PluginManager } from './plugin.js'\nimport { DataBinding, HandlerType, ProcessResult } from './gen/processor/protos/processor.js'\nimport { AccountConfig, InitResponse, ProcessConfigResponse, ProcessStreamResponse_Partitions } from '@sentio/protos'\n\nexport class TestPlugin extends Plugin {\n async processBinding(request: DataBinding): Promise<ProcessResult> {\n const dbContext = PluginManager.INSTANCE.dbContextLocalStorage.getStore()\n if (dbContext) {\n await dbContext.sendRequest({\n get: {\n entity: 'Test',\n id: '1'\n }\n })\n }\n\n return ProcessResult.fromPartial({\n states: {\n configUpdated: true\n }\n })\n }\n supportedHandlers = [HandlerType.UNKNOWN, HandlerType.ETH_LOG]\n\n async partition(request: DataBinding): Promise<ProcessStreamResponse_Partitions> {\n return {\n partitions: request.handlerIds.reduce(\n (acc, id) => ({\n ...acc,\n [id]: {\n userValue: 'test'\n }\n }),\n {}\n )\n }\n }\n\n async init(config: InitResponse): Promise<void> {\n config.chainIds = ['1']\n }\n\n async configure(config: ProcessConfigResponse, forChainId?: string): Promise<void> {\n config.accountConfigs = [\n AccountConfig.fromPartial({\n address: '0x',\n chainId: '1'\n })\n ]\n }\n}\n\nPluginManager.INSTANCE.plugins = []\nPluginManager.INSTANCE.register(new TestPlugin())\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":";;;;;;;;;;AAIO,IAAM,aAAN,cAAyB,OAAO;AAAA,EACrC,MAAM,eAAe,SAA8C;AACjE,UAAM,YAAY,cAAc,SAAS,sBAAsB,SAAS;AACxE,QAAI,WAAW;AACb,YAAM,UAAU,YAAY;AAAA,QAC1B,KAAK;AAAA,UACH,QAAQ;AAAA,UACR,IAAI;AAAA,QACN;AAAA,MACF,CAAC;AAAA,IACH;AAEA,WAAO,cAAc,YAAY;AAAA,MAC/B,QAAQ;AAAA,QACN,eAAe;AAAA,MACjB;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,oBAAoB,iCAAyC;AAAA,EAE7D,MAAM,UAAU,SAAiE;AAC/E,WAAO;AAAA,MACL,YAAY,QAAQ,WAAW;AAAA,QAC7B,CAAC,KAAK,QAAQ;AAAA,UACZ,GAAG;AAAA,UACH,CAAC,EAAE,GAAG;AAAA,YACJ,WAAW;AAAA,UACb;AAAA,QACF;AAAA,QACA,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,KAAK,QAAqC;AAC9C,WAAO,WAAW,CAAC,GAAG;AAAA,EACxB;AAAA,EAEA,MAAM,UAAU,QAA+B,YAAoC;AACjF,WAAO,iBAAiB;AAAA,MACtB,cAAc,YAAY;AAAA,QACxB,SAAS;AAAA,QACT,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AAAA,EACF;AACF;AAEA,cAAc,SAAS,UAAU,CAAC;AAClC,cAAc,SAAS,SAAS,IAAI,WAAW,CAAC;AAC/C,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -220,6 +220,7 @@ export enum HandlerType {
|
|
|
220
220
|
FUEL_BLOCK = 17,
|
|
221
221
|
COSMOS_CALL = 14,
|
|
222
222
|
STARKNET_EVENT = 15,
|
|
223
|
+
SOL_BLOCK = 21,
|
|
223
224
|
UNRECOGNIZED = -1,
|
|
224
225
|
}
|
|
225
226
|
|
|
@@ -282,6 +283,9 @@ export function handlerTypeFromJSON(object: any): HandlerType {
|
|
|
282
283
|
case 15:
|
|
283
284
|
case "STARKNET_EVENT":
|
|
284
285
|
return HandlerType.STARKNET_EVENT;
|
|
286
|
+
case 21:
|
|
287
|
+
case "SOL_BLOCK":
|
|
288
|
+
return HandlerType.SOL_BLOCK;
|
|
285
289
|
case -1:
|
|
286
290
|
case "UNRECOGNIZED":
|
|
287
291
|
default:
|
|
@@ -329,6 +333,8 @@ export function handlerTypeToJSON(object: HandlerType): string {
|
|
|
329
333
|
return "COSMOS_CALL";
|
|
330
334
|
case HandlerType.STARKNET_EVENT:
|
|
331
335
|
return "STARKNET_EVENT";
|
|
336
|
+
case HandlerType.SOL_BLOCK:
|
|
337
|
+
return "SOL_BLOCK";
|
|
332
338
|
case HandlerType.UNRECOGNIZED:
|
|
333
339
|
default:
|
|
334
340
|
return "UNRECOGNIZED";
|
|
@@ -787,6 +793,7 @@ export interface InstructionHandlerConfig {
|
|
|
787
793
|
innerInstruction: boolean;
|
|
788
794
|
parsedInstruction: boolean;
|
|
789
795
|
rawDataInstruction: boolean;
|
|
796
|
+
fetchTx: boolean;
|
|
790
797
|
}
|
|
791
798
|
|
|
792
799
|
export interface ResourceConfig {
|
|
@@ -1229,6 +1236,7 @@ export interface Data {
|
|
|
1229
1236
|
fuelBlock?: Data_FuelBlock | undefined;
|
|
1230
1237
|
cosmosCall?: Data_CosmosCall | undefined;
|
|
1231
1238
|
starknetEvents?: Data_StarknetEvent | undefined;
|
|
1239
|
+
solBlock?: Data_SolBlock | undefined;
|
|
1232
1240
|
}
|
|
1233
1241
|
|
|
1234
1242
|
export interface Data_EthLog {
|
|
@@ -1273,6 +1281,13 @@ export interface Data_SolInstruction {
|
|
|
1273
1281
|
programAccountId: string;
|
|
1274
1282
|
accounts: string[];
|
|
1275
1283
|
parsed?: { [key: string]: any } | undefined;
|
|
1284
|
+
rawTransaction?: string | undefined;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
export interface Data_SolBlock {
|
|
1288
|
+
rawBlock: string;
|
|
1289
|
+
timestamp: Date | undefined;
|
|
1290
|
+
slot: bigint;
|
|
1276
1291
|
}
|
|
1277
1292
|
|
|
1278
1293
|
export interface Data_AptEvent {
|
|
@@ -5746,7 +5761,7 @@ export const LogFilter = {
|
|
|
5746
5761
|
};
|
|
5747
5762
|
|
|
5748
5763
|
function createBaseInstructionHandlerConfig(): InstructionHandlerConfig {
|
|
5749
|
-
return { innerInstruction: false, parsedInstruction: false, rawDataInstruction: false };
|
|
5764
|
+
return { innerInstruction: false, parsedInstruction: false, rawDataInstruction: false, fetchTx: false };
|
|
5750
5765
|
}
|
|
5751
5766
|
|
|
5752
5767
|
export const InstructionHandlerConfig = {
|
|
@@ -5760,6 +5775,9 @@ export const InstructionHandlerConfig = {
|
|
|
5760
5775
|
if (message.rawDataInstruction !== false) {
|
|
5761
5776
|
writer.uint32(24).bool(message.rawDataInstruction);
|
|
5762
5777
|
}
|
|
5778
|
+
if (message.fetchTx !== false) {
|
|
5779
|
+
writer.uint32(32).bool(message.fetchTx);
|
|
5780
|
+
}
|
|
5763
5781
|
return writer;
|
|
5764
5782
|
},
|
|
5765
5783
|
|
|
@@ -5791,6 +5809,13 @@ export const InstructionHandlerConfig = {
|
|
|
5791
5809
|
|
|
5792
5810
|
message.rawDataInstruction = reader.bool();
|
|
5793
5811
|
continue;
|
|
5812
|
+
case 4:
|
|
5813
|
+
if (tag !== 32) {
|
|
5814
|
+
break;
|
|
5815
|
+
}
|
|
5816
|
+
|
|
5817
|
+
message.fetchTx = reader.bool();
|
|
5818
|
+
continue;
|
|
5794
5819
|
}
|
|
5795
5820
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5796
5821
|
break;
|
|
@@ -5805,6 +5830,7 @@ export const InstructionHandlerConfig = {
|
|
|
5805
5830
|
innerInstruction: isSet(object.innerInstruction) ? globalThis.Boolean(object.innerInstruction) : false,
|
|
5806
5831
|
parsedInstruction: isSet(object.parsedInstruction) ? globalThis.Boolean(object.parsedInstruction) : false,
|
|
5807
5832
|
rawDataInstruction: isSet(object.rawDataInstruction) ? globalThis.Boolean(object.rawDataInstruction) : false,
|
|
5833
|
+
fetchTx: isSet(object.fetchTx) ? globalThis.Boolean(object.fetchTx) : false,
|
|
5808
5834
|
};
|
|
5809
5835
|
},
|
|
5810
5836
|
|
|
@@ -5819,6 +5845,9 @@ export const InstructionHandlerConfig = {
|
|
|
5819
5845
|
if (message.rawDataInstruction !== false) {
|
|
5820
5846
|
obj.rawDataInstruction = message.rawDataInstruction;
|
|
5821
5847
|
}
|
|
5848
|
+
if (message.fetchTx !== false) {
|
|
5849
|
+
obj.fetchTx = message.fetchTx;
|
|
5850
|
+
}
|
|
5822
5851
|
return obj;
|
|
5823
5852
|
},
|
|
5824
5853
|
|
|
@@ -5830,6 +5859,7 @@ export const InstructionHandlerConfig = {
|
|
|
5830
5859
|
message.innerInstruction = object.innerInstruction ?? false;
|
|
5831
5860
|
message.parsedInstruction = object.parsedInstruction ?? false;
|
|
5832
5861
|
message.rawDataInstruction = object.rawDataInstruction ?? false;
|
|
5862
|
+
message.fetchTx = object.fetchTx ?? false;
|
|
5833
5863
|
return message;
|
|
5834
5864
|
},
|
|
5835
5865
|
};
|
|
@@ -9600,6 +9630,7 @@ function createBaseData(): Data {
|
|
|
9600
9630
|
fuelBlock: undefined,
|
|
9601
9631
|
cosmosCall: undefined,
|
|
9602
9632
|
starknetEvents: undefined,
|
|
9633
|
+
solBlock: undefined,
|
|
9603
9634
|
};
|
|
9604
9635
|
}
|
|
9605
9636
|
|
|
@@ -9659,6 +9690,9 @@ export const Data = {
|
|
|
9659
9690
|
if (message.starknetEvents !== undefined) {
|
|
9660
9691
|
Data_StarknetEvent.encode(message.starknetEvents, writer.uint32(130).fork()).ldelim();
|
|
9661
9692
|
}
|
|
9693
|
+
if (message.solBlock !== undefined) {
|
|
9694
|
+
Data_SolBlock.encode(message.solBlock, writer.uint32(178).fork()).ldelim();
|
|
9695
|
+
}
|
|
9662
9696
|
return writer;
|
|
9663
9697
|
},
|
|
9664
9698
|
|
|
@@ -9795,6 +9829,13 @@ export const Data = {
|
|
|
9795
9829
|
|
|
9796
9830
|
message.starknetEvents = Data_StarknetEvent.decode(reader, reader.uint32());
|
|
9797
9831
|
continue;
|
|
9832
|
+
case 22:
|
|
9833
|
+
if (tag !== 178) {
|
|
9834
|
+
break;
|
|
9835
|
+
}
|
|
9836
|
+
|
|
9837
|
+
message.solBlock = Data_SolBlock.decode(reader, reader.uint32());
|
|
9838
|
+
continue;
|
|
9798
9839
|
}
|
|
9799
9840
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9800
9841
|
break;
|
|
@@ -9828,6 +9869,7 @@ export const Data = {
|
|
|
9828
9869
|
fuelBlock: isSet(object.fuelBlock) ? Data_FuelBlock.fromJSON(object.fuelBlock) : undefined,
|
|
9829
9870
|
cosmosCall: isSet(object.cosmosCall) ? Data_CosmosCall.fromJSON(object.cosmosCall) : undefined,
|
|
9830
9871
|
starknetEvents: isSet(object.starknetEvents) ? Data_StarknetEvent.fromJSON(object.starknetEvents) : undefined,
|
|
9872
|
+
solBlock: isSet(object.solBlock) ? Data_SolBlock.fromJSON(object.solBlock) : undefined,
|
|
9831
9873
|
};
|
|
9832
9874
|
},
|
|
9833
9875
|
|
|
@@ -9887,6 +9929,9 @@ export const Data = {
|
|
|
9887
9929
|
if (message.starknetEvents !== undefined) {
|
|
9888
9930
|
obj.starknetEvents = Data_StarknetEvent.toJSON(message.starknetEvents);
|
|
9889
9931
|
}
|
|
9932
|
+
if (message.solBlock !== undefined) {
|
|
9933
|
+
obj.solBlock = Data_SolBlock.toJSON(message.solBlock);
|
|
9934
|
+
}
|
|
9890
9935
|
return obj;
|
|
9891
9936
|
},
|
|
9892
9937
|
|
|
@@ -9949,6 +9994,9 @@ export const Data = {
|
|
|
9949
9994
|
message.starknetEvents = (object.starknetEvents !== undefined && object.starknetEvents !== null)
|
|
9950
9995
|
? Data_StarknetEvent.fromPartial(object.starknetEvents)
|
|
9951
9996
|
: undefined;
|
|
9997
|
+
message.solBlock = (object.solBlock !== undefined && object.solBlock !== null)
|
|
9998
|
+
? Data_SolBlock.fromPartial(object.solBlock)
|
|
9999
|
+
: undefined;
|
|
9952
10000
|
return message;
|
|
9953
10001
|
},
|
|
9954
10002
|
};
|
|
@@ -10518,7 +10566,14 @@ export const Data_EthTrace = {
|
|
|
10518
10566
|
};
|
|
10519
10567
|
|
|
10520
10568
|
function createBaseData_SolInstruction(): Data_SolInstruction {
|
|
10521
|
-
return {
|
|
10569
|
+
return {
|
|
10570
|
+
instructionData: "",
|
|
10571
|
+
slot: BigInt("0"),
|
|
10572
|
+
programAccountId: "",
|
|
10573
|
+
accounts: [],
|
|
10574
|
+
parsed: undefined,
|
|
10575
|
+
rawTransaction: undefined,
|
|
10576
|
+
};
|
|
10522
10577
|
}
|
|
10523
10578
|
|
|
10524
10579
|
export const Data_SolInstruction = {
|
|
@@ -10541,6 +10596,9 @@ export const Data_SolInstruction = {
|
|
|
10541
10596
|
if (message.parsed !== undefined) {
|
|
10542
10597
|
Struct.encode(Struct.wrap(message.parsed), writer.uint32(34).fork()).ldelim();
|
|
10543
10598
|
}
|
|
10599
|
+
if (message.rawTransaction !== undefined) {
|
|
10600
|
+
writer.uint32(50).string(message.rawTransaction);
|
|
10601
|
+
}
|
|
10544
10602
|
return writer;
|
|
10545
10603
|
},
|
|
10546
10604
|
|
|
@@ -10586,6 +10644,13 @@ export const Data_SolInstruction = {
|
|
|
10586
10644
|
|
|
10587
10645
|
message.parsed = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
10588
10646
|
continue;
|
|
10647
|
+
case 6:
|
|
10648
|
+
if (tag !== 50) {
|
|
10649
|
+
break;
|
|
10650
|
+
}
|
|
10651
|
+
|
|
10652
|
+
message.rawTransaction = reader.string();
|
|
10653
|
+
continue;
|
|
10589
10654
|
}
|
|
10590
10655
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10591
10656
|
break;
|
|
@@ -10602,6 +10667,7 @@ export const Data_SolInstruction = {
|
|
|
10602
10667
|
programAccountId: isSet(object.programAccountId) ? globalThis.String(object.programAccountId) : "",
|
|
10603
10668
|
accounts: globalThis.Array.isArray(object?.accounts) ? object.accounts.map((e: any) => globalThis.String(e)) : [],
|
|
10604
10669
|
parsed: isObject(object.parsed) ? object.parsed : undefined,
|
|
10670
|
+
rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : undefined,
|
|
10605
10671
|
};
|
|
10606
10672
|
},
|
|
10607
10673
|
|
|
@@ -10622,6 +10688,9 @@ export const Data_SolInstruction = {
|
|
|
10622
10688
|
if (message.parsed !== undefined) {
|
|
10623
10689
|
obj.parsed = message.parsed;
|
|
10624
10690
|
}
|
|
10691
|
+
if (message.rawTransaction !== undefined) {
|
|
10692
|
+
obj.rawTransaction = message.rawTransaction;
|
|
10693
|
+
}
|
|
10625
10694
|
return obj;
|
|
10626
10695
|
},
|
|
10627
10696
|
|
|
@@ -10635,6 +10704,99 @@ export const Data_SolInstruction = {
|
|
|
10635
10704
|
message.programAccountId = object.programAccountId ?? "";
|
|
10636
10705
|
message.accounts = object.accounts?.map((e) => e) || [];
|
|
10637
10706
|
message.parsed = object.parsed ?? undefined;
|
|
10707
|
+
message.rawTransaction = object.rawTransaction ?? undefined;
|
|
10708
|
+
return message;
|
|
10709
|
+
},
|
|
10710
|
+
};
|
|
10711
|
+
|
|
10712
|
+
function createBaseData_SolBlock(): Data_SolBlock {
|
|
10713
|
+
return { rawBlock: "", timestamp: undefined, slot: BigInt("0") };
|
|
10714
|
+
}
|
|
10715
|
+
|
|
10716
|
+
export const Data_SolBlock = {
|
|
10717
|
+
encode(message: Data_SolBlock, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
10718
|
+
if (message.rawBlock !== "") {
|
|
10719
|
+
writer.uint32(10).string(message.rawBlock);
|
|
10720
|
+
}
|
|
10721
|
+
if (message.timestamp !== undefined) {
|
|
10722
|
+
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
|
10723
|
+
}
|
|
10724
|
+
if (message.slot !== BigInt("0")) {
|
|
10725
|
+
if (BigInt.asUintN(64, message.slot) !== message.slot) {
|
|
10726
|
+
throw new globalThis.Error("value provided for field message.slot of type uint64 too large");
|
|
10727
|
+
}
|
|
10728
|
+
writer.uint32(24).uint64(message.slot.toString());
|
|
10729
|
+
}
|
|
10730
|
+
return writer;
|
|
10731
|
+
},
|
|
10732
|
+
|
|
10733
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Data_SolBlock {
|
|
10734
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
10735
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10736
|
+
const message = createBaseData_SolBlock();
|
|
10737
|
+
while (reader.pos < end) {
|
|
10738
|
+
const tag = reader.uint32();
|
|
10739
|
+
switch (tag >>> 3) {
|
|
10740
|
+
case 1:
|
|
10741
|
+
if (tag !== 10) {
|
|
10742
|
+
break;
|
|
10743
|
+
}
|
|
10744
|
+
|
|
10745
|
+
message.rawBlock = reader.string();
|
|
10746
|
+
continue;
|
|
10747
|
+
case 2:
|
|
10748
|
+
if (tag !== 18) {
|
|
10749
|
+
break;
|
|
10750
|
+
}
|
|
10751
|
+
|
|
10752
|
+
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10753
|
+
continue;
|
|
10754
|
+
case 3:
|
|
10755
|
+
if (tag !== 24) {
|
|
10756
|
+
break;
|
|
10757
|
+
}
|
|
10758
|
+
|
|
10759
|
+
message.slot = longToBigint(reader.uint64() as Long);
|
|
10760
|
+
continue;
|
|
10761
|
+
}
|
|
10762
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10763
|
+
break;
|
|
10764
|
+
}
|
|
10765
|
+
reader.skipType(tag & 7);
|
|
10766
|
+
}
|
|
10767
|
+
return message;
|
|
10768
|
+
},
|
|
10769
|
+
|
|
10770
|
+
fromJSON(object: any): Data_SolBlock {
|
|
10771
|
+
return {
|
|
10772
|
+
rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : "",
|
|
10773
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
10774
|
+
slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
|
|
10775
|
+
};
|
|
10776
|
+
},
|
|
10777
|
+
|
|
10778
|
+
toJSON(message: Data_SolBlock): unknown {
|
|
10779
|
+
const obj: any = {};
|
|
10780
|
+
if (message.rawBlock !== "") {
|
|
10781
|
+
obj.rawBlock = message.rawBlock;
|
|
10782
|
+
}
|
|
10783
|
+
if (message.timestamp !== undefined) {
|
|
10784
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
10785
|
+
}
|
|
10786
|
+
if (message.slot !== BigInt("0")) {
|
|
10787
|
+
obj.slot = message.slot.toString();
|
|
10788
|
+
}
|
|
10789
|
+
return obj;
|
|
10790
|
+
},
|
|
10791
|
+
|
|
10792
|
+
create(base?: DeepPartial<Data_SolBlock>): Data_SolBlock {
|
|
10793
|
+
return Data_SolBlock.fromPartial(base ?? {});
|
|
10794
|
+
},
|
|
10795
|
+
fromPartial(object: DeepPartial<Data_SolBlock>): Data_SolBlock {
|
|
10796
|
+
const message = createBaseData_SolBlock();
|
|
10797
|
+
message.rawBlock = object.rawBlock ?? "";
|
|
10798
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
10799
|
+
message.slot = object.slot ?? BigInt("0");
|
|
10638
10800
|
return message;
|
|
10639
10801
|
},
|
|
10640
10802
|
};
|
|
@@ -540,6 +540,7 @@ export interface Project {
|
|
|
540
540
|
enableMaterializedView: boolean;
|
|
541
541
|
defaultTimerange: TimeRangeLite | undefined;
|
|
542
542
|
communityProject?: CommunityProject | undefined;
|
|
543
|
+
sentioNetwork: boolean;
|
|
543
544
|
}
|
|
544
545
|
|
|
545
546
|
export enum Project_Visibility {
|
|
@@ -1729,6 +1730,7 @@ export interface Account {
|
|
|
1729
1730
|
usageOverCapLimit: string;
|
|
1730
1731
|
status: string;
|
|
1731
1732
|
prepaidBalance: Money | undefined;
|
|
1733
|
+
walletAddress: string;
|
|
1732
1734
|
}
|
|
1733
1735
|
|
|
1734
1736
|
export interface ImportedProject {
|
|
@@ -3410,6 +3412,7 @@ function createBaseProject(): Project {
|
|
|
3410
3412
|
enableMaterializedView: false,
|
|
3411
3413
|
defaultTimerange: undefined,
|
|
3412
3414
|
communityProject: undefined,
|
|
3415
|
+
sentioNetwork: false,
|
|
3413
3416
|
};
|
|
3414
3417
|
}
|
|
3415
3418
|
|
|
@@ -3484,6 +3487,9 @@ export const Project = {
|
|
|
3484
3487
|
if (message.communityProject !== undefined) {
|
|
3485
3488
|
CommunityProject.encode(message.communityProject, writer.uint32(178).fork()).ldelim();
|
|
3486
3489
|
}
|
|
3490
|
+
if (message.sentioNetwork !== false) {
|
|
3491
|
+
writer.uint32(184).bool(message.sentioNetwork);
|
|
3492
|
+
}
|
|
3487
3493
|
return writer;
|
|
3488
3494
|
},
|
|
3489
3495
|
|
|
@@ -3641,6 +3647,13 @@ export const Project = {
|
|
|
3641
3647
|
|
|
3642
3648
|
message.communityProject = CommunityProject.decode(reader, reader.uint32());
|
|
3643
3649
|
continue;
|
|
3650
|
+
case 23:
|
|
3651
|
+
if (tag !== 184) {
|
|
3652
|
+
break;
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
message.sentioNetwork = reader.bool();
|
|
3656
|
+
continue;
|
|
3644
3657
|
}
|
|
3645
3658
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3646
3659
|
break;
|
|
@@ -3679,6 +3692,7 @@ export const Project = {
|
|
|
3679
3692
|
: false,
|
|
3680
3693
|
defaultTimerange: isSet(object.defaultTimerange) ? TimeRangeLite.fromJSON(object.defaultTimerange) : undefined,
|
|
3681
3694
|
communityProject: isSet(object.communityProject) ? CommunityProject.fromJSON(object.communityProject) : undefined,
|
|
3695
|
+
sentioNetwork: isSet(object.sentioNetwork) ? globalThis.Boolean(object.sentioNetwork) : false,
|
|
3682
3696
|
};
|
|
3683
3697
|
},
|
|
3684
3698
|
|
|
@@ -3747,6 +3761,9 @@ export const Project = {
|
|
|
3747
3761
|
if (message.communityProject !== undefined) {
|
|
3748
3762
|
obj.communityProject = CommunityProject.toJSON(message.communityProject);
|
|
3749
3763
|
}
|
|
3764
|
+
if (message.sentioNetwork !== false) {
|
|
3765
|
+
obj.sentioNetwork = message.sentioNetwork;
|
|
3766
|
+
}
|
|
3750
3767
|
return obj;
|
|
3751
3768
|
},
|
|
3752
3769
|
|
|
@@ -3782,6 +3799,7 @@ export const Project = {
|
|
|
3782
3799
|
message.communityProject = (object.communityProject !== undefined && object.communityProject !== null)
|
|
3783
3800
|
? CommunityProject.fromPartial(object.communityProject)
|
|
3784
3801
|
: undefined;
|
|
3802
|
+
message.sentioNetwork = object.sentioNetwork ?? false;
|
|
3785
3803
|
return message;
|
|
3786
3804
|
},
|
|
3787
3805
|
};
|
|
@@ -10992,6 +11010,7 @@ function createBaseAccount(): Account {
|
|
|
10992
11010
|
usageOverCapLimit: "",
|
|
10993
11011
|
status: "",
|
|
10994
11012
|
prepaidBalance: undefined,
|
|
11013
|
+
walletAddress: "",
|
|
10995
11014
|
};
|
|
10996
11015
|
}
|
|
10997
11016
|
|
|
@@ -11030,6 +11049,9 @@ export const Account = {
|
|
|
11030
11049
|
if (message.prepaidBalance !== undefined) {
|
|
11031
11050
|
Money.encode(message.prepaidBalance, writer.uint32(106).fork()).ldelim();
|
|
11032
11051
|
}
|
|
11052
|
+
if (message.walletAddress !== "") {
|
|
11053
|
+
writer.uint32(114).string(message.walletAddress);
|
|
11054
|
+
}
|
|
11033
11055
|
return writer;
|
|
11034
11056
|
},
|
|
11035
11057
|
|
|
@@ -11117,6 +11139,13 @@ export const Account = {
|
|
|
11117
11139
|
|
|
11118
11140
|
message.prepaidBalance = Money.decode(reader, reader.uint32());
|
|
11119
11141
|
continue;
|
|
11142
|
+
case 14:
|
|
11143
|
+
if (tag !== 114) {
|
|
11144
|
+
break;
|
|
11145
|
+
}
|
|
11146
|
+
|
|
11147
|
+
message.walletAddress = reader.string();
|
|
11148
|
+
continue;
|
|
11120
11149
|
}
|
|
11121
11150
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11122
11151
|
break;
|
|
@@ -11139,6 +11168,7 @@ export const Account = {
|
|
|
11139
11168
|
usageOverCapLimit: isSet(object.usageOverCapLimit) ? globalThis.String(object.usageOverCapLimit) : "",
|
|
11140
11169
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
11141
11170
|
prepaidBalance: isSet(object.prepaidBalance) ? Money.fromJSON(object.prepaidBalance) : undefined,
|
|
11171
|
+
walletAddress: isSet(object.walletAddress) ? globalThis.String(object.walletAddress) : "",
|
|
11142
11172
|
};
|
|
11143
11173
|
},
|
|
11144
11174
|
|
|
@@ -11177,6 +11207,9 @@ export const Account = {
|
|
|
11177
11207
|
if (message.prepaidBalance !== undefined) {
|
|
11178
11208
|
obj.prepaidBalance = Money.toJSON(message.prepaidBalance);
|
|
11179
11209
|
}
|
|
11210
|
+
if (message.walletAddress !== "") {
|
|
11211
|
+
obj.walletAddress = message.walletAddress;
|
|
11212
|
+
}
|
|
11180
11213
|
return obj;
|
|
11181
11214
|
},
|
|
11182
11215
|
|
|
@@ -11198,6 +11231,7 @@ export const Account = {
|
|
|
11198
11231
|
message.prepaidBalance = (object.prepaidBalance !== undefined && object.prepaidBalance !== null)
|
|
11199
11232
|
? Money.fromPartial(object.prepaidBalance)
|
|
11200
11233
|
: undefined;
|
|
11234
|
+
message.walletAddress = object.walletAddress ?? "";
|
|
11201
11235
|
return message;
|
|
11202
11236
|
},
|
|
11203
11237
|
};
|
package/lib/chunk-AUPVVLD3.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
|
2
|
-
var h=Object.create;var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(a&&(b=a(a=0)),b);var o=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),p=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},g=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of j(b))!l.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=i(b,d))||f.enumerable});return a};var q=(a,b,c)=>(c=a!=null?h(k(a)):{},g(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a)),r=a=>g(e({},"__esModule",{value:!0}),a);export{m as a,n as b,o as c,p as d,q as e,r as f};
|
|
3
|
-
//# sourceMappingURL=chunk-AUPVVLD3.js.map
|
package/lib/chunk-CJDESLYQ.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
|
2
|
-
import{b as c}from"./chunk-AUPVVLD3.js";import*as o from"child_process";import*as s from"util";var r,i=c(()=>{"use strict";r=s.promisify(o.exec)});export{r as a,i as b};
|
|
3
|
-
//# sourceMappingURL=chunk-CJDESLYQ.js.map
|
package/lib/chunk-TW627LH5.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
|
2
|
-
import{b as u,d as Gr}from"./chunk-AUPVVLD3.js";var Pt,Ct=u(()=>{"use strict";Pt=typeof globalThis=="object"?globalThis:global});var St=u(()=>{"use strict";Ct()});var Rt=u(()=>{"use strict";St()});var y,J=u(()=>{"use strict";y="1.9.0"});function Vr(t){var r=new Set([t]),e=new Set,n=t.match(Mt);if(!n)return function(){return!1};var a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(a.prerelease!=null)return function(c){return c===t};function o(p){return e.add(p),!1}function i(p){return r.add(p),!0}return function(c){if(r.has(c))return!0;if(e.has(c))return!1;var l=c.match(Mt);if(!l)return o(c);var v={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return v.prerelease!=null||a.major!==v.major?o(c):a.major===0?a.minor===v.minor&&a.patch<=v.patch?i(c):o(c):a.minor<=v.minor?i(c):o(c)}}var Mt,wt,Dt=u(()=>{"use strict";J();Mt=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;wt=Vr(y)});function m(t,r,e,n){var a;n===void 0&&(n=!1);var o=O[I]=(a=O[I])!==null&&a!==void 0?a:{version:y};if(!n&&o[t]){var i=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return e.error(i.stack||i.message),!1}if(o.version!==y){var i=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+y);return e.error(i.stack||i.message),!1}return o[t]=r,e.debug("@opentelemetry/api: Registered a global for "+t+" v"+y+"."),!0}function g(t){var r,e,n=(r=O[I])===null||r===void 0?void 0:r.version;if(!(!n||!wt(n)))return(e=O[I])===null||e===void 0?void 0:e[t]}function _(t,r){r.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+y+".");var e=O[I];e&&delete e[t]}var Br,I,O,x=u(()=>{"use strict";Rt();J();Dt();Br=y.split(".")[0],I=Symbol.for("opentelemetry.js.api."+Br),O=Pt});function P(t,r,e){var n=g("diag");if(n)return e.unshift(r),n[t].apply(n,Ur([],Lr(e),!1))}var Lr,Ur,Gt,Vt=u(()=>{"use strict";x();Lr=function(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),a,o=[],i;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(p){i={error:p}}finally{try{a&&!a.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return o},Ur=function(t,r,e){if(e||arguments.length===2)for(var n=0,a=r.length,o;n<a;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))},Gt=function(){function t(r){this._namespace=r.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return P("debug",this._namespace,r)},t.prototype.error=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return P("error",this._namespace,r)},t.prototype.info=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return P("info",this._namespace,r)},t.prototype.warn=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return P("warn",this._namespace,r)},t.prototype.verbose=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return P("verbose",this._namespace,r)},t}()});var f,G=u(()=>{"use strict";(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(f||(f={}))});function Bt(t,r){t<f.NONE?t=f.NONE:t>f.ALL&&(t=f.ALL),r=r||{};function e(n,a){var o=r[n];return typeof o=="function"&&t>=a?o.bind(r):function(){}}return{error:e("error",f.ERROR),warn:e("warn",f.WARN),info:e("info",f.INFO),debug:e("debug",f.DEBUG),verbose:e("verbose",f.VERBOSE)}}var Lt=u(()=>{"use strict";G()});var jr,kr,Xr,s,E=u(()=>{"use strict";Vt();Lt();G();x();jr=function(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),a,o=[],i;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(p){i={error:p}}finally{try{a&&!a.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return o},kr=function(t,r,e){if(e||arguments.length===2)for(var n=0,a=r.length,o;n<a;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))},Xr="diag",s=function(){function t(){function r(a){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var p=g("diag");if(p)return p[a].apply(p,kr([],jr(o),!1))}}var e=this,n=function(a,o){var i,p,c;if(o===void 0&&(o={logLevel:f.INFO}),a===e){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error((i=l.stack)!==null&&i!==void 0?i:l.message),!1}typeof o=="number"&&(o={logLevel:o});var v=g("diag"),It=Bt((p=o.logLevel)!==null&&p!==void 0?p:f.INFO,a);if(v&&!o.suppressOverrideMessage){var Ot=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";v.warn("Current logger will be overwritten from "+Ot),It.warn("Current logger will overwrite one already registered from "+Ot)}return m("diag",It,e,!0)};e.setLogger=n,e.disable=function(){_(Xr,e)},e.createComponentLogger=function(a){return new Gt(a)},e.verbose=r("verbose"),e.debug=r("debug"),e.info=r("info"),e.warn=r("warn"),e.error=r("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}()});var Z,Ut=u(()=>{"use strict";E();Z=s.instance()});var Kr,Fr,jt,kt=u(()=>{"use strict";Kr=function(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),a,o=[],i;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(p){i={error:p}}finally{try{a&&!a.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return o},Fr=function(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},jt=function(){function t(r){this._entries=r?new Map(r):new Map}return t.prototype.getEntry=function(r){var e=this._entries.get(r);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(r){var e=Kr(r,2),n=e[0],a=e[1];return[n,a]})},t.prototype.setEntry=function(r,e){var n=new t(this._entries);return n._entries.set(r,e),n},t.prototype.removeEntry=function(r){var e=new t(this._entries);return e._entries.delete(r),e},t.prototype.removeEntries=function(){for(var r,e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var o=new t(this._entries);try{for(var i=Fr(n),p=i.next();!p.done;p=i.next()){var c=p.value;o._entries.delete(c)}}catch(l){r={error:l}}finally{try{p&&!p.done&&(e=i.return)&&e.call(i)}finally{if(r)throw r.error}}return o},t.prototype.clear=function(){return new t},t}()});var Xt,Kt=u(()=>{"use strict";Xt=Symbol("BaggageEntryMetadata")});function Ft(t){return t===void 0&&(t={}),new jt(new Map(Object.entries(t)))}function Yt(t){return typeof t!="string"&&(Yr.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Xt,toString:function(){return t}}}var Yr,tt=u(()=>{"use strict";E();kt();Kt();Yr=s.instance()});function N(t){return Symbol.for(t)}var zr,V,C=u(()=>{"use strict";zr=function(){function t(r){var e=this;e._currentContext=r?new Map(r):new Map,e.getValue=function(n){return e._currentContext.get(n)},e.setValue=function(n,a){var o=new t(e._currentContext);return o._currentContext.set(n,a),o},e.deleteValue=function(n){var a=new t(e._currentContext);return a._currentContext.delete(n),a}}return t}(),V=new zr});var rt,zt,Wt=u(()=>{"use strict";rt=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],zt=function(){function t(){function r(n){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(console){var i=console[n];if(typeof i!="function"&&(i=console.log),typeof i=="function")return i.apply(console,a)}}}for(var e=0;e<rt.length;e++)this[rt[e].n]=r(rt[e].c)}return t}()});function Ht(){return nt}var A,Wr,B,Hr,$r,Qr,qr,et,Jr,Zr,te,nt,re,ee,ne,oe,ae,ie,ue,ot=u(()=>{"use strict";A=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Wr=function(){function t(){}return t.prototype.createGauge=function(r,e){return ee},t.prototype.createHistogram=function(r,e){return ne},t.prototype.createCounter=function(r,e){return re},t.prototype.createUpDownCounter=function(r,e){return oe},t.prototype.createObservableGauge=function(r,e){return ie},t.prototype.createObservableCounter=function(r,e){return ae},t.prototype.createObservableUpDownCounter=function(r,e){return ue},t.prototype.addBatchObservableCallback=function(r,e){},t.prototype.removeBatchObservableCallback=function(r){},t}(),B=function(){function t(){}return t}(),Hr=function(t){A(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.add=function(e,n){},r}(B),$r=function(t){A(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.add=function(e,n){},r}(B),Qr=function(t){A(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.record=function(e,n){},r}(B),qr=function(t){A(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.record=function(e,n){},r}(B),et=function(){function t(){}return t.prototype.addCallback=function(r){},t.prototype.removeCallback=function(r){},t}(),Jr=function(t){A(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(et),Zr=function(t){A(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(et),te=function(t){A(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(et),nt=new Wr,re=new Hr,ee=new Qr,ne=new qr,oe=new $r,ae=new Jr,ie=new Zr,ue=new te});var L,$t=u(()=>{"use strict";(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(L||(L={}))});var U,j,at=u(()=>{"use strict";U={get:function(t,r){if(t!=null)return t[r]},keys:function(t){return t==null?[]:Object.keys(t)}},j={set:function(t,r,e){t!=null&&(t[r]=e)}}});var pe,ce,Qt,qt=u(()=>{"use strict";C();pe=function(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),a,o=[],i;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(p){i={error:p}}finally{try{a&&!a.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return o},ce=function(t,r,e){if(e||arguments.length===2)for(var n=0,a=r.length,o;n<a;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))},Qt=function(){function t(){}return t.prototype.active=function(){return V},t.prototype.with=function(r,e,n){for(var a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return e.call.apply(e,ce([n],pe(a),!1))},t.prototype.bind=function(r,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}()});var fe,se,it,le,d,S=u(()=>{"use strict";qt();x();E();fe=function(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),a,o=[],i;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(p){i={error:p}}finally{try{a&&!a.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return o},se=function(t,r,e){if(e||arguments.length===2)for(var n=0,a=r.length,o;n<a;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))},it="context",le=new Qt,d=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(r){return m(it,r,s.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(r,e,n){for(var a,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return(a=this._getContextManager()).with.apply(a,se([r,e,n],fe(o),!1))},t.prototype.bind=function(r,e){return this._getContextManager().bind(r,e)},t.prototype._getContextManager=function(){return g(it)||le},t.prototype.disable=function(){this._getContextManager().disable(),_(it,s.instance())},t}()});var b,ut=u(()=>{"use strict";(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(b||(b={}))});var R,M,k,X=u(()=>{"use strict";ut();R="0000000000000000",M="00000000000000000000000000000000",k={traceId:M,spanId:R,traceFlags:b.NONE}});var h,K=u(()=>{"use strict";X();h=function(){function t(r){r===void 0&&(r=k),this._spanContext=r}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(r,e){return this},t.prototype.setAttributes=function(r){return this},t.prototype.addEvent=function(r,e){return this},t.prototype.addLink=function(r){return this},t.prototype.addLinks=function(r){return this},t.prototype.setStatus=function(r){return this},t.prototype.updateName=function(r){return this},t.prototype.end=function(r){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(r,e){},t}()});function F(t){return t.getValue(pt)||void 0}function Jt(){return F(d.getInstance().active())}function w(t,r){return t.setValue(pt,r)}function Zt(t){return t.deleteValue(pt)}function tr(t,r){return w(t,new h(r))}function Y(t){var r;return(r=F(t))===null||r===void 0?void 0:r.spanContext()}var pt,ct=u(()=>{"use strict";C();K();S();pt=N("OpenTelemetry Context Key SPAN")});function ft(t){return ge.test(t)&&t!==M}function st(t){return ve.test(t)&&t!==R}function T(t){return ft(t.traceId)&&st(t.spanId)}function rr(t){return new h(t)}var ge,ve,z=u(()=>{"use strict";X();K();ge=/^([0-9a-f]{32})$/i,ve=/^[0-9a-f]{16}$/i});function me(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var lt,W,gt=u(()=>{"use strict";S();ct();K();z();lt=d.getInstance(),W=function(){function t(){}return t.prototype.startSpan=function(r,e,n){n===void 0&&(n=lt.active());var a=!!e?.root;if(a)return new h;var o=n&&Y(n);return me(o)&&T(o)?new h(o):new h},t.prototype.startActiveSpan=function(r,e,n,a){var o,i,p;if(!(arguments.length<2)){arguments.length===2?p=e:arguments.length===3?(o=e,p=n):(o=e,i=n,p=a);var c=i??lt.active(),l=this.startSpan(r,o,c),v=w(c,l);return lt.with(v,p,void 0,l)}},t}()});var _e,H,vt=u(()=>{"use strict";gt();_e=new W,H=function(){function t(r,e,n,a){this._provider=r,this.name=e,this.version=n,this.options=a}return t.prototype.startSpan=function(r,e,n){return this._getTracer().startSpan(r,e,n)},t.prototype.startActiveSpan=function(r,e,n,a){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):_e},t}()});var er,nr=u(()=>{"use strict";gt();er=function(){function t(){}return t.prototype.getTracer=function(r,e,n){return new W},t}()});var ye,D,mt=u(()=>{"use strict";vt();nr();ye=new er,D=function(){function t(){}return t.prototype.getTracer=function(r,e,n){var a;return(a=this.getDelegateTracer(r,e,n))!==null&&a!==void 0?a:new H(this,r,e,n)},t.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:ye},t.prototype.setDelegate=function(r){this._delegate=r},t.prototype.getDelegateTracer=function(r,e,n){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(r,e,n)},t}()});var $,or=u(()=>{"use strict";(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})($||($={}))});var Q,ar=u(()=>{"use strict";(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(Q||(Q={}))});var q,ir=u(()=>{"use strict";(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(q||(q={}))});function ur(t){return xe.test(t)}function pr(t){return Ee.test(t)&&!Ae.test(t)}var _t,de,he,xe,Ee,Ae,cr=u(()=>{"use strict";_t="[_0-9a-z-*/]",de="[a-z]"+_t+"{0,255}",he="[a-z0-9]"+_t+"{0,240}@[a-z]"+_t+"{0,13}",xe=new RegExp("^(?:"+de+"|"+he+")$"),Ee=/^[ -~]{0,255}[!-~]$/,Ae=/,|=/});var fr,Ne,sr,lr,gr,vr=u(()=>{"use strict";cr();fr=32,Ne=512,sr=",",lr="=",gr=function(){function t(r){this._internalState=new Map,r&&this._parse(r)}return t.prototype.set=function(r,e){var n=this._clone();return n._internalState.has(r)&&n._internalState.delete(r),n._internalState.set(r,e),n},t.prototype.unset=function(r){var e=this._clone();return e._internalState.delete(r),e},t.prototype.get=function(r){return this._internalState.get(r)},t.prototype.serialize=function(){var r=this;return this._keys().reduce(function(e,n){return e.push(n+lr+r.get(n)),e},[]).join(sr)},t.prototype._parse=function(r){r.length>Ne||(this._internalState=r.split(sr).reverse().reduce(function(e,n){var a=n.trim(),o=a.indexOf(lr);if(o!==-1){var i=a.slice(0,o),p=a.slice(o+1,n.length);ur(i)&&pr(p)&&e.set(i,p)}return e},new Map),this._internalState.size>fr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,fr))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var r=new t;return r._internalState=new Map(this._internalState),r},t}()});function mr(t){return new gr(t)}var _r=u(()=>{"use strict";vr()});var yt,yr=u(()=>{"use strict";S();yt=d.getInstance()});var be,dr,hr=u(()=>{"use strict";ot();be=function(){function t(){}return t.prototype.getMeter=function(r,e,n){return nt},t}(),dr=new be});var dt,xr,Er=u(()=>{"use strict";hr();x();E();dt="metrics",xr=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(r){return m(dt,r,s.instance())},t.prototype.getMeterProvider=function(){return g(dt)||dr},t.prototype.getMeter=function(r,e,n){return this.getMeterProvider().getMeter(r,e,n)},t.prototype.disable=function(){_(dt,s.instance())},t}()});var ht,Ar=u(()=>{"use strict";Er();ht=xr.getInstance()});var Nr,br=u(()=>{"use strict";Nr=function(){function t(){}return t.prototype.inject=function(r,e){},t.prototype.extract=function(r,e){return r},t.prototype.fields=function(){return[]},t}()});function Et(t){return t.getValue(xt)||void 0}function Tr(){return Et(d.getInstance().active())}function Ir(t,r){return t.setValue(xt,r)}function Or(t){return t.deleteValue(xt)}var xt,Pr=u(()=>{"use strict";S();C();xt=N("OpenTelemetry Baggage Key")});var At,Te,Cr,Sr=u(()=>{"use strict";x();br();at();Pr();tt();E();At="propagation",Te=new Nr,Cr=function(){function t(){this.createBaggage=Ft,this.getBaggage=Et,this.getActiveBaggage=Tr,this.setBaggage=Ir,this.deleteBaggage=Or}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(r){return m(At,r,s.instance())},t.prototype.inject=function(r,e,n){return n===void 0&&(n=j),this._getGlobalPropagator().inject(r,e,n)},t.prototype.extract=function(r,e,n){return n===void 0&&(n=U),this._getGlobalPropagator().extract(r,e,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){_(At,s.instance())},t.prototype._getGlobalPropagator=function(){return g(At)||Te},t}()});var Nt,Rr=u(()=>{"use strict";Sr();Nt=Cr.getInstance()});var bt,Mr,wr=u(()=>{"use strict";x();mt();z();ct();E();bt="trace",Mr=function(){function t(){this._proxyTracerProvider=new D,this.wrapSpanContext=rr,this.isSpanContextValid=T,this.deleteSpan=Zt,this.getSpan=F,this.getActiveSpan=Jt,this.getSpanContext=Y,this.setSpan=w,this.setSpanContext=tr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(r){var e=m(bt,this._proxyTracerProvider,s.instance());return e&&this._proxyTracerProvider.setDelegate(r),e},t.prototype.getTracerProvider=function(){return g(bt)||this._proxyTracerProvider},t.prototype.getTracer=function(r,e){return this.getTracerProvider().getTracer(r,e)},t.prototype.disable=function(){_(bt,s.instance()),this._proxyTracerProvider=new D},t}()});var Tt,Dr=u(()=>{"use strict";wr();Tt=Mr.getInstance()});var Oe={};Gr(Oe,{DiagConsoleLogger:()=>zt,DiagLogLevel:()=>f,INVALID_SPANID:()=>R,INVALID_SPAN_CONTEXT:()=>k,INVALID_TRACEID:()=>M,ProxyTracer:()=>H,ProxyTracerProvider:()=>D,ROOT_CONTEXT:()=>V,SamplingDecision:()=>$,SpanKind:()=>Q,SpanStatusCode:()=>q,TraceFlags:()=>b,ValueType:()=>L,baggageEntryMetadataFromString:()=>Yt,context:()=>yt,createContextKey:()=>N,createNoopMeter:()=>Ht,createTraceState:()=>mr,default:()=>Ie,defaultTextMapGetter:()=>U,defaultTextMapSetter:()=>j,diag:()=>Z,isSpanContextValid:()=>T,isValidSpanId:()=>st,isValidTraceId:()=>ft,metrics:()=>ht,propagation:()=>Nt,trace:()=>Tt});var Ie,Pe=u(()=>{"use strict";tt();C();Wt();G();ot();$t();at();vt();mt();or();ar();ir();ut();_r();z();X();yr();Ut();Ar();Rr();Dr();Ie={context:yt,diag:Z,metrics:ht,propagation:Nt,trace:Tt}});export{f as a,Yt as b,N as c,zt as d,Ht as e,L as f,b as g,T as h,yt as i,Z as j,ht as k,Nt as l,Tt as m,Oe as n,Pe as o};
|
|
3
|
-
//# sourceMappingURL=chunk-TW627LH5.js.map
|