@story-protocol/core-sdk 1.0.0-rc.5 → 1.0.0-rc.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,6 @@
1
- import { defineChain, decodeEventLog, getAddress as getAddress$1, zeroAddress, encodeFunctionData, stringToHex, createPublicClient, createWalletClient } from 'viem';
1
+ import { decodeEventLog, getAddress as getAddress$1, zeroAddress, encodeFunctionData, stringToHex, createPublicClient, createWalletClient } from 'viem';
2
2
  import * as dotenv from 'dotenv';
3
3
  import { sepolia } from 'viem/chains';
4
- import axios from 'axios';
5
4
 
6
5
  function toPrimitive(t, r) {
7
6
  if ("object" != typeof t || !t) return t;
@@ -488,47 +487,13 @@ function chainStringToViemChain(chainId) {
488
487
  case "11155111":
489
488
  case "sepolia":
490
489
  return sepolia;
491
- case "1513":
492
- case "storyTestnet":
493
- return storyTestnet;
494
490
  default:
495
491
  throw new Error("chainId ".concat(chainId, " not supported"));
496
492
  }
497
493
  }
498
- var storyTestnet = defineChain({
499
- id: 1513,
500
- name: "story-network",
501
- nativeCurrency: {
502
- name: "Ether",
503
- symbol: "SEP",
504
- decimals: 18
505
- },
506
- rpcUrls: {
507
- "default": {
508
- http: ["https://story-network.rpc.caldera.xyz/http"],
509
- webSocket: ["wss://story-network.rpc.caldera.xyz/ws"]
510
- }
511
- },
512
- blockExplorers: {
513
- "default": {
514
- name: "Explorer",
515
- url: "https://story-network.explorer.caldera.xyz"
516
- }
517
- },
518
- //TODO: wait for Ze confirm with config information
519
- contracts: {
520
- multicall3: {
521
- address: "0xcA11bde05977b3631167028862bE2a173976CA11",
522
- blockCreated: 5882
523
- }
524
- },
525
- testnet: true
526
- });
527
494
  var chain = {
528
495
  sepolia: "11155111",
529
- storyTestnet: "1513",
530
- 11155111: "11155111",
531
- 1513: "1513"
496
+ 11155111: "11155111"
532
497
  };
533
498
 
534
499
  function handleError(error, msg) {
@@ -604,7 +569,7 @@ function _inherits(subClass, superClass) {
604
569
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
605
570
 
606
571
  /**
607
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xFbD5BE3815b71564Dc51C3C8301c47770fC9a61c)
572
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xF9936a224b3Deb6f9A4645ccAfa66f7ECe83CF0A)
608
573
  */
609
574
  var accessControllerAbi = [{
610
575
  type: "constructor",
@@ -1107,10 +1072,10 @@ var accessControllerAbi = [{
1107
1072
  }];
1108
1073
 
1109
1074
  /**
1110
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xFbD5BE3815b71564Dc51C3C8301c47770fC9a61c)
1075
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xF9936a224b3Deb6f9A4645ccAfa66f7ECe83CF0A)
1111
1076
  */
1112
1077
  var accessControllerAddress = {
1113
- 11155111: "0xFbD5BE3815b71564Dc51C3C8301c47770fC9a61c"
1078
+ 11155111: "0xF9936a224b3Deb6f9A4645ccAfa66f7ECe83CF0A"
1114
1079
  };
1115
1080
 
1116
1081
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -1118,7 +1083,7 @@ var accessControllerAddress = {
1118
1083
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1119
1084
 
1120
1085
  /**
1121
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd0194dD93968DE60dBe10610fb6Ce2C86a51A78e)
1086
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xEB7B1dd43B81A7be1fA427515a2b173B454A9832)
1122
1087
  */
1123
1088
  var disputeModuleAbi = [{
1124
1089
  type: "constructor",
@@ -2040,10 +2005,10 @@ var disputeModuleAbi = [{
2040
2005
  }];
2041
2006
 
2042
2007
  /**
2043
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd0194dD93968DE60dBe10610fb6Ce2C86a51A78e)
2008
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xEB7B1dd43B81A7be1fA427515a2b173B454A9832)
2044
2009
  */
2045
2010
  var disputeModuleAddress = {
2046
- 11155111: "0xd0194dD93968DE60dBe10610fb6Ce2C86a51A78e"
2011
+ 11155111: "0xEB7B1dd43B81A7be1fA427515a2b173B454A9832"
2047
2012
  };
2048
2013
 
2049
2014
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -2051,7 +2016,7 @@ var disputeModuleAddress = {
2051
2016
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2052
2017
 
2053
2018
  /**
2054
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x71898BD128039BC5bb8D2451Cfc43A55F64fb9c6)
2019
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x36a5f0D61f6Bab3C6Dde211E5a6762Cb18a8060d)
2055
2020
  */
2056
2021
  var ipAccountImplAbi = [{
2057
2022
  type: "constructor",
@@ -2552,10 +2517,10 @@ var ipAccountImplAbi = [{
2552
2517
  }];
2553
2518
 
2554
2519
  /**
2555
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x71898BD128039BC5bb8D2451Cfc43A55F64fb9c6)
2520
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x36a5f0D61f6Bab3C6Dde211E5a6762Cb18a8060d)
2556
2521
  */
2557
2522
  var ipAccountImplAddress = {
2558
- 11155111: "0x71898BD128039BC5bb8D2451Cfc43A55F64fb9c6"
2523
+ 11155111: "0x36a5f0D61f6Bab3C6Dde211E5a6762Cb18a8060d"
2559
2524
  };
2560
2525
 
2561
2526
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -2563,7 +2528,7 @@ var ipAccountImplAddress = {
2563
2528
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2564
2529
 
2565
2530
  /**
2566
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x84c177633adCD26157732e18dd9E145E442E6aCb)
2531
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd43fE0d865cb5C26b1351d3eAf2E3064BE3276F6)
2567
2532
  */
2568
2533
  var ipAssetRegistryAbi = [{
2569
2534
  type: "constructor",
@@ -3090,10 +3055,10 @@ var ipAssetRegistryAbi = [{
3090
3055
  }];
3091
3056
 
3092
3057
  /**
3093
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x84c177633adCD26157732e18dd9E145E442E6aCb)
3058
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd43fE0d865cb5C26b1351d3eAf2E3064BE3276F6)
3094
3059
  */
3095
3060
  var ipAssetRegistryAddress = {
3096
- 11155111: "0x84c177633adCD26157732e18dd9E145E442E6aCb"
3061
+ 11155111: "0xd43fE0d865cb5C26b1351d3eAf2E3064BE3276F6"
3097
3062
  };
3098
3063
 
3099
3064
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -3101,7 +3066,7 @@ var ipAssetRegistryAddress = {
3101
3066
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3102
3067
 
3103
3068
  /**
3104
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xDdAa6A42399F8eA503048ACb93A5fAe6e6b39598)
3069
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD6c2AfB61085f1359d47159f2271BDD0EeBf19C2)
3105
3070
  */
3106
3071
  var ipRoyaltyVaultImplAbi = [{
3107
3072
  type: "constructor",
@@ -3729,10 +3694,10 @@ var ipRoyaltyVaultImplAbi = [{
3729
3694
  }];
3730
3695
 
3731
3696
  /**
3732
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xDdAa6A42399F8eA503048ACb93A5fAe6e6b39598)
3697
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD6c2AfB61085f1359d47159f2271BDD0EeBf19C2)
3733
3698
  */
3734
3699
  var ipRoyaltyVaultImplAddress = {
3735
- 11155111: "0xDdAa6A42399F8eA503048ACb93A5fAe6e6b39598"
3700
+ 11155111: "0xD6c2AfB61085f1359d47159f2271BDD0EeBf19C2"
3736
3701
  };
3737
3702
 
3738
3703
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -3740,7 +3705,7 @@ var ipRoyaltyVaultImplAddress = {
3740
3705
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3741
3706
 
3742
3707
  /**
3743
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xbbcb7b0Bd15b1CfcA0A923791e526A6E90774D40)
3708
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x4f4b1bf7135C7ff1462826CCA81B048Ed19562ed)
3744
3709
  */
3745
3710
  var licenseRegistryAbi = [{
3746
3711
  type: "constructor",
@@ -4728,10 +4693,10 @@ var licenseRegistryAbi = [{
4728
4693
  }];
4729
4694
 
4730
4695
  /**
4731
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xbbcb7b0Bd15b1CfcA0A923791e526A6E90774D40)
4696
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x4f4b1bf7135C7ff1462826CCA81B048Ed19562ed)
4732
4697
  */
4733
4698
  var licenseRegistryAddress = {
4734
- 11155111: "0xbbcb7b0Bd15b1CfcA0A923791e526A6E90774D40"
4699
+ 11155111: "0x4f4b1bf7135C7ff1462826CCA81B048Ed19562ed"
4735
4700
  };
4736
4701
 
4737
4702
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -4739,7 +4704,7 @@ var licenseRegistryAddress = {
4739
4704
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4740
4705
 
4741
4706
  /**
4742
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xCe9862F0a6f39631A2A790237086bd48635e3e42)
4707
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x1333c78A821c9a576209B01a16dDCEF881cAb6f2)
4743
4708
  */
4744
4709
  var licenseTokenAbi = [{
4745
4710
  type: "constructor",
@@ -5624,10 +5589,10 @@ var licenseTokenAbi = [{
5624
5589
  }];
5625
5590
 
5626
5591
  /**
5627
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xCe9862F0a6f39631A2A790237086bd48635e3e42)
5592
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x1333c78A821c9a576209B01a16dDCEF881cAb6f2)
5628
5593
  */
5629
5594
  var licenseTokenAddress = {
5630
- 11155111: "0xCe9862F0a6f39631A2A790237086bd48635e3e42"
5595
+ 11155111: "0x1333c78A821c9a576209B01a16dDCEF881cAb6f2"
5631
5596
  };
5632
5597
 
5633
5598
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -5635,7 +5600,7 @@ var licenseTokenAddress = {
5635
5600
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
5636
5601
 
5637
5602
  /**
5638
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf6C72a97E6ef70A9AB0F96c6E4baB93b868DC992)
5603
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xe89b0EaA8a0949738efA80bB531a165FB3456CBe)
5639
5604
  */
5640
5605
  var licensingModuleAbi = [{
5641
5606
  type: "constructor",
@@ -6377,10 +6342,10 @@ var licensingModuleAbi = [{
6377
6342
  }];
6378
6343
 
6379
6344
  /**
6380
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf6C72a97E6ef70A9AB0F96c6E4baB93b868DC992)
6345
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xe89b0EaA8a0949738efA80bB531a165FB3456CBe)
6381
6346
  */
6382
6347
  var licensingModuleAddress = {
6383
- 11155111: "0xf6C72a97E6ef70A9AB0F96c6E4baB93b868DC992"
6348
+ 11155111: "0xe89b0EaA8a0949738efA80bB531a165FB3456CBe"
6384
6349
  };
6385
6350
 
6386
6351
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -6388,7 +6353,7 @@ var licensingModuleAddress = {
6388
6353
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6389
6354
 
6390
6355
  /**
6391
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xFD474b0938303613AAa377BE375c3A571cAA04fb)
6356
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x260B6CB6284c89dbE660c0004233f7bB99B5edE7)
6392
6357
  */
6393
6358
  var piLicenseTemplateAbi = [{
6394
6359
  type: "constructor",
@@ -7321,10 +7286,10 @@ var piLicenseTemplateAbi = [{
7321
7286
  }];
7322
7287
 
7323
7288
  /**
7324
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xFD474b0938303613AAa377BE375c3A571cAA04fb)
7289
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x260B6CB6284c89dbE660c0004233f7bB99B5edE7)
7325
7290
  */
7326
7291
  var piLicenseTemplateAddress = {
7327
- 11155111: "0xFD474b0938303613AAa377BE375c3A571cAA04fb"
7292
+ 11155111: "0x260B6CB6284c89dbE660c0004233f7bB99B5edE7"
7328
7293
  };
7329
7294
 
7330
7295
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -7332,7 +7297,7 @@ var piLicenseTemplateAddress = {
7332
7297
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7333
7298
 
7334
7299
  /**
7335
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xE50BB9D71b4d5c587d36849460F57df5bc939dab)
7300
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xFAE961dd2b87CD5818dbCDc2591e6AB0b50E96b0)
7336
7301
  */
7337
7302
  var royaltyModuleAbi = [{
7338
7303
  type: "constructor",
@@ -7958,10 +7923,10 @@ var royaltyModuleAbi = [{
7958
7923
  }];
7959
7924
 
7960
7925
  /**
7961
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xE50BB9D71b4d5c587d36849460F57df5bc939dab)
7926
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xFAE961dd2b87CD5818dbCDc2591e6AB0b50E96b0)
7962
7927
  */
7963
7928
  var royaltyModuleAddress = {
7964
- 11155111: "0xE50BB9D71b4d5c587d36849460F57df5bc939dab"
7929
+ 11155111: "0xFAE961dd2b87CD5818dbCDc2591e6AB0b50E96b0"
7965
7930
  };
7966
7931
 
7967
7932
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -7969,7 +7934,7 @@ var royaltyModuleAddress = {
7969
7934
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7970
7935
 
7971
7936
  /**
7972
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf4f93F779BAe88898BA0Fc6ddb6FAA05632ee13c)
7937
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xAAbaf349C7a2A84564F9CC4Ac130B3f19A718E86)
7973
7938
  */
7974
7939
  var royaltyPolicyLapAbi = [{
7975
7940
  type: "constructor",
@@ -8523,10 +8488,10 @@ var royaltyPolicyLapAbi = [{
8523
8488
  }];
8524
8489
 
8525
8490
  /**
8526
- * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf4f93F779BAe88898BA0Fc6ddb6FAA05632ee13c)
8491
+ * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xAAbaf349C7a2A84564F9CC4Ac130B3f19A718E86)
8527
8492
  */
8528
8493
  var royaltyPolicyLapAddress = {
8529
- 11155111: "0xf4f93F779BAe88898BA0Fc6ddb6FAA05632ee13c"
8494
+ 11155111: "0xAAbaf349C7a2A84564F9CC4Ac130B3f19A718E86"
8530
8495
  };
8531
8496
 
8532
8497
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -13918,7 +13883,7 @@ var PermissionClient = /*#__PURE__*/function () {
13918
13883
  * address(0) => wildcard
13919
13884
  * bytes4(0) => wildcard
13920
13885
  * Specific permission overrides wildcard permission.
13921
- * @param request The request object containing necessary data to set permissions.
13886
+ * @param request - The request object containing necessary data to set permissions.
13922
13887
  * @param request.ipAsset The address of the IP account that grants the permission for `signer`
13923
13888
  * @param request.signer The address that can call `to` on behalf of the `ipAccount`
13924
13889
  * @param request.to The address that can be called by the `signer` (currently only modules can be `to`)
@@ -14011,7 +13976,7 @@ var LicenseClient = /*#__PURE__*/function () {
14011
13976
  }
14012
13977
  /**
14013
13978
  * Convenient function to register a PIL non commercial social remix license to the registry
14014
- * @param request [Optional] The request object that contains all data needed to register a PIL non commercial social remix license.
13979
+ * @param request - [Optional] The request object that contains all data needed to register a PIL non commercial social remix license.
14015
13980
  * @param request.txOptions [Optional] The transaction options.
14016
13981
  * @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
14017
13982
  * @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
@@ -14101,7 +14066,7 @@ var LicenseClient = /*#__PURE__*/function () {
14101
14066
  }()
14102
14067
  /**
14103
14068
  * Convenient function to register a PIL commercial use license to the registry.
14104
- * @param request The request object that contains all data needed to register a PIL commercial use license.
14069
+ * @param request - The request object that contains all data needed to register a PIL commercial use license.
14105
14070
  * @param request.mintingFee The fee to be paid when minting a license.
14106
14071
  * @param request.currency The ERC20 token to be used to pay the minting fee and the token must be registered in story protocol.
14107
14072
  * @param request.royaltyPolicy The address of the royalty policy contract which required to StoryProtocol in advance.
@@ -14195,7 +14160,7 @@ var LicenseClient = /*#__PURE__*/function () {
14195
14160
  }()
14196
14161
  /**
14197
14162
  * Convenient function to register a PIL commercial Remix license to the registry.
14198
- * @param request The request object that contains all data needed to register license.
14163
+ * @param request - The request object that contains all data needed to register license.
14199
14164
  * @param request.mintingFee The fee to be paid when minting a license.
14200
14165
  * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor.
14201
14166
  * @param request.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
@@ -14290,7 +14255,7 @@ var LicenseClient = /*#__PURE__*/function () {
14290
14255
  }()
14291
14256
  /**
14292
14257
  * Attaches license terms to an IP.
14293
- * @param request The request object that contains all data needed to attach license terms.
14258
+ * @param request - The request object that contains all data needed to attach license terms.
14294
14259
  * @param request.ipId The address of the IP to which the license terms are attached.
14295
14260
  * @param request.licenseTemplate The address of the license template.
14296
14261
  * @param request.licenseTermsId The ID of the license terms.
@@ -14399,7 +14364,7 @@ var LicenseClient = /*#__PURE__*/function () {
14399
14364
  * The minting fee is paid in the minting fee token specified in the license terms or configured by the IP owner.
14400
14365
  * IP owners can configure the minting fee of their IPs or
14401
14366
  * configure the minting fee module to determine the minting fee.
14402
- * @param request The request object that contains all data needed to mint license tokens.
14367
+ * @param request - The request object that contains all data needed to mint license tokens.
14403
14368
  * @param request.licensorIpId The licensor IP ID.
14404
14369
  * @param request.licenseTemplate The address of the license template.
14405
14370
  * @param request.licenseTermsId The ID of the license terms within the license template.
@@ -14613,7 +14578,7 @@ var DisputeClient = /*#__PURE__*/function () {
14613
14578
  }()
14614
14579
  /**
14615
14580
  * Cancels an ongoing dispute
14616
- * @param request The request object containing details to cancel the dispute.
14581
+ * @param request - The request object containing details to cancel the dispute.
14617
14582
  * @param request.disputeId The ID of the dispute to be cancelled.
14618
14583
  * @param request.calldata Optional additional data used in the cancellation process.
14619
14584
  * @returns A Promise that resolves to a CancelDisputeResponse containing the transaction hash.
@@ -14669,7 +14634,7 @@ var DisputeClient = /*#__PURE__*/function () {
14669
14634
  }()
14670
14635
  /**
14671
14636
  * Resolves a dispute after it has been judged
14672
- * @param request The request object containing details to resolve the dispute.
14637
+ * @param request - The request object containing details to resolve the dispute.
14673
14638
  * @param request.disputeId The ID of the dispute to be resolved.
14674
14639
  * @param request.data The data to resolve the dispute.
14675
14640
  * @returns A Promise that resolves to a ResolveDisputeResponse.
@@ -14732,7 +14697,7 @@ var IPAccountClient = /*#__PURE__*/function () {
14732
14697
  }
14733
14698
 
14734
14699
  /** Executes a transaction from the IP Account.
14735
- * @param request The request object containing necessary data to execute IP Account a transaction.
14700
+ * @param request - The request object containing necessary data to execute IP Account a transaction.
14736
14701
  * @param request.to The recipient of the transaction.
14737
14702
  * @param request.value The amount of Ether to send.
14738
14703
  * @param request.data The data to send along with the transaction.
@@ -14784,7 +14749,7 @@ var IPAccountClient = /*#__PURE__*/function () {
14784
14749
  return execute;
14785
14750
  }()
14786
14751
  /** Executes a transaction from the IP Account.
14787
- * @param request The request object containing necessary data to execute IP Account a transaction.
14752
+ * @param request - The request object containing necessary data to execute IP Account a transaction.
14788
14753
  * @param request.to The recipient of the transaction.
14789
14754
  * @param request.value The amount of Ether to send.
14790
14755
  * @param request.data The data to send along with the transaction.
@@ -14845,68 +14810,6 @@ var IPAccountClient = /*#__PURE__*/function () {
14845
14810
  }]);
14846
14811
  }();
14847
14812
 
14848
- var StoryAPIClient = /*#__PURE__*/function () {
14849
- function StoryAPIClient() {
14850
- _classCallCheck(this, StoryAPIClient);
14851
- this.httpClient = axios.create({
14852
- baseURL: "https://api.storyprotocol.net",
14853
- timeout: 60000,
14854
- headers: {
14855
- "x-api-key": "U3RvcnlQcm90b2NvbFRlc3RBUElLRVk="
14856
- }
14857
- });
14858
- }
14859
- return _createClass(StoryAPIClient, [{
14860
- key: "getRoyaltyPolicy",
14861
- value: function () {
14862
- var _getRoyaltyPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(ipId) {
14863
- var royaltyPolicyResp;
14864
- return _regeneratorRuntime().wrap(function _callee$(_context) {
14865
- while (1) switch (_context.prev = _context.next) {
14866
- case 0:
14867
- _context.next = 2;
14868
- return this.httpClient.get("/api/v1/royalties/policies/".concat(ipId));
14869
- case 2:
14870
- royaltyPolicyResp = _context.sent;
14871
- return _context.abrupt("return", royaltyPolicyResp.data.data);
14872
- case 4:
14873
- case "end":
14874
- return _context.stop();
14875
- }
14876
- }, _callee, this);
14877
- }));
14878
- function getRoyaltyPolicy(_x) {
14879
- return _getRoyaltyPolicy.apply(this, arguments);
14880
- }
14881
- return getRoyaltyPolicy;
14882
- }()
14883
- }, {
14884
- key: "getLicense",
14885
- value: function () {
14886
- var _getLicense = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(licenseId) {
14887
- var licenseResp;
14888
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
14889
- while (1) switch (_context2.prev = _context2.next) {
14890
- case 0:
14891
- _context2.next = 2;
14892
- return this.httpClient.get("/api/v1/licenses/".concat(licenseId));
14893
- case 2:
14894
- licenseResp = _context2.sent;
14895
- return _context2.abrupt("return", licenseResp.data.data);
14896
- case 4:
14897
- case "end":
14898
- return _context2.stop();
14899
- }
14900
- }, _callee2, this);
14901
- }));
14902
- function getLicense(_x2) {
14903
- return _getLicense.apply(this, arguments);
14904
- }
14905
- return getLicense;
14906
- }()
14907
- }]);
14908
- }();
14909
-
14910
14813
  var RoyaltyClient = /*#__PURE__*/function () {
14911
14814
  function RoyaltyClient(rpcClient, wallet) {
14912
14815
  _classCallCheck(this, RoyaltyClient);
@@ -14920,7 +14823,7 @@ var RoyaltyClient = /*#__PURE__*/function () {
14920
14823
 
14921
14824
  /**
14922
14825
  * Allows ancestors to claim the royalty tokens and any accrued revenue tokens
14923
- * @param request - The request object that contains all data needed to collect royalty tokens.
14826
+ * @param request - The request object that contains all data needed to collect royalty tokens.
14924
14827
  * @param request.parentIpId The ip id of the ancestor to whom the royalty tokens belong to.
14925
14828
  * @param request.royaltyVaultIpId The id of the royalty vault.
14926
14829
  * @param request.txOptions [Optional] The transaction options.
@@ -15353,7 +15256,6 @@ var StoryClient = /*#__PURE__*/function () {
15353
15256
  transport: this.config.transport
15354
15257
  };
15355
15258
  this.rpcClient = createPublicClient(clientConfig);
15356
- this.storyClient = new StoryAPIClient();
15357
15259
  if (this.config.wallet) {
15358
15260
  this.wallet = this.config.wallet;
15359
15261
  } else if (this.config.account) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@story-protocol/core-sdk",
3
- "version": "1.0.0-rc.5",
3
+ "version": "1.0.0-rc.6",
4
4
  "description": "Story Protocol Core SDK",
5
5
  "main": "dist/story-protocol-core-sdk.cjs.js",
6
6
  "module": "dist/story-protocol-core-sdk.esm.js",