@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/{chunk-Z6NDXVBL.js → chunk-FSQYZO66.js} +920 -199
- package/dist/chunk-FSQYZO66.js.map +1 -0
- package/dist/ethers.d.cts +1 -1
- package/dist/ethers.d.ts +1 -1
- package/dist/{gas-estimation-v9OjKMsL.d.ts → gas-estimation-BU3or4AH.d.ts} +28 -0
- package/dist/{gas-estimation-BV8WdwNF.d.cts → gas-estimation-C1OEgFFJ.d.cts} +28 -0
- package/dist/index.cjs +992 -273
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/indexeddb.cjs +970 -251
- package/dist/indexeddb.cjs.map +1 -1
- package/dist/indexeddb.js +1 -1
- package/dist/memory.cjs +970 -251
- package/dist/memory.cjs.map +1 -1
- package/dist/memory.js +1 -1
- package/dist/sqlite.cjs +970 -251
- package/dist/sqlite.cjs.map +1 -1
- package/dist/sqlite.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-Z6NDXVBL.js.map +0 -1
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-
|
|
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-
|
|
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;
|