@chainflip/sdk 1.3.0-beta.6 → 1.4.0-alpha.0
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/{broker-6ZGPANTJ.mjs → broker-5HOSXLXI.mjs} +15 -6
- package/dist/chunk-75XPVTLV.mjs +65 -0
- package/dist/{chunk-TOAMIDO2.mjs → chunk-HT34JS2O.mjs} +49 -69
- package/dist/{chunk-QNH6727P.mjs → chunk-Q6JCV35Y.mjs} +290 -78
- package/dist/{contracts-b0BB7B5m.d.mts → contracts-ZLesmWHT.d.mts} +4 -2
- package/dist/{contracts-b0BB7B5m.d.ts → contracts-ZLesmWHT.d.ts} +4 -2
- package/dist/funding.d.mts +1 -1
- package/dist/funding.d.ts +1 -1
- package/dist/funding.js +328 -150
- package/dist/funding.mjs +8 -6
- package/dist/swap.d.mts +58 -50
- package/dist/swap.d.ts +58 -50
- package/dist/swap.js +474 -249
- package/dist/swap.mjs +70 -79
- package/package.json +2 -2
- package/dist/chunk-J5DGP4KI.mjs +0 -31
|
@@ -37,8 +37,8 @@ declare const chainConstants: {
|
|
|
37
37
|
};
|
|
38
38
|
type AssetOfChain<C extends Chain> = (typeof chainConstants)[C]['assets'][number];
|
|
39
39
|
type UncheckedAssetAndChain = {
|
|
40
|
-
asset: Asset
|
|
41
|
-
chain: Chain
|
|
40
|
+
asset: Asset;
|
|
41
|
+
chain: Chain;
|
|
42
42
|
};
|
|
43
43
|
type ChainAssetMap<T> = {
|
|
44
44
|
[C in Chain]: {
|
|
@@ -49,6 +49,8 @@ type ChainMap<T> = {
|
|
|
49
49
|
[C in Chain]: T;
|
|
50
50
|
};
|
|
51
51
|
declare function getInternalAsset(asset: UncheckedAssetAndChain): InternalAsset;
|
|
52
|
+
declare function getInternalAsset(asset: UncheckedAssetAndChain, assert: true): InternalAsset;
|
|
53
|
+
declare function getInternalAsset(asset: UncheckedAssetAndChain, assert: boolean): InternalAsset | null;
|
|
52
54
|
|
|
53
55
|
type TransactionOptions = {
|
|
54
56
|
gasLimit?: bigint;
|
|
@@ -37,8 +37,8 @@ declare const chainConstants: {
|
|
|
37
37
|
};
|
|
38
38
|
type AssetOfChain<C extends Chain> = (typeof chainConstants)[C]['assets'][number];
|
|
39
39
|
type UncheckedAssetAndChain = {
|
|
40
|
-
asset: Asset
|
|
41
|
-
chain: Chain
|
|
40
|
+
asset: Asset;
|
|
41
|
+
chain: Chain;
|
|
42
42
|
};
|
|
43
43
|
type ChainAssetMap<T> = {
|
|
44
44
|
[C in Chain]: {
|
|
@@ -49,6 +49,8 @@ type ChainMap<T> = {
|
|
|
49
49
|
[C in Chain]: T;
|
|
50
50
|
};
|
|
51
51
|
declare function getInternalAsset(asset: UncheckedAssetAndChain): InternalAsset;
|
|
52
|
+
declare function getInternalAsset(asset: UncheckedAssetAndChain, assert: true): InternalAsset;
|
|
53
|
+
declare function getInternalAsset(asset: UncheckedAssetAndChain, assert: boolean): InternalAsset | null;
|
|
52
54
|
|
|
53
55
|
type TransactionOptions = {
|
|
54
56
|
gasLimit?: bigint;
|
package/dist/funding.d.mts
CHANGED
package/dist/funding.d.ts
CHANGED