@invisi-labs/sdk 1.1.2 → 1.1.3

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/ethers.d.cts CHANGED
@@ -2,7 +2,7 @@ import { Provider, Signer } from 'ethers';
2
2
  import { Hex, Address } from '@invisi-labs/protocol/contracts';
3
3
  import { ReceivingKeyLookup } from '@invisi-labs/core/address';
4
4
  import { RegistryContext, ChainReader, RegistryReader, FactoryReader, CanonicalBlock, DeploymentContext, CanonicalReceipt } from '@invisi-labs/protocol';
5
- import { F as FundingSigner, j as FundingTypedData, h as FundingAuthorizationVerifier } from './gas-estimation-BV8WdwNF.cjs';
5
+ import { F as FundingSigner, j as FundingTypedData, h as FundingAuthorizationVerifier } from './gas-estimation-C1OEgFFJ.cjs';
6
6
  import '@invisi-labs/core';
7
7
  import './state-DHl6j33x.cjs';
8
8
  import '@invisi-labs/prover';
package/dist/ethers.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Provider, Signer } from 'ethers';
2
2
  import { Hex, Address } from '@invisi-labs/protocol/contracts';
3
3
  import { ReceivingKeyLookup } from '@invisi-labs/core/address';
4
4
  import { RegistryContext, ChainReader, RegistryReader, FactoryReader, CanonicalBlock, DeploymentContext, CanonicalReceipt } from '@invisi-labs/protocol';
5
- import { F as FundingSigner, j as FundingTypedData, h as FundingAuthorizationVerifier } from './gas-estimation-v9OjKMsL.js';
5
+ import { F as FundingSigner, j as FundingTypedData, h as FundingAuthorizationVerifier } from './gas-estimation-BU3or4AH.js';
6
6
  import '@invisi-labs/core';
7
7
  import './state-DHl6j33x.js';
8
8
  import '@invisi-labs/prover';
@@ -76,6 +76,9 @@ interface PreparedOutput {
76
76
  change: boolean;
77
77
  }
78
78
  interface CreateCreditPreparation {
79
+ singleLimit?: bigint;
80
+ dailyLimit?: bigint;
81
+ monthlyLimit?: bigint;
79
82
  memo?: string | Uint8Array;
80
83
  tokenAddress: Address;
81
84
  spender: string;
@@ -94,6 +97,10 @@ interface DrawCreditPreparation {
94
97
  deadline?: bigint;
95
98
  }
96
99
  interface TopUpCreditPreparation {
100
+ /** Omission inherits the previous limit; zero disables it without clearing usage. */
101
+ singleLimit?: bigint;
102
+ dailyLimit?: bigint;
103
+ monthlyLimit?: bigint;
97
104
  memo?: string | Uint8Array;
98
105
  tokenAddress: Address;
99
106
  credit: Hex;
@@ -219,6 +226,27 @@ interface GasBenchmarkProfile {
219
226
  deployment: GasBenchmarkDeployment;
220
227
  source: {
221
228
  protocolCommit: string;
229
+ fingerprints?: {
230
+ protocolSourceSha256: string;
231
+ dirtyDiffSha256: string;
232
+ compiledArtifactsSha256: string;
233
+ creditManifestSha256: string;
234
+ userManifestSha256: string;
235
+ sdkSourceSha256: string;
236
+ };
237
+ toolchain?: {
238
+ solidity: string;
239
+ barretenberg: string;
240
+ noir: string;
241
+ evmVersion: string;
242
+ optimizerRuns: number;
243
+ anvil: string;
244
+ };
245
+ blockGasLimit?: string;
246
+ runtimeContracts?: Record<string, {
247
+ address: Hex$1;
248
+ runtimeCodeHash: Hex$1;
249
+ }>;
222
250
  measuredAt: string;
223
251
  chain: string;
224
252
  hardfork: string;
@@ -76,6 +76,9 @@ interface PreparedOutput {
76
76
  change: boolean;
77
77
  }
78
78
  interface CreateCreditPreparation {
79
+ singleLimit?: bigint;
80
+ dailyLimit?: bigint;
81
+ monthlyLimit?: bigint;
79
82
  memo?: string | Uint8Array;
80
83
  tokenAddress: Address;
81
84
  spender: string;
@@ -94,6 +97,10 @@ interface DrawCreditPreparation {
94
97
  deadline?: bigint;
95
98
  }
96
99
  interface TopUpCreditPreparation {
100
+ /** Omission inherits the previous limit; zero disables it without clearing usage. */
101
+ singleLimit?: bigint;
102
+ dailyLimit?: bigint;
103
+ monthlyLimit?: bigint;
97
104
  memo?: string | Uint8Array;
98
105
  tokenAddress: Address;
99
106
  credit: Hex;
@@ -219,6 +226,27 @@ interface GasBenchmarkProfile {
219
226
  deployment: GasBenchmarkDeployment;
220
227
  source: {
221
228
  protocolCommit: string;
229
+ fingerprints?: {
230
+ protocolSourceSha256: string;
231
+ dirtyDiffSha256: string;
232
+ compiledArtifactsSha256: string;
233
+ creditManifestSha256: string;
234
+ userManifestSha256: string;
235
+ sdkSourceSha256: string;
236
+ };
237
+ toolchain?: {
238
+ solidity: string;
239
+ barretenberg: string;
240
+ noir: string;
241
+ evmVersion: string;
242
+ optimizerRuns: number;
243
+ anvil: string;
244
+ };
245
+ blockGasLimit?: string;
246
+ runtimeContracts?: Record<string, {
247
+ address: Hex$1;
248
+ runtimeCodeHash: Hex$1;
249
+ }>;
222
250
  measuredAt: string;
223
251
  chain: string;
224
252
  hardfork: string;