@1money/protocol-ts-sdk 1.0.14 → 1.0.15

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/api/index.js CHANGED
@@ -413,7 +413,7 @@ var TESTNET_API_URL = 'https://api.testnet.1money.network';
413
413
  var MAINNET_API_URL = 'https://api.1money.network';
414
414
  var LOCAL_API_URL = 'http://localhost:18555';
415
415
  // API version
416
- var API_VERSION = 'v1';var API_PREFIX$5 = "/".concat(API_VERSION, "/accounts");
416
+ var API_VERSION = 'v1';var API_PREFIX$4 = "/".concat(API_VERSION, "/accounts");
417
417
  /**
418
418
  * Accounts API methods
419
419
  */
@@ -424,7 +424,7 @@ var accountsApi = {
424
424
  * @returns Promise with account info response
425
425
  */
426
426
  getNonce: function (address) {
427
- return get("".concat(API_PREFIX$5, "/nonce?address=").concat(address), { withCredentials: false });
427
+ return get("".concat(API_PREFIX$4, "/nonce?address=").concat(address), { withCredentials: false });
428
428
  },
429
429
  /**
430
430
  * Get associated token account
@@ -433,9 +433,9 @@ var accountsApi = {
433
433
  * @returns Promise with associated token account response
434
434
  */
435
435
  getTokenAccount: function (address, token) {
436
- return get("".concat(API_PREFIX$5, "/token_account?address=").concat(address, "&token=").concat(token), { withCredentials: false });
436
+ return get("".concat(API_PREFIX$4, "/token_account?address=").concat(address, "&token=").concat(token), { withCredentials: false });
437
437
  }
438
- };var API_PREFIX$4 = "/".concat(API_VERSION, "/checkpoints");
438
+ };var API_PREFIX$3 = "/".concat(API_VERSION, "/checkpoints");
439
439
  /**
440
440
  * Checkpoint API methods
441
441
  */
@@ -445,7 +445,7 @@ var checkpointsApi = {
445
445
  * @returns Promise with checkpoint number response
446
446
  */
447
447
  getNumber: function () {
448
- return get("".concat(API_PREFIX$4, "/number"), { withCredentials: false });
448
+ return get("".concat(API_PREFIX$3, "/number"), { withCredentials: false });
449
449
  },
450
450
  /**
451
451
  * Get checkpoint by hash
@@ -455,7 +455,7 @@ var checkpointsApi = {
455
455
  */
456
456
  getByHash: function (hash, full) {
457
457
  if (full === void 0) { full = false; }
458
- return get("".concat(API_PREFIX$4, "/by_hash?hash=").concat(hash, "&full=").concat(full), { withCredentials: false });
458
+ return get("".concat(API_PREFIX$3, "/by_hash?hash=").concat(hash, "&full=").concat(full), { withCredentials: false });
459
459
  },
460
460
  /**
461
461
  * Get checkpoint by number
@@ -465,9 +465,9 @@ var checkpointsApi = {
465
465
  */
466
466
  getByNumber: function (number, full) {
467
467
  if (full === void 0) { full = false; }
468
- return get("".concat(API_PREFIX$4, "/by_number?number=").concat(number, "&full=").concat(full), { withCredentials: false });
468
+ return get("".concat(API_PREFIX$3, "/by_number?number=").concat(number, "&full=").concat(full), { withCredentials: false });
469
469
  }
470
- };var API_PREFIX$3 = "/".concat(API_VERSION, "/tokens");
470
+ };var API_PREFIX$2 = "/".concat(API_VERSION, "/tokens");
471
471
  /**
472
472
  * Tokens API methods
473
473
  */
@@ -478,7 +478,7 @@ var tokensApi = {
478
478
  * @returns Promise with token metadata response
479
479
  */
480
480
  getTokenMetadata: function (token) {
481
- return get("".concat(API_PREFIX$3, "/token_metadata?token=").concat(token), { withCredentials: false });
481
+ return get("".concat(API_PREFIX$2, "/token_metadata?token=").concat(token), { withCredentials: false });
482
482
  },
483
483
  /**
484
484
  * Manage token blacklist
@@ -486,7 +486,7 @@ var tokensApi = {
486
486
  * @returns Promise with transaction hash response
487
487
  */
488
488
  manageBlacklist: function (payload) {
489
- return post("".concat(API_PREFIX$3, "/manage_blacklist"), payload, { withCredentials: false });
489
+ return post("".concat(API_PREFIX$2, "/manage_blacklist"), payload, { withCredentials: false });
490
490
  },
491
491
  /**
492
492
  * Manage token whitelist
@@ -494,7 +494,7 @@ var tokensApi = {
494
494
  * @returns Promise with transaction hash response
495
495
  */
496
496
  manageWhitelist: function (payload) {
497
- return post("".concat(API_PREFIX$3, "/manage_whitelist"), payload, { withCredentials: false });
497
+ return post("".concat(API_PREFIX$2, "/manage_whitelist"), payload, { withCredentials: false });
498
498
  },
499
499
  /**
500
500
  * Burn tokens
@@ -502,7 +502,7 @@ var tokensApi = {
502
502
  * @returns Promise with transaction hash response
503
503
  */
504
504
  burnToken: function (payload) {
505
- return post("".concat(API_PREFIX$3, "/burn"), payload, { withCredentials: false });
505
+ return post("".concat(API_PREFIX$2, "/burn"), payload, { withCredentials: false });
506
506
  },
507
507
  /**
508
508
  * Grant or revoke token authority
@@ -510,7 +510,7 @@ var tokensApi = {
510
510
  * @returns Promise with transaction hash response
511
511
  */
512
512
  grantAuthority: function (payload) {
513
- return post("".concat(API_PREFIX$3, "/grant_authority"), payload, { withCredentials: false });
513
+ return post("".concat(API_PREFIX$2, "/grant_authority"), payload, { withCredentials: false });
514
514
  },
515
515
  /**
516
516
  * Issue new token
@@ -518,7 +518,7 @@ var tokensApi = {
518
518
  * @returns Promise with transaction hash and token address response
519
519
  */
520
520
  issueToken: function (payload) {
521
- return post("".concat(API_PREFIX$3, "/issue"), payload, { withCredentials: false });
521
+ return post("".concat(API_PREFIX$2, "/issue"), payload, { withCredentials: false });
522
522
  },
523
523
  /**
524
524
  * Mint tokens
@@ -526,7 +526,7 @@ var tokensApi = {
526
526
  * @returns Promise with transaction hash response
527
527
  */
528
528
  mintToken: function (payload) {
529
- return post("".concat(API_PREFIX$3, "/mint"), payload, { withCredentials: false });
529
+ return post("".concat(API_PREFIX$2, "/mint"), payload, { withCredentials: false });
530
530
  },
531
531
  /**
532
532
  * Pause or unpause token
@@ -534,7 +534,7 @@ var tokensApi = {
534
534
  * @returns Promise with transaction hash response
535
535
  */
536
536
  pauseToken: function (payload) {
537
- return post("".concat(API_PREFIX$3, "/pause"), payload, { withCredentials: false });
537
+ return post("".concat(API_PREFIX$2, "/pause"), payload, { withCredentials: false });
538
538
  },
539
539
  /**
540
540
  * Update token metadata
@@ -542,9 +542,9 @@ var tokensApi = {
542
542
  * @returns Promise with transaction hash response
543
543
  */
544
544
  updateMetadata: function (payload) {
545
- return post("".concat(API_PREFIX$3, "/update_metadata"), payload, { withCredentials: false });
545
+ return post("".concat(API_PREFIX$2, "/update_metadata"), payload, { withCredentials: false });
546
546
  }
547
- };var API_PREFIX$2 = "/".concat(API_VERSION, "/transactions");
547
+ };var API_PREFIX$1 = "/".concat(API_VERSION, "/transactions");
548
548
  /**
549
549
  * Transactions API methods
550
550
  */
@@ -555,7 +555,7 @@ var transactionsApi = {
555
555
  * @returns Promise with transaction response
556
556
  */
557
557
  getByHash: function (hash) {
558
- return get("".concat(API_PREFIX$2, "/by_hash?hash=").concat(hash), { withCredentials: false });
558
+ return get("".concat(API_PREFIX$1, "/by_hash?hash=").concat(hash), { withCredentials: false });
559
559
  },
560
560
  /**
561
561
  * Get transaction receipt by hash
@@ -563,7 +563,7 @@ var transactionsApi = {
563
563
  * @returns Promise with transaction receipt response
564
564
  */
565
565
  getReceiptByHash: function (hash) {
566
- return get("".concat(API_PREFIX$2, "/receipt/by_hash?hash=").concat(hash), { withCredentials: false });
566
+ return get("".concat(API_PREFIX$1, "/receipt/by_hash?hash=").concat(hash), { withCredentials: false });
567
567
  },
568
568
  /**
569
569
  * Estimate transaction fee
@@ -573,7 +573,7 @@ var transactionsApi = {
573
573
  * @returns Promise with fee estimate response
574
574
  */
575
575
  estimateFee: function (from, value, token) {
576
- var url = "".concat(API_PREFIX$2, "/estimate_fee?from=").concat(from, "&value=").concat(value);
576
+ var url = "".concat(API_PREFIX$1, "/estimate_fee?from=").concat(from, "&value=").concat(value);
577
577
  if (token) {
578
578
  url += "&token=".concat(token);
579
579
  }
@@ -585,9 +585,9 @@ var transactionsApi = {
585
585
  * @returns Promise with transaction hash response
586
586
  */
587
587
  payment: function (payload) {
588
- return post("".concat(API_PREFIX$2, "/payment"), payload, { withCredentials: false });
588
+ return post("".concat(API_PREFIX$1, "/payment"), payload, { withCredentials: false });
589
589
  }
590
- };var API_PREFIX$1 = "/".concat(API_VERSION, "/chains");
590
+ };var API_PREFIX = "/".concat(API_VERSION, "/chains");
591
591
  /**
592
592
  * Checkpoint API methods
593
593
  */
@@ -597,20 +597,8 @@ var chainApi = {
597
597
  * @returns Promise with chain id response
598
598
  */
599
599
  getChainId: function () {
600
- return get("".concat(API_PREFIX$1, "/chain_id"), { withCredentials: false });
600
+ return get("".concat(API_PREFIX, "/chain_id"), { withCredentials: false });
601
601
  },
602
- };var API_PREFIX = "/".concat(API_VERSION, "/states");
603
- /**
604
- * State API methods
605
- */
606
- var stateApi = {
607
- /**
608
- * Get latest epoch checkpoint
609
- * @returns Promise with latest epoch checkpoint response
610
- */
611
- getLatestEpochCheckpoint: function () {
612
- return get("".concat(API_PREFIX, "/latest_epoch_checkpoint"), { withCredentials: false });
613
- }
614
602
  };// Authority types
615
603
  exports.AuthorityType=void 0;
616
604
  (function (AuthorityType) {
@@ -684,9 +672,5 @@ function api(options) {
684
672
  * Chain API methods
685
673
  */
686
674
  chain: chainApi,
687
- /**
688
- * State API methods
689
- */
690
- state: stateApi,
691
675
  };
692
676
  }exports.api=api;exports.default=api;
@@ -55,7 +55,6 @@ export declare enum PauseAction {
55
55
  export interface RestSignature extends Signature {
56
56
  }
57
57
  export interface TokenManageListPayload {
58
- recent_epoch: number;
59
58
  recent_checkpoint: number;
60
59
  chain_id: number;
61
60
  nonce: number;
@@ -65,7 +64,6 @@ export interface TokenManageListPayload {
65
64
  signature: RestSignature;
66
65
  }
67
66
  export interface TokenBurnPayload {
68
- recent_epoch: number;
69
67
  recent_checkpoint: number;
70
68
  chain_id: number;
71
69
  nonce: number;
@@ -75,7 +73,6 @@ export interface TokenBurnPayload {
75
73
  signature: RestSignature;
76
74
  }
77
75
  export interface TokenAuthorityPayload {
78
- recent_epoch: number;
79
76
  recent_checkpoint: number;
80
77
  chain_id: number;
81
78
  nonce: number;
@@ -87,7 +84,6 @@ export interface TokenAuthorityPayload {
87
84
  signature: RestSignature;
88
85
  }
89
86
  export interface TokenIssuePayload {
90
- recent_epoch: number;
91
87
  recent_checkpoint: number;
92
88
  chain_id: number;
93
89
  nonce: number;
@@ -99,7 +95,6 @@ export interface TokenIssuePayload {
99
95
  signature: RestSignature;
100
96
  }
101
97
  export interface TokenMintPayload {
102
- recent_epoch: number;
103
98
  recent_checkpoint: number;
104
99
  chain_id: number;
105
100
  nonce: number;
@@ -109,7 +104,6 @@ export interface TokenMintPayload {
109
104
  signature: RestSignature;
110
105
  }
111
106
  export interface TokenPausePayload {
112
- recent_epoch: number;
113
107
  recent_checkpoint: number;
114
108
  chain_id: number;
115
109
  nonce: number;
@@ -118,7 +112,6 @@ export interface TokenPausePayload {
118
112
  signature: RestSignature;
119
113
  }
120
114
  export interface TokenMetadataPayload {
121
- recent_epoch: number;
122
115
  recent_checkpoint: number;
123
116
  chain_id: number;
124
117
  nonce: number;
@@ -14,7 +14,6 @@ export interface EstimateFee {
14
14
  fee: string;
15
15
  }
16
16
  export interface PaymentPayload {
17
- recent_epoch: number;
18
17
  recent_checkpoint: number;
19
18
  chain_id: number;
20
19
  nonce: number;
package/lib/index.js CHANGED
@@ -1309,7 +1309,7 @@ var TESTNET_API_URL = 'https://api.testnet.1money.network';
1309
1309
  var MAINNET_API_URL = 'https://api.1money.network';
1310
1310
  var LOCAL_API_URL = 'http://localhost:18555';
1311
1311
  // API version
1312
- var API_VERSION = 'v1';var API_PREFIX$5 = "/".concat(API_VERSION, "/accounts");
1312
+ var API_VERSION = 'v1';var API_PREFIX$4 = "/".concat(API_VERSION, "/accounts");
1313
1313
  /**
1314
1314
  * Accounts API methods
1315
1315
  */
@@ -1320,7 +1320,7 @@ var accountsApi = {
1320
1320
  * @returns Promise with account info response
1321
1321
  */
1322
1322
  getNonce: function (address) {
1323
- return get("".concat(API_PREFIX$5, "/nonce?address=").concat(address), { withCredentials: false });
1323
+ return get("".concat(API_PREFIX$4, "/nonce?address=").concat(address), { withCredentials: false });
1324
1324
  },
1325
1325
  /**
1326
1326
  * Get associated token account
@@ -1329,9 +1329,9 @@ var accountsApi = {
1329
1329
  * @returns Promise with associated token account response
1330
1330
  */
1331
1331
  getTokenAccount: function (address, token) {
1332
- return get("".concat(API_PREFIX$5, "/token_account?address=").concat(address, "&token=").concat(token), { withCredentials: false });
1332
+ return get("".concat(API_PREFIX$4, "/token_account?address=").concat(address, "&token=").concat(token), { withCredentials: false });
1333
1333
  }
1334
- };var API_PREFIX$4 = "/".concat(API_VERSION, "/checkpoints");
1334
+ };var API_PREFIX$3 = "/".concat(API_VERSION, "/checkpoints");
1335
1335
  /**
1336
1336
  * Checkpoint API methods
1337
1337
  */
@@ -1341,7 +1341,7 @@ var checkpointsApi = {
1341
1341
  * @returns Promise with checkpoint number response
1342
1342
  */
1343
1343
  getNumber: function () {
1344
- return get("".concat(API_PREFIX$4, "/number"), { withCredentials: false });
1344
+ return get("".concat(API_PREFIX$3, "/number"), { withCredentials: false });
1345
1345
  },
1346
1346
  /**
1347
1347
  * Get checkpoint by hash
@@ -1351,7 +1351,7 @@ var checkpointsApi = {
1351
1351
  */
1352
1352
  getByHash: function (hash, full) {
1353
1353
  if (full === void 0) { full = false; }
1354
- return get("".concat(API_PREFIX$4, "/by_hash?hash=").concat(hash, "&full=").concat(full), { withCredentials: false });
1354
+ return get("".concat(API_PREFIX$3, "/by_hash?hash=").concat(hash, "&full=").concat(full), { withCredentials: false });
1355
1355
  },
1356
1356
  /**
1357
1357
  * Get checkpoint by number
@@ -1361,9 +1361,9 @@ var checkpointsApi = {
1361
1361
  */
1362
1362
  getByNumber: function (number, full) {
1363
1363
  if (full === void 0) { full = false; }
1364
- return get("".concat(API_PREFIX$4, "/by_number?number=").concat(number, "&full=").concat(full), { withCredentials: false });
1364
+ return get("".concat(API_PREFIX$3, "/by_number?number=").concat(number, "&full=").concat(full), { withCredentials: false });
1365
1365
  }
1366
- };var API_PREFIX$3 = "/".concat(API_VERSION, "/tokens");
1366
+ };var API_PREFIX$2 = "/".concat(API_VERSION, "/tokens");
1367
1367
  /**
1368
1368
  * Tokens API methods
1369
1369
  */
@@ -1374,7 +1374,7 @@ var tokensApi = {
1374
1374
  * @returns Promise with token metadata response
1375
1375
  */
1376
1376
  getTokenMetadata: function (token) {
1377
- return get("".concat(API_PREFIX$3, "/token_metadata?token=").concat(token), { withCredentials: false });
1377
+ return get("".concat(API_PREFIX$2, "/token_metadata?token=").concat(token), { withCredentials: false });
1378
1378
  },
1379
1379
  /**
1380
1380
  * Manage token blacklist
@@ -1382,7 +1382,7 @@ var tokensApi = {
1382
1382
  * @returns Promise with transaction hash response
1383
1383
  */
1384
1384
  manageBlacklist: function (payload) {
1385
- return post("".concat(API_PREFIX$3, "/manage_blacklist"), payload, { withCredentials: false });
1385
+ return post("".concat(API_PREFIX$2, "/manage_blacklist"), payload, { withCredentials: false });
1386
1386
  },
1387
1387
  /**
1388
1388
  * Manage token whitelist
@@ -1390,7 +1390,7 @@ var tokensApi = {
1390
1390
  * @returns Promise with transaction hash response
1391
1391
  */
1392
1392
  manageWhitelist: function (payload) {
1393
- return post("".concat(API_PREFIX$3, "/manage_whitelist"), payload, { withCredentials: false });
1393
+ return post("".concat(API_PREFIX$2, "/manage_whitelist"), payload, { withCredentials: false });
1394
1394
  },
1395
1395
  /**
1396
1396
  * Burn tokens
@@ -1398,7 +1398,7 @@ var tokensApi = {
1398
1398
  * @returns Promise with transaction hash response
1399
1399
  */
1400
1400
  burnToken: function (payload) {
1401
- return post("".concat(API_PREFIX$3, "/burn"), payload, { withCredentials: false });
1401
+ return post("".concat(API_PREFIX$2, "/burn"), payload, { withCredentials: false });
1402
1402
  },
1403
1403
  /**
1404
1404
  * Grant or revoke token authority
@@ -1406,7 +1406,7 @@ var tokensApi = {
1406
1406
  * @returns Promise with transaction hash response
1407
1407
  */
1408
1408
  grantAuthority: function (payload) {
1409
- return post("".concat(API_PREFIX$3, "/grant_authority"), payload, { withCredentials: false });
1409
+ return post("".concat(API_PREFIX$2, "/grant_authority"), payload, { withCredentials: false });
1410
1410
  },
1411
1411
  /**
1412
1412
  * Issue new token
@@ -1414,7 +1414,7 @@ var tokensApi = {
1414
1414
  * @returns Promise with transaction hash and token address response
1415
1415
  */
1416
1416
  issueToken: function (payload) {
1417
- return post("".concat(API_PREFIX$3, "/issue"), payload, { withCredentials: false });
1417
+ return post("".concat(API_PREFIX$2, "/issue"), payload, { withCredentials: false });
1418
1418
  },
1419
1419
  /**
1420
1420
  * Mint tokens
@@ -1422,7 +1422,7 @@ var tokensApi = {
1422
1422
  * @returns Promise with transaction hash response
1423
1423
  */
1424
1424
  mintToken: function (payload) {
1425
- return post("".concat(API_PREFIX$3, "/mint"), payload, { withCredentials: false });
1425
+ return post("".concat(API_PREFIX$2, "/mint"), payload, { withCredentials: false });
1426
1426
  },
1427
1427
  /**
1428
1428
  * Pause or unpause token
@@ -1430,7 +1430,7 @@ var tokensApi = {
1430
1430
  * @returns Promise with transaction hash response
1431
1431
  */
1432
1432
  pauseToken: function (payload) {
1433
- return post("".concat(API_PREFIX$3, "/pause"), payload, { withCredentials: false });
1433
+ return post("".concat(API_PREFIX$2, "/pause"), payload, { withCredentials: false });
1434
1434
  },
1435
1435
  /**
1436
1436
  * Update token metadata
@@ -1438,9 +1438,9 @@ var tokensApi = {
1438
1438
  * @returns Promise with transaction hash response
1439
1439
  */
1440
1440
  updateMetadata: function (payload) {
1441
- return post("".concat(API_PREFIX$3, "/update_metadata"), payload, { withCredentials: false });
1441
+ return post("".concat(API_PREFIX$2, "/update_metadata"), payload, { withCredentials: false });
1442
1442
  }
1443
- };var API_PREFIX$2 = "/".concat(API_VERSION, "/transactions");
1443
+ };var API_PREFIX$1 = "/".concat(API_VERSION, "/transactions");
1444
1444
  /**
1445
1445
  * Transactions API methods
1446
1446
  */
@@ -1451,7 +1451,7 @@ var transactionsApi = {
1451
1451
  * @returns Promise with transaction response
1452
1452
  */
1453
1453
  getByHash: function (hash) {
1454
- return get("".concat(API_PREFIX$2, "/by_hash?hash=").concat(hash), { withCredentials: false });
1454
+ return get("".concat(API_PREFIX$1, "/by_hash?hash=").concat(hash), { withCredentials: false });
1455
1455
  },
1456
1456
  /**
1457
1457
  * Get transaction receipt by hash
@@ -1459,7 +1459,7 @@ var transactionsApi = {
1459
1459
  * @returns Promise with transaction receipt response
1460
1460
  */
1461
1461
  getReceiptByHash: function (hash) {
1462
- return get("".concat(API_PREFIX$2, "/receipt/by_hash?hash=").concat(hash), { withCredentials: false });
1462
+ return get("".concat(API_PREFIX$1, "/receipt/by_hash?hash=").concat(hash), { withCredentials: false });
1463
1463
  },
1464
1464
  /**
1465
1465
  * Estimate transaction fee
@@ -1469,7 +1469,7 @@ var transactionsApi = {
1469
1469
  * @returns Promise with fee estimate response
1470
1470
  */
1471
1471
  estimateFee: function (from, value, token) {
1472
- var url = "".concat(API_PREFIX$2, "/estimate_fee?from=").concat(from, "&value=").concat(value);
1472
+ var url = "".concat(API_PREFIX$1, "/estimate_fee?from=").concat(from, "&value=").concat(value);
1473
1473
  if (token) {
1474
1474
  url += "&token=".concat(token);
1475
1475
  }
@@ -1481,9 +1481,9 @@ var transactionsApi = {
1481
1481
  * @returns Promise with transaction hash response
1482
1482
  */
1483
1483
  payment: function (payload) {
1484
- return post("".concat(API_PREFIX$2, "/payment"), payload, { withCredentials: false });
1484
+ return post("".concat(API_PREFIX$1, "/payment"), payload, { withCredentials: false });
1485
1485
  }
1486
- };var API_PREFIX$1 = "/".concat(API_VERSION, "/chains");
1486
+ };var API_PREFIX = "/".concat(API_VERSION, "/chains");
1487
1487
  /**
1488
1488
  * Checkpoint API methods
1489
1489
  */
@@ -1493,20 +1493,8 @@ var chainApi = {
1493
1493
  * @returns Promise with chain id response
1494
1494
  */
1495
1495
  getChainId: function () {
1496
- return get("".concat(API_PREFIX$1, "/chain_id"), { withCredentials: false });
1496
+ return get("".concat(API_PREFIX, "/chain_id"), { withCredentials: false });
1497
1497
  },
1498
- };var API_PREFIX = "/".concat(API_VERSION, "/states");
1499
- /**
1500
- * State API methods
1501
- */
1502
- var stateApi = {
1503
- /**
1504
- * Get latest epoch checkpoint
1505
- * @returns Promise with latest epoch checkpoint response
1506
- */
1507
- getLatestEpochCheckpoint: function () {
1508
- return get("".concat(API_PREFIX, "/latest_epoch_checkpoint"), { withCredentials: false });
1509
- }
1510
1498
  };// Authority types
1511
1499
  var AuthorityType;
1512
1500
  (function (AuthorityType) {
@@ -1580,10 +1568,6 @@ function api(options) {
1580
1568
  * Chain API methods
1581
1569
  */
1582
1570
  chain: chainApi,
1583
- /**
1584
- * State API methods
1585
- */
1586
- state: stateApi,
1587
1571
  };
1588
1572
  }var index = {
1589
1573
  api: api,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1money/protocol-ts-sdk",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "ts sdk for 1Money protocol network",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",