@inco/js 0.1.9

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 (93) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +50 -0
  3. package/dist/binary.d.ts +17 -0
  4. package/dist/chain.d.ts +22 -0
  5. package/dist/encryption/encryption.d.ts +118 -0
  6. package/dist/encryption/index.d.ts +1 -0
  7. package/dist/fhevm/fhe-environment.d.ts +9 -0
  8. package/dist/fhevm/fhevm.d.ts +41 -0
  9. package/dist/fhevm/index.cjs +87 -0
  10. package/dist/fhevm/index.d.ts +1 -0
  11. package/dist/fhevm/index.mjs +83 -0
  12. package/dist/fhevm/reencrypt.d.ts +20 -0
  13. package/dist/fhevm/tfhe.d.ts +74 -0
  14. package/dist/fhevm/types.d.ts +3 -0
  15. package/dist/generated/abis/inco-fhevm.d.ts +8698 -0
  16. package/dist/generated/abis/inco-lite.d.ts +21794 -0
  17. package/dist/generated/es/cosmos/ics23/v1/proofs_pb.d.ts +593 -0
  18. package/dist/generated/es/cosmos/msg/v1/msg_pb.d.ts +29 -0
  19. package/dist/generated/es/cosmos_proto/cosmos_pb.d.ts +174 -0
  20. package/dist/generated/es/google/api/annotations_pb.d.ts +13 -0
  21. package/dist/generated/es/google/api/http_pb.d.ts +440 -0
  22. package/dist/generated/es/inco/fhe/v1/events_pb.d.ts +79 -0
  23. package/dist/generated/es/inco/fhe/v1/genesis_pb.d.ts +252 -0
  24. package/dist/generated/es/inco/fhe/v1/query_pb.d.ts +569 -0
  25. package/dist/generated/es/inco/fhe/v1/tx_pb.d.ts +494 -0
  26. package/dist/generated/es/inco/fhe/v1/types_pb.d.ts +419 -0
  27. package/dist/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +181 -0
  28. package/dist/generated/es/inco/kms/lite/v1/types_pb.d.ts +212 -0
  29. package/dist/generated/es/inco/preflight/v1/genesis_pb.d.ts +56 -0
  30. package/dist/generated/es/inco/preflight/v1/query_pb.d.ts +100 -0
  31. package/dist/generated/es/inco/preflight/v1/tx_pb.d.ts +193 -0
  32. package/dist/generated/es/inco/preflight/v1/types_pb.d.ts +144 -0
  33. package/dist/generated/es/kms/base_pb.d.ts +765 -0
  34. package/dist/generated/es/sf/ethereum/type/v2/type_pb.d.ts +1736 -0
  35. package/dist/generated/fhe-environments.d.ts +14 -0
  36. package/dist/generated/inco-lite.d.ts +61 -0
  37. package/dist/generated/ts/amino/amino.d.ts +1 -0
  38. package/dist/generated/ts/cometbft/abci/v1/types.d.ts +597 -0
  39. package/dist/generated/ts/cometbft/crypto/v1/keys.d.ts +27 -0
  40. package/dist/generated/ts/cometbft/crypto/v1/proof.d.ts +60 -0
  41. package/dist/generated/ts/cometbft/types/v1/params.d.ts +179 -0
  42. package/dist/generated/ts/cometbft/types/v1/validator.d.ts +61 -0
  43. package/dist/generated/ts/cosmos/app/v1alpha1/module.d.ts +104 -0
  44. package/dist/generated/ts/cosmos/msg/v1/msg.d.ts +1 -0
  45. package/dist/generated/ts/cosmos_proto/cosmos.d.ts +80 -0
  46. package/dist/generated/ts/gogoproto/gogo.d.ts +1 -0
  47. package/dist/generated/ts/google/api/annotations.d.ts +1 -0
  48. package/dist/generated/ts/google/api/http.d.ts +371 -0
  49. package/dist/generated/ts/google/protobuf/descriptor.d.ts +1228 -0
  50. package/dist/generated/ts/google/protobuf/duration.d.ts +99 -0
  51. package/dist/generated/ts/google/protobuf/timestamp.d.ts +128 -0
  52. package/dist/generated/ts/google/protobuf/wrappers.d.ts +111 -0
  53. package/dist/generated/ts/inco/abci/v1/types.d.ts +35 -0
  54. package/dist/generated/ts/inco/fhe/module/v1/module.d.ts +31 -0
  55. package/dist/generated/ts/inco/fhe/v1/events.d.ts +66 -0
  56. package/dist/generated/ts/inco/fhe/v1/genesis.d.ts +117 -0
  57. package/dist/generated/ts/inco/fhe/v1/query.d.ts +366 -0
  58. package/dist/generated/ts/inco/fhe/v1/tx.d.ts +409 -0
  59. package/dist/generated/ts/inco/fhe/v1/types.d.ts +225 -0
  60. package/dist/generated/ts/inco/originchain/module/v1/module.d.ts +30 -0
  61. package/dist/generated/ts/inco/originchain/v1/abci.d.ts +80 -0
  62. package/dist/generated/ts/inco/originchain/v1/events.d.ts +60 -0
  63. package/dist/generated/ts/inco/originchain/v1/genesis.d.ts +28 -0
  64. package/dist/generated/ts/inco/originchain/v1/query.d.ts +116 -0
  65. package/dist/generated/ts/inco/originchain/v1/tx.d.ts +89 -0
  66. package/dist/generated/ts/inco/originchain/v1/types.d.ts +58 -0
  67. package/dist/generated/ts/inco/preflight/module/v1/module.d.ts +31 -0
  68. package/dist/generated/ts/inco/preflight/v1/genesis.d.ts +41 -0
  69. package/dist/generated/ts/inco/preflight/v1/query.d.ts +93 -0
  70. package/dist/generated/ts/inco/preflight/v1/tx.d.ts +187 -0
  71. package/dist/generated/ts/inco/preflight/v1/types.d.ts +84 -0
  72. package/dist/handle.d.ts +41 -0
  73. package/dist/index.cjs +22952 -0
  74. package/dist/index.d.ts +4 -0
  75. package/dist/index.mjs +24026 -0
  76. package/dist/l1/client.d.ts +35 -0
  77. package/dist/l1/index.d.ts +2 -0
  78. package/dist/l1/preflight.d.ts +20 -0
  79. package/dist/lite/deployments.d.ts +6 -0
  80. package/dist/lite/ecies.d.ts +26 -0
  81. package/dist/lite/hadu.d.ts +24 -0
  82. package/dist/lite/index.cjs +54911 -0
  83. package/dist/lite/index.d.ts +6 -0
  84. package/dist/lite/index.mjs +73891 -0
  85. package/dist/lite/reencrypt.d.ts +23 -0
  86. package/dist/reencryption/eip712.d.ts +29 -0
  87. package/dist/reencryption/index.cjs +22675 -0
  88. package/dist/reencryption/index.d.ts +2 -0
  89. package/dist/reencryption/index.mjs +22671 -0
  90. package/dist/reencryption/types.d.ts +24 -0
  91. package/dist/schema.d.ts +4 -0
  92. package/dist/viem.d.ts +385 -0
  93. package/package.json +92 -0
@@ -0,0 +1,144 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file inco/preflight/v1/types.proto.
5
+ */
6
+ export declare const file_inco_preflight_v1_types: GenFile;
7
+ /**
8
+ * InputRegistration is the message that is stored on-chain in the inputs
9
+ * registry.
10
+ *
11
+ * @generated from message inco.preflight.v1.InputRegistration
12
+ */
13
+ export type InputRegistration = Message<"inco.preflight.v1.InputRegistration"> & {
14
+ /**
15
+ * inputted_at is the Inco L1 block height at which the input was registered.
16
+ * It is used for pruning purposes.
17
+ *
18
+ * @generated from field: uint64 inputted_at = 1;
19
+ */
20
+ inputtedAt: bigint;
21
+ /**
22
+ * registration can be either a ciphertext registration from an end-user or a
23
+ * fallback registration from a covalidator.
24
+ *
25
+ * @generated from oneof inco.preflight.v1.InputRegistration.registration
26
+ */
27
+ registration: {
28
+ /**
29
+ * @generated from field: inco.preflight.v1.CiphertextRegistration ciphertext_registration = 2;
30
+ */
31
+ value: CiphertextRegistration;
32
+ case: "ciphertextRegistration";
33
+ } | {
34
+ /**
35
+ * @generated from field: inco.preflight.v1.FallbackRegistration fallback_registration = 3;
36
+ */
37
+ value: FallbackRegistration;
38
+ case: "fallbackRegistration";
39
+ } | {
40
+ case: undefined;
41
+ value?: undefined;
42
+ };
43
+ };
44
+ /**
45
+ * Describes the message inco.preflight.v1.InputRegistration.
46
+ * Use `create(InputRegistrationSchema)` to create a new message.
47
+ */
48
+ export declare const InputRegistrationSchema: GenMessage<InputRegistration>;
49
+ /**
50
+ * CiphertextRegistration is the registration of an input encrypted by the
51
+ * end-user.
52
+ *
53
+ * @generated from message inco.preflight.v1.CiphertextRegistration
54
+ */
55
+ export type CiphertextRegistration = Message<"inco.preflight.v1.CiphertextRegistration"> & {
56
+ /**
57
+ * ciphertext is the input encrypted by the end-user.
58
+ *
59
+ * @generated from field: bytes ciphertext = 1;
60
+ */
61
+ ciphertext: Uint8Array;
62
+ /**
63
+ * context is the context in which the input was registered.
64
+ *
65
+ * @generated from field: inco.preflight.v1.InputContext context = 2;
66
+ */
67
+ context?: InputContext;
68
+ };
69
+ /**
70
+ * Describes the message inco.preflight.v1.CiphertextRegistration.
71
+ * Use `create(CiphertextRegistrationSchema)` to create a new message.
72
+ */
73
+ export declare const CiphertextRegistrationSchema: GenMessage<CiphertextRegistration>;
74
+ /**
75
+ * InputContext is the context in which the input was registered.
76
+ *
77
+ * @generated from message inco.preflight.v1.InputContext
78
+ */
79
+ export type InputContext = Message<"inco.preflight.v1.InputContext"> & {
80
+ /**
81
+ * host_chain_id is the chain ID of the host chain. Refer to the x/hostchain
82
+ * module for a specification of the chain ID.
83
+ *
84
+ * @generated from field: string host_chain_id = 1;
85
+ */
86
+ hostChainId: string;
87
+ /**
88
+ * keyset_id is the keyset that the input was encrypted under. Refer
89
+ * to the x/fhe module for a specification of the keysets.
90
+ *
91
+ * @generated from field: string keyset_id = 2;
92
+ */
93
+ keysetId: string;
94
+ /**
95
+ * contract_addr is the address of the contract that the input is intended
96
+ * for. This is a hex-encoded, non-prefixed Ethereum address (20 bytes).
97
+ *
98
+ * @generated from field: string contract_addr = 3;
99
+ */
100
+ contractAddr: string;
101
+ /**
102
+ * owner_addr is the address of the owner of the input. This is a hex-encoded,
103
+ * non-prefixed Ethereum address (20 bytes).
104
+ *
105
+ * @generated from field: string owner_addr = 4;
106
+ */
107
+ ownerAddr: string;
108
+ };
109
+ /**
110
+ * Describes the message inco.preflight.v1.InputContext.
111
+ * Use `create(InputContextSchema)` to create a new message.
112
+ */
113
+ export declare const InputContextSchema: GenMessage<InputContext>;
114
+ /**
115
+ * FallbackRegistration is the registration of an input by a covalidator.
116
+ *
117
+ * @generated from message inco.preflight.v1.FallbackRegistration
118
+ */
119
+ export type FallbackRegistration = Message<"inco.preflight.v1.FallbackRegistration"> & {};
120
+ /**
121
+ * Describes the message inco.preflight.v1.FallbackRegistration.
122
+ * Use `create(FallbackRegistrationSchema)` to create a new message.
123
+ */
124
+ export declare const FallbackRegistrationSchema: GenMessage<FallbackRegistration>;
125
+ /**
126
+ * Params defines the parameters for the x/preflight module.
127
+ *
128
+ * @generated from message inco.preflight.v1.Params
129
+ */
130
+ export type Params = Message<"inco.preflight.v1.Params"> & {
131
+ /**
132
+ * blocks_to_keep_inputs is the number of blocks to keep inputs registrations
133
+ * in state. After this number of blocks, the input registration will be
134
+ * pruned from state, but still accessible via an archive node.
135
+ *
136
+ * @generated from field: uint64 blocks_to_keep_inputs = 1;
137
+ */
138
+ blocksToKeepInputs: bigint;
139
+ };
140
+ /**
141
+ * Describes the message inco.preflight.v1.Params.
142
+ * Use `create(ParamsSchema)` to create a new message.
143
+ */
144
+ export declare const ParamsSchema: GenMessage<Params>;