@pancakeswap/swap-sdk-evm 1.2.0 → 1.2.2
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/abis/B20.d.ts +90 -0
- package/dist/abis/B20.d.ts.map +1 -0
- package/dist/abis/ERC165.d.ts +17 -0
- package/dist/abis/ERC165.d.ts.map +1 -0
- package/dist/abis/ScaledUIAmount.d.ts +116 -0
- package/dist/abis/ScaledUIAmount.d.ts.map +1 -0
- package/dist/b20.d.ts +62 -0
- package/dist/b20.d.ts.map +1 -0
- package/dist/constants.d.ts +9 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +366 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +325 -8
- package/dist/index.mjs.map +1 -1
- package/dist/scaledUIAmount.d.ts +424 -0
- package/dist/scaledUIAmount.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base B20 Asset ABI fragments (Coinbase's `IB20Asset`).
|
|
3
|
+
*
|
|
4
|
+
* B20's ASSET variant has the same cosmetic display multiplier as ERC-8056, under different names.
|
|
5
|
+
* Probed on Base mainnet 2026-07-28: `multiplier()` / `WAD_PRECISION()` / `toScaledBalance()` work;
|
|
6
|
+
* `uiMultiplier()`, the pending getters and ALL of `supportsInterface()` revert. ERC-8056
|
|
7
|
+
* conformance exists in base-std (PR #173) but is not deployed.
|
|
8
|
+
*
|
|
9
|
+
* https://docs.base.org/base-chain/specs/upgrades/beryl/b20
|
|
10
|
+
*/
|
|
11
|
+
export declare const b20AssetAbi: readonly [{
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "multiplier";
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly outputs: readonly [{
|
|
16
|
+
readonly type: "uint256";
|
|
17
|
+
}];
|
|
18
|
+
readonly stateMutability: "view";
|
|
19
|
+
}, {
|
|
20
|
+
readonly type: "function";
|
|
21
|
+
readonly name: "WAD_PRECISION";
|
|
22
|
+
readonly inputs: readonly [];
|
|
23
|
+
readonly outputs: readonly [{
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "view";
|
|
27
|
+
}, {
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
readonly name: "toScaledBalance";
|
|
30
|
+
readonly inputs: readonly [{
|
|
31
|
+
readonly name: "rawBalance";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
}];
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}];
|
|
37
|
+
readonly stateMutability: "view";
|
|
38
|
+
}, {
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
readonly name: "toRawBalance";
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly name: "scaledBalance";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}];
|
|
45
|
+
readonly outputs: readonly [{
|
|
46
|
+
readonly name: "rawBalance";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}];
|
|
49
|
+
readonly stateMutability: "view";
|
|
50
|
+
}, {
|
|
51
|
+
readonly type: "function";
|
|
52
|
+
readonly name: "scaledBalanceOf";
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly name: "account";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}];
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "view";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "event";
|
|
63
|
+
readonly name: "UIMultiplierUpdated";
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly name: "oldMultiplier";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
readonly indexed: false;
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "newMultiplier";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
readonly indexed: false;
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "effectiveAtTimestamp";
|
|
74
|
+
readonly type: "uint256";
|
|
75
|
+
readonly indexed: false;
|
|
76
|
+
}];
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "event";
|
|
79
|
+
readonly name: "MultiplierUpdateCancelled";
|
|
80
|
+
readonly inputs: readonly [{
|
|
81
|
+
readonly name: "cancelledMultiplier";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
readonly indexed: false;
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "cancelledEffectiveAt";
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
readonly indexed: false;
|
|
88
|
+
}];
|
|
89
|
+
}];
|
|
90
|
+
//# sourceMappingURL=B20.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"B20.d.ts","sourceRoot":"","sources":["../../src/abis/B20.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4Dd,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal ERC-165 ABI fragment — just the `supportsInterface(bytes4)` view.
|
|
3
|
+
* Used to probe whether a contract advertises support for a given interface ID.
|
|
4
|
+
*/
|
|
5
|
+
export declare const erc165Abi: readonly [{
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly name: "supportsInterface";
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly name: "interfaceId";
|
|
10
|
+
readonly type: "bytes4";
|
|
11
|
+
}];
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly type: "bool";
|
|
14
|
+
}];
|
|
15
|
+
readonly stateMutability: "view";
|
|
16
|
+
}];
|
|
17
|
+
//# sourceMappingURL=ERC165.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC165.d.ts","sourceRoot":"","sources":["../../src/abis/ERC165.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;EAQZ,CAAA"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ERC-8056 (Scaled UI Amount) ABI fragments.
|
|
3
|
+
*
|
|
4
|
+
* Based on the `IScaledUIAmount` interface from the BNB Chain partner integration doc
|
|
5
|
+
* v1.0 (8 Apr 2026). The spec itself is in Draft as of Oct 2025; these fragments are
|
|
6
|
+
* pinned against the concrete implementation Binance is deploying for Stock Tokens.
|
|
7
|
+
*
|
|
8
|
+
* Spec: https://eips.ethereum.org/EIPS/eip-8056
|
|
9
|
+
*
|
|
10
|
+
* Notes:
|
|
11
|
+
* - `newUIMultiplier` and `effectiveAt` are optional getters in the spec. Real
|
|
12
|
+
* implementations may or may not expose them — reads must use `allowFailure: true`.
|
|
13
|
+
* - `totalSupplyUI()` does NOT exist on Binance Stock Tokens per the partner doc FAQ;
|
|
14
|
+
* compute as `toUIAmount(totalSupply())` instead.
|
|
15
|
+
* - All on-chain helpers (`toUIAmount`, `fromUIAmount`, `balanceOfUI`) match the
|
|
16
|
+
* contract's rounding exactly; prefer them over JS math when available.
|
|
17
|
+
*/
|
|
18
|
+
export declare const scaledUIAmountAbi: readonly [{
|
|
19
|
+
readonly type: "function";
|
|
20
|
+
readonly name: "uiMultiplier";
|
|
21
|
+
readonly inputs: readonly [];
|
|
22
|
+
readonly outputs: readonly [{
|
|
23
|
+
readonly type: "uint256";
|
|
24
|
+
}];
|
|
25
|
+
readonly stateMutability: "view";
|
|
26
|
+
}, {
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
readonly name: "toUIAmount";
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly name: "rawAmount";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}];
|
|
33
|
+
readonly outputs: readonly [{
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}];
|
|
36
|
+
readonly stateMutability: "view";
|
|
37
|
+
}, {
|
|
38
|
+
readonly type: "function";
|
|
39
|
+
readonly name: "fromUIAmount";
|
|
40
|
+
readonly inputs: readonly [{
|
|
41
|
+
readonly name: "uiAmount";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}];
|
|
44
|
+
readonly outputs: readonly [{
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
}];
|
|
47
|
+
readonly stateMutability: "view";
|
|
48
|
+
}, {
|
|
49
|
+
readonly type: "function";
|
|
50
|
+
readonly name: "balanceOfUI";
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly name: "account";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
}];
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
}, {
|
|
60
|
+
readonly type: "function";
|
|
61
|
+
readonly name: "newUIMultiplier";
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly outputs: readonly [{
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}];
|
|
66
|
+
readonly stateMutability: "view";
|
|
67
|
+
}, {
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
readonly name: "effectiveAt";
|
|
70
|
+
readonly inputs: readonly [];
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}];
|
|
74
|
+
readonly stateMutability: "view";
|
|
75
|
+
}, {
|
|
76
|
+
readonly type: "event";
|
|
77
|
+
readonly name: "UIMultiplierUpdated";
|
|
78
|
+
readonly inputs: readonly [{
|
|
79
|
+
readonly name: "oldMultiplier";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
readonly indexed: false;
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "newMultiplier";
|
|
84
|
+
readonly type: "uint256";
|
|
85
|
+
readonly indexed: false;
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "setAtTimestamp";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
readonly indexed: false;
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "effectiveAtTimestamp";
|
|
92
|
+
readonly type: "uint256";
|
|
93
|
+
readonly indexed: false;
|
|
94
|
+
}];
|
|
95
|
+
}, {
|
|
96
|
+
readonly type: "event";
|
|
97
|
+
readonly name: "TransferWithUIAmount";
|
|
98
|
+
readonly inputs: readonly [{
|
|
99
|
+
readonly name: "from";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
readonly indexed: true;
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "to";
|
|
104
|
+
readonly type: "address";
|
|
105
|
+
readonly indexed: true;
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "amount";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
readonly indexed: false;
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "uiAmount";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
readonly indexed: false;
|
|
114
|
+
}];
|
|
115
|
+
}];
|
|
116
|
+
//# sourceMappingURL=ScaledUIAmount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScaledUIAmount.d.ts","sourceRoot":"","sources":["../../src/abis/ScaledUIAmount.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyEpB,CAAA"}
|
package/dist/b20.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base B20 — extension module for the scaled-UI subsystem.
|
|
3
|
+
*
|
|
4
|
+
* Owns everything B20-specific: address recognition, precompile addresses, revert decoding.
|
|
5
|
+
* Nothing outside this file and its ABI sibling needs to know B20 exists.
|
|
6
|
+
*
|
|
7
|
+
* Detection is by address prefix, not ERC-165: `supportsInterface` REVERTS on live B20 tokens for
|
|
8
|
+
* every id including ERC-165's own, so the probe could only ever answer "no". Addresses are
|
|
9
|
+
* self-describing instead — `[10-byte prefix][1-byte variant][9-byte keccak(deployer, salt)]` —
|
|
10
|
+
* so the variant is recoverable with zero RPC.
|
|
11
|
+
*
|
|
12
|
+
* https://docs.base.org/base-chain/specs/upgrades/beryl/b20
|
|
13
|
+
*/
|
|
14
|
+
import { ChainId } from '@pancakeswap/chains';
|
|
15
|
+
import type { Address } from 'viem';
|
|
16
|
+
/** Detection is gated on these so a `0xb2000…` vanity address elsewhere can't be mistaken for B20. */
|
|
17
|
+
export declare const B20_SUPPORTED_CHAIN_IDS: readonly [ChainId.BASE, ChainId.BASE_SEPOLIA];
|
|
18
|
+
export type B20SupportedChainId = (typeof B20_SUPPORTED_CHAIN_IDS)[number];
|
|
19
|
+
/** The 10-byte prefix shared by every B20 token, lowercase, without `0x`. */
|
|
20
|
+
export declare const B20_ADDRESS_PREFIX: "b2000000000000000000";
|
|
21
|
+
/** Encoded in address byte `[10]`. */
|
|
22
|
+
export declare enum B20Variant {
|
|
23
|
+
ASSET = 0,
|
|
24
|
+
STABLECOIN = 1
|
|
25
|
+
}
|
|
26
|
+
export declare const B20_FACTORY_ADDRESS: "0xB20f000000000000000000000000000000000000";
|
|
27
|
+
export declare const B20_ACTIVATION_REGISTRY_ADDRESS: "0x8453000000000000000000000000000000000001";
|
|
28
|
+
export declare const B20_POLICY_REGISTRY_ADDRESS: "0x8453000000000000000000000000000000000002";
|
|
29
|
+
export declare function isB20SupportedChainId(chainId?: number): chainId is B20SupportedChainId;
|
|
30
|
+
/** Chain-agnostic. Verified equivalent to the factory's own `isB20()` over 24 cases. */
|
|
31
|
+
export declare function isB20Address(address?: string | null): boolean;
|
|
32
|
+
export declare function getB20Variant(address?: string | null): B20Variant | undefined;
|
|
33
|
+
/** Only the ASSET variant carries a multiplier, so a B20 stablecoin must not be treated as scaled. */
|
|
34
|
+
export declare function isB20AssetToken(chainId?: number, address?: string | null): boolean;
|
|
35
|
+
export declare const isB20AssetAddress: (chainId: number | undefined, address: Address | undefined) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* B20 raises ABI-encoded custom errors, and a swap reverts through the router — whose ABI doesn't
|
|
38
|
+
* declare them — so viem can't name them and only the bare 4-byte selector survives. Matching it is
|
|
39
|
+
* the only reliable hook. `PausableFeature` is an enum, hence `uint8`. Verified against `IB20.sol`.
|
|
40
|
+
*/
|
|
41
|
+
export declare const B20_ERROR_SELECTORS: {
|
|
42
|
+
readonly '0xa43fec12': "PolicyForbids";
|
|
43
|
+
readonly '0xfd8c4245': "ContractPaused";
|
|
44
|
+
readonly '0xcccad523': "PolicyNotFound";
|
|
45
|
+
readonly '0xcdd98a4a': "UnsupportedPolicyType";
|
|
46
|
+
readonly '0xf58f733a': "SupplyCapExceeded";
|
|
47
|
+
readonly '0x6f12f3dc': "InvalidMultiplier";
|
|
48
|
+
};
|
|
49
|
+
export type B20ErrorName = (typeof B20_ERROR_SELECTORS)[keyof typeof B20_ERROR_SELECTORS];
|
|
50
|
+
export declare const B20_PAUSABLE_FEATURES: readonly ["TRANSFER", "MINT", "BURN"];
|
|
51
|
+
export type B20PausableFeature = (typeof B20_PAUSABLE_FEATURES)[number];
|
|
52
|
+
export type B20RevertMatch = {
|
|
53
|
+
name: B20ErrorName;
|
|
54
|
+
/** Only for `ContractPaused`, when the revert data carried a decodable feature. */
|
|
55
|
+
feature?: B20PausableFeature;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Scan an error payload for a known B20 custom error. Takes a flattened string so it stays
|
|
59
|
+
* dependency-free; returns `undefined` so callers keep their generic handling.
|
|
60
|
+
*/
|
|
61
|
+
export declare function matchB20RevertError(input?: string | null): B20RevertMatch | undefined;
|
|
62
|
+
//# sourceMappingURL=b20.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b20.d.ts","sourceRoot":"","sources":["../src/b20.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,sGAAsG;AACtG,eAAO,MAAM,uBAAuB,+CAAgD,CAAA;AAEpF,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE1E,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,EAAG,sBAA+B,CAAA;AAEjE,sCAAsC;AACtC,oBAAY,UAAU;IACpB,KAAK,IAAI;IACT,UAAU,IAAI;CACf;AAED,eAAO,MAAM,mBAAmB,EAAG,4CAAqD,CAAA;AACxF,eAAO,MAAM,+BAA+B,EAAG,4CAAqD,CAAA;AACpG,eAAO,MAAM,2BAA2B,EAAG,4CAAqD,CAAA;AAShG,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,IAAI,mBAAmB,CAEtF;AAED,wFAAwF;AACxF,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAI7D;AAED,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,CAW7E;AAED,sGAAsG;AACtG,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAElF;AAED,eAAO,MAAM,iBAAiB,YAAa,MAAM,GAAG,SAAS,WAAW,OAAO,GAAG,SAAS,KAAG,OAC3D,CAAA;AAMnC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;CAOtB,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAA;AAEzF,eAAO,MAAM,qBAAqB,uCAAwC,CAAA;AAC1E,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvE,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,YAAY,CAAA;IAClB,mFAAmF;IACnF,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAID;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,cAAc,GAAG,SAAS,CAkBrF"}
|
package/dist/constants.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const WETH9: {
|
|
|
23
23
|
84532: ERC20Token;
|
|
24
24
|
143: ERC20Token;
|
|
25
25
|
10143: ERC20Token;
|
|
26
|
+
4663: ERC20Token;
|
|
26
27
|
};
|
|
27
28
|
export declare const WBNB: {
|
|
28
29
|
1: ERC20Token;
|
|
@@ -52,6 +53,7 @@ export declare const WNATIVE: {
|
|
|
52
53
|
84532: ERC20Token;
|
|
53
54
|
143: ERC20Token;
|
|
54
55
|
10143: ERC20Token;
|
|
56
|
+
4663: ERC20Token;
|
|
55
57
|
};
|
|
56
58
|
export declare const NATIVE: {
|
|
57
59
|
1: {
|
|
@@ -65,7 +67,7 @@ export declare const NATIVE: {
|
|
|
65
67
|
decimals: number;
|
|
66
68
|
};
|
|
67
69
|
56: {
|
|
68
|
-
readonly name: "Binance Chain
|
|
70
|
+
readonly name: "Binance Chain";
|
|
69
71
|
readonly symbol: "BNB";
|
|
70
72
|
readonly decimals: 18;
|
|
71
73
|
};
|
|
@@ -105,7 +107,7 @@ export declare const NATIVE: {
|
|
|
105
107
|
readonly decimals: 18;
|
|
106
108
|
};
|
|
107
109
|
204: {
|
|
108
|
-
readonly name: "Binance Chain
|
|
110
|
+
readonly name: "Binance Chain";
|
|
109
111
|
readonly symbol: "BNB";
|
|
110
112
|
readonly decimals: 18;
|
|
111
113
|
};
|
|
@@ -154,5 +156,10 @@ export declare const NATIVE: {
|
|
|
154
156
|
symbol: string;
|
|
155
157
|
decimals: number;
|
|
156
158
|
};
|
|
159
|
+
4663: {
|
|
160
|
+
readonly name: "Ether";
|
|
161
|
+
readonly symbol: "ETH";
|
|
162
|
+
readonly decimals: 18;
|
|
163
|
+
};
|
|
157
164
|
};
|
|
158
165
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD,eAAO,MAAM,YAAY,SAAmB,CAAA;AAC5C,eAAO,MAAM,mBAAmB,SAAmB,CAAA;AAEnD,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD,eAAO,MAAM,YAAY,SAAmB,CAAA;AAC5C,eAAO,MAAM,mBAAmB,SAAmB,CAAA;AAEnD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;CAyKjB,CAAA;AAED,eAAO,MAAM,IAAI;;;;;;CAyChB,CAAA;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;CAsB4B,CAAA;AAUhD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DlB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
2
|
export * from './entities';
|
|
3
3
|
export * from './abis/ERC20';
|
|
4
|
+
export * from './abis/ERC165';
|
|
5
|
+
export * from './abis/ScaledUIAmount';
|
|
6
|
+
export * from './abis/B20';
|
|
4
7
|
export * from './utils';
|
|
5
8
|
export * from './ether';
|
|
9
|
+
export * from './scaledUIAmount';
|
|
10
|
+
export * from './b20';
|
|
6
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,OAAO,CAAA"}
|