@circle-fin/app-kit 1.4.2 → 1.5.1

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/index.d.ts CHANGED
@@ -667,6 +667,8 @@ declare enum Blockchain {
667
667
  Hedera_Testnet = "Hedera_Testnet",
668
668
  HyperEVM = "HyperEVM",
669
669
  HyperEVM_Testnet = "HyperEVM_Testnet",
670
+ Injective = "Injective",
671
+ Injective_Testnet = "Injective_Testnet",
670
672
  Ink = "Ink",
671
673
  Ink_Testnet = "Ink_Testnet",
672
674
  Linea = "Linea",
@@ -901,6 +903,7 @@ declare enum BridgeChain {
901
903
  Edge = "Edge",
902
904
  Ethereum = "Ethereum",
903
905
  HyperEVM = "HyperEVM",
906
+ Injective = "Injective",
904
907
  Ink = "Ink",
905
908
  Linea = "Linea",
906
909
  Monad = "Monad",
@@ -923,6 +926,7 @@ declare enum BridgeChain {
923
926
  Edge_Testnet = "Edge_Testnet",
924
927
  Ethereum_Sepolia = "Ethereum_Sepolia",
925
928
  HyperEVM_Testnet = "HyperEVM_Testnet",
929
+ Injective_Testnet = "Injective_Testnet",
926
930
  Ink_Testnet = "Ink_Testnet",
927
931
  Linea_Sepolia = "Linea_Sepolia",
928
932
  Monad_Testnet = "Monad_Testnet",
@@ -2133,6 +2137,98 @@ declare const HyperEVMTestnet: {
2133
2137
  };
2134
2138
  };
2135
2139
 
2140
+ /**
2141
+ * Injective Mainnet chain definition
2142
+ * @remarks
2143
+ * This represents the official production network for the Injective blockchain.
2144
+ * Injective is a high-performance, interoperable Layer-1 blockchain built for
2145
+ * finance, with an EVM execution layer on top of a Cosmos SDK base and
2146
+ * sub-second block finality.
2147
+ */
2148
+ declare const Injective: {
2149
+ readonly type: "evm";
2150
+ readonly chain: Blockchain.Injective;
2151
+ readonly name: "Injective";
2152
+ readonly title: "Injective Mainnet";
2153
+ readonly nativeCurrency: {
2154
+ readonly name: "Injective";
2155
+ readonly symbol: "INJ";
2156
+ readonly decimals: 18;
2157
+ };
2158
+ readonly chainId: 1776;
2159
+ readonly isTestnet: false;
2160
+ readonly explorerUrl: "https://injscan.com/transaction/{hash}";
2161
+ readonly rpcEndpoints: readonly ["https://sentry.evm-rpc.injective.network"];
2162
+ readonly eurcAddress: null;
2163
+ readonly usdcAddress: "0xa00C59fF5a080D2b954d0c75e46E22a0c371235a";
2164
+ readonly usdtAddress: null;
2165
+ readonly cctp: {
2166
+ readonly domain: 29;
2167
+ readonly contracts: {
2168
+ readonly v2: {
2169
+ readonly type: "split";
2170
+ readonly tokenMessenger: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d";
2171
+ readonly messageTransmitter: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64";
2172
+ readonly confirmations: 1;
2173
+ readonly fastConfirmations: 1;
2174
+ };
2175
+ };
2176
+ readonly forwarderSupported: {
2177
+ readonly source: false;
2178
+ readonly destination: false;
2179
+ };
2180
+ };
2181
+ readonly kitContracts: {
2182
+ readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
2183
+ };
2184
+ };
2185
+
2186
+ /**
2187
+ * Injective Testnet chain definition
2188
+ * @remarks
2189
+ * This represents the official test network for the Injective blockchain.
2190
+ * Injective is a high-performance, interoperable Layer-1 blockchain built for
2191
+ * finance, with an EVM execution layer on top of a Cosmos SDK base and
2192
+ * sub-second block finality.
2193
+ */
2194
+ declare const InjectiveTestnet: {
2195
+ readonly type: "evm";
2196
+ readonly chain: Blockchain.Injective_Testnet;
2197
+ readonly name: "Injective Testnet";
2198
+ readonly title: "Injective Testnet";
2199
+ readonly nativeCurrency: {
2200
+ readonly name: "Injective";
2201
+ readonly symbol: "INJ";
2202
+ readonly decimals: 18;
2203
+ };
2204
+ readonly chainId: 1439;
2205
+ readonly isTestnet: true;
2206
+ readonly explorerUrl: "https://testnet.explorer.injective.network/transaction/{hash}";
2207
+ readonly rpcEndpoints: readonly ["https://k8s.testnet.json-rpc.injective.network"];
2208
+ readonly eurcAddress: null;
2209
+ readonly usdcAddress: "0x0C382e685bbeeFE5d3d9C29e29E341fEE8E84C5d";
2210
+ readonly usdtAddress: null;
2211
+ readonly cctp: {
2212
+ readonly domain: 29;
2213
+ readonly contracts: {
2214
+ readonly v2: {
2215
+ readonly type: "split";
2216
+ readonly tokenMessenger: "0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA";
2217
+ readonly messageTransmitter: "0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275";
2218
+ readonly confirmations: 1;
2219
+ readonly fastConfirmations: 1;
2220
+ };
2221
+ };
2222
+ readonly forwarderSupported: {
2223
+ readonly source: false;
2224
+ readonly destination: false;
2225
+ };
2226
+ };
2227
+ readonly kitContracts: {
2228
+ readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
2229
+ };
2230
+ };
2231
+
2136
2232
  /**
2137
2233
  * Ink Mainnet chain definition
2138
2234
  * @remarks
@@ -3964,6 +4060,8 @@ declare const Chains_Hedera: typeof Hedera;
3964
4060
  declare const Chains_HederaTestnet: typeof HederaTestnet;
3965
4061
  declare const Chains_HyperEVM: typeof HyperEVM;
3966
4062
  declare const Chains_HyperEVMTestnet: typeof HyperEVMTestnet;
4063
+ declare const Chains_Injective: typeof Injective;
4064
+ declare const Chains_InjectiveTestnet: typeof InjectiveTestnet;
3967
4065
  declare const Chains_Ink: typeof Ink;
3968
4066
  declare const Chains_InkTestnet: typeof InkTestnet;
3969
4067
  declare const Chains_Linea: typeof Linea;
@@ -4029,6 +4127,8 @@ declare namespace Chains {
4029
4127
  Chains_HederaTestnet as HederaTestnet,
4030
4128
  Chains_HyperEVM as HyperEVM,
4031
4129
  Chains_HyperEVMTestnet as HyperEVMTestnet,
4130
+ Chains_Injective as Injective,
4131
+ Chains_InjectiveTestnet as InjectiveTestnet,
4032
4132
  Chains_Ink as Ink,
4033
4133
  Chains_InkTestnet as InkTestnet,
4034
4134
  Chains_Linea as Linea,
@@ -11460,6 +11560,15 @@ interface BridgeKitConfig<TExtraProviders extends FlexibleBridgingProvider[] = [
11460
11560
  * the appropriate provider based on order and the transfer parameters.
11461
11561
  */
11462
11562
  providers?: TExtraProviders;
11563
+ /**
11564
+ * Disable error telemetry.
11565
+ *
11566
+ * When `true`, the SDK will not POST error details to the telemetry
11567
+ * endpoint when public methods throw. Defaults to `false` (enabled).
11568
+ *
11569
+ * @defaultValue false
11570
+ */
11571
+ disableErrorReporting?: boolean;
11463
11572
  }
11464
11573
  /**
11465
11574
  * Merges action types from multiple bridging providers into a unified action map.
@@ -11614,6 +11723,10 @@ declare class BridgeKit<TExtraProviders extends FlexibleBridgingProvider[] = []>
11614
11723
  * A custom fee policy for the kit.
11615
11724
  */
11616
11725
  customFeePolicy: CustomFeePolicy$2 | undefined;
11726
+ /** Whether error telemetry is disabled. */
11727
+ private readonly disableErrorReporting;
11728
+ /** Per-kit telemetry identity for shared helpers. */
11729
+ private readonly telemetryConfig;
11617
11730
  /**
11618
11731
  * Create a new BridgeKit instance.
11619
11732
  *
@@ -13463,6 +13576,15 @@ interface SwapKitConfig<TExtraProviders extends FlexibleSwappingProvider[] = []>
13463
13576
  * for all swaps executed through the created context.
13464
13577
  */
13465
13578
  customFeePolicy?: CustomFeePolicy$1;
13579
+ /**
13580
+ * Disable error telemetry.
13581
+ *
13582
+ * When `true`, the SDK will not POST error details to the telemetry
13583
+ * endpoint when public methods throw. Defaults to `false` (enabled).
13584
+ *
13585
+ * @defaultValue false
13586
+ */
13587
+ disableErrorReporting?: boolean;
13466
13588
  }
13467
13589
 
13468
13590
  /**
@@ -15195,6 +15317,16 @@ interface AppKitContext {
15195
15317
  * ```
15196
15318
  */
15197
15319
  actions: Record<'bridge', Record<string, ((payload: unknown) => void)[]>>;
15320
+ /**
15321
+ * Disable error telemetry for all sub-kits.
15322
+ *
15323
+ * When `true`, none of the underlying kits (BridgeKit, SwapKit,
15324
+ * UnifiedBalanceKit) will POST error details to the telemetry
15325
+ * endpoint when operations throw. Defaults to `false` (enabled).
15326
+ *
15327
+ * @defaultValue false
15328
+ */
15329
+ disableErrorReporting?: boolean;
15198
15330
  }
15199
15331
  /**
15200
15332
  * Type for event handler functions that can be registered with the AppKit.
@@ -15989,6 +16121,18 @@ interface UnifiedBalanceKitConfig<TExtraProviders extends FlexibleGatewayProvide
15989
16121
  * @defaultValue false
15990
16122
  */
15991
16123
  disableAnalytics?: boolean;
16124
+ /**
16125
+ * Disable error telemetry.
16126
+ *
16127
+ * When `true`, the SDK will not POST error details to the telemetry
16128
+ * endpoint when public methods throw. Defaults to `false` (enabled).
16129
+ *
16130
+ * @remarks
16131
+ * Only applies to the class-based API (`new UnifiedBalanceKit()`).
16132
+ *
16133
+ * @defaultValue false
16134
+ */
16135
+ disableErrorReporting?: boolean;
15992
16136
  }
15993
16137
 
15994
16138
  /**
@@ -17067,6 +17211,15 @@ type AppKitConfig = CreateContextParams & {
17067
17211
  developerFee?: Partial<DeveloperFeeHooks>;
17068
17212
  /** Optional config forwarded to the underlying {@link UnifiedBalanceKit}. */
17069
17213
  unifiedBalance?: UnifiedBalanceKitConfig;
17214
+ /**
17215
+ * Disable error telemetry for all underlying kits.
17216
+ *
17217
+ * When `true`, BridgeKit, SwapKit, and UnifiedBalanceKit will not
17218
+ * POST error details to the telemetry endpoint. Defaults to `false`.
17219
+ *
17220
+ * @defaultValue false
17221
+ */
17222
+ disableErrorReporting?: boolean;
17070
17223
  };
17071
17224
  /**
17072
17225
  * A high-level SDK for stablecoin operations, including bridging and swapping.