@palliora.org/chainsdk 0.3.2 → 0.4.0

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/dist/index.d.cts CHANGED
@@ -119,9 +119,16 @@ declare const API_TYPES: {
119
119
  active: string;
120
120
  maximum: string;
121
121
  };
122
+ CurrencyId: {
123
+ _enum: {
124
+ Native: string;
125
+ USDC: string;
126
+ ForeignAsset: string;
127
+ };
128
+ };
122
129
  GuardianNwParams: {
123
130
  kzg: string;
124
- agg_key: string;
131
+ aggKey: string;
125
132
  };
126
133
  AppId: string;
127
134
  DataLookupItem: {
@@ -172,9 +179,9 @@ declare const API_TYPES: {
172
179
  verifier: string;
173
180
  };
174
181
  SilentThresholdParams: {
175
- td_params: string;
176
- pk_bytes: string;
177
- tau_params: string;
182
+ tdParams: string;
183
+ pkBytes: string;
184
+ tauParams: string;
178
185
  };
179
186
  ThresholdParams: {
180
187
  _enum: {
@@ -200,16 +207,16 @@ declare const API_TYPES: {
200
207
  };
201
208
  };
202
209
  Secp256k1Params: {
203
- recipient_public_key: string;
204
- ephemeral_public_key: string;
210
+ recipientPublicKey: string;
211
+ ephemeralPublicKey: string;
205
212
  compressed: string;
206
213
  kdf: string;
207
214
  salt: string;
208
215
  info: string;
209
216
  };
210
217
  Ed25519Params: {
211
- recipient_public_key: string;
212
- ephemeral_public_key: string;
218
+ recipientPublicKey: string;
219
+ ephemeralPublicKey: string;
213
220
  kdf: string;
214
221
  salt: string;
215
222
  info: string;
@@ -221,12 +228,12 @@ declare const API_TYPES: {
221
228
  };
222
229
  };
223
230
  ThresholdHybridParams: {
224
- threshold_params: string;
225
- symmetric_params: string;
231
+ thresholdParams: string;
232
+ symmetricParams: string;
226
233
  };
227
234
  AsymmetricHybridParams: {
228
- asymmetric_params: string;
229
- symmetric_params: string;
235
+ asymmetricParams: string;
236
+ symmetricParams: string;
230
237
  };
231
238
  CipherSuite: {
232
239
  _enum: {
@@ -253,8 +260,11 @@ declare const API_TYPES: {
253
260
  data: string;
254
261
  };
255
262
  DAInputChainTransaction: {
256
- block_number: string;
257
- extrinsic_index: string;
263
+ blockNumber: string;
264
+ extrinsicIndex: string;
265
+ };
266
+ DAInputContractId: {
267
+ id: string;
258
268
  };
259
269
  DAInputIpfs: {
260
270
  cid: string;
@@ -270,6 +280,7 @@ declare const API_TYPES: {
270
280
  Null: string;
271
281
  Inline: string;
272
282
  ChainTransaction: string;
283
+ ContractId: string;
273
284
  Ipfs: string;
274
285
  Url: string;
275
286
  NativeExecute: string;
@@ -280,6 +291,7 @@ declare const API_TYPES: {
280
291
  _enum: {
281
292
  Dormant: string;
282
293
  Active: string;
294
+ Subscription: string;
283
295
  };
284
296
  };
285
297
  StoreType: {
@@ -293,28 +305,30 @@ declare const API_TYPES: {
293
305
  ComputeMetadata: {
294
306
  name: string;
295
307
  description: string;
296
- store_type: string;
297
- group_id: string;
308
+ storeType: string;
309
+ groupId: string;
298
310
  };
299
311
  ComputeInfo: {
300
312
  cipher: string;
301
- computer_indices: string;
313
+ computerIndices: string;
302
314
  fees: string;
315
+ computeRate: string;
303
316
  deadline: string;
304
317
  confidentiality: string;
305
- fee_function: string;
306
- program_env: string;
318
+ feeFunction: string;
319
+ programEnv: string;
307
320
  input: string;
308
321
  program: string;
309
322
  metadata: string;
310
323
  };
311
324
  Contract: {
312
- contract_type: string;
325
+ contractType: string;
313
326
  guardians: string;
314
- pre_check: string;
327
+ preCheck: string;
315
328
  compute: string;
316
- post_check: string;
317
- result_cipher: string;
329
+ postCheck: string;
330
+ resultCipher: string;
331
+ currencyId: string;
318
332
  };
319
333
  AgreementInfo: {
320
334
  status: string;
@@ -322,7 +336,7 @@ declare const API_TYPES: {
322
336
  index: string;
323
337
  };
324
338
  ComputePayload: {
325
- da_type: string;
339
+ daType: string;
326
340
  agreement: string;
327
341
  verification: string;
328
342
  compute: string;
@@ -399,17 +413,53 @@ declare const API_TYPES: {
399
413
  GProof: string;
400
414
  GRow: string;
401
415
  GDataProof: string;
416
+ AgreementStatus: {
417
+ _enum: string[];
418
+ };
419
+ AcceptedSubStatus: {
420
+ _enum: string[];
421
+ };
422
+ RejectedSubStatus: {
423
+ _enum: string[];
424
+ };
425
+ SettlementReason: {
426
+ _enum: string[];
427
+ };
428
+ ExecutionOutcome: {
429
+ _enum: string[];
430
+ };
431
+ ContractInfo: {
432
+ status: string;
433
+ owner: string;
434
+ originBlock: string;
435
+ invocationBlock: string;
436
+ index: string;
437
+ usagePrice: string;
438
+ contractType: string;
439
+ };
440
+ SettlementInfo: {
441
+ computeRate: string;
442
+ inputContractId: string;
443
+ guardians: string;
444
+ };
445
+ AppKeyInfo: {
446
+ owner: string;
447
+ id: string;
448
+ };
449
+ DataType: {
450
+ _enum: string[];
451
+ };
402
452
  };
403
453
  declare const DEFAULT_COMPUTE_PAYLOAD: {
404
454
  compute: {
405
- da_type: number;
455
+ daType: number;
406
456
  verification: number;
407
457
  compute: number;
408
458
  };
409
459
  };
410
460
  declare const DEFAULT_EMPTY_PAYLOAD: {
411
461
  compute: {
412
- da_type: number;
462
+ daType: number;
413
463
  verification: number;
414
464
  compute: number;
415
465
  agreement: never[];
@@ -428,6 +478,13 @@ declare const API_EXTENSIONS: {
428
478
  };
429
479
  payload: {};
430
480
  };
481
+ ChargeCurrencyTransactionPayment: {
482
+ extrinsic: {
483
+ tip: string;
484
+ currencyId: string;
485
+ };
486
+ payload: {};
487
+ };
431
488
  };
432
489
 
433
490
  declare const PALI_SYMBOL = "PALI";
@@ -473,7 +530,7 @@ type Hex = `0x${string}`;
473
530
  */
474
531
  interface ComputePayload {
475
532
  /** DA type: 0 = none, 1 = DA. */
476
- da_type: number;
533
+ daType: number;
477
534
  /** Guardian agreement keys. Each element is a 32-byte Uint8Array or number[]. */
478
535
  agreement?: Uint8Array[] | number[][];
479
536
  /** Verification mode. */
@@ -488,11 +545,11 @@ interface OnChainRef {
488
545
  }
489
546
  interface SilentThresholdParams {
490
547
  /** Encoded threshold ciphertext bytes (from encodeCiphertext). */
491
- td_params: number[];
548
+ tdParams: number[];
492
549
  /** Guardian group aggregate public key bytes. */
493
- pk_bytes: number[];
550
+ pkBytes: number[];
494
551
  /** KZG powers-of-tau bytes. */
495
- tau_params: number[];
552
+ tauParams: number[];
496
553
  }
497
554
  type ThresholdParams = {
498
555
  SilentThreshold: SilentThresholdParams;
@@ -508,16 +565,16 @@ type SymmetricParams = {
508
565
  };
509
566
  type KdfParams = "HkdfSha256" | "HkdfSha512";
510
567
  interface Secp256k1Params {
511
- recipient_public_key: number[];
512
- ephemeral_public_key?: number[] | null;
568
+ recipientPublicKey: number[];
569
+ ephemeralPublicKey?: number[] | null;
513
570
  compressed: boolean;
514
571
  kdf: KdfParams;
515
572
  salt?: number[] | null;
516
573
  info?: number[] | null;
517
574
  }
518
575
  interface Ed25519Params {
519
- recipient_public_key: number[];
520
- ephemeral_public_key?: number[] | null;
576
+ recipientPublicKey: number[];
577
+ ephemeralPublicKey?: number[] | null;
521
578
  kdf: KdfParams;
522
579
  salt?: number[] | null;
523
580
  info?: number[] | null;
@@ -528,12 +585,12 @@ type AsymmetricParams = {
528
585
  Ed25519: Ed25519Params;
529
586
  };
530
587
  interface ThresholdHybridParams {
531
- threshold_params: ThresholdParams;
532
- symmetric_params: SymmetricParams;
588
+ thresholdParams: ThresholdParams;
589
+ symmetricParams: SymmetricParams;
533
590
  }
534
591
  interface AsymmetricHybridParams {
535
- asymmetric_params: AsymmetricParams;
536
- symmetric_params: SymmetricParams;
592
+ asymmetricParams: AsymmetricParams;
593
+ symmetricParams: SymmetricParams;
537
594
  }
538
595
  /** Mirrors the on-chain CipherSuite enum from spec.ts. */
539
596
  type CipherSuite = "Plaintext" | {
@@ -561,7 +618,7 @@ interface UploadOptions {
561
618
  guardianGroupInfo: GuardianGroupInfo;
562
619
  ref?: string;
563
620
  filePath?: string;
564
- /** Options forwarded to signAndSend. Defaults to dormant DA payload (da_type=1, compute=0). */
621
+ /** Options forwarded to signAndSend. Defaults to dormant DA payload (daType=1, compute=0). */
565
622
  opts?: {
566
623
  compute: ComputePayload;
567
624
  };
@@ -726,6 +783,17 @@ declare function getKeyring(): Promise<Keyring>;
726
783
  */
727
784
  declare function getEncKeyring(): Promise<Keyring>;
728
785
 
786
+ /** Identifies the currency used for fee payment / contract settlement. Mirrors runtime `primitives::CurrencyId`. */
787
+ type CurrencyId = "Native" | "USDC" | {
788
+ ForeignAsset: number;
789
+ };
790
+ /** Fee terms for a compute step: an absolute amount plus an optional dynamic compute rate. */
791
+ interface Fee {
792
+ /** Absolute fee offered for the compute step, in PALI. Defaults to 0. */
793
+ amount?: PaliAmountInput;
794
+ /** Compute rate used for dynamic fee calculation, in PALI. Defaults to 0. */
795
+ computeRate?: PaliAmountInput;
796
+ }
729
797
  /** On-chain proof that a result extrinsic was included in a block. */
730
798
  interface SubmissionReceipt {
731
799
  /** Hash of the result extrinsic (hex-encoded, "0x..."). */
@@ -818,15 +886,27 @@ declare function watchForSubmissionReceipt(requestId: string, timeoutMs?: number
818
886
  */
819
887
  declare function getAgreementCreatedRequestId(blockHeight: number, extrinsicIndex: number): Promise<string | null>;
820
888
 
889
+ /**
890
+ * Converts a {@link Fee} into the on-chain `fees` / `computeRate` pair.
891
+ * `computeRate` only has meaning for `Active` contracts (it drives dynamic
892
+ * fee calculation during `compute.result`); omit `computeRate` for `Dormant`
893
+ * contracts.
894
+ */
895
+ declare function buildFee(fee?: Fee): {
896
+ fees: bigint;
897
+ computeRate: bigint;
898
+ };
821
899
  interface ComputeContract {
822
- contract_type: "Active" | "Dormant";
900
+ contractType: "Active" | "Dormant";
823
901
  guardians: GuardianAddress[];
824
- pre_check?: unknown;
902
+ preCheck?: unknown;
825
903
  compute: Record<string, unknown>;
826
- post_check?: unknown;
827
- result_cipher: unknown;
904
+ postCheck?: unknown;
905
+ resultCipher: unknown;
906
+ /** Currency the deposit is reserved in and settlement is paid out in. Defaults to "Native". */
907
+ currencyId?: CurrencyId;
828
908
  }
829
- declare function createAgreement(contract: ComputeContract, account: KeyringPair): Promise<{
909
+ declare function createAgreement(contract: ComputeContract, account: KeyringPair, oracle_quore_id?: string | undefined): Promise<{
830
910
  blockNumber: number;
831
911
  index: number;
832
912
  hash: string;
@@ -844,8 +924,12 @@ interface DataContractParams {
844
924
  url: string;
845
925
  /** Guardian account IDs that participate in this contract. */
846
926
  guardians: string[];
847
- /** Fee offered for the contract in PALI. Defaults to 0. */
848
- fees?: PaliAmountInput;
927
+ /**
928
+ * Absolute fee offered for the contract. Defaults to 0.
929
+ * `computeRate` is omitted: this is a `Dormant` contract and the
930
+ * compute rate only applies to `Active` contracts.
931
+ */
932
+ fee: Fee;
849
933
  /** Block number deadline. Defaults to 0 (no deadline). */
850
934
  deadline?: number;
851
935
  /** Trusted guardian index in the guardians list. Defaults to 0. */
@@ -867,13 +951,91 @@ declare function dataContract(params: DataContractParams, account: KeyringPair):
867
951
  agreementId?: string;
868
952
  }>;
869
953
 
954
+ interface EncryptedInferenceSubscriptionParams {
955
+ /** Guardian account addresses that participate in this compute. */
956
+ guardians: string[];
957
+ /** Fee offered for the compute step. Defaults to 0. */
958
+ fee?: Fee;
959
+ /** Block number deadline. Defaults to 0 (no deadline). */
960
+ deadline?: number;
961
+ }
962
+ interface EncryptedInferenceSubscriptionInvocationParams {
963
+ /** Hex-encoded agreement ID returned by encryptedInferenceSubscription. */
964
+ agreementId: string;
965
+ /** Input payload to encrypt and submit. String is UTF-8 encoded. */
966
+ input: Uint8Array | string;
967
+ /** Guardian addresses to route the compute request to. */
968
+ guardians: string[];
969
+ /** Guardian group cryptographic parameters for threshold encryption. */
970
+ guardianInfo: GuardianGroupInfo;
971
+ }
972
+ interface EncryptedInferenceComputeParams {
973
+ /** Input payload to encrypt and submit. String is UTF-8 encoded. */
974
+ input: Uint8Array | string;
975
+ /** Guardian account addresses that participate in this compute. */
976
+ guardians: string[];
977
+ /** Guardian group cryptographic parameters for threshold encryption. */
978
+ guardianInfo: GuardianGroupInfo;
979
+ /** Fee offered for the compute step. Defaults to 0. */
980
+ fee?: Fee;
981
+ /** Block number deadline. Defaults to 0 (no deadline). */
982
+ deadline?: number;
983
+ }
984
+ /**
985
+ * Creates a Dormant agreement that registers encrypted inference compute terms.
986
+ * The agreement ID returned here is passed to encryptedInferenceSubscriptionInvocation
987
+ * for each subsequent encrypted inference call.
988
+ */
989
+ declare function encryptedInferenceSubscription(params: EncryptedInferenceSubscriptionParams, account: KeyringPair): Promise<{
990
+ blockNumber: number;
991
+ index: number;
992
+ hash: string;
993
+ agreementId?: string;
994
+ }>;
995
+ /**
996
+ * Invokes an existing encrypted inference subscription agreement with a
997
+ * threshold-encrypted input payload. The result is encrypted back to encAccount.
998
+ *
999
+ * @param params - Agreement ID, input payload, guardians, and guardian group crypto params.
1000
+ * @param encAccount - Ed25519 keypair whose public key is used to receive the encrypted result.
1001
+ * @param account - Keypair used to sign and submit the transaction.
1002
+ */
1003
+ declare function encryptedInferenceSubscriptionInvocation(params: EncryptedInferenceSubscriptionInvocationParams, encAccount: KeyringPair, account: KeyringPair): Promise<{
1004
+ blockNumber: number;
1005
+ index: number;
1006
+ hash: `0x${string}`;
1007
+ tx_result: _polkadot_types_types.ISubmittableResult;
1008
+ }>;
1009
+ /**
1010
+ * Convenience wrapper: creates an encrypted inference subscription then
1011
+ * immediately invokes it with the given input. Returns both receipts.
1012
+ *
1013
+ * @param params - Input payload, guardians, guardian group crypto params, and fee.
1014
+ * @param encAccount - Ed25519 keypair whose public key is used to receive the encrypted result.
1015
+ * @param account - Keypair used to sign and submit both transactions.
1016
+ */
1017
+ declare function encryptedInferenceCompute(params: EncryptedInferenceComputeParams, encAccount: KeyringPair, account: KeyringPair): Promise<{
1018
+ subscription: {
1019
+ blockNumber: number;
1020
+ index: number;
1021
+ hash: string;
1022
+ agreementId?: string;
1023
+ };
1024
+ invocation: {
1025
+ blockNumber: number;
1026
+ index: number;
1027
+ hash: `0x${string}`;
1028
+ tx_result: _polkadot_types_types.ISubmittableResult;
1029
+ };
1030
+ }>;
1031
+
870
1032
  interface InferenceComputeParams {
871
1033
  /** Raw input data — string will be UTF-8 encoded, Uint8Array used as-is. */
872
1034
  input: Uint8Array | string;
873
1035
  /** Guardian account IDs that participate in this compute. */
874
1036
  guardians: string[];
875
- /** Fee offered for the compute step in PALI. Defaults to 0. */
876
- fees?: PaliAmountInput;
1037
+ /** Fee offered for the compute step. Defaults to 0 amount and 0 compute rate. */
1038
+ fee: Fee;
877
1039
  /** Block number deadline for the compute step. Defaults to 0 (no deadline). */
878
1040
  deadline?: number;
879
1041
  }
@@ -918,8 +1080,8 @@ interface SimpleComputeParams {
918
1080
  inputExtrinsicIndex?: number;
919
1081
  /** Program location as URL. */
920
1082
  programUrl: string;
921
- /** Fee offered for the compute step in PALI. Defaults to 0. */
922
- fees?: PaliAmountInput;
1083
+ /** Fee offered for the compute step. Defaults to 0 amount and 0 compute rate. */
1084
+ fee?: Fee;
923
1085
  /** Block number deadline for the compute step. Defaults to 0 (no deadline). */
924
1086
  deadline?: number;
925
1087
  /** Trusted guardian index in the guardians list. Defaults to 0. */
@@ -1091,8 +1253,11 @@ interface DataAgreementParams {
1091
1253
  ref: OnChainRef;
1092
1254
  /** Guardian account IDs that participate in this agreement. */
1093
1255
  guardians: string[];
1094
- /** Fee for the agreement in PALI atomic units. */
1095
- fees: bigint;
1256
+ /**
1257
+ * Absolute fee for the agreement. `computeRate` is omitted: this is a
1258
+ * `Dormant` contract and the compute rate only applies to `Active` contracts.
1259
+ */
1260
+ fee: Pick<Fee, "amount">;
1096
1261
  /** If provided, populates ComputeInfo.metadata in the contract. */
1097
1262
  metadata?: DataAgreementMetadata;
1098
1263
  /** Block number deadline. Defaults to 0 (no deadline). */
@@ -1274,4 +1439,4 @@ declare function setIdentity(account: KeyringPair, { display }: IdentityFields):
1274
1439
  declare function rotateAndSetKeys(account: KeyringPair): Promise<void>;
1275
1440
  declare function setWorker(account: KeyringPair): Promise<void>;
1276
1441
 
1277
- export { API_EXTENSIONS, API_RPC, API_TYPES, AccountSourceType, type AsymmetricHybridParams, type AsymmetricParams, type AtomicPaliAmount, type BlockScanFilter, type BlockScanResult, type CipherSuite, type ComputeContract, CryptoType, DEBUG, DEFAULT_COMPUTE_PAYLOAD, DEFAULT_EMPTY_PAYLOAD, type DataAgreementMetadata, type DataAgreementParams, type DataContractParams, type Ed25519Params, FileFromMetadataRef, type GuardianAddress, type GuardianGroupInfo, type GuardianJoinPrefs, type GuardianParticipants, type IdentityFields, type InferenceComputeParams, type KdfParams, MCryptFs, MCryptFsReader, MCryptFsWriter, type OnChainRef, PALI_DECIMALS, PALI_SYMBOL, PALLIORA_RPC_URL, PALLIORA_WS, type PaliAmountInput, type Secp256k1Params, type SilentThresholdParams, type SimpleComputeParams, type SubmissionReceipt, type SubmitTEDataResult, type SymmetricParams, TX_WAIT_FINALIZATION, type ThresholdHybridParams, type ThresholdParams, type UploadOptions, addStake, base64ToUint8Array, clearTokenCache, configure, createAccount, createAgreement, createGuardianGroup, createGuardianGroupAndWatch, createSimpleAgreement, dataContract, debugLog, decodeAggregateKey, decodeField, decodePowersOfTau, decrypt, encrypt as ecncryptTest, encodeCiphertext, encrypt$1 as encrypt, fetchAndDecodeExtrinsic, fetchTokenProperties, formatBalanceWithTokenProperties, formatPaliAmount, fromAtomicPaliAmount, fundAccount, gen_shared_key, gen_stretched_key, generateRandomBytes, getAgreementCreatedRequestId, getApi, getCachedTokenProperties, getEncKeyring, getFileMetadataCall, getGuardianAddress, getGuardianList, getGuardianNwParams, getGuardianParticipants, getKeyring, hexToUint8Array, inferenceCompute, joinGuardian, joinIdleStaker, joinValidator, newStake, pairFromPrivateKeyHex, payoutStake, provider, reduceStake, registerDataAgreement, removeStake, rotateAndSetKeys, runAgent, scanForBlockEvent, setIdentity, setWorker, signAndSend, simpleCompute, submitData, submitTEData, submitTEDataWithCipher, testCrypt, toAtomicPaliAmount, tokenToBigint, transfer, uint8ArrayToBase64, uploadData, uploadDataLegacy, watchForSubmissionReceipt, withdrawStake, writeMetadata };
1442
+ export { API_EXTENSIONS, API_RPC, API_TYPES, AccountSourceType, type AsymmetricHybridParams, type AsymmetricParams, type AtomicPaliAmount, type BlockScanFilter, type BlockScanResult, type CipherSuite, type ComputeContract, CryptoType, type CurrencyId, DEBUG, DEFAULT_COMPUTE_PAYLOAD, DEFAULT_EMPTY_PAYLOAD, type DataAgreementMetadata, type DataAgreementParams, type DataContractParams, type Ed25519Params, type EncryptedInferenceComputeParams, type EncryptedInferenceSubscriptionInvocationParams, type EncryptedInferenceSubscriptionParams, type Fee, FileFromMetadataRef, type GuardianAddress, type GuardianGroupInfo, type GuardianJoinPrefs, type GuardianParticipants, type IdentityFields, type InferenceComputeParams, type KdfParams, MCryptFs, MCryptFsReader, MCryptFsWriter, type OnChainRef, PALI_DECIMALS, PALI_SYMBOL, PALLIORA_RPC_URL, PALLIORA_WS, type PaliAmountInput, type Secp256k1Params, type SilentThresholdParams, type SimpleComputeParams, type SubmissionReceipt, type SubmitTEDataResult, type SymmetricParams, TX_WAIT_FINALIZATION, type ThresholdHybridParams, type ThresholdParams, type UploadOptions, addStake, base64ToUint8Array, buildFee, clearTokenCache, configure, createAccount, createAgreement, createGuardianGroup, createGuardianGroupAndWatch, createSimpleAgreement, dataContract, debugLog, decodeAggregateKey, decodeField, decodePowersOfTau, decrypt, encrypt as ecncryptTest, encodeCiphertext, encrypt$1 as encrypt, encryptedInferenceCompute, encryptedInferenceSubscription, encryptedInferenceSubscriptionInvocation, fetchAndDecodeExtrinsic, fetchTokenProperties, formatBalanceWithTokenProperties, formatPaliAmount, fromAtomicPaliAmount, fundAccount, gen_shared_key, gen_stretched_key, generateRandomBytes, getAgreementCreatedRequestId, getApi, getCachedTokenProperties, getEncKeyring, getFileMetadataCall, getGuardianAddress, getGuardianList, getGuardianNwParams, getGuardianParticipants, getKeyring, hexToUint8Array, inferenceCompute, joinGuardian, joinIdleStaker, joinValidator, newStake, pairFromPrivateKeyHex, payoutStake, provider, reduceStake, registerDataAgreement, removeStake, rotateAndSetKeys, runAgent, scanForBlockEvent, setIdentity, setWorker, signAndSend, simpleCompute, submitData, submitTEData, submitTEDataWithCipher, testCrypt, toAtomicPaliAmount, tokenToBigint, transfer, uint8ArrayToBase64, uploadData, uploadDataLegacy, watchForSubmissionReceipt, withdrawStake, writeMetadata };