@nevermined-io/core-kit 0.4.6 → 0.5.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.
Files changed (105) hide show
  1. package/dist/Instantiable.abstract.js +15 -13
  2. package/dist/Instantiable.abstract.js.map +1 -0
  3. package/dist/artifacts/generated.d.ts +174 -40
  4. package/dist/artifacts/generated.d.ts.map +1 -1
  5. package/dist/artifacts/generated.js +22805 -7111
  6. package/dist/artifacts/generated.js.map +1 -0
  7. package/dist/contracts/AccessManager.js +12 -3
  8. package/dist/contracts/AccessManager.js.map +1 -0
  9. package/dist/contracts/AssetRegistry.d.ts +1 -0
  10. package/dist/contracts/AssetRegistry.d.ts.map +1 -1
  11. package/dist/contracts/AssetRegistry.js +134 -69
  12. package/dist/contracts/AssetRegistry.js.map +1 -0
  13. package/dist/contracts/ContractBase.d.ts.map +1 -1
  14. package/dist/contracts/ContractBase.js +173 -140
  15. package/dist/contracts/ContractBase.js.map +1 -0
  16. package/dist/contracts/ContractsApi.js +6 -54
  17. package/dist/contracts/ContractsApi.js.map +1 -0
  18. package/dist/contracts/CryptoTemplateBase.js +23 -11
  19. package/dist/contracts/CryptoTemplateBase.js.map +1 -0
  20. package/dist/contracts/FiatPaymentTemplate.js +9 -1
  21. package/dist/contracts/FiatPaymentTemplate.js.map +1 -0
  22. package/dist/contracts/FiatSettlementCondition.js +8 -1
  23. package/dist/contracts/FiatSettlementCondition.js.map +1 -0
  24. package/dist/contracts/FixedPaymentTemplate.js +42 -10
  25. package/dist/contracts/FixedPaymentTemplate.js.map +1 -0
  26. package/dist/contracts/NFT1155Base.js +48 -12
  27. package/dist/contracts/NFT1155Base.js.map +1 -0
  28. package/dist/contracts/NFT1155Credits.js +2 -0
  29. package/dist/contracts/NFT1155Credits.js.map +1 -0
  30. package/dist/contracts/NFT1155ExpirableCredits.js +26 -6
  31. package/dist/contracts/NFT1155ExpirableCredits.js.map +1 -0
  32. package/dist/contracts/NVMConfig.js +2 -0
  33. package/dist/contracts/NVMConfig.js.map +1 -0
  34. package/dist/contracts/PayAsYouGoTemplate.js +36 -10
  35. package/dist/contracts/PayAsYouGoTemplate.js.map +1 -0
  36. package/dist/contracts/ProtocolStandardFees.js +7 -1
  37. package/dist/contracts/ProtocolStandardFees.js.map +1 -0
  38. package/dist/contracts/Roles.js +2 -0
  39. package/dist/contracts/Roles.js.map +1 -0
  40. package/dist/contracts/index.js +2 -0
  41. package/dist/contracts/index.js.map +1 -0
  42. package/dist/errors/NeverminedErrors.js +27 -26
  43. package/dist/errors/NeverminedErrors.js.map +1 -0
  44. package/dist/errors/index.js +2 -0
  45. package/dist/errors/index.js.map +1 -0
  46. package/dist/index.js +2 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/models/AgentX402AccessToken.js +78 -46
  49. package/dist/models/AgentX402AccessToken.js.map +1 -0
  50. package/dist/models/Logger.js +12 -12
  51. package/dist/models/Logger.js.map +1 -0
  52. package/dist/models/NeverminedOptions.d.ts +3 -3
  53. package/dist/models/NeverminedOptions.d.ts.map +1 -1
  54. package/dist/models/NeverminedOptions.js +3 -28
  55. package/dist/models/NeverminedOptions.js.map +1 -0
  56. package/dist/models/NvmApiKey.js +96 -147
  57. package/dist/models/NvmApiKey.js.map +1 -0
  58. package/dist/models/Transactions.js +3 -1
  59. package/dist/models/Transactions.js.map +1 -0
  60. package/dist/models/index.js +2 -0
  61. package/dist/models/index.js.map +1 -0
  62. package/dist/nevermined/Nevermined.js +20 -42
  63. package/dist/nevermined/Nevermined.js.map +1 -0
  64. package/dist/nevermined/api/PaymentsApi.js +38 -43
  65. package/dist/nevermined/api/PaymentsApi.js.map +1 -0
  66. package/dist/nevermined/api/ServicesApi.js +7 -15
  67. package/dist/nevermined/api/ServicesApi.js.map +1 -0
  68. package/dist/nevermined/api/UtilsApi.js +7 -19
  69. package/dist/nevermined/api/UtilsApi.js.map +1 -0
  70. package/dist/nevermined/index.js +2 -0
  71. package/dist/nevermined/index.js.map +1 -0
  72. package/dist/nevermined/utils/AgentUtils.js +25 -23
  73. package/dist/nevermined/utils/AgentUtils.js.map +1 -0
  74. package/dist/nevermined/utils/AnvilHelpers.js +34 -19
  75. package/dist/nevermined/utils/AnvilHelpers.js.map +1 -0
  76. package/dist/nevermined/utils/BlockchainViemUtils.d.ts +4 -4
  77. package/dist/nevermined/utils/BlockchainViemUtils.js +102 -108
  78. package/dist/nevermined/utils/BlockchainViemUtils.js.map +1 -0
  79. package/dist/nevermined/utils/JwtUtils.js +33 -28
  80. package/dist/nevermined/utils/JwtUtils.js.map +1 -0
  81. package/dist/nevermined/utils/SignatureUtils.js +23 -27
  82. package/dist/nevermined/utils/SignatureUtils.js.map +1 -0
  83. package/dist/nevermined/utils/WebServiceConnector.js +18 -20
  84. package/dist/nevermined/utils/WebServiceConnector.js.map +1 -0
  85. package/dist/nevermined/utils/ZeroDevPolicies.js +115 -75
  86. package/dist/nevermined/utils/ZeroDevPolicies.js.map +1 -0
  87. package/dist/nevermined/utils/index.js +2 -0
  88. package/dist/nevermined/utils/index.js.map +1 -0
  89. package/dist/services/Api.js +11 -5
  90. package/dist/services/Api.js.map +1 -0
  91. package/dist/services/Profiles.js +15 -20
  92. package/dist/services/Profiles.js.map +1 -0
  93. package/dist/services/index.js +2 -0
  94. package/dist/services/index.js.map +1 -0
  95. package/dist/utils/ConversionTypeHelpers.js +13 -6
  96. package/dist/utils/ConversionTypeHelpers.js.map +1 -0
  97. package/dist/utils/DeploymentInfo.js +12 -7
  98. package/dist/utils/DeploymentInfo.js.map +1 -0
  99. package/dist/utils/Network.js +27 -19
  100. package/dist/utils/Network.js.map +1 -0
  101. package/dist/utils/helpers.js +42 -31
  102. package/dist/utils/helpers.js.map +1 -0
  103. package/dist/utils/index.js +2 -0
  104. package/dist/utils/index.js.map +1 -0
  105. package/package.json +17 -1
@@ -1,4 +1,4 @@
1
- import { createPublicClient, createWalletClient, custom, http, } from 'viem';
1
+ import { createPublicClient, createWalletClient, custom, http } from 'viem';
2
2
  import 'viem/window';
3
3
  import { createLogger, LoggerInstance } from './models/Logger.js';
4
4
  import { getChain } from './utils/Network.js';
@@ -6,34 +6,30 @@ export async function generateInstantiableConfigFromConfig(config, loadClient =
6
6
  const logLevel = config.logLevel || 'info';
7
7
  const logger = createLogger({
8
8
  level: logLevel,
9
- pretty: process.env.NODE_ENV === 'development',
9
+ pretty: process.env.NODE_ENV === 'development'
10
10
  });
11
11
  return {
12
12
  config,
13
13
  client: loadClient ? await getWeb3ViemClients(config) : undefined,
14
- logger,
14
+ logger
15
15
  };
16
16
  }
17
17
  export async function getWeb3ViemClients(config = {}) {
18
18
  const chain = getChain(config.chainId);
19
- const providerTransport = config.web3ProviderUri
20
- ? http(config.web3ProviderUri)
21
- : window && window.ethereum
22
- ? custom(window.ethereum)
23
- : http();
19
+ const providerTransport = config.web3ProviderUri ? http(config.web3ProviderUri) : window && window.ethereum ? custom(window.ethereum) : http();
24
20
  const publicClient = createPublicClient({
25
21
  chain,
26
- transport: config.web3ProviderUri ? http(config.web3ProviderUri) : http(),
22
+ transport: config.web3ProviderUri ? http(config.web3ProviderUri) : http()
27
23
  });
28
24
  const walletClient = createWalletClient({
29
25
  // cacheTime: 0 as number,
30
26
  chain,
31
- transport: providerTransport,
27
+ transport: providerTransport
32
28
  });
33
29
  return {
34
30
  public: publicClient,
35
31
  wallet: walletClient,
36
- chain,
32
+ chain
37
33
  };
38
34
  }
39
35
  export class Instantiable {
@@ -83,7 +79,12 @@ export class Instantiable {
83
79
  }
84
80
  get instanceConfig() {
85
81
  const { nevermined, client, config, logger } = this;
86
- return { nevermined, client, config, logger };
82
+ return {
83
+ nevermined,
84
+ client,
85
+ config,
86
+ logger
87
+ };
87
88
  }
88
89
  static getInstance(..._args) {
89
90
  LoggerInstance().warn('getInstance() methods has needs to be added to child class.');
@@ -91,8 +92,9 @@ export class Instantiable {
91
92
  static setInstanceConfig(instance, instantiableConfig) {
92
93
  instance._instantiableConfig = instantiableConfig;
93
94
  }
94
- _instantiableConfig;
95
95
  setInstanceConfig(config) {
96
96
  Instantiable.setInstanceConfig(this, config);
97
97
  }
98
98
  }
99
+
100
+ //# sourceMappingURL=Instantiable.abstract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Instantiable.abstract.ts"],"sourcesContent":["import {\n type Chain,\n type PublicClient,\n type WalletClient,\n createPublicClient,\n createWalletClient,\n custom,\n http,\n} from 'viem'\nimport 'viem/window'\nimport { createLogger, LoggerInstance, LogLevel } from './models/Logger.js'\nimport type { NeverminedOptions } from './models/NeverminedOptions.js'\nimport { Nevermined } from './nevermined/Nevermined.js'\nimport { getChain } from './utils/Network.js'\n\nexport interface InstantiableConfig {\n nevermined: Nevermined\n config?: NeverminedOptions\n client?: Web3Clients\n logger?: ReturnType<typeof LoggerInstance>\n}\n\nexport interface Web3Clients {\n public: PublicClient\n wallet: WalletClient\n chain?: Chain\n}\n\nexport async function generateInstantiableConfigFromConfig(\n config: NeverminedOptions,\n loadClient = true,\n): Promise<Partial<InstantiableConfig>> {\n const logLevel = config.logLevel || ('info' as LogLevel)\n const logger = createLogger({\n level: logLevel as LogLevel,\n pretty: process.env.NODE_ENV === 'development',\n })\n\n return {\n config,\n client: loadClient ? await getWeb3ViemClients(config) : undefined,\n logger,\n }\n}\n\nexport async function getWeb3ViemClients(\n config: Partial<NeverminedOptions> = {},\n): Promise<Web3Clients> {\n const chain = getChain(config.chainId)\n const providerTransport = config.web3ProviderUri\n ? http(config.web3ProviderUri)\n : window && window.ethereum\n ? custom(window.ethereum!)\n : http()\n\n const publicClient = createPublicClient({\n chain,\n transport: config.web3ProviderUri ? http(config.web3ProviderUri) : http(),\n })\n\n const walletClient = createWalletClient({\n // cacheTime: 0 as number,\n chain,\n transport: providerTransport,\n })\n\n return {\n public: publicClient,\n wallet: walletClient,\n chain,\n } as Web3Clients\n}\n\nexport abstract class Instantiable {\n protected get nevermined() {\n if (!this._instantiableConfig?.nevermined) {\n this.logger.error('Nevermined instance is not defined.')\n throw new Error('Nevermined instance is not defined.')\n }\n return this._instantiableConfig.nevermined\n }\n\n public get client() {\n if (!this._instantiableConfig?.client) {\n this.logger.error('Web3 Provider not initialized')\n throw new Error('Web3 Provider not initialized')\n }\n return this._instantiableConfig.client\n }\n\n public get publicClient(): PublicClient {\n if (!this._instantiableConfig?.client?.public) {\n this.logger.error('Web3 Provider not initialized')\n throw new Error('Web3 Provider not initialized')\n }\n return this._instantiableConfig.client?.public\n }\n\n public get walletClient(): WalletClient {\n if (!this._instantiableConfig?.client?.wallet) {\n this.logger.error('Web3 Provider not initialized')\n throw new Error('Web3 Provider not initialized')\n }\n return this._instantiableConfig.client?.wallet\n }\n\n protected get instantiableConfig() {\n if (!this._instantiableConfig) {\n this.logger.error('InstantiableConfig instance is not defined.')\n }\n return this._instantiableConfig\n }\n\n protected get config() {\n if (!this._instantiableConfig?.config) {\n this.logger.error('Config instance is not defined.')\n throw new Error('Config instance is not defined.')\n }\n return this._instantiableConfig.config\n }\n\n protected get logger() {\n return this._instantiableConfig?.logger || LoggerInstance()\n }\n\n protected get instanceConfig(): InstantiableConfig {\n const { nevermined, client, config, logger } = this\n return { nevermined, client, config, logger }\n }\n\n public static getInstance(..._args: any): any {\n LoggerInstance().warn('getInstance() methods has needs to be added to child class.')\n }\n\n protected static setInstanceConfig<T extends Instantiable>(\n instance: T,\n instantiableConfig: InstantiableConfig,\n ) {\n instance._instantiableConfig = instantiableConfig\n }\n\n private _instantiableConfig?: InstantiableConfig\n\n protected setInstanceConfig(config: InstantiableConfig) {\n Instantiable.setInstanceConfig(this, config)\n }\n}\n"],"names":["createPublicClient","createWalletClient","custom","http","createLogger","LoggerInstance","getChain","generateInstantiableConfigFromConfig","config","loadClient","logLevel","logger","level","pretty","process","env","NODE_ENV","client","getWeb3ViemClients","undefined","chain","chainId","providerTransport","web3ProviderUri","window","ethereum","publicClient","transport","walletClient","public","wallet","Instantiable","nevermined","_instantiableConfig","error","Error","instantiableConfig","instanceConfig","getInstance","_args","warn","setInstanceConfig","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EACXN,kBAAsC,EACtC;QACAM,SAAST,mBAAmB,GAAGG;IACjC;IAIUK,kBAAkBjC,MAA0B,EAAE;QACtDuB,aAAaU,iBAAiB,CAAC,IAAI,EAAEjC;IACvC;AACF"}
@@ -1166,9 +1166,9 @@ export declare const accessManagerAbi: readonly [{
1166
1166
  }];
1167
1167
  readonly name: "SafeCastOverflowedUintDowncast";
1168
1168
  }];
1169
- export declare const accessManagerAddress: "0x3116A0aB34c8E829066d4D9Cd1e2534Ff14d5268";
1169
+ export declare const accessManagerAddress: "0xc16a1b966951e0d854c08A5890Fa70771bf4a631";
1170
1170
  export declare const accessManagerConfig: {
1171
- readonly address: "0x3116A0aB34c8E829066d4D9Cd1e2534Ff14d5268";
1171
+ readonly address: "0xc16a1b966951e0d854c08A5890Fa70771bf4a631";
1172
1172
  readonly abi: readonly [{
1173
1173
  readonly type: "constructor";
1174
1174
  readonly inputs: readonly [{
@@ -2550,9 +2550,9 @@ export declare const agreementsStoreAbi: readonly [{
2550
2550
  }];
2551
2551
  readonly name: "UUPSUnsupportedProxiableUUID";
2552
2552
  }];
2553
- export declare const agreementsStoreAddress: "0x1B8B04BbF240bfB15f12368352a1397E3882660C";
2553
+ export declare const agreementsStoreAddress: "0x72AFca11Fab07902304271A53B1c79ECcb304Bf9";
2554
2554
  export declare const agreementsStoreConfig: {
2555
- readonly address: "0x1B8B04BbF240bfB15f12368352a1397E3882660C";
2555
+ readonly address: "0x72AFca11Fab07902304271A53B1c79ECcb304Bf9";
2556
2556
  readonly abi: readonly [{
2557
2557
  readonly type: "function";
2558
2558
  readonly inputs: readonly [];
@@ -5549,9 +5549,9 @@ export declare const assetsRegistryAbi: readonly [{
5549
5549
  }];
5550
5550
  readonly name: "UUPSUnsupportedProxiableUUID";
5551
5551
  }];
5552
- export declare const assetsRegistryAddress: "0x1B093EE52104e407dfC80A28B07e62834AAB4Ae4";
5552
+ export declare const assetsRegistryAddress: "0x5117ad8E29Fc40001aCb3E8BCFf2589099560D5c";
5553
5553
  export declare const assetsRegistryConfig: {
5554
- readonly address: "0x1B093EE52104e407dfC80A28B07e62834AAB4Ae4";
5554
+ readonly address: "0x5117ad8E29Fc40001aCb3E8BCFf2589099560D5c";
5555
5555
  readonly abi: readonly [{
5556
5556
  readonly type: "function";
5557
5557
  readonly inputs: readonly [];
@@ -10329,6 +10329,73 @@ export declare const baseTestAbi: readonly [{
10329
10329
  }];
10330
10330
  readonly name: "logs";
10331
10331
  }];
10332
+ export declare const configureAllAbi: readonly [{
10333
+ readonly type: "function";
10334
+ readonly inputs: readonly [];
10335
+ readonly name: "IS_SCRIPT";
10336
+ readonly outputs: readonly [{
10337
+ readonly name: "";
10338
+ readonly internalType: "bool";
10339
+ readonly type: "bool";
10340
+ }];
10341
+ readonly stateMutability: "view";
10342
+ }, {
10343
+ readonly type: "function";
10344
+ readonly inputs: readonly [];
10345
+ readonly name: "debug";
10346
+ readonly outputs: readonly [{
10347
+ readonly name: "";
10348
+ readonly internalType: "bool";
10349
+ readonly type: "bool";
10350
+ }];
10351
+ readonly stateMutability: "view";
10352
+ }, {
10353
+ readonly type: "function";
10354
+ readonly inputs: readonly [];
10355
+ readonly name: "feeReceiver";
10356
+ readonly outputs: readonly [{
10357
+ readonly name: "";
10358
+ readonly internalType: "address";
10359
+ readonly type: "address";
10360
+ }];
10361
+ readonly stateMutability: "view";
10362
+ }, {
10363
+ readonly type: "function";
10364
+ readonly inputs: readonly [];
10365
+ readonly name: "governor";
10366
+ readonly outputs: readonly [{
10367
+ readonly name: "";
10368
+ readonly internalType: "address";
10369
+ readonly type: "address";
10370
+ }];
10371
+ readonly stateMutability: "view";
10372
+ }, {
10373
+ readonly type: "function";
10374
+ readonly inputs: readonly [];
10375
+ readonly name: "networkFee";
10376
+ readonly outputs: readonly [{
10377
+ readonly name: "";
10378
+ readonly internalType: "uint256";
10379
+ readonly type: "uint256";
10380
+ }];
10381
+ readonly stateMutability: "view";
10382
+ }, {
10383
+ readonly type: "function";
10384
+ readonly inputs: readonly [];
10385
+ readonly name: "owner";
10386
+ readonly outputs: readonly [{
10387
+ readonly name: "";
10388
+ readonly internalType: "address";
10389
+ readonly type: "address";
10390
+ }];
10391
+ readonly stateMutability: "view";
10392
+ }, {
10393
+ readonly type: "function";
10394
+ readonly inputs: readonly [];
10395
+ readonly name: "run";
10396
+ readonly outputs: readonly [];
10397
+ readonly stateMutability: "nonpayable";
10398
+ }];
10332
10399
  export declare const contextUpgradeableAbi: readonly [{
10333
10400
  readonly type: "event";
10334
10401
  readonly anonymous: false;
@@ -13337,9 +13404,9 @@ export declare const distributePaymentsConditionAbi: readonly [{
13337
13404
  }];
13338
13405
  readonly name: "UUPSUnsupportedProxiableUUID";
13339
13406
  }];
13340
- export declare const distributePaymentsConditionAddress: "0x44D2b43d6dD10506BBBf09c5f6D5A3513e66c028";
13407
+ export declare const distributePaymentsConditionAddress: "0x3984b0E958b7C288A81810eC83920Da3a05a5e00";
13341
13408
  export declare const distributePaymentsConditionConfig: {
13342
- readonly address: "0x44D2b43d6dD10506BBBf09c5f6D5A3513e66c028";
13409
+ readonly address: "0x3984b0E958b7C288A81810eC83920Da3a05a5e00";
13343
13410
  readonly abi: readonly [{
13344
13411
  readonly type: "function";
13345
13412
  readonly inputs: readonly [];
@@ -14858,9 +14925,9 @@ export declare const erc2771ForwarderAbi: readonly [{
14858
14925
  }];
14859
14926
  readonly name: "StringTooLong";
14860
14927
  }];
14861
- export declare const erc2771ForwarderAddress: "0xF2c77aD0a66392538A2Dc32a1A9846b9C3249b69";
14928
+ export declare const erc2771ForwarderAddress: "0x1CCbA8d1112cA6170DaCF562316ED9D8e224675f";
14862
14929
  export declare const erc2771ForwarderConfig: {
14863
- readonly address: "0xF2c77aD0a66392538A2Dc32a1A9846b9C3249b69";
14930
+ readonly address: "0x1CCbA8d1112cA6170DaCF562316ED9D8e224675f";
14864
14931
  readonly abi: readonly [{
14865
14932
  readonly type: "constructor";
14866
14933
  readonly inputs: readonly [{
@@ -16269,9 +16336,9 @@ export declare const fiatPaymentTemplateAbi: readonly [{
16269
16336
  }];
16270
16337
  readonly name: "UUPSUnsupportedProxiableUUID";
16271
16338
  }];
16272
- export declare const fiatPaymentTemplateAddress: "0x386eF80de6Afe51838672Ec6c08081C3f6A2C2d8";
16339
+ export declare const fiatPaymentTemplateAddress: "0x6f125F621a55D37af4AfE4c17482c629756AC0e9";
16273
16340
  export declare const fiatPaymentTemplateConfig: {
16274
- readonly address: "0x386eF80de6Afe51838672Ec6c08081C3f6A2C2d8";
16341
+ readonly address: "0x6f125F621a55D37af4AfE4c17482c629756AC0e9";
16275
16342
  readonly abi: readonly [{
16276
16343
  readonly type: "constructor";
16277
16344
  readonly inputs: readonly [{
@@ -16955,9 +17022,9 @@ export declare const fiatSettlementConditionAbi: readonly [{
16955
17022
  }];
16956
17023
  readonly name: "UUPSUnsupportedProxiableUUID";
16957
17024
  }];
16958
- export declare const fiatSettlementConditionAddress: "0x62d127c557ba53fa824249492d84eBD8E10EAb76";
17025
+ export declare const fiatSettlementConditionAddress: "0x530545871C17851E8b9E6643E492C85E1143EDdB";
16959
17026
  export declare const fiatSettlementConditionConfig: {
16960
- readonly address: "0x62d127c557ba53fa824249492d84eBD8E10EAb76";
17027
+ readonly address: "0x530545871C17851E8b9E6643E492C85E1143EDdB";
16961
17028
  readonly abi: readonly [{
16962
17029
  readonly type: "function";
16963
17030
  readonly inputs: readonly [];
@@ -17645,9 +17712,9 @@ export declare const fixedPaymentTemplateAbi: readonly [{
17645
17712
  }];
17646
17713
  readonly name: "UUPSUnsupportedProxiableUUID";
17647
17714
  }];
17648
- export declare const fixedPaymentTemplateAddress: "0x32037D176558Eb02f6980eFA14bde14B0C61d059";
17715
+ export declare const fixedPaymentTemplateAddress: "0xaB27EE9ebBEd02481712dEfAd3360F8491585433";
17649
17716
  export declare const fixedPaymentTemplateConfig: {
17650
- readonly address: "0x32037D176558Eb02f6980eFA14bde14B0C61d059";
17717
+ readonly address: "0xaB27EE9ebBEd02481712dEfAd3360F8491585433";
17651
17718
  readonly abi: readonly [{
17652
17719
  readonly type: "constructor";
17653
17720
  readonly inputs: readonly [{
@@ -23644,9 +23711,9 @@ export declare const linearPricingAbi: readonly [{
23644
23711
  }];
23645
23712
  readonly name: "UnsupportedPlanId";
23646
23713
  }];
23647
- export declare const linearPricingAddress: "0x774473Ce7aB785db11dCad1eE571Ea436fdBA699";
23714
+ export declare const linearPricingAddress: "0x51986437467f6FcF8B9004da1345FD6bfBFE6e03";
23648
23715
  export declare const linearPricingConfig: {
23649
- readonly address: "0x774473Ce7aB785db11dCad1eE571Ea436fdBA699";
23716
+ readonly address: "0x51986437467f6FcF8B9004da1345FD6bfBFE6e03";
23650
23717
  readonly abi: readonly [{
23651
23718
  readonly type: "function";
23652
23719
  readonly inputs: readonly [{
@@ -24109,9 +24176,9 @@ export declare const lockPaymentConditionAbi: readonly [{
24109
24176
  readonly inputs: readonly [];
24110
24177
  readonly name: "UnsupportedPriceTypeOption";
24111
24178
  }];
24112
- export declare const lockPaymentConditionAddress: "0x104ae701C9B3e8EA54145dE54D0ca7DDb2DE4DF5";
24179
+ export declare const lockPaymentConditionAddress: "0xe6df42D006005dFdde33B58A7fD887630925dcba";
24113
24180
  export declare const lockPaymentConditionConfig: {
24114
- readonly address: "0x104ae701C9B3e8EA54145dE54D0ca7DDb2DE4DF5";
24181
+ readonly address: "0xe6df42D006005dFdde33B58A7fD887630925dcba";
24115
24182
  readonly abi: readonly [{
24116
24183
  readonly type: "function";
24117
24184
  readonly inputs: readonly [];
@@ -26240,9 +26307,9 @@ export declare const nft1155CreditsAbi: readonly [{
26240
26307
  }];
26241
26308
  readonly name: "UUPSUnsupportedProxiableUUID";
26242
26309
  }];
26243
- export declare const nft1155CreditsAddress: "0xb2F9bB43F768E0D4ADCa49CE708acbE577bC2d64";
26310
+ export declare const nft1155CreditsAddress: "0x22c37F4C021F4fe81E3bEec8Dc87a4Ef62c8Eb90";
26244
26311
  export declare const nft1155CreditsConfig: {
26245
- readonly address: "0xb2F9bB43F768E0D4ADCa49CE708acbE577bC2d64";
26312
+ readonly address: "0x22c37F4C021F4fe81E3bEec8Dc87a4Ef62c8Eb90";
26246
26313
  readonly abi: readonly [{
26247
26314
  readonly type: "function";
26248
26315
  readonly inputs: readonly [];
@@ -28851,9 +28918,9 @@ export declare const nft1155ExpirableCreditsAbi: readonly [{
28851
28918
  }];
28852
28919
  readonly name: "UUPSUnsupportedProxiableUUID";
28853
28920
  }];
28854
- export declare const nft1155ExpirableCreditsAddress: "0x6de675a697f9131D061F265fAf88E26158f4FfA2";
28921
+ export declare const nft1155ExpirableCreditsAddress: "0x574B8Ad867AA2587F4d7D69bd27dEfE43689D64b";
28855
28922
  export declare const nft1155ExpirableCreditsConfig: {
28856
- readonly address: "0x6de675a697f9131D061F265fAf88E26158f4FfA2";
28923
+ readonly address: "0x574B8Ad867AA2587F4d7D69bd27dEfE43689D64b";
28857
28924
  readonly abi: readonly [{
28858
28925
  readonly type: "function";
28859
28926
  readonly inputs: readonly [];
@@ -31719,9 +31786,9 @@ export declare const nft1155ExpirableCreditsV2Abi: readonly [{
31719
31786
  }];
31720
31787
  readonly name: "UUPSUnsupportedProxiableUUID";
31721
31788
  }];
31722
- export declare const nft1155ExpirableCreditsV2Address: "0xF7Fe16718a779010E48859fb1c7Eae9fd540872F";
31789
+ export declare const nft1155ExpirableCreditsV2Address: "0x2DcD5111996506fc41d36BD78aEBa0B97d83470B";
31723
31790
  export declare const nft1155ExpirableCreditsV2Config: {
31724
- readonly address: "0xF7Fe16718a779010E48859fb1c7Eae9fd540872F";
31791
+ readonly address: "0x2DcD5111996506fc41d36BD78aEBa0B97d83470B";
31725
31792
  readonly abi: readonly [{
31726
31793
  readonly type: "function";
31727
31794
  readonly inputs: readonly [];
@@ -33095,9 +33162,9 @@ export declare const nvmConfigAbi: readonly [{
33095
33162
  }];
33096
33163
  readonly name: "UUPSUnsupportedProxiableUUID";
33097
33164
  }];
33098
- export declare const nvmConfigAddress: "0x88F1a9b3767f008821CbC4e4e30d77528473E7f3";
33165
+ export declare const nvmConfigAddress: "0xE56865614F137F906AC5c858eC1F4e2344CAC25D";
33099
33166
  export declare const nvmConfigConfig: {
33100
- readonly address: "0x88F1a9b3767f008821CbC4e4e30d77528473E7f3";
33167
+ readonly address: "0xE56865614F137F906AC5c858eC1F4e2344CAC25D";
33101
33168
  readonly abi: readonly [{
33102
33169
  readonly type: "function";
33103
33170
  readonly inputs: readonly [];
@@ -34267,9 +34334,9 @@ export declare const oneTimeCreatorHookAbi: readonly [{
34267
34334
  }];
34268
34335
  readonly name: "UUPSUnsupportedProxiableUUID";
34269
34336
  }];
34270
- export declare const oneTimeCreatorHookAddress: "0x878B8500467d2fb8da7D322EDbA4f03A5821Aef9";
34337
+ export declare const oneTimeCreatorHookAddress: "0xffACFcdc15b12f1B78FEffb82F1695Ed7bCC110a";
34271
34338
  export declare const oneTimeCreatorHookConfig: {
34272
- readonly address: "0x878B8500467d2fb8da7D322EDbA4f03A5821Aef9";
34339
+ readonly address: "0xffACFcdc15b12f1B78FEffb82F1695Ed7bCC110a";
34273
34340
  readonly abi: readonly [{
34274
34341
  readonly type: "constructor";
34275
34342
  readonly inputs: readonly [];
@@ -34920,9 +34987,9 @@ export declare const payAsYouGoTemplateAbi: readonly [{
34920
34987
  }];
34921
34988
  readonly name: "UUPSUnsupportedProxiableUUID";
34922
34989
  }];
34923
- export declare const payAsYouGoTemplateAddress: "0x5e852077b30099106Aa65B4d329FFF9b5C9a8e7C";
34990
+ export declare const payAsYouGoTemplateAddress: "0x42f7655A15BBdeD1bBb545007Eb93055E6c7bc2c";
34924
34991
  export declare const payAsYouGoTemplateConfig: {
34925
- readonly address: "0x5e852077b30099106Aa65B4d329FFF9b5C9a8e7C";
34992
+ readonly address: "0x42f7655A15BBdeD1bBb545007Eb93055E6c7bc2c";
34926
34993
  readonly abi: readonly [{
34927
34994
  readonly type: "constructor";
34928
34995
  readonly inputs: readonly [{
@@ -35667,9 +35734,9 @@ export declare const paymentsVaultAbi: readonly [{
35667
35734
  }];
35668
35735
  readonly name: "UUPSUnsupportedProxiableUUID";
35669
35736
  }];
35670
- export declare const paymentsVaultAddress: "0x47A72d7094c4c5B0566E159579DBD79220A0EA24";
35737
+ export declare const paymentsVaultAddress: "0xb4364656236b70Eb71b49b8C553451f3307Fcb2A";
35671
35738
  export declare const paymentsVaultConfig: {
35672
- readonly address: "0x47A72d7094c4c5B0566E159579DBD79220A0EA24";
35739
+ readonly address: "0xb4364656236b70Eb71b49b8C553451f3307Fcb2A";
35673
35740
  readonly abi: readonly [{
35674
35741
  readonly type: "receive";
35675
35742
  readonly stateMutability: "payable";
@@ -36804,9 +36871,9 @@ export declare const protocolStandardFeesAbi: readonly [{
36804
36871
  }];
36805
36872
  readonly name: "UUPSUnsupportedProxiableUUID";
36806
36873
  }];
36807
- export declare const protocolStandardFeesAddress: "0x18Daa0e4D63b1b20D428354bAffEd593d776FF7A";
36874
+ export declare const protocolStandardFeesAddress: "0x18C2933f23f249A51A157df2a4A5E65AeF9f9F4A";
36808
36875
  export declare const protocolStandardFeesConfig: {
36809
- readonly address: "0x18Daa0e4D63b1b20D428354bAffEd593d776FF7A";
36876
+ readonly address: "0x18C2933f23f249A51A157df2a4A5E65AeF9f9F4A";
36810
36877
  readonly abi: readonly [{
36811
36878
  readonly type: "function";
36812
36879
  readonly inputs: readonly [];
@@ -37261,6 +37328,73 @@ export declare const safeErc20Abi: readonly [{
37261
37328
  }];
37262
37329
  readonly name: "SafeERC20FailedOperation";
37263
37330
  }];
37331
+ export declare const setNetworkFeesAbi: readonly [{
37332
+ readonly type: "function";
37333
+ readonly inputs: readonly [];
37334
+ readonly name: "IS_SCRIPT";
37335
+ readonly outputs: readonly [{
37336
+ readonly name: "";
37337
+ readonly internalType: "bool";
37338
+ readonly type: "bool";
37339
+ }];
37340
+ readonly stateMutability: "view";
37341
+ }, {
37342
+ readonly type: "function";
37343
+ readonly inputs: readonly [];
37344
+ readonly name: "debug";
37345
+ readonly outputs: readonly [{
37346
+ readonly name: "";
37347
+ readonly internalType: "bool";
37348
+ readonly type: "bool";
37349
+ }];
37350
+ readonly stateMutability: "view";
37351
+ }, {
37352
+ readonly type: "function";
37353
+ readonly inputs: readonly [];
37354
+ readonly name: "feeReceiver";
37355
+ readonly outputs: readonly [{
37356
+ readonly name: "";
37357
+ readonly internalType: "address";
37358
+ readonly type: "address";
37359
+ }];
37360
+ readonly stateMutability: "view";
37361
+ }, {
37362
+ readonly type: "function";
37363
+ readonly inputs: readonly [];
37364
+ readonly name: "governor";
37365
+ readonly outputs: readonly [{
37366
+ readonly name: "";
37367
+ readonly internalType: "address";
37368
+ readonly type: "address";
37369
+ }];
37370
+ readonly stateMutability: "view";
37371
+ }, {
37372
+ readonly type: "function";
37373
+ readonly inputs: readonly [];
37374
+ readonly name: "networkFee";
37375
+ readonly outputs: readonly [{
37376
+ readonly name: "";
37377
+ readonly internalType: "uint256";
37378
+ readonly type: "uint256";
37379
+ }];
37380
+ readonly stateMutability: "view";
37381
+ }, {
37382
+ readonly type: "function";
37383
+ readonly inputs: readonly [];
37384
+ readonly name: "owner";
37385
+ readonly outputs: readonly [{
37386
+ readonly name: "";
37387
+ readonly internalType: "address";
37388
+ readonly type: "address";
37389
+ }];
37390
+ readonly stateMutability: "view";
37391
+ }, {
37392
+ readonly type: "function";
37393
+ readonly inputs: readonly [];
37394
+ readonly name: "run";
37395
+ readonly outputs: readonly [];
37396
+ readonly stateMutability: "nonpayable";
37397
+ }];
37264
37398
  export declare const shortStringsAbi: readonly [{
37265
37399
  readonly type: "error";
37266
37400
  readonly inputs: readonly [];
@@ -37530,9 +37664,9 @@ export declare const tokenUtilsAbi: readonly [{
37530
37664
  }];
37531
37665
  readonly name: "InvalidTransactionAmount";
37532
37666
  }];
37533
- export declare const tokenUtilsAddress: "0x766fcde79BB22166d59FDb12b9a05C97bf5BF4b2";
37667
+ export declare const tokenUtilsAddress: "0x9Dc5948EDe0abceff2127a533F372a213537c836";
37534
37668
  export declare const tokenUtilsConfig: {
37535
- readonly address: "0x766fcde79BB22166d59FDb12b9a05C97bf5BF4b2";
37669
+ readonly address: "0x9Dc5948EDe0abceff2127a533F372a213537c836";
37536
37670
  readonly abi: readonly [{
37537
37671
  readonly type: "function";
37538
37672
  readonly inputs: readonly [{
@@ -37859,9 +37993,9 @@ export declare const transferCreditsConditionAbi: readonly [{
37859
37993
  }];
37860
37994
  readonly name: "UUPSUnsupportedProxiableUUID";
37861
37995
  }];
37862
- export declare const transferCreditsConditionAddress: "0x17B147345E6113572ca344003bFcA5303F7c75a6";
37996
+ export declare const transferCreditsConditionAddress: "0x74D73d46552c9A5E6E62434E8992b61a44F38953";
37863
37997
  export declare const transferCreditsConditionConfig: {
37864
- readonly address: "0x17B147345E6113572ca344003bFcA5303F7c75a6";
37998
+ readonly address: "0x74D73d46552c9A5E6E62434E8992b61a44F38953";
37865
37999
  readonly abi: readonly [{
37866
38000
  readonly type: "function";
37867
38001
  readonly inputs: readonly [];