@embarkai/ui-kit 0.4.28 → 0.4.30
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +2048 -1427
- package/dist/index.d.cts +113 -6
- package/dist/index.d.ts +113 -6
- package/dist/index.js +1895 -1276
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1876,10 +1876,111 @@ declare function createAccountAbstractionError(params: {
|
|
|
1876
1876
|
* Wagmi config for RainbowKit and wallet connections.
|
|
1877
1877
|
* Note: Balance fetching uses dynamic publicClient from session store,
|
|
1878
1878
|
* so chains don't need to be listed here for balance queries.
|
|
1879
|
-
|
|
1880
|
-
|
|
1879
|
+
*
|
|
1880
|
+
* All bridge-supported chains must be listed here so switchChainAsync
|
|
1881
|
+
* can switch to them without throwing "Chain not configured".
|
|
1882
|
+
*/
|
|
1883
|
+
declare const wagmiConfig: wagmi.Config<readonly [viem.Chain, viem.Chain, {
|
|
1884
|
+
blockExplorers: {
|
|
1885
|
+
readonly default: {
|
|
1886
|
+
readonly name: "BscScan";
|
|
1887
|
+
readonly url: "https://bscscan.com";
|
|
1888
|
+
readonly apiUrl: "https://api.bscscan.com/api";
|
|
1889
|
+
};
|
|
1890
|
+
};
|
|
1891
|
+
blockTime: 750;
|
|
1892
|
+
contracts: {
|
|
1893
|
+
readonly multicall3: {
|
|
1894
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
1895
|
+
readonly blockCreated: 15921452;
|
|
1896
|
+
};
|
|
1897
|
+
};
|
|
1898
|
+
ensTlds?: readonly string[] | undefined;
|
|
1899
|
+
id: 56;
|
|
1900
|
+
name: "BNB Smart Chain";
|
|
1901
|
+
nativeCurrency: {
|
|
1902
|
+
readonly decimals: 18;
|
|
1903
|
+
readonly name: "BNB";
|
|
1904
|
+
readonly symbol: "BNB";
|
|
1905
|
+
};
|
|
1906
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
1907
|
+
rpcUrls: {
|
|
1908
|
+
readonly default: {
|
|
1909
|
+
readonly http: readonly ["https://56.rpc.thirdweb.com"];
|
|
1910
|
+
};
|
|
1911
|
+
};
|
|
1912
|
+
sourceId?: number | undefined | undefined;
|
|
1913
|
+
testnet?: boolean | undefined | undefined;
|
|
1914
|
+
custom?: Record<string, unknown> | undefined;
|
|
1915
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
1916
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1917
|
+
formatters?: undefined;
|
|
1918
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
1919
|
+
client: viem.Client;
|
|
1920
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
1921
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
1922
|
+
client: viem.Client;
|
|
1923
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
1924
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
1925
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
1926
|
+
}] | undefined;
|
|
1927
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1928
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
1929
|
+
}, {
|
|
1930
|
+
blockExplorers: {
|
|
1931
|
+
readonly default: {
|
|
1932
|
+
readonly name: "Etherscan";
|
|
1933
|
+
readonly url: "https://etherscan.io";
|
|
1934
|
+
readonly apiUrl: "https://api.etherscan.io/api";
|
|
1935
|
+
};
|
|
1936
|
+
};
|
|
1937
|
+
blockTime: 12000;
|
|
1938
|
+
contracts: {
|
|
1939
|
+
readonly ensUniversalResolver: {
|
|
1940
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
1941
|
+
readonly blockCreated: 23085558;
|
|
1942
|
+
};
|
|
1943
|
+
readonly multicall3: {
|
|
1944
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
1945
|
+
readonly blockCreated: 14353601;
|
|
1946
|
+
};
|
|
1947
|
+
};
|
|
1948
|
+
ensTlds?: readonly string[] | undefined;
|
|
1949
|
+
id: 1;
|
|
1950
|
+
name: "Ethereum";
|
|
1951
|
+
nativeCurrency: {
|
|
1952
|
+
readonly name: "Ether";
|
|
1953
|
+
readonly symbol: "ETH";
|
|
1954
|
+
readonly decimals: 18;
|
|
1955
|
+
};
|
|
1956
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
1957
|
+
rpcUrls: {
|
|
1958
|
+
readonly default: {
|
|
1959
|
+
readonly http: readonly ["https://eth.merkle.io"];
|
|
1960
|
+
};
|
|
1961
|
+
};
|
|
1962
|
+
sourceId?: number | undefined | undefined;
|
|
1963
|
+
testnet?: boolean | undefined | undefined;
|
|
1964
|
+
custom?: Record<string, unknown> | undefined;
|
|
1965
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
1966
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1967
|
+
formatters?: undefined;
|
|
1968
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
1969
|
+
client: viem.Client;
|
|
1970
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
1971
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
1972
|
+
client: viem.Client;
|
|
1973
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
1974
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
1975
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
1976
|
+
}] | undefined;
|
|
1977
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1978
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
1979
|
+
}], {
|
|
1881
1980
|
[lumiaTestnetChain.id]: viem.HttpTransport<undefined, false> | viem.FallbackTransport<viem.HttpTransport<undefined, false>[]>;
|
|
1882
1981
|
[lumiaMainnetChain.id]: viem.HttpTransport<undefined, false> | viem.FallbackTransport<viem.HttpTransport<undefined, false>[]>;
|
|
1982
|
+
56: viem.HttpTransport<undefined, false>;
|
|
1983
|
+
1: viem.HttpTransport<undefined, false>;
|
|
1883
1984
|
}, readonly wagmi.CreateConnectorFn[]>;
|
|
1884
1985
|
|
|
1885
1986
|
declare function getExplorerUrl(): string;
|
|
@@ -2345,7 +2446,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2345
2446
|
bridgeMenu: {
|
|
2346
2447
|
title: string;
|
|
2347
2448
|
labels: {
|
|
2348
|
-
|
|
2449
|
+
sender: string;
|
|
2349
2450
|
bridgeAsset: string;
|
|
2350
2451
|
selectToken: string;
|
|
2351
2452
|
estimations: string;
|
|
@@ -2369,22 +2470,28 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2369
2470
|
operationHash: string;
|
|
2370
2471
|
};
|
|
2371
2472
|
actions: {
|
|
2473
|
+
connectWallet: string;
|
|
2372
2474
|
bridge: string;
|
|
2475
|
+
estimateQuote: string;
|
|
2373
2476
|
bridgeAsset: string;
|
|
2374
2477
|
confirmBridge: string;
|
|
2375
2478
|
};
|
|
2376
2479
|
statuses: {
|
|
2377
|
-
qouteEstimating: string;
|
|
2378
|
-
switchingWalletChain: string;
|
|
2379
2480
|
txPrepare: string;
|
|
2380
2481
|
txSending: string;
|
|
2381
2482
|
txSent: string;
|
|
2382
|
-
|
|
2483
|
+
};
|
|
2484
|
+
consent: {
|
|
2485
|
+
recipient: string;
|
|
2486
|
+
lostFunds: string;
|
|
2383
2487
|
};
|
|
2384
2488
|
errors: {
|
|
2489
|
+
directWalletWarn: string;
|
|
2385
2490
|
routeUnavailable: string;
|
|
2386
2491
|
noConnections: string;
|
|
2387
2492
|
wrongNetwork: string;
|
|
2493
|
+
noHistory: string;
|
|
2494
|
+
unsupportedNetwork: string;
|
|
2388
2495
|
};
|
|
2389
2496
|
};
|
|
2390
2497
|
receiveMenu: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1876,10 +1876,111 @@ declare function createAccountAbstractionError(params: {
|
|
|
1876
1876
|
* Wagmi config for RainbowKit and wallet connections.
|
|
1877
1877
|
* Note: Balance fetching uses dynamic publicClient from session store,
|
|
1878
1878
|
* so chains don't need to be listed here for balance queries.
|
|
1879
|
-
|
|
1880
|
-
|
|
1879
|
+
*
|
|
1880
|
+
* All bridge-supported chains must be listed here so switchChainAsync
|
|
1881
|
+
* can switch to them without throwing "Chain not configured".
|
|
1882
|
+
*/
|
|
1883
|
+
declare const wagmiConfig: wagmi.Config<readonly [viem.Chain, viem.Chain, {
|
|
1884
|
+
blockExplorers: {
|
|
1885
|
+
readonly default: {
|
|
1886
|
+
readonly name: "BscScan";
|
|
1887
|
+
readonly url: "https://bscscan.com";
|
|
1888
|
+
readonly apiUrl: "https://api.bscscan.com/api";
|
|
1889
|
+
};
|
|
1890
|
+
};
|
|
1891
|
+
blockTime: 750;
|
|
1892
|
+
contracts: {
|
|
1893
|
+
readonly multicall3: {
|
|
1894
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
1895
|
+
readonly blockCreated: 15921452;
|
|
1896
|
+
};
|
|
1897
|
+
};
|
|
1898
|
+
ensTlds?: readonly string[] | undefined;
|
|
1899
|
+
id: 56;
|
|
1900
|
+
name: "BNB Smart Chain";
|
|
1901
|
+
nativeCurrency: {
|
|
1902
|
+
readonly decimals: 18;
|
|
1903
|
+
readonly name: "BNB";
|
|
1904
|
+
readonly symbol: "BNB";
|
|
1905
|
+
};
|
|
1906
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
1907
|
+
rpcUrls: {
|
|
1908
|
+
readonly default: {
|
|
1909
|
+
readonly http: readonly ["https://56.rpc.thirdweb.com"];
|
|
1910
|
+
};
|
|
1911
|
+
};
|
|
1912
|
+
sourceId?: number | undefined | undefined;
|
|
1913
|
+
testnet?: boolean | undefined | undefined;
|
|
1914
|
+
custom?: Record<string, unknown> | undefined;
|
|
1915
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
1916
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1917
|
+
formatters?: undefined;
|
|
1918
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
1919
|
+
client: viem.Client;
|
|
1920
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
1921
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
1922
|
+
client: viem.Client;
|
|
1923
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
1924
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
1925
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
1926
|
+
}] | undefined;
|
|
1927
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1928
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
1929
|
+
}, {
|
|
1930
|
+
blockExplorers: {
|
|
1931
|
+
readonly default: {
|
|
1932
|
+
readonly name: "Etherscan";
|
|
1933
|
+
readonly url: "https://etherscan.io";
|
|
1934
|
+
readonly apiUrl: "https://api.etherscan.io/api";
|
|
1935
|
+
};
|
|
1936
|
+
};
|
|
1937
|
+
blockTime: 12000;
|
|
1938
|
+
contracts: {
|
|
1939
|
+
readonly ensUniversalResolver: {
|
|
1940
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
1941
|
+
readonly blockCreated: 23085558;
|
|
1942
|
+
};
|
|
1943
|
+
readonly multicall3: {
|
|
1944
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
1945
|
+
readonly blockCreated: 14353601;
|
|
1946
|
+
};
|
|
1947
|
+
};
|
|
1948
|
+
ensTlds?: readonly string[] | undefined;
|
|
1949
|
+
id: 1;
|
|
1950
|
+
name: "Ethereum";
|
|
1951
|
+
nativeCurrency: {
|
|
1952
|
+
readonly name: "Ether";
|
|
1953
|
+
readonly symbol: "ETH";
|
|
1954
|
+
readonly decimals: 18;
|
|
1955
|
+
};
|
|
1956
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
1957
|
+
rpcUrls: {
|
|
1958
|
+
readonly default: {
|
|
1959
|
+
readonly http: readonly ["https://eth.merkle.io"];
|
|
1960
|
+
};
|
|
1961
|
+
};
|
|
1962
|
+
sourceId?: number | undefined | undefined;
|
|
1963
|
+
testnet?: boolean | undefined | undefined;
|
|
1964
|
+
custom?: Record<string, unknown> | undefined;
|
|
1965
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
1966
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1967
|
+
formatters?: undefined;
|
|
1968
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
1969
|
+
client: viem.Client;
|
|
1970
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
1971
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
1972
|
+
client: viem.Client;
|
|
1973
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
1974
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
1975
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
1976
|
+
}] | undefined;
|
|
1977
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1978
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
1979
|
+
}], {
|
|
1881
1980
|
[lumiaTestnetChain.id]: viem.HttpTransport<undefined, false> | viem.FallbackTransport<viem.HttpTransport<undefined, false>[]>;
|
|
1882
1981
|
[lumiaMainnetChain.id]: viem.HttpTransport<undefined, false> | viem.FallbackTransport<viem.HttpTransport<undefined, false>[]>;
|
|
1982
|
+
56: viem.HttpTransport<undefined, false>;
|
|
1983
|
+
1: viem.HttpTransport<undefined, false>;
|
|
1883
1984
|
}, readonly wagmi.CreateConnectorFn[]>;
|
|
1884
1985
|
|
|
1885
1986
|
declare function getExplorerUrl(): string;
|
|
@@ -2345,7 +2446,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2345
2446
|
bridgeMenu: {
|
|
2346
2447
|
title: string;
|
|
2347
2448
|
labels: {
|
|
2348
|
-
|
|
2449
|
+
sender: string;
|
|
2349
2450
|
bridgeAsset: string;
|
|
2350
2451
|
selectToken: string;
|
|
2351
2452
|
estimations: string;
|
|
@@ -2369,22 +2470,28 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2369
2470
|
operationHash: string;
|
|
2370
2471
|
};
|
|
2371
2472
|
actions: {
|
|
2473
|
+
connectWallet: string;
|
|
2372
2474
|
bridge: string;
|
|
2475
|
+
estimateQuote: string;
|
|
2373
2476
|
bridgeAsset: string;
|
|
2374
2477
|
confirmBridge: string;
|
|
2375
2478
|
};
|
|
2376
2479
|
statuses: {
|
|
2377
|
-
qouteEstimating: string;
|
|
2378
|
-
switchingWalletChain: string;
|
|
2379
2480
|
txPrepare: string;
|
|
2380
2481
|
txSending: string;
|
|
2381
2482
|
txSent: string;
|
|
2382
|
-
|
|
2483
|
+
};
|
|
2484
|
+
consent: {
|
|
2485
|
+
recipient: string;
|
|
2486
|
+
lostFunds: string;
|
|
2383
2487
|
};
|
|
2384
2488
|
errors: {
|
|
2489
|
+
directWalletWarn: string;
|
|
2385
2490
|
routeUnavailable: string;
|
|
2386
2491
|
noConnections: string;
|
|
2387
2492
|
wrongNetwork: string;
|
|
2493
|
+
noHistory: string;
|
|
2494
|
+
unsupportedNetwork: string;
|
|
2388
2495
|
};
|
|
2389
2496
|
};
|
|
2390
2497
|
receiveMenu: {
|