@invisi-labs/sdk 1.1.1 → 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-7TFLU2Z6.js → chunk-FSQYZO66.js} +962 -214
- 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-CUZXjsO7.d.ts → gas-estimation-BU3or4AH.d.ts} +32 -0
- package/dist/{gas-estimation-Byi278aa.d.cts → gas-estimation-C1OEgFFJ.d.cts} +32 -0
- package/dist/index.cjs +1032 -282
- 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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/indexeddb.cjs +1007 -263
- package/dist/indexeddb.cjs.map +1 -1
- package/dist/indexeddb.js +1 -1
- package/dist/memory.cjs +1007 -263
- package/dist/memory.cjs.map +1 -1
- package/dist/memory.js +1 -1
- package/dist/sqlite.cjs +1007 -263
- package/dist/sqlite.cjs.map +1 -1
- package/dist/sqlite.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-7TFLU2Z6.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';
|
|
@@ -37,6 +37,7 @@ interface FundingSource {
|
|
|
37
37
|
permit?: NonNullable<FundingInput["permit"]>;
|
|
38
38
|
}
|
|
39
39
|
interface PaymentOutput {
|
|
40
|
+
memo?: string | Uint8Array;
|
|
40
41
|
to: string;
|
|
41
42
|
amount: bigint;
|
|
42
43
|
}
|
|
@@ -75,6 +76,10 @@ interface PreparedOutput {
|
|
|
75
76
|
change: boolean;
|
|
76
77
|
}
|
|
77
78
|
interface CreateCreditPreparation {
|
|
79
|
+
singleLimit?: bigint;
|
|
80
|
+
dailyLimit?: bigint;
|
|
81
|
+
monthlyLimit?: bigint;
|
|
82
|
+
memo?: string | Uint8Array;
|
|
78
83
|
tokenAddress: Address;
|
|
79
84
|
spender: string;
|
|
80
85
|
amount: bigint;
|
|
@@ -87,10 +92,16 @@ interface DrawCreditPreparation {
|
|
|
87
92
|
credits: readonly {
|
|
88
93
|
credit: Hex;
|
|
89
94
|
amount: bigint;
|
|
95
|
+
memo?: string | Uint8Array;
|
|
90
96
|
}[];
|
|
91
97
|
deadline?: bigint;
|
|
92
98
|
}
|
|
93
99
|
interface TopUpCreditPreparation {
|
|
100
|
+
/** Omission inherits the previous limit; zero disables it without clearing usage. */
|
|
101
|
+
singleLimit?: bigint;
|
|
102
|
+
dailyLimit?: bigint;
|
|
103
|
+
monthlyLimit?: bigint;
|
|
104
|
+
memo?: string | Uint8Array;
|
|
94
105
|
tokenAddress: Address;
|
|
95
106
|
credit: Hex;
|
|
96
107
|
additionalAmount: bigint;
|
|
@@ -215,6 +226,27 @@ interface GasBenchmarkProfile {
|
|
|
215
226
|
deployment: GasBenchmarkDeployment;
|
|
216
227
|
source: {
|
|
217
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
|
+
}>;
|
|
218
250
|
measuredAt: string;
|
|
219
251
|
chain: string;
|
|
220
252
|
hardfork: string;
|
|
@@ -37,6 +37,7 @@ interface FundingSource {
|
|
|
37
37
|
permit?: NonNullable<FundingInput["permit"]>;
|
|
38
38
|
}
|
|
39
39
|
interface PaymentOutput {
|
|
40
|
+
memo?: string | Uint8Array;
|
|
40
41
|
to: string;
|
|
41
42
|
amount: bigint;
|
|
42
43
|
}
|
|
@@ -75,6 +76,10 @@ interface PreparedOutput {
|
|
|
75
76
|
change: boolean;
|
|
76
77
|
}
|
|
77
78
|
interface CreateCreditPreparation {
|
|
79
|
+
singleLimit?: bigint;
|
|
80
|
+
dailyLimit?: bigint;
|
|
81
|
+
monthlyLimit?: bigint;
|
|
82
|
+
memo?: string | Uint8Array;
|
|
78
83
|
tokenAddress: Address;
|
|
79
84
|
spender: string;
|
|
80
85
|
amount: bigint;
|
|
@@ -87,10 +92,16 @@ interface DrawCreditPreparation {
|
|
|
87
92
|
credits: readonly {
|
|
88
93
|
credit: Hex;
|
|
89
94
|
amount: bigint;
|
|
95
|
+
memo?: string | Uint8Array;
|
|
90
96
|
}[];
|
|
91
97
|
deadline?: bigint;
|
|
92
98
|
}
|
|
93
99
|
interface TopUpCreditPreparation {
|
|
100
|
+
/** Omission inherits the previous limit; zero disables it without clearing usage. */
|
|
101
|
+
singleLimit?: bigint;
|
|
102
|
+
dailyLimit?: bigint;
|
|
103
|
+
monthlyLimit?: bigint;
|
|
104
|
+
memo?: string | Uint8Array;
|
|
94
105
|
tokenAddress: Address;
|
|
95
106
|
credit: Hex;
|
|
96
107
|
additionalAmount: bigint;
|
|
@@ -215,6 +226,27 @@ interface GasBenchmarkProfile {
|
|
|
215
226
|
deployment: GasBenchmarkDeployment;
|
|
216
227
|
source: {
|
|
217
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
|
+
}>;
|
|
218
250
|
measuredAt: string;
|
|
219
251
|
chain: string;
|
|
220
252
|
hardfork: string;
|