@inco/js 0.1.35 → 0.1.37
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/README.md +20 -0
- package/dist/binary.js +32 -47
- package/dist/chain.js +7 -11
- package/dist/encryption/encryption.js +54 -62
- package/dist/encryption/index.cjs +24706 -0
- package/dist/encryption/index.js +2 -18
- package/dist/encryption/index.mjs +25787 -0
- package/dist/fhevm/fhe-environment.js +6 -9
- package/dist/fhevm/fhevm.js +34 -40
- package/dist/fhevm/index.cjs +87 -0
- package/dist/fhevm/index.js +2 -18
- package/dist/fhevm/index.mjs +90 -0
- package/dist/fhevm/reencrypt.js +33 -37
- package/dist/fhevm/tfhe.js +79 -87
- package/dist/fhevm/types.js +13 -16
- package/dist/generated/abis/addTwo.js +2 -5
- package/dist/generated/abis/inco-fhevm.js +47 -50
- package/dist/generated/abis/index.cjs +12493 -0
- package/dist/generated/abis/index.js +3 -19
- package/dist/generated/abis/index.mjs +12496 -0
- package/dist/generated/abis/lightning.d.ts +1361 -115
- package/dist/generated/abis/lightning.js +1043 -140
- package/dist/generated/es/cosmos/ics23/v1/proofs_pb.js +22 -25
- package/dist/generated/es/cosmos/msg/v1/msg_pb.js +6 -9
- package/dist/generated/es/cosmos_proto/cosmos_pb.js +18 -21
- package/dist/generated/es/google/api/annotations_pb.js +6 -9
- package/dist/generated/es/google/api/http_pb.js +6 -9
- package/dist/generated/es/inco/fhe/v1/events_pb.js +7 -10
- package/dist/generated/es/inco/fhe/v1/genesis_pb.js +12 -15
- package/dist/generated/es/inco/fhe/v1/query_pb.js +25 -28
- package/dist/generated/es/inco/fhe/v1/tx_pb.js +25 -28
- package/dist/generated/es/inco/fhe/v1/types_pb.js +19 -22
- package/dist/generated/es/inco/kms/lite/v1/kms_service_pb.js +11 -14
- package/dist/generated/es/inco/kms/lite/v1/types_pb.js +10 -13
- package/dist/generated/es/inco/preflight/v1/genesis_pb.js +6 -9
- package/dist/generated/es/inco/preflight/v1/query_pb.js +11 -14
- package/dist/generated/es/inco/preflight/v1/tx_pb.js +13 -16
- package/dist/generated/es/inco/preflight/v1/types_pb.js +8 -11
- package/dist/generated/es/kms/base_pb.js +35 -38
- package/dist/generated/es/sf/ethereum/type/v2/type_pb.js +43 -46
- package/dist/generated/fhe-environments.js +2 -5
- package/dist/generated/lightning.d.ts +21 -0
- package/dist/generated/lightning.js +24 -5
- package/dist/generated/local-node.js +2 -5
- package/dist/generated/ts/amino/amino.js +2 -5
- package/dist/generated/ts/cometbft/abci/v1/types.js +547 -563
- package/dist/generated/ts/cometbft/crypto/v1/keys.js +7 -10
- package/dist/generated/ts/cometbft/crypto/v1/proof.js +33 -36
- package/dist/generated/ts/cometbft/types/v1/params.js +95 -98
- package/dist/generated/ts/cometbft/types/v1/validator.js +40 -45
- package/dist/generated/ts/cosmos/app/v1alpha1/module.js +25 -28
- package/dist/generated/ts/cosmos/msg/v1/msg.js +2 -5
- package/dist/generated/ts/cosmos_proto/cosmos.js +15 -20
- package/dist/generated/ts/gogoproto/gogo.js +2 -5
- package/dist/generated/ts/google/api/annotations.js +2 -5
- package/dist/generated/ts/google/api/http.js +30 -33
- package/dist/generated/ts/google/protobuf/descriptor.js +468 -506
- package/dist/generated/ts/google/protobuf/duration.js +7 -10
- package/dist/generated/ts/google/protobuf/timestamp.js +7 -10
- package/dist/generated/ts/google/protobuf/wrappers.js +39 -42
- package/dist/generated/ts/inco/abci/v1/types.js +13 -16
- package/dist/generated/ts/inco/fhe/module/v1/module.js +7 -10
- package/dist/generated/ts/inco/fhe/v1/events.js +32 -35
- package/dist/generated/ts/inco/fhe/v1/genesis.js +127 -130
- package/dist/generated/ts/inco/fhe/v1/query.js +160 -163
- package/dist/generated/ts/inco/fhe/v1/tx.js +150 -153
- package/dist/generated/ts/inco/fhe/v1/types.js +70 -75
- package/dist/generated/ts/inco/originchain/module/v1/module.js +7 -10
- package/dist/generated/ts/inco/originchain/v1/abci.js +34 -37
- package/dist/generated/ts/inco/originchain/v1/events.js +11 -14
- package/dist/generated/ts/inco/originchain/v1/genesis.js +13 -16
- package/dist/generated/ts/inco/originchain/v1/query.js +41 -44
- package/dist/generated/ts/inco/originchain/v1/tx.js +24 -27
- package/dist/generated/ts/inco/originchain/v1/types.js +11 -14
- package/dist/generated/ts/inco/preflight/module/v1/module.js +7 -10
- package/dist/generated/ts/inco/preflight/v1/genesis.js +27 -30
- package/dist/generated/ts/inco/preflight/v1/query.js +41 -44
- package/dist/generated/ts/inco/preflight/v1/tx.js +53 -56
- package/dist/generated/ts/inco/preflight/v1/types.js +38 -41
- package/dist/handle.js +26 -33
- package/dist/index.cjs +24883 -0
- package/dist/index.js +6 -22
- package/dist/index.mjs +25964 -0
- package/dist/l1/client.js +19 -23
- package/dist/l1/index.js +3 -19
- package/dist/l1/preflight.js +13 -16
- package/dist/lite/deployments.js +9 -13
- package/dist/lite/ecies.js +37 -48
- package/dist/lite/hadu.js +21 -26
- package/dist/lite/index.cjs +52789 -0
- package/dist/lite/index.js +7 -23
- package/dist/lite/index.mjs +71691 -0
- package/dist/lite/lightning.js +31 -35
- package/dist/lite/reencrypt.d.ts +4 -4
- package/dist/lite/reencrypt.js +33 -44
- package/dist/local/index.cjs +24479 -0
- package/dist/local/index.js +2 -18
- package/dist/local/index.mjs +42864 -0
- package/dist/local/local-node.js +21 -25
- package/dist/reencryption/eip712.js +18 -21
- package/dist/reencryption/index.cjs +24681 -0
- package/dist/reencryption/index.js +3 -19
- package/dist/reencryption/index.mjs +24684 -0
- package/dist/reencryption/types.d.ts +6 -1
- package/dist/reencryption/types.js +1 -2
- package/dist/schema.js +6 -10
- package/dist/viem.js +7 -11
- package/package.json +1 -1
@@ -4,7 +4,12 @@ import { CiphertextOf, EncryptionScheme, PlaintextOf, SupportedFheType } from '.
|
|
4
4
|
import type { EphemeralCryptoBoxKeypair } from '../fhevm/reencrypt';
|
5
5
|
import { Handle } from '../handle';
|
6
6
|
import type { Secp256k1Keypair } from '../lite/ecies';
|
7
|
-
export type Reencryptor<S extends EncryptionScheme> = <T extends SupportedFheType>(args: ReencryptFnArgs<S, T>) => Promise<PlaintextOf<S, T>>;
|
7
|
+
export type Reencryptor<S extends EncryptionScheme> = <T extends SupportedFheType>(args: ReencryptFnArgs<S, T>, backoffConfig?: Partial<BackoffConfig>) => Promise<PlaintextOf<S, T>>;
|
8
|
+
export type BackoffConfig = {
|
9
|
+
maxRetries: number;
|
10
|
+
baseDelayInMs: number;
|
11
|
+
backoffFactor: number;
|
12
|
+
};
|
8
13
|
export interface ReencryptorArgs {
|
9
14
|
chainId: bigint;
|
10
15
|
}
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
3
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmVlbmNyeXB0aW9uL3R5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
package/dist/schema.js
CHANGED
@@ -1,19 +1,15 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.parse = parse;
|
4
|
-
exports.parseJson = parseJson;
|
5
|
-
const effect_1 = require("effect");
|
1
|
+
import { Schema } from 'effect';
|
6
2
|
// parse takes an effect Schema object and parses an unknown value into that schema, if parsing fails an error is thrown
|
7
3
|
// only fields specified in the schema will be present in the parsed object.
|
8
|
-
function parse(schema, obj, options) {
|
9
|
-
return
|
4
|
+
export function parse(schema, obj, options) {
|
5
|
+
return Schema.decodeUnknownSync(schema)(obj, options);
|
10
6
|
}
|
11
7
|
// parseJson takes an effect Schema object and parses a JSON string into that schema, if parsing fails an error is thrown
|
12
8
|
// only fields specified in the schema will be present in the parsed object.
|
13
|
-
function parseJson(schema, json, options) {
|
9
|
+
export function parseJson(schema, json, options) {
|
14
10
|
if (typeof json !== 'string') {
|
15
11
|
json = json.toString();
|
16
12
|
}
|
17
|
-
return
|
13
|
+
return Schema.decodeUnknownSync(Schema.parseJson(schema))(json, options);
|
18
14
|
}
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBR2hDLHdIQUF3SDtBQUN4SCw0RUFBNEU7QUFDNUUsTUFBTSxVQUFVLEtBQUssQ0FBTyxNQUEyQixFQUFFLEdBQVksRUFBRSxPQUFzQjtJQUMzRixPQUFPLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxNQUFNLENBQUMsQ0FBQyxHQUFHLEVBQUUsT0FBTyxDQUFDLENBQUM7QUFDeEQsQ0FBQztBQUVELHlIQUF5SDtBQUN6SCw0RUFBNEU7QUFDNUUsTUFBTSxVQUFVLFNBQVMsQ0FBTyxNQUEyQixFQUFFLElBQXlCLEVBQUUsT0FBc0I7SUFDNUcsSUFBSSxPQUFPLElBQUksS0FBSyxRQUFRLEVBQUUsQ0FBQztRQUM3QixJQUFJLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDO0lBQ3pCLENBQUM7SUFDRCxPQUFPLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0FBQzNFLENBQUMifQ==
|
package/dist/viem.js
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
|
7
|
-
exports.chains = { sepolia: chains_1.sepolia, baseSepolia: chains_1.baseSepolia, monadTestnet: chains_1.monadTestnet, anvil: chains_1.anvil };
|
8
|
-
function getViemChain(chainish) {
|
9
|
-
const { name } = (0, chain_1.getSupportedChain)(chainish);
|
10
|
-
return exports.chains[name];
|
1
|
+
import { anvil, baseSepolia, monadTestnet, sepolia } from 'viem/chains';
|
2
|
+
import { getSupportedChain } from './chain';
|
3
|
+
export const chains = { sepolia, baseSepolia, monadTestnet, anvil };
|
4
|
+
export function getViemChain(chainish) {
|
5
|
+
const { name } = getSupportedChain(chainish);
|
6
|
+
return chains[name];
|
11
7
|
}
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmllbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy92aWVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxLQUFLLEVBQUUsV0FBVyxFQUFFLFlBQVksRUFBRSxPQUFPLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDeEUsT0FBTyxFQUFZLGlCQUFpQixFQUFFLE1BQU0sU0FBUyxDQUFDO0FBRXRELE1BQU0sQ0FBQyxNQUFNLE1BQU0sR0FBRyxFQUFFLE9BQU8sRUFBRSxXQUFXLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxDQUFDO0FBTXBFLE1BQU0sVUFBVSxZQUFZLENBQUMsUUFBa0I7SUFDN0MsTUFBTSxFQUFFLElBQUksRUFBRSxHQUFHLGlCQUFpQixDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQzdDLE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQ3RCLENBQUMifQ==
|