sablier 3.10.0 → 3.11.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/CHANGELOG.md +18 -0
- package/dist/cjs/evm/chains/specs.js +9 -0
- package/dist/cjs/evm/chains/specs.js.map +1 -1
- package/dist/cjs/evm/helpers.js +2 -1
- package/dist/cjs/evm/helpers.js.map +1 -1
- package/dist/cjs/evm/index.js +2 -1
- package/dist/cjs/evm/index.js.map +1 -1
- package/dist/cjs/evm/releases/features.js +10 -0
- package/dist/cjs/evm/releases/features.js.map +1 -1
- package/dist/cjs/evm/types.js.map +1 -1
- package/dist/esm/evm/chains/specs.js +9 -0
- package/dist/esm/evm/chains/specs.js.map +1 -1
- package/dist/esm/evm/helpers.js +1 -1
- package/dist/esm/evm/helpers.js.map +1 -1
- package/dist/esm/evm/index.js +1 -1
- package/dist/esm/evm/index.js.map +1 -1
- package/dist/esm/evm/releases/features.js +9 -0
- package/dist/esm/evm/releases/features.js.map +1 -1
- package/dist/esm/evm/types.js.map +1 -1
- package/dist/types/evm/chains/specs.d.ts +9 -0
- package/dist/types/evm/chains/specs.d.ts.map +1 -1
- package/dist/types/evm/helpers.d.ts +1 -1
- package/dist/types/evm/helpers.d.ts.map +1 -1
- package/dist/types/evm/index.d.ts +1 -1
- package/dist/types/evm/index.d.ts.map +1 -1
- package/dist/types/evm/releases/features.d.ts +7 -0
- package/dist/types/evm/releases/features.d.ts.map +1 -1
- package/dist/types/evm/types.d.ts +1 -0
- package/dist/types/evm/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,8 @@ The format is based on [Common Changelog](https://common-changelog.org/).
|
|
|
9
9
|
> Starting with v2.0.0, this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). In v1.x, it
|
|
10
10
|
> did not always follow Semantic Versioning.
|
|
11
11
|
|
|
12
|
+
[3.11.1]: https://github.com/sablier-labs/sdk/releases/tag/v3.11.1
|
|
13
|
+
[3.11.0]: https://github.com/sablier-labs/sdk/releases/tag/v3.11.0
|
|
12
14
|
[3.10.0]: https://github.com/sablier-labs/sdk/releases/tag/v3.10.0
|
|
13
15
|
[3.9.0]: https://github.com/sablier-labs/sdk/releases/tag/v3.9.0
|
|
14
16
|
[3.8.0]: https://github.com/sablier-labs/sdk/releases/tag/v3.8.0
|
|
@@ -51,6 +53,22 @@ The format is based on [Common Changelog](https://common-changelog.org/).
|
|
|
51
53
|
[1.1.0]: https://github.com/sablier-labs/sdk/releases/tag/v1.1.0
|
|
52
54
|
[1.0.0]: https://github.com/sablier-labs/sdk/releases/tag/v1.0.0
|
|
53
55
|
|
|
56
|
+
## [3.11.1] - 2026-04-22
|
|
57
|
+
|
|
58
|
+
### Changed
|
|
59
|
+
|
|
60
|
+
- Use `snowscan.xyz` as the default block explorer for the Avalanche chain
|
|
61
|
+
([`4a87fea`](https://github.com/sablier-labs/sdk/commit/4a87fea))
|
|
62
|
+
|
|
63
|
+
## [3.11.0] - 2026-04-22
|
|
64
|
+
|
|
65
|
+
### Added
|
|
66
|
+
|
|
67
|
+
- Add `publicWithdraw` feature flag to `LockupReleaseFeatures`, marking `lockup@v1.2` and later as allowing any caller
|
|
68
|
+
to invoke `withdraw` when `to == recipient` ([`64c033f`](https://github.com/sablier-labs/sdk/commit/64c033f))
|
|
69
|
+
- Add `supportsLockupPublicWithdraw(version)` helper exported from `sablier/evm` and the helpers entrypoint
|
|
70
|
+
([`64c033f`](https://github.com/sablier-labs/sdk/commit/64c033f))
|
|
71
|
+
|
|
54
72
|
## [3.10.0] - 2026-04-21
|
|
55
73
|
|
|
56
74
|
### Added
|
|
@@ -57,6 +57,15 @@ exports.chainSpecs = {
|
|
|
57
57
|
coinGeckoId: "avalanche-2",
|
|
58
58
|
wrapperContract: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
|
|
59
59
|
},
|
|
60
|
+
overrides: {
|
|
61
|
+
blockExplorers: {
|
|
62
|
+
default: {
|
|
63
|
+
apiUrl: "https://api.snowscan.xyz/api",
|
|
64
|
+
name: "Snowscan",
|
|
65
|
+
url: "https://snowscan.xyz",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
60
69
|
rpc: {
|
|
61
70
|
alchemy: "avax-mainnet",
|
|
62
71
|
infura: "avalanche-mainnet",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specs.js","sourceRoot":"","sources":["../../../../src/evm/chains/specs.ts"],"names":[],"mappings":";;;AAAA,wCAsCqB;AAGrB,2CAA8C;AAE9C,MAAM,UAAU,GAAG;IACjB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,OAAO;CACJ,CAAC;AAEE,QAAA,UAAU,GAAG;IAIxB,QAAQ,EAAE;QACR,IAAI,EAAE,iBAAS;QACf,IAAI,EAAE;YACJ,mBAAmB,EAAE,UAAU;YAC/B,IAAI,EAAE,IAAI;SACX;QACD,cAAc,EAAE;YACd,WAAW,EAAE,UAAU,CAAC,GAAG;SAC5B;QACD,GAAG,EAAE;YACH,OAAO,EAAE,kBAAkB;SAC5B;KACF;IAID,QAAQ,EAAE;QACR,IAAI,EAAE,iBAAS;QACf,IAAI,EAAE;YACJ,mBAAmB,EAAE,cAAc;YACnC,IAAI,EAAE,UAAU;SACjB;QACD,cAAc,EAAE;YACd,WAAW,EAAE,UAAU,CAAC,GAAG;YAC3B,eAAe,EAAE,4CAA4C;SAC9D;QACD,GAAG,EAAE;YACH,OAAO,EAAE,aAAa;YACtB,MAAM,EAAE,kBAAkB;SAC3B;KACF;IAID,eAAe,EAAE;QACf,IAAI,EAAE,wBAAgB;QACtB,IAAI,EAAE;YACJ,IAAI,EAAE,kBAAkB;SACzB;QACD,cAAc,EAAE;YACd,WAAW,EAAE,UAAU,CAAC,GAAG;SAC5B;QACD,GAAG,EAAE;YACH,MAAM,EAAE,kBAAkB;SAC3B;KACF;IAID,SAAS,EAAE;QACT,IAAI,EAAE,kBAAU;QAChB,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AE,4BAA4B;iBAClC;aACF;SACF;QACD,GAAG,EAAE;YACH,OAAO,EAAE,gBAAgB;YACzB,MAAM,EAAE,gBAAgB;SACzB;KACF;IAID,aAAa,EAAE;QACb,IAAI,EAAE,6BAAqB;QAC3B,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,gBAAgB;SACvB;QACD,cAAc,EAAE;YACd,WAAW,EAAE,UAAU,CAAC,GAAG;SAC5B;QACD,SAAS,EAAE;YACT,cAAc,EAAE;gBACd,OAAO,EAAE;oBACP,MAAM,EAAE,mDAAmD;oBAC3D,IAAI,EAAE,iBAAiB;oBACvB,GAAG,EAAE,oCAAoC;iBAC1C;aACF;SACF;KACF;CACkC,CAAC","sourcesContent":["import {\n abstract as _abstract,\n arbitrum as _arbitrum,\n arbitrumSepolia as _arbitrumSepolia,\n avalanche as _avalanche,\n base as _base,\n baseSepolia as _baseSepolia,\n battlechainTestnet as _battlechainTestnet,\n berachain as _berachain,\n blast as _blast,\n bsc as _bsc,\n chiliz as _chiliz,\n coreDao as _coreDao,\n gnosis as _gnosis,\n hyperEvm as _hyperEvm,\n lightlinkPhoenix as _lightlinkPhoenix,\n linea as _linea,\n lineaSepolia as _lineaSepolia,\n mainnet as _mainnet,\n mode as _mode,\n monad as _monad,\n morph as _morph,\n optimism as _optimism,\n optimismSepolia as _optimismSepolia,\n polygon as _polygon,\n ronin as _ronin,\n scroll as _scroll,\n sei as _sei,\n sepolia as _sepolia,\n sonic as _sonic,\n sophon as _sophon,\n superseed as _superseed,\n superseedSepolia as _superseedSepolia,\n taiko as _taiko,\n unichain as _unichain,\n xdc as _xdc,\n zksync as _zksync,\n zksyncSepoliaTestnet as _zksyncSepoliaTestnet,\n} from \"viem/chains\";\n// import { berachain } from \"viem/chains/definitions/zksync\";\nimport type { ChainSpec } from \"./builder.js\";\nimport { denergy, tangle } from \"./custom.js\";\n\nconst COIN_GECKO = {\n eth: \"ethereum\",\n mon: \"monad\",\n} as const;\n\nexport const chainSpecs = {\n /* -------------------------------------------------------------------------- */\n /* ABSTRACT */\n /* -------------------------------------------------------------------------- */\n abstract: {\n base: _abstract,\n meta: {\n coinGeckoPlatformId: \"abstract\",\n isZk: true,\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"abstract-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* ARBITRUM */\n /* -------------------------------------------------------------------------- */\n arbitrum: {\n base: _arbitrum,\n meta: {\n coinGeckoPlatformId: \"arbitrum-one\",\n name: \"Arbitrum\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1\",\n },\n rpc: {\n alchemy: \"arb-mainnet\",\n infura: \"arbitrum-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* ARBITRUM SEPOLIA */\n /* -------------------------------------------------------------------------- */\n arbitrumSepolia: {\n base: _arbitrumSepolia,\n meta: {\n slug: \"arbitrum-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n infura: \"arbitrum-sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* AVALANCHE */\n /* -------------------------------------------------------------------------- */\n avalanche: {\n base: _avalanche,\n meta: {\n coinGeckoPlatformId: \"avalanche\",\n },\n nativeCurrency: {\n coinGeckoId: \"avalanche-2\",\n wrapperContract: \"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7\",\n },\n rpc: {\n alchemy: \"avax-mainnet\",\n infura: \"avalanche-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BASE */\n /* -------------------------------------------------------------------------- */\n base: {\n base: _base,\n meta: {\n coinGeckoPlatformId: \"base\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n rpc: {\n alchemy: \"base-mainnet\",\n infura: \"base-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BASE SEPOLIA */\n /* -------------------------------------------------------------------------- */\n baseSepolia: {\n base: _baseSepolia,\n meta: {\n slug: \"base-sepolia\",\n ui: \"SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"base-sepolia\",\n infura: \"base-sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BATTLECHAIN TESTNET */\n /* -------------------------------------------------------------------------- */\n battlechainTestnet: {\n base: _battlechainTestnet,\n meta: {\n isZk: true,\n slug: \"battlechain-testnet\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BERACHAIN */\n /* -------------------------------------------------------------------------- */\n berachain: {\n base: _berachain,\n meta: {\n coinGeckoPlatformId: \"berachain\",\n },\n nativeCurrency: {\n coinGeckoId: \"berachain-bera\",\n wrapperContract: \"0x6969696969696969696969696969696969696969\",\n },\n rpc: {\n alchemy: \"berachain-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BLAST */\n /* -------------------------------------------------------------------------- */\n blast: {\n base: _blast,\n meta: {\n coinGeckoPlatformId: \"blast\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4300000000000000000000000000000000000004\",\n },\n rpc: {\n alchemy: \"blast-mainnet\",\n infura: \"blast-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BSC */\n /* -------------------------------------------------------------------------- */\n bsc: {\n base: _bsc,\n meta: {\n coinGeckoPlatformId: \"binance-smart-chain\",\n name: \"BNB Chain\",\n },\n nativeCurrency: {\n coinGeckoId: \"binancecoin\",\n wrapperContract: \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\",\n },\n rpc: {\n alchemy: \"bnb-mainnet\",\n infura: \"bsc-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* CHILIZ */\n /* -------------------------------------------------------------------------- */\n chiliz: {\n base: _chiliz,\n meta: {\n coinGeckoPlatformId: \"chiliz\",\n name: \"Chiliz\",\n },\n nativeCurrency: {\n coinGeckoId: \"chiliz\",\n },\n overrides: {\n blockExplorers: {\n default: { name: \"Explorer\", url: \"https://chiliscan.com\" },\n },\n rpcUrls: {\n default: {\n http: [\"https://rpc.chiliz.com\"],\n },\n },\n },\n },\n /* -------------------------------------------------------------------------- */\n /* CORE DAO */\n /* -------------------------------------------------------------------------- */\n coreDao: {\n base: _coreDao,\n meta: {\n coinGeckoPlatformId: \"core\",\n slug: \"core-dao\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: \"coredaoorg\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* DENERGY */\n /* -------------------------------------------------------------------------- */\n denergy: {\n base: denergy,\n meta: {},\n nativeCurrency: {\n coinGeckoId: \"watt\",\n wrapperContract: \"0x87fFB2d57f78d5A8E17db78F3290A367299b5B07\",\n },\n rpc: {\n routemesh: false,\n },\n },\n /* -------------------------------------------------------------------------- */\n /* GNOSIS */\n /* -------------------------------------------------------------------------- */\n gnosis: {\n base: _gnosis,\n meta: {\n coinGeckoPlatformId: \"xdai\",\n },\n nativeCurrency: {\n coinGeckoId: \"dai\",\n wrapperContract: \"0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1\",\n },\n rpc: {\n alchemy: \"gnosis-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* HYPEREVM */\n /* -------------------------------------------------------------------------- */\n hyperevm: {\n base: _hyperEvm,\n meta: {\n coinGeckoPlatformId: \"hyperevm\",\n },\n nativeCurrency: {\n coinGeckoId: \"hyperliquid\",\n wrapperContract: \"0x5555555555555555555555555555555555555555\",\n },\n overrides: {\n contracts: {\n multicall3: {\n address: \"0xcA11bde05977b3631167028862bE2a173976CA11\",\n blockCreated: 13_051,\n },\n },\n },\n },\n /* -------------------------------------------------------------------------- */\n /* LIGHTLINK */\n /* -------------------------------------------------------------------------- */\n lightlink: {\n base: _lightlinkPhoenix,\n meta: {\n coinGeckoPlatformId: \"lightlink\",\n name: \"Lightlink\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n },\n /* -------------------------------------------------------------------------- */\n /* LINEA */\n /* -------------------------------------------------------------------------- */\n linea: {\n base: _linea,\n meta: {\n coinGeckoPlatformId: \"linea\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f\",\n },\n rpc: {\n alchemy: \"linea-mainnet\",\n infura: \"linea-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* LINEA SEPOLIA */\n /* -------------------------------------------------------------------------- */\n lineaSepolia: {\n base: _lineaSepolia,\n meta: {\n name: \"Linea Sepolia\",\n slug: \"linea-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"linea-sepolia\",\n infura: \"linea-sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* MAINNET */\n /* -------------------------------------------------------------------------- */\n mainnet: {\n base: _mainnet,\n meta: {\n coinGeckoPlatformId: \"ethereum\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\",\n },\n rpc: {\n alchemy: \"eth-mainnet\",\n infura: \"mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* MODE */\n /* -------------------------------------------------------------------------- */\n mode: {\n base: _mode,\n meta: {\n coinGeckoPlatformId: \"mode\",\n name: \"Mode\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* MONAD */\n /* -------------------------------------------------------------------------- */\n monad: {\n base: _monad,\n meta: {\n coinGeckoPlatformId: \"monad\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.mon,\n wrapperContract: \"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A\",\n },\n overrides: {\n blockExplorers: {\n default: { name: \"Explorer\", url: \"https://monadscan.com\" },\n },\n },\n rpc: {\n alchemy: \"monad-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* MORPH */\n /* -------------------------------------------------------------------------- */\n morph: {\n base: _morph,\n meta: {\n coinGeckoPlatformId: \"morph-l2\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x5300000000000000000000000000000000000011\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* OPTIMISM */\n /* -------------------------------------------------------------------------- */\n optimism: {\n base: _optimism,\n meta: {\n coinGeckoPlatformId: \"optimistic-ethereum\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n rpc: {\n alchemy: \"opt-mainnet\",\n infura: \"optimism-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* OPTIMISM SEPOLIA */\n /* -------------------------------------------------------------------------- */\n optimismSepolia: {\n base: _optimismSepolia,\n meta: {\n slug: \"optimism-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"opt-sepolia\",\n infura: \"optimism-sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* POLYGON */\n /* -------------------------------------------------------------------------- */\n polygon: {\n base: _polygon,\n meta: {\n coinGeckoPlatformId: \"polygon-pos\",\n },\n nativeCurrency: {\n coinGeckoId: \"polygon-ecosystem-token\",\n wrapperContract: \"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270\",\n },\n rpc: {\n alchemy: \"polygon-mainnet\",\n infura: \"polygon-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* RONIN */\n /* -------------------------------------------------------------------------- */\n ronin: {\n base: _ronin,\n meta: {\n coinGeckoPlatformId: \"ronin\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: \"ronin\",\n },\n rpc: {\n alchemy: \"ronin-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SCROLL */\n /* -------------------------------------------------------------------------- */\n scroll: {\n base: _scroll,\n meta: {\n coinGeckoPlatformId: \"scroll\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x5300000000000000000000000000000000000004\",\n },\n rpc: {\n alchemy: \"scroll-mainnet\",\n infura: \"scroll-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SEI */\n /* -------------------------------------------------------------------------- */\n sei: {\n base: _sei,\n meta: {\n coinGeckoPlatformId: \"sei-v2\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: \"sei-network\",\n wrapperContract: \"0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7\",\n },\n overrides: {\n blockExplorers: {\n default: { name: \"Explorer\", url: \"https://seiscan.io\" },\n },\n rpcUrls: {\n default: {\n http: [\"https://evm-rpc.sei-apis.com\", \"https://sei.drpc.org\"],\n },\n },\n },\n rpc: {\n alchemy: \"sei-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SEPOLIA */\n /* -------------------------------------------------------------------------- */\n sepolia: {\n base: _sepolia,\n meta: {\n ui: \"SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9\",\n },\n rpc: {\n alchemy: \"eth-sepolia\",\n infura: \"sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SONIC */\n /* -------------------------------------------------------------------------- */\n sonic: {\n base: _sonic,\n meta: {\n coinGeckoPlatformId: \"sonic\",\n },\n nativeCurrency: {\n coinGeckoId: \"sonic-3\",\n wrapperContract: \"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38\",\n },\n rpc: {\n alchemy: \"sonic-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SOPHON */\n /* -------------------------------------------------------------------------- */\n sophon: {\n base: _sophon,\n meta: {\n coinGeckoPlatformId: \"sophon\",\n isZk: true,\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: \"sophon\",\n },\n overrides: {\n blockExplorers: {\n default: { name: \"Explorer\", url: \"https://sophscan.xyz\" },\n },\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SUPERSEED */\n /* -------------------------------------------------------------------------- */\n superseed: {\n base: _superseed,\n meta: {\n coinGeckoPlatformId: \"superseed\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"superseed-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SUPERSEED SEPOLIA */\n /* -------------------------------------------------------------------------- */\n superseedSepolia: {\n base: _superseedSepolia,\n meta: {\n slug: \"superseed-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n },\n /* -------------------------------------------------------------------------- */\n /* TAIKO */\n /* -------------------------------------------------------------------------- */\n taiko: {\n base: _taiko,\n meta: {\n coinGeckoPlatformId: \"taiko\",\n name: \"Taiko\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* TANGLE */\n /* -------------------------------------------------------------------------- */\n tangle: {\n base: tangle,\n meta: {},\n nativeCurrency: {\n coinGeckoId: \"tangle-network\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* UNICHAIN */\n /* -------------------------------------------------------------------------- */\n unichain: {\n base: _unichain,\n meta: {\n coinGeckoPlatformId: \"unichain\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n rpc: {\n alchemy: \"unichain-mainnet\",\n infura: \"unichain-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* XDC */\n /* -------------------------------------------------------------------------- */\n xdc: {\n base: _xdc,\n meta: {\n coinGeckoPlatformId: \"xdc-network\",\n name: \"XDC\",\n },\n nativeCurrency: {\n coinGeckoId: \"xdce-crowd-sale\",\n wrapperContract: \"0x951857744785E80e2De051c32EE7b25f9c458C42\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* ZKSYNC */\n /* -------------------------------------------------------------------------- */\n zksync: {\n base: _zksync,\n meta: {\n coinGeckoPlatformId: \"zksync\",\n isZk: true,\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91\",\n },\n overrides: {\n blockExplorers: {\n default: {\n apiUrl: \"https://block-explorer-api.mainnet.zksync.io/api\",\n name: \"ZKsync Explorer\",\n url: \"https://explorer.zksync.io\",\n },\n native: {\n apiUrl: \"https://block-explorer-api.mainnet.zksync.io/api\",\n name: \"ZKsync Explorer\",\n url: \"https://explorer.zksync.io\",\n },\n },\n },\n rpc: {\n alchemy: \"zksync-mainnet\",\n infura: \"zksync-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* ZKSYNC SEPOLIA */\n /* -------------------------------------------------------------------------- */\n zksyncSepolia: {\n base: _zksyncSepoliaTestnet,\n meta: {\n isZk: true,\n slug: \"zksync-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n overrides: {\n blockExplorers: {\n default: {\n apiUrl: \"https://block-explorer-api.sepolia.zksync.dev/api\",\n name: \"ZKsync Explorer\",\n url: \"https://sepolia.explorer.zksync.io\",\n },\n },\n },\n },\n} satisfies Record<string, ChainSpec>;\n"]}
|
|
1
|
+
{"version":3,"file":"specs.js","sourceRoot":"","sources":["../../../../src/evm/chains/specs.ts"],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EAAE;YACJ,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,gBAAgB;SACvB;QACD,cAAc,EAAE;YACd,WAAW,EAAE,UAAU,CAAC,GAAG;SAC5B;QACD,SAAS,EAAE;YACT,cAAc,EAAE;gBACd,OAAO,EAAE;oBACP,MAAM,EAAE,mDAAmD;oBAC3D,IAAI,EAAE,iBAAiB;oBACvB,GAAG,EAAE,oCAAoC;iBAC1C;aACF;SACF;KACF;CACkC,CAAC","sourcesContent":["import {\n abstract as _abstract,\n arbitrum as _arbitrum,\n arbitrumSepolia as _arbitrumSepolia,\n avalanche as _avalanche,\n base as _base,\n baseSepolia as _baseSepolia,\n battlechainTestnet as _battlechainTestnet,\n berachain as _berachain,\n blast as _blast,\n bsc as _bsc,\n chiliz as _chiliz,\n coreDao as _coreDao,\n gnosis as _gnosis,\n hyperEvm as _hyperEvm,\n lightlinkPhoenix as _lightlinkPhoenix,\n linea as _linea,\n lineaSepolia as _lineaSepolia,\n mainnet as _mainnet,\n mode as _mode,\n monad as _monad,\n morph as _morph,\n optimism as _optimism,\n optimismSepolia as _optimismSepolia,\n polygon as _polygon,\n ronin as _ronin,\n scroll as _scroll,\n sei as _sei,\n sepolia as _sepolia,\n sonic as _sonic,\n sophon as _sophon,\n superseed as _superseed,\n superseedSepolia as _superseedSepolia,\n taiko as _taiko,\n unichain as _unichain,\n xdc as _xdc,\n zksync as _zksync,\n zksyncSepoliaTestnet as _zksyncSepoliaTestnet,\n} from \"viem/chains\";\n// import { berachain } from \"viem/chains/definitions/zksync\";\nimport type { ChainSpec } from \"./builder.js\";\nimport { denergy, tangle } from \"./custom.js\";\n\nconst COIN_GECKO = {\n eth: \"ethereum\",\n mon: \"monad\",\n} as const;\n\nexport const chainSpecs = {\n /* -------------------------------------------------------------------------- */\n /* ABSTRACT */\n /* -------------------------------------------------------------------------- */\n abstract: {\n base: _abstract,\n meta: {\n coinGeckoPlatformId: \"abstract\",\n isZk: true,\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"abstract-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* ARBITRUM */\n /* -------------------------------------------------------------------------- */\n arbitrum: {\n base: _arbitrum,\n meta: {\n coinGeckoPlatformId: \"arbitrum-one\",\n name: \"Arbitrum\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1\",\n },\n rpc: {\n alchemy: \"arb-mainnet\",\n infura: \"arbitrum-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* ARBITRUM SEPOLIA */\n /* -------------------------------------------------------------------------- */\n arbitrumSepolia: {\n base: _arbitrumSepolia,\n meta: {\n slug: \"arbitrum-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n infura: \"arbitrum-sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* AVALANCHE */\n /* -------------------------------------------------------------------------- */\n avalanche: {\n base: _avalanche,\n meta: {\n coinGeckoPlatformId: \"avalanche\",\n },\n nativeCurrency: {\n coinGeckoId: \"avalanche-2\",\n wrapperContract: \"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7\",\n },\n overrides: {\n blockExplorers: {\n default: {\n apiUrl: \"https://api.snowscan.xyz/api\",\n name: \"Snowscan\",\n url: \"https://snowscan.xyz\",\n },\n },\n },\n rpc: {\n alchemy: \"avax-mainnet\",\n infura: \"avalanche-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BASE */\n /* -------------------------------------------------------------------------- */\n base: {\n base: _base,\n meta: {\n coinGeckoPlatformId: \"base\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n rpc: {\n alchemy: \"base-mainnet\",\n infura: \"base-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BASE SEPOLIA */\n /* -------------------------------------------------------------------------- */\n baseSepolia: {\n base: _baseSepolia,\n meta: {\n slug: \"base-sepolia\",\n ui: \"SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"base-sepolia\",\n infura: \"base-sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BATTLECHAIN TESTNET */\n /* -------------------------------------------------------------------------- */\n battlechainTestnet: {\n base: _battlechainTestnet,\n meta: {\n isZk: true,\n slug: \"battlechain-testnet\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BERACHAIN */\n /* -------------------------------------------------------------------------- */\n berachain: {\n base: _berachain,\n meta: {\n coinGeckoPlatformId: \"berachain\",\n },\n nativeCurrency: {\n coinGeckoId: \"berachain-bera\",\n wrapperContract: \"0x6969696969696969696969696969696969696969\",\n },\n rpc: {\n alchemy: \"berachain-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BLAST */\n /* -------------------------------------------------------------------------- */\n blast: {\n base: _blast,\n meta: {\n coinGeckoPlatformId: \"blast\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4300000000000000000000000000000000000004\",\n },\n rpc: {\n alchemy: \"blast-mainnet\",\n infura: \"blast-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* BSC */\n /* -------------------------------------------------------------------------- */\n bsc: {\n base: _bsc,\n meta: {\n coinGeckoPlatformId: \"binance-smart-chain\",\n name: \"BNB Chain\",\n },\n nativeCurrency: {\n coinGeckoId: \"binancecoin\",\n wrapperContract: \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\",\n },\n rpc: {\n alchemy: \"bnb-mainnet\",\n infura: \"bsc-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* CHILIZ */\n /* -------------------------------------------------------------------------- */\n chiliz: {\n base: _chiliz,\n meta: {\n coinGeckoPlatformId: \"chiliz\",\n name: \"Chiliz\",\n },\n nativeCurrency: {\n coinGeckoId: \"chiliz\",\n },\n overrides: {\n blockExplorers: {\n default: { name: \"Explorer\", url: \"https://chiliscan.com\" },\n },\n rpcUrls: {\n default: {\n http: [\"https://rpc.chiliz.com\"],\n },\n },\n },\n },\n /* -------------------------------------------------------------------------- */\n /* CORE DAO */\n /* -------------------------------------------------------------------------- */\n coreDao: {\n base: _coreDao,\n meta: {\n coinGeckoPlatformId: \"core\",\n slug: \"core-dao\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: \"coredaoorg\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* DENERGY */\n /* -------------------------------------------------------------------------- */\n denergy: {\n base: denergy,\n meta: {},\n nativeCurrency: {\n coinGeckoId: \"watt\",\n wrapperContract: \"0x87fFB2d57f78d5A8E17db78F3290A367299b5B07\",\n },\n rpc: {\n routemesh: false,\n },\n },\n /* -------------------------------------------------------------------------- */\n /* GNOSIS */\n /* -------------------------------------------------------------------------- */\n gnosis: {\n base: _gnosis,\n meta: {\n coinGeckoPlatformId: \"xdai\",\n },\n nativeCurrency: {\n coinGeckoId: \"dai\",\n wrapperContract: \"0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1\",\n },\n rpc: {\n alchemy: \"gnosis-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* HYPEREVM */\n /* -------------------------------------------------------------------------- */\n hyperevm: {\n base: _hyperEvm,\n meta: {\n coinGeckoPlatformId: \"hyperevm\",\n },\n nativeCurrency: {\n coinGeckoId: \"hyperliquid\",\n wrapperContract: \"0x5555555555555555555555555555555555555555\",\n },\n overrides: {\n contracts: {\n multicall3: {\n address: \"0xcA11bde05977b3631167028862bE2a173976CA11\",\n blockCreated: 13_051,\n },\n },\n },\n },\n /* -------------------------------------------------------------------------- */\n /* LIGHTLINK */\n /* -------------------------------------------------------------------------- */\n lightlink: {\n base: _lightlinkPhoenix,\n meta: {\n coinGeckoPlatformId: \"lightlink\",\n name: \"Lightlink\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n },\n /* -------------------------------------------------------------------------- */\n /* LINEA */\n /* -------------------------------------------------------------------------- */\n linea: {\n base: _linea,\n meta: {\n coinGeckoPlatformId: \"linea\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f\",\n },\n rpc: {\n alchemy: \"linea-mainnet\",\n infura: \"linea-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* LINEA SEPOLIA */\n /* -------------------------------------------------------------------------- */\n lineaSepolia: {\n base: _lineaSepolia,\n meta: {\n name: \"Linea Sepolia\",\n slug: \"linea-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"linea-sepolia\",\n infura: \"linea-sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* MAINNET */\n /* -------------------------------------------------------------------------- */\n mainnet: {\n base: _mainnet,\n meta: {\n coinGeckoPlatformId: \"ethereum\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\",\n },\n rpc: {\n alchemy: \"eth-mainnet\",\n infura: \"mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* MODE */\n /* -------------------------------------------------------------------------- */\n mode: {\n base: _mode,\n meta: {\n coinGeckoPlatformId: \"mode\",\n name: \"Mode\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* MONAD */\n /* -------------------------------------------------------------------------- */\n monad: {\n base: _monad,\n meta: {\n coinGeckoPlatformId: \"monad\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.mon,\n wrapperContract: \"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A\",\n },\n overrides: {\n blockExplorers: {\n default: { name: \"Explorer\", url: \"https://monadscan.com\" },\n },\n },\n rpc: {\n alchemy: \"monad-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* MORPH */\n /* -------------------------------------------------------------------------- */\n morph: {\n base: _morph,\n meta: {\n coinGeckoPlatformId: \"morph-l2\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x5300000000000000000000000000000000000011\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* OPTIMISM */\n /* -------------------------------------------------------------------------- */\n optimism: {\n base: _optimism,\n meta: {\n coinGeckoPlatformId: \"optimistic-ethereum\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n rpc: {\n alchemy: \"opt-mainnet\",\n infura: \"optimism-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* OPTIMISM SEPOLIA */\n /* -------------------------------------------------------------------------- */\n optimismSepolia: {\n base: _optimismSepolia,\n meta: {\n slug: \"optimism-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"opt-sepolia\",\n infura: \"optimism-sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* POLYGON */\n /* -------------------------------------------------------------------------- */\n polygon: {\n base: _polygon,\n meta: {\n coinGeckoPlatformId: \"polygon-pos\",\n },\n nativeCurrency: {\n coinGeckoId: \"polygon-ecosystem-token\",\n wrapperContract: \"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270\",\n },\n rpc: {\n alchemy: \"polygon-mainnet\",\n infura: \"polygon-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* RONIN */\n /* -------------------------------------------------------------------------- */\n ronin: {\n base: _ronin,\n meta: {\n coinGeckoPlatformId: \"ronin\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: \"ronin\",\n },\n rpc: {\n alchemy: \"ronin-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SCROLL */\n /* -------------------------------------------------------------------------- */\n scroll: {\n base: _scroll,\n meta: {\n coinGeckoPlatformId: \"scroll\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x5300000000000000000000000000000000000004\",\n },\n rpc: {\n alchemy: \"scroll-mainnet\",\n infura: \"scroll-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SEI */\n /* -------------------------------------------------------------------------- */\n sei: {\n base: _sei,\n meta: {\n coinGeckoPlatformId: \"sei-v2\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: \"sei-network\",\n wrapperContract: \"0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7\",\n },\n overrides: {\n blockExplorers: {\n default: { name: \"Explorer\", url: \"https://seiscan.io\" },\n },\n rpcUrls: {\n default: {\n http: [\"https://evm-rpc.sei-apis.com\", \"https://sei.drpc.org\"],\n },\n },\n },\n rpc: {\n alchemy: \"sei-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SEPOLIA */\n /* -------------------------------------------------------------------------- */\n sepolia: {\n base: _sepolia,\n meta: {\n ui: \"SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9\",\n },\n rpc: {\n alchemy: \"eth-sepolia\",\n infura: \"sepolia\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SONIC */\n /* -------------------------------------------------------------------------- */\n sonic: {\n base: _sonic,\n meta: {\n coinGeckoPlatformId: \"sonic\",\n },\n nativeCurrency: {\n coinGeckoId: \"sonic-3\",\n wrapperContract: \"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38\",\n },\n rpc: {\n alchemy: \"sonic-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SOPHON */\n /* -------------------------------------------------------------------------- */\n sophon: {\n base: _sophon,\n meta: {\n coinGeckoPlatformId: \"sophon\",\n isZk: true,\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: \"sophon\",\n },\n overrides: {\n blockExplorers: {\n default: { name: \"Explorer\", url: \"https://sophscan.xyz\" },\n },\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SUPERSEED */\n /* -------------------------------------------------------------------------- */\n superseed: {\n base: _superseed,\n meta: {\n coinGeckoPlatformId: \"superseed\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n rpc: {\n alchemy: \"superseed-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* SUPERSEED SEPOLIA */\n /* -------------------------------------------------------------------------- */\n superseedSepolia: {\n base: _superseedSepolia,\n meta: {\n slug: \"superseed-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n },\n /* -------------------------------------------------------------------------- */\n /* TAIKO */\n /* -------------------------------------------------------------------------- */\n taiko: {\n base: _taiko,\n meta: {\n coinGeckoPlatformId: \"taiko\",\n name: \"Taiko\",\n ui: \"NOT_SUPPORTED\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* TANGLE */\n /* -------------------------------------------------------------------------- */\n tangle: {\n base: tangle,\n meta: {},\n nativeCurrency: {\n coinGeckoId: \"tangle-network\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* UNICHAIN */\n /* -------------------------------------------------------------------------- */\n unichain: {\n base: _unichain,\n meta: {\n coinGeckoPlatformId: \"unichain\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x4200000000000000000000000000000000000006\",\n },\n rpc: {\n alchemy: \"unichain-mainnet\",\n infura: \"unichain-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* XDC */\n /* -------------------------------------------------------------------------- */\n xdc: {\n base: _xdc,\n meta: {\n coinGeckoPlatformId: \"xdc-network\",\n name: \"XDC\",\n },\n nativeCurrency: {\n coinGeckoId: \"xdce-crowd-sale\",\n wrapperContract: \"0x951857744785E80e2De051c32EE7b25f9c458C42\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* ZKSYNC */\n /* -------------------------------------------------------------------------- */\n zksync: {\n base: _zksync,\n meta: {\n coinGeckoPlatformId: \"zksync\",\n isZk: true,\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n wrapperContract: \"0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91\",\n },\n overrides: {\n blockExplorers: {\n default: {\n apiUrl: \"https://block-explorer-api.mainnet.zksync.io/api\",\n name: \"ZKsync Explorer\",\n url: \"https://explorer.zksync.io\",\n },\n native: {\n apiUrl: \"https://block-explorer-api.mainnet.zksync.io/api\",\n name: \"ZKsync Explorer\",\n url: \"https://explorer.zksync.io\",\n },\n },\n },\n rpc: {\n alchemy: \"zksync-mainnet\",\n infura: \"zksync-mainnet\",\n },\n },\n /* -------------------------------------------------------------------------- */\n /* ZKSYNC SEPOLIA */\n /* -------------------------------------------------------------------------- */\n zksyncSepolia: {\n base: _zksyncSepoliaTestnet,\n meta: {\n isZk: true,\n slug: \"zksync-sepolia\",\n },\n nativeCurrency: {\n coinGeckoId: COIN_GECKO.eth,\n },\n overrides: {\n blockExplorers: {\n default: {\n apiUrl: \"https://block-explorer-api.sepolia.zksync.dev/api\",\n name: \"ZKsync Explorer\",\n url: \"https://sepolia.explorer.zksync.io\",\n },\n },\n },\n },\n} satisfies Record<string, ChainSpec>;\n"]}
|
package/dist/cjs/evm/helpers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usesLockupSplit = exports.usesComptroller = exports.supportsLockupShape = exports.supportsLockupPrbProxy = exports.supportsLockupBatch = exports.isEvmReleasePayable = exports.hasSponsor = exports.hasSplitLockupArchitecture = exports.hasSimpleTransfer = exports.hasOnchainMinFee = exports.hasClaimTo = exports.getLockupReleaseFeatures = exports.getFlowReleaseFeatures = exports.getEvmReleaseFeatures = exports.getAirdropsReleaseFeatures = exports.evmReleaseFeatures = void 0;
|
|
3
|
+
exports.usesLockupSplit = exports.usesComptroller = exports.supportsLockupShape = exports.supportsLockupPublicWithdraw = exports.supportsLockupPrbProxy = exports.supportsLockupBatch = exports.isEvmReleasePayable = exports.hasSponsor = exports.hasSplitLockupArchitecture = exports.hasSimpleTransfer = exports.hasOnchainMinFee = exports.hasClaimTo = exports.getLockupReleaseFeatures = exports.getFlowReleaseFeatures = exports.getEvmReleaseFeatures = exports.getAirdropsReleaseFeatures = exports.evmReleaseFeatures = void 0;
|
|
4
4
|
exports.getContractExplorerURL = getContractExplorerURL;
|
|
5
5
|
exports.resolveEvmStreamId = resolveEvmStreamId;
|
|
6
6
|
exports.resolveEvmContractByAlias = resolveEvmContractByAlias;
|
|
@@ -22,6 +22,7 @@ Object.defineProperty(exports, "hasSponsor", { enumerable: true, get: function (
|
|
|
22
22
|
Object.defineProperty(exports, "isEvmReleasePayable", { enumerable: true, get: function () { return features_js_1.isEvmReleasePayable; } });
|
|
23
23
|
Object.defineProperty(exports, "supportsLockupBatch", { enumerable: true, get: function () { return features_js_1.supportsLockupBatch; } });
|
|
24
24
|
Object.defineProperty(exports, "supportsLockupPrbProxy", { enumerable: true, get: function () { return features_js_1.supportsLockupPrbProxy; } });
|
|
25
|
+
Object.defineProperty(exports, "supportsLockupPublicWithdraw", { enumerable: true, get: function () { return features_js_1.supportsLockupPublicWithdraw; } });
|
|
25
26
|
Object.defineProperty(exports, "supportsLockupShape", { enumerable: true, get: function () { return features_js_1.supportsLockupShape; } });
|
|
26
27
|
Object.defineProperty(exports, "usesComptroller", { enumerable: true, get: function () { return features_js_1.usesComptroller; } });
|
|
27
28
|
Object.defineProperty(exports, "usesLockupSplit", { enumerable: true, get: function () { return features_js_1.usesLockupSplit; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/evm/helpers.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/evm/helpers.ts"],"names":[],"mappings":";;;AAyCA,wDAEC;AAkBD,gDAUC;AAeD,8DAyCC;AAaD,gDAoBC;AA5JD,0EAAgH;AAEhH,mEAA+D;AAC/D,yCAAsC;AAQtC,sDAkBgC;AAjB9B,iHAAA,kBAAkB,OAAA;AAClB,yHAAA,0BAA0B,OAAA;AAC1B,oHAAA,qBAAqB,OAAA;AACrB,qHAAA,sBAAsB,OAAA;AACtB,uHAAA,wBAAwB,OAAA;AACxB,yGAAA,UAAU,OAAA;AACV,+GAAA,gBAAgB,OAAA;AAChB,gHAAA,iBAAiB,OAAA;AACjB,yHAAA,0BAA0B,OAAA;AAC1B,yGAAA,UAAU,OAAA;AACV,kHAAA,mBAAmB,OAAA;AACnB,kHAAA,mBAAmB,OAAA;AACnB,qHAAA,sBAAsB,OAAA;AACtB,2HAAA,4BAA4B,OAAA;AAC5B,kHAAA,mBAAmB,OAAA;AACnB,8GAAA,eAAe,OAAA;AACf,8GAAA,eAAe,OAAA;AASjB,SAAgB,sBAAsB,CAAC,WAAmB,EAAE,eAAoC;IAC9F,OAAO,IAAA,wCAA8B,EAAC,WAAW,EAAE,eAAe,CAAC,CAAC;AACtE,CAAC;AAkBD,SAAgB,kBAAkB,CAAC,IAKlC;IACC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAEnD,MAAM,QAAQ,GAAG,yBAAyB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;IACzE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AAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAaD,SAAgB,kBAAkB,CAChC,OAA4B,EAC5B,OAAgC;IAEhC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,CAAC,CAAC;IAClC,MAAM,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IAC9B,MAAM,SAAS,GAAG,CAAC,GAAG,KAAK,GAAG,GAAG,CAAC;IAElC,IAAI,OAAO,CAAC,MAAM,IAAI,SAAS,EAAE,CAAC;QAChC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC;IAEpD,OAAO,GAAG,MAAM,MAAM,MAAM,EAAE,CAAC;AACjC,CAAC","sourcesContent":["// NOTE: evm/index.ts uses explicit named re-exports instead of `export *` for\n// this module. When adding or removing a public export here, mirror the change\n// in evm/index.ts. The \"barrel re-exports every helpers symbol\" test in\n// tests/package-exports.test.ts will catch any drift.\nimport { getContractExplorerURL as getContractExplorerURLInternal } from \"@/src/internal/utils/explorer-url.js\";\nimport type { Sablier, TruncateAddressOptions } from \"@/src/types.js\";\nimport { getAliasCatalog } from \"./contracts/alias-catalog.js\";\nimport { Protocol } from \"./enums.js\";\n\nexport type {\n EvmReleaseFeatureSetByProtocol,\n EvmReleaseVersionByProtocol,\n PayableEvmProtocol,\n ReleaseFeaturesForProtocol,\n} from \"./releases/features.js\";\nexport {\n evmReleaseFeatures,\n getAirdropsReleaseFeatures,\n getEvmReleaseFeatures,\n getFlowReleaseFeatures,\n getLockupReleaseFeatures,\n hasClaimTo,\n hasOnchainMinFee,\n hasSimpleTransfer,\n hasSplitLockupArchitecture,\n hasSponsor,\n isEvmReleasePayable,\n supportsLockupBatch,\n supportsLockupPrbProxy,\n supportsLockupPublicWithdraw,\n supportsLockupShape,\n usesComptroller,\n usesLockupSplit,\n} from \"./releases/features.js\";\n\n/**\n * Get the explorer URL for a contract. Compatible with Etherscan, Blockscout, etc.\n * @param explorerURL - The base explorer URL, e.g. https://etherscan.io\n * @param contractAddress - The contract object\n * @returns The explorer URL for the contract, e.g. https://etherscan.io/address/0x123...\n */\nexport function getContractExplorerURL(explorerURL: string, contractAddress: Sablier.EVM.Address) {\n return getContractExplorerURLInternal(explorerURL, contractAddress);\n}\n\n/**\n * Constructs a stream/airdrop entity ID for EVM chains in the format used by Sablier indexers.\n * Format: `{contractAddress}-{chainId}-{tokenId}`\n *\n * The contract address is lowercased for normalization, as EVM addresses are case-insensitive.\n *\n * @param opts - Configuration object\n * @param opts.alias - Contract alias (e.g., \"LL2\", \"LK2\", \"FL2\")\n * @param opts.chainId - Chain ID where the contract is deployed\n * @param opts.tokenId - Stream/airdrop token ID\n * @param opts.protocol - Optional protocol to disambiguate aliases\n * @returns Stream ID in format \"0xabc...-1-123\"\n * @example\n * resolveEvmStreamId({ alias: \"LL2\", chainId: 1, tokenId: 123n })\n * // => \"0xabc...-1-123\"\n */\nexport function resolveEvmStreamId(opts: {\n alias: string;\n chainId: number;\n tokenId: bigint | string | number;\n protocol?: Sablier.EVM.Protocol;\n}): string {\n const { alias, chainId, tokenId, protocol } = opts;\n\n const contract = resolveEvmContractByAlias({ alias, chainId, protocol });\n return `${contract.address.toLowerCase()}-${chainId}-${tokenId}`;\n}\n\n/**\n * Resolves an EVM contract by its alias from the alias catalog.\n *\n * @param opts - Configuration object\n * @param opts.alias - Contract alias (e.g., \"LL2\", \"LK2\", \"FL2\")\n * @param opts.chainId - Chain ID where the contract is deployed\n * @param opts.protocol - Optional protocol to disambiguate aliases that exist in multiple protocols\n * @returns The resolved contract\n * @throws Error if alias is not found or is ambiguous without protocol specified\n * @example\n * resolveEvmContractByAlias({ alias: \"LL2\", chainId: 1 })\n * // => { address: \"0x...\", name: \"SablierLockupLinear\", ... }\n */\nexport function resolveEvmContractByAlias(opts: {\n alias: string;\n chainId: number;\n protocol?: Sablier.EVM.Protocol;\n}): Sablier.EVM.Contract {\n const { alias, chainId, protocol } = opts;\n const aliasCatalog = getAliasCatalog();\n\n if (protocol) {\n const contract = aliasCatalog[protocol]?.[chainId]?.[alias];\n if (!contract) {\n throw new Error(\n `Sablier SDK: Unknown EVM contract alias \"${alias}\" on chain ${chainId} for protocol \"${protocol}\"`\n );\n }\n return contract;\n }\n\n const protocols: Sablier.EVM.Protocol[] = [\n Protocol.Airdrops,\n Protocol.Bob,\n Protocol.Flow,\n Protocol.Legacy,\n Protocol.Lockup,\n ];\n\n const matches = protocols\n .map((p) => aliasCatalog[p]?.[chainId]?.[alias])\n .filter(Boolean) as Sablier.EVM.Contract[];\n\n if (matches.length === 0) {\n throw new Error(`Sablier SDK: Unknown EVM contract alias \"${alias}\" on chain ${chainId}`);\n }\n\n if (matches.length > 1) {\n throw new Error(\n `Sablier SDK: Ambiguous EVM contract alias \"${alias}\" on chain ${chainId}; specify protocol`\n );\n }\n\n return matches[0];\n}\n\n/**\n * Truncate an Ethereum address for display purposes.\n * @param address - The Ethereum address to truncate (0x-prefixed)\n * @param options - Truncation options with start/end character counts (default: 4 each, must be >= 1)\n * @returns Truncated address in format \"0xcafe...beef\" or original if too short\n * @example\n * truncateEvmAddress(\"0x1234567890abcdef1234567890abcdef12345678\") // \"0x1234...5678\"\n * truncateEvmAddress(\"0x1234567890abcdef1234567890abcdef12345678\", { start: 6, end: 6 }) // \"0x123456...345678\"\n * truncateEvmAddress(\"0x1234567890abcdef1234567890abcdef12345678\", { start: 2, end: 6 }) // \"0x12...345678\"\n * truncateEvmAddress(\"0x123\") // \"0x123\" (too short, returns original)\n */\nexport function truncateEvmAddress(\n address: Sablier.EVM.Address,\n options?: TruncateAddressOptions\n): string {\n if (!address) {\n return address;\n }\n\n const start = options?.start ?? 4;\n const end = options?.end ?? 4;\n const minLength = 2 + start + end;\n\n if (address.length <= minLength) {\n return address;\n }\n\n const prefix = address.slice(0, 2 + start);\n const suffix = end === 0 ? \"\" : address.slice(-end);\n\n return `${prefix}...${suffix}`;\n}\n"]}
|
package/dist/cjs/evm/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.usesLockupSplit = exports.usesComptroller = exports.truncateEvmAddress = exports.supportsLockupShape = exports.supportsLockupPrbProxy = exports.supportsLockupBatch = exports.resolveEvmStreamId = exports.resolveEvmContractByAlias = exports.isEvmReleasePayable = exports.hasSponsor = exports.hasSplitLockupArchitecture = exports.hasSimpleTransfer = exports.hasOnchainMinFee = exports.hasClaimTo = exports.getLockupReleaseFeatures = exports.getFlowReleaseFeatures = exports.getEvmReleaseFeatures = exports.getContractExplorerURL = exports.getAirdropsReleaseFeatures = exports.evmReleaseFeatures = exports.csv = exports.comptroller = exports.chains = void 0;
|
|
39
|
+
exports.usesLockupSplit = exports.usesComptroller = exports.truncateEvmAddress = exports.supportsLockupShape = exports.supportsLockupPublicWithdraw = exports.supportsLockupPrbProxy = exports.supportsLockupBatch = exports.resolveEvmStreamId = exports.resolveEvmContractByAlias = exports.isEvmReleasePayable = exports.hasSponsor = exports.hasSplitLockupArchitecture = exports.hasSimpleTransfer = exports.hasOnchainMinFee = exports.hasClaimTo = exports.getLockupReleaseFeatures = exports.getFlowReleaseFeatures = exports.getEvmReleaseFeatures = exports.getContractExplorerURL = exports.getAirdropsReleaseFeatures = exports.evmReleaseFeatures = exports.csv = exports.comptroller = exports.chains = void 0;
|
|
40
40
|
var index_js_1 = require("./chains/index.js");
|
|
41
41
|
Object.defineProperty(exports, "chains", { enumerable: true, get: function () { return index_js_1.chains; } });
|
|
42
42
|
__exportStar(require("./compatibility.js"), exports);
|
|
@@ -62,6 +62,7 @@ Object.defineProperty(exports, "resolveEvmContractByAlias", { enumerable: true,
|
|
|
62
62
|
Object.defineProperty(exports, "resolveEvmStreamId", { enumerable: true, get: function () { return helpers_js_1.resolveEvmStreamId; } });
|
|
63
63
|
Object.defineProperty(exports, "supportsLockupBatch", { enumerable: true, get: function () { return helpers_js_1.supportsLockupBatch; } });
|
|
64
64
|
Object.defineProperty(exports, "supportsLockupPrbProxy", { enumerable: true, get: function () { return helpers_js_1.supportsLockupPrbProxy; } });
|
|
65
|
+
Object.defineProperty(exports, "supportsLockupPublicWithdraw", { enumerable: true, get: function () { return helpers_js_1.supportsLockupPublicWithdraw; } });
|
|
65
66
|
Object.defineProperty(exports, "supportsLockupShape", { enumerable: true, get: function () { return helpers_js_1.supportsLockupShape; } });
|
|
66
67
|
Object.defineProperty(exports, "truncateEvmAddress", { enumerable: true, get: function () { return helpers_js_1.truncateEvmAddress; } });
|
|
67
68
|
Object.defineProperty(exports, "usesComptroller", { enumerable: true, get: function () { return helpers_js_1.usesComptroller; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA2C;AAAlC,kGAAA,MAAM,OAAA;AACf,qDAAmC;AACnC,mDAAqD;AAA5C,uGAAA,WAAW,OAAA;AACpB,uDAAqC;AACrC,sDAAsC;AACtC,6CAA2B;AAe3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA2C;AAAlC,kGAAA,MAAM,OAAA;AACf,qDAAmC;AACnC,mDAAqD;AAA5C,uGAAA,WAAW,OAAA;AACpB,uDAAqC;AACrC,sDAAsC;AACtC,6CAA2B;AAe3B,2CAsBsB;AArBpB,gHAAA,kBAAkB,OAAA;AAClB,wHAAA,0BAA0B,OAAA;AAC1B,oHAAA,sBAAsB,OAAA;AACtB,mHAAA,qBAAqB,OAAA;AACrB,oHAAA,sBAAsB,OAAA;AACtB,sHAAA,wBAAwB,OAAA;AACxB,wGAAA,UAAU,OAAA;AACV,8GAAA,gBAAgB,OAAA;AAChB,+GAAA,iBAAiB,OAAA;AACjB,wHAAA,0BAA0B,OAAA;AAC1B,wGAAA,UAAU,OAAA;AACV,iHAAA,mBAAmB,OAAA;AACnB,uHAAA,yBAAyB,OAAA;AACzB,gHAAA,kBAAkB,OAAA;AAClB,iHAAA,mBAAmB,OAAA;AACnB,oHAAA,sBAAsB,OAAA;AACtB,0HAAA,4BAA4B,OAAA;AAC5B,iHAAA,mBAAmB,OAAA;AACnB,gHAAA,kBAAkB,OAAA;AAClB,6GAAA,eAAe,OAAA;AACf,6GAAA,eAAe,OAAA;AAEjB,sDAAoC","sourcesContent":["export { chains } from \"./chains/index.js\";\nexport * from \"./compatibility.js\";\nexport { comptroller } from \"./comptroller/index.js\";\nexport * from \"./contracts/index.js\";\nexport * as csv from \"./csv/index.js\";\nexport * from \"./enums.js\";\n// Re-export the release-feature helpers explicitly from the `sablier/evm`\n// entrypoint instead of relying only on `export * from \"./helpers.js\"`.\n//\n// Some downstream type-checkers were able to see simple barrel exports such as\n// `enums`, but failed to resolve these helper names through the extra\n// `evm -> helpers -> releases/features` re-export hop. Listing them here keeps\n// the generated `dist/types/evm/index.d.ts` surface direct and easier for\n// consumers to resolve.\nexport type {\n EvmReleaseFeatureSetByProtocol,\n EvmReleaseVersionByProtocol,\n PayableEvmProtocol,\n ReleaseFeaturesForProtocol,\n} from \"./helpers.js\";\nexport {\n evmReleaseFeatures,\n getAirdropsReleaseFeatures,\n getContractExplorerURL,\n getEvmReleaseFeatures,\n getFlowReleaseFeatures,\n getLockupReleaseFeatures,\n hasClaimTo,\n hasOnchainMinFee,\n hasSimpleTransfer,\n hasSplitLockupArchitecture,\n hasSponsor,\n isEvmReleasePayable,\n resolveEvmContractByAlias,\n resolveEvmStreamId,\n supportsLockupBatch,\n supportsLockupPrbProxy,\n supportsLockupPublicWithdraw,\n supportsLockupShape,\n truncateEvmAddress,\n usesComptroller,\n usesLockupSplit,\n} from \"./helpers.js\";\nexport * from \"./releases/index.js\";\n"]}
|
|
@@ -13,6 +13,7 @@ exports.hasSplitLockupArchitecture = hasSplitLockupArchitecture;
|
|
|
13
13
|
exports.isEvmReleasePayable = isEvmReleasePayable;
|
|
14
14
|
exports.supportsLockupBatch = supportsLockupBatch;
|
|
15
15
|
exports.supportsLockupPrbProxy = supportsLockupPrbProxy;
|
|
16
|
+
exports.supportsLockupPublicWithdraw = supportsLockupPublicWithdraw;
|
|
16
17
|
exports.supportsLockupShape = supportsLockupShape;
|
|
17
18
|
exports.usesComptroller = usesComptroller;
|
|
18
19
|
const enums_js_1 = require("../../evm/enums.js");
|
|
@@ -65,6 +66,7 @@ exports.evmReleaseFeatures = deepFreeze({
|
|
|
65
66
|
minFee: false,
|
|
66
67
|
payable: false,
|
|
67
68
|
prbProxy: true,
|
|
69
|
+
publicWithdraw: false,
|
|
68
70
|
shape: false,
|
|
69
71
|
},
|
|
70
72
|
[enums_js_1.Version.Lockup.V1_1]: {
|
|
@@ -74,6 +76,7 @@ exports.evmReleaseFeatures = deepFreeze({
|
|
|
74
76
|
minFee: false,
|
|
75
77
|
payable: false,
|
|
76
78
|
prbProxy: false,
|
|
79
|
+
publicWithdraw: false,
|
|
77
80
|
shape: false,
|
|
78
81
|
},
|
|
79
82
|
[enums_js_1.Version.Lockup.V1_2]: {
|
|
@@ -83,6 +86,7 @@ exports.evmReleaseFeatures = deepFreeze({
|
|
|
83
86
|
minFee: false,
|
|
84
87
|
payable: false,
|
|
85
88
|
prbProxy: false,
|
|
89
|
+
publicWithdraw: true,
|
|
86
90
|
shape: false,
|
|
87
91
|
},
|
|
88
92
|
[enums_js_1.Version.Lockup.V2_0]: {
|
|
@@ -92,6 +96,7 @@ exports.evmReleaseFeatures = deepFreeze({
|
|
|
92
96
|
minFee: false,
|
|
93
97
|
payable: true,
|
|
94
98
|
prbProxy: false,
|
|
99
|
+
publicWithdraw: true,
|
|
95
100
|
shape: true,
|
|
96
101
|
},
|
|
97
102
|
[enums_js_1.Version.Lockup.V3_0]: {
|
|
@@ -101,6 +106,7 @@ exports.evmReleaseFeatures = deepFreeze({
|
|
|
101
106
|
minFee: true,
|
|
102
107
|
payable: true,
|
|
103
108
|
prbProxy: false,
|
|
109
|
+
publicWithdraw: true,
|
|
104
110
|
shape: true,
|
|
105
111
|
},
|
|
106
112
|
[enums_js_1.Version.Lockup.V4_0]: {
|
|
@@ -110,6 +116,7 @@ exports.evmReleaseFeatures = deepFreeze({
|
|
|
110
116
|
minFee: true,
|
|
111
117
|
payable: true,
|
|
112
118
|
prbProxy: false,
|
|
119
|
+
publicWithdraw: true,
|
|
113
120
|
shape: true,
|
|
114
121
|
},
|
|
115
122
|
},
|
|
@@ -209,6 +216,9 @@ function supportsLockupBatch(version) {
|
|
|
209
216
|
function supportsLockupPrbProxy(version) {
|
|
210
217
|
return getLockupReleaseFeatures(version)?.prbProxy ?? false;
|
|
211
218
|
}
|
|
219
|
+
function supportsLockupPublicWithdraw(version) {
|
|
220
|
+
return getLockupReleaseFeatures(version)?.publicWithdraw ?? false;
|
|
221
|
+
}
|
|
212
222
|
function supportsLockupShape(version) {
|
|
213
223
|
return getLockupReleaseFeatures(version)?.shape ?? false;
|
|
214
224
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../../../src/evm/releases/features.ts"],"names":[],"mappings":";;;AAmQA,gEAQC;AAKD,sDAKC;AAMD,wDAQC;AAMD,4DAQC;AAMD,gCAEC;AAMD,gCAEC;AAaD,4CAwBC;AAMD,8CAEC;AAMD,gEAEC;AAgBD,kDAgBC;AAMD,kDAEC;AAMD,wDA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AAO,CAAC,EAAE,QAAQ,IAAI,KAAK,CAAC;AAC9D,CAAC;AAMD,SAAgB,mBAAmB,CAAC,OAA4B;IAC9D,OAAO,wBAAwB,CAAC,OAAO,CAAC,EAAE,KAAK,IAAI,KAAK,CAAC;AAC3D,CAAC;AAOD,SAAgB,eAAe,CAAC,OAA4B;IAC1D,QAAQ,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzB,KAAK,mBAAQ,CAAC,QAAQ;YACpB,OAAO,0BAA0B,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,WAAW,IAAI,KAAK,CAAC;QAC3E,KAAK,mBAAQ,CAAC,IAAI;YAChB,OAAO,sBAAsB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,WAAW,IAAI,KAAK,CAAC;QACvE,KAAK,mBAAQ,CAAC,MAAM;YAClB,OAAO,wBAAwB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,WAAW,IAAI,KAAK,CAAC;QACzE;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC","sourcesContent":["/**\n * @file Canonical capability registry for every shipped EVM release.\n *\n * Release builders attach these feature bags to exported release objects, and\n * helper functions read from the same registry so version-dependent behavior\n * stays defined in one place.\n */\nimport { Protocol, Version } from \"@/src/evm/enums.js\";\nimport type { Sablier } from \"@/src/types.js\";\n\n/* -------------------------------------------------------------------------- */\n/* TYPES */\n/* -------------------------------------------------------------------------- */\n\nexport type EvmReleaseVersionByProtocol = {\n airdrops: Sablier.EVM.Version.Airdrops;\n bob: Sablier.EVM.Version.Bob;\n flow: Sablier.EVM.Version.Flow;\n legacy: Sablier.EVM.Version.Legacy;\n lockup: Sablier.EVM.Version.Lockup;\n};\n\nexport type EvmReleaseFeatureSetByProtocol = {\n airdrops: Sablier.EVM.AirdropsReleaseFeatures;\n bob: Sablier.EVM.EmptyReleaseFeatures;\n flow: Sablier.EVM.FlowReleaseFeatures;\n legacy: Sablier.EVM.EmptyReleaseFeatures;\n lockup: Sablier.EVM.LockupReleaseFeatures;\n};\n\ntype EvmReleaseFeatureRegistry = {\n [TProtocol in keyof EvmReleaseVersionByProtocol]: Record<\n EvmReleaseVersionByProtocol[TProtocol],\n EvmReleaseFeatureSetByProtocol[TProtocol]\n >;\n};\n\nexport type ReleaseFeaturesForProtocol<TProtocol extends keyof EvmReleaseFeatureSetByProtocol> =\n EvmReleaseFeatureSetByProtocol[TProtocol];\n\ntype ProtocolFeatureSet<TProtocol extends keyof EvmReleaseFeatureSetByProtocol> =\n EvmReleaseFeatureSetByProtocol[TProtocol];\n\ntype ProtocolWithBooleanFeature<TFeature extends PropertyKey> = {\n [TProtocol in keyof EvmReleaseFeatureSetByProtocol]: ProtocolFeatureSet<TProtocol> extends Record<\n TFeature,\n boolean\n >\n ? TProtocol\n : never;\n}[keyof EvmReleaseFeatureSetByProtocol];\n\ntype EvmReleaseReference = Pick<Sablier.EVM.Release, \"protocol\" | \"version\">;\ntype PayableEvmReleaseReference = {\n [TProtocol in PayableEvmProtocol]: {\n protocol: TProtocol;\n version: EvmReleaseVersionByProtocol[TProtocol];\n };\n}[PayableEvmProtocol];\n\nfunction deepFreeze<T>(value: T): T {\n if (typeof value !== \"object\" || value === null || Object.isFrozen(value)) {\n return value;\n }\n\n for (const nestedValue of Object.values(value as Record<string, unknown>)) {\n deepFreeze(nestedValue);\n }\n\n return Object.freeze(value);\n}\n\nconst emptyReleaseFeatures = deepFreeze({} as const satisfies Sablier.EVM.EmptyReleaseFeatures);\n\n/**\n * Protocol/version feature matrix used by both release resolvers and public helpers.\n *\n * Feature glossary:\n * - `claimTo`: Airdrops campaigns can redirect claims to a third-party recipient; introduced in `airdrops@v2.0`\n *\n * - `comptroller`: Release contracts take a Comptroller reference (`ISablierComptroller` or the legacy\n * `ISablierV2Comptroller`) that governs fee administration. True for `airdrops@v2.0+`, `flow@v2.0+`,\n * `lockup@v1.0`, `lockup@v1.1`, and `lockup@v3.0+`. Lockup v1.2 and v2.0 intentionally dropped the Comptroller wiring\n *\n * - `sponsor`: Airdrops campaigns expose the `sponsor` function; introduced in `airdrops@v3.0`\n *\n * - `payable`: Release entrypoints accept native-token value for protocol fees. This first appears in\n * `airdrops@v1.3`, `flow@v1.1`, and `lockup@v2.0`\n *\n * - `contractMinFee`: Contracts expose an onchain minimum-fee calculation; introduced in `flow@v2.0` and adopted by\n * Lockup in `lockup@v3.0`\n *\n * - `batch`: Lockup releases support batched execution helpers; introduced in `lockup@v2.0`\n *\n * - `shape`: Lockup create flows emit and consume canonical shape identifiers; introduced in `lockup@v2.0`\n *\n * - `simpleTransfer`: Flow releases expose a `transferTokens` wrapper that lets the contract forward an ERC-20 transfer\n * on behalf of the caller; introduced in `flow@v2.0`\n *\n * - `legacyAbi`: Lockup still uses the pre-`lockup@v1.2` split ABI layout and old hook interface; cleared when\n * `lockup@v1.2` shipped the new hook system\n *\n * - `prbProxy`: Lockup still uses the original `prbProxy` deployment wiring from `lockup@v1.0`; this is only true for\n * that initial release and is cleared from `lockup@v1.1` onward\n *\n * @see {@link https://github.com/sablier-labs/evm-monorepo/blob/airdrops@v3.0/airdrops/CHANGELOG.md}\n * @see {@link https://github.com/sablier-labs/evm-monorepo/blob/flow@v3.0/flow/CHANGELOG.md}\n * @see {@link https://github.com/sablier-labs/evm-monorepo/blob/lockup@v4.0/lockup/CHANGELOG.md}\n */\nexport const evmReleaseFeatures = deepFreeze({\n [Protocol.Airdrops]: {\n [Version.Airdrops.V1_1]: { claimTo: false, comptroller: false, payable: false, sponsor: false },\n [Version.Airdrops.V1_2]: { claimTo: false, comptroller: false, payable: false, sponsor: false },\n [Version.Airdrops.V1_3]: { claimTo: false, comptroller: false, payable: true, sponsor: false },\n [Version.Airdrops.V2_0]: { claimTo: true, comptroller: true, payable: true, sponsor: false },\n [Version.Airdrops.V3_0]: { claimTo: true, comptroller: true, payable: true, sponsor: true },\n },\n [Protocol.Bob]: {\n [Version.Bob.V1_0]: emptyReleaseFeatures,\n },\n [Protocol.Flow]: {\n [Version.Flow.V1_0]: {\n comptroller: false,\n minFee: false,\n payable: false,\n simpleTransfer: false,\n },\n [Version.Flow.V1_1]: {\n comptroller: false,\n minFee: false,\n payable: true,\n simpleTransfer: false,\n },\n [Version.Flow.V2_0]: { comptroller: true, minFee: true, payable: true, simpleTransfer: true },\n [Version.Flow.V3_0]: { comptroller: true, minFee: true, payable: true, simpleTransfer: true },\n },\n [Protocol.Legacy]: {\n [Version.Legacy.V1_0]: emptyReleaseFeatures,\n [Version.Legacy.V1_1]: emptyReleaseFeatures,\n },\n [Protocol.Lockup]: {\n [Version.Lockup.V1_0]: {\n batch: false,\n comptroller: true,\n legacyAbi: true,\n minFee: false,\n payable: false,\n prbProxy: true,\n shape: false,\n },\n [Version.Lockup.V1_1]: {\n batch: false,\n comptroller: true,\n legacyAbi: true,\n minFee: false,\n payable: false,\n prbProxy: false,\n shape: false,\n },\n [Version.Lockup.V1_2]: {\n batch: false,\n comptroller: false,\n legacyAbi: false,\n minFee: false,\n payable: false,\n prbProxy: false,\n shape: false,\n },\n [Version.Lockup.V2_0]: {\n batch: true,\n comptroller: false,\n legacyAbi: false,\n minFee: false,\n payable: true,\n prbProxy: false,\n shape: true,\n },\n [Version.Lockup.V3_0]: {\n batch: true,\n comptroller: true,\n legacyAbi: false,\n minFee: true,\n payable: true,\n prbProxy: false,\n shape: true,\n },\n [Version.Lockup.V4_0]: {\n batch: true,\n comptroller: true,\n legacyAbi: false,\n minFee: true,\n payable: true,\n prbProxy: false,\n shape: true,\n },\n },\n} as const satisfies EvmReleaseFeatureRegistry);\n\nexport type PayableEvmProtocol = ProtocolWithBooleanFeature<\"payable\">;\n\n/* -------------------------------------------------------------------------- */\n/* PRIVATE HELPERS */\n/* -------------------------------------------------------------------------- */\n\nconst evmReleaseFeatureRegistry: EvmReleaseFeatureRegistry = evmReleaseFeatures;\n\ntype PayableReleaseFeatureRegistry = {\n [TProtocol in PayableEvmProtocol]: Record<\n EvmReleaseVersionByProtocol[TProtocol],\n Pick<ProtocolFeatureSet<TProtocol>, \"payable\">\n >;\n};\n\nconst payableReleaseFeatureRegistry = deepFreeze({\n [Protocol.Airdrops]: evmReleaseFeatures[Protocol.Airdrops],\n [Protocol.Flow]: evmReleaseFeatures[Protocol.Flow],\n [Protocol.Lockup]: evmReleaseFeatures[Protocol.Lockup],\n} satisfies PayableReleaseFeatureRegistry);\n\n/**\n * Narrows protocol checks for helpers that only apply to fee-charging releases.\n */\nfunction isPayableEvmProtocol(protocol: Sablier.EVM.Protocol): protocol is PayableEvmProtocol {\n return protocol in payableReleaseFeatureRegistry;\n}\n\n/**\n * Narrows a release descriptor to protocols whose feature bag includes a payable flag.\n */\nfunction isPayableEvmRelease(release: EvmReleaseReference): release is PayableEvmReleaseReference {\n return isPayableEvmProtocol(release.protocol);\n}\n\n/**\n * Normalizes the supported payable helper overloads to the canonical release shape.\n */\nfunction normalizePayableReleaseInput(\n releaseOrProtocol: EvmReleaseReference | Sablier.EVM.Protocol,\n version?: Sablier.EVM.Version\n): EvmReleaseReference {\n if (typeof releaseOrProtocol !== \"string\") {\n return releaseOrProtocol;\n }\n\n if (!version) {\n throw new Error('Sablier SDK: Missing \"version\" for isEvmReleasePayable(protocol, version)');\n }\n\n return { protocol: releaseOrProtocol, version };\n}\n\n/* -------------------------------------------------------------------------- */\n/* FEATURES */\n/* -------------------------------------------------------------------------- */\n\n/**\n * Reads the airdrops capability matrix for one released version.\n * Returns `undefined` when the version does not belong to the Airdrops protocol.\n */\nexport function getAirdropsReleaseFeatures(\n version: Sablier.EVM.Version\n): Sablier.EVM.AirdropsReleaseFeatures | undefined {\n const registry = evmReleaseFeatures[Protocol.Airdrops];\n if (!(version in registry)) {\n return undefined;\n }\n return registry[version as Sablier.EVM.Version.Airdrops];\n}\n\n/**\n * Returns the protocol-specific feature bag for a single EVM release.\n */\nexport function getEvmReleaseFeatures<TProtocol extends keyof EvmReleaseFeatureSetByProtocol>(\n protocol: TProtocol,\n version: EvmReleaseVersionByProtocol[TProtocol]\n): ReleaseFeaturesForProtocol<TProtocol> {\n return evmReleaseFeatureRegistry[protocol][version] as ReleaseFeaturesForProtocol<TProtocol>;\n}\n\n/**\n * Reads the flow capability matrix for one released version.\n * Returns `undefined` when the version does not belong to the Flow protocol.\n */\nexport function getFlowReleaseFeatures(\n version: Sablier.EVM.Version\n): Sablier.EVM.FlowReleaseFeatures | undefined {\n const registry = evmReleaseFeatures[Protocol.Flow];\n if (!(version in registry)) {\n return undefined;\n }\n return registry[version as Sablier.EVM.Version.Flow];\n}\n\n/**\n * Reads the lockup capability matrix for one released version.\n * Returns `undefined` when the version does not belong to the Lockup protocol.\n */\nexport function getLockupReleaseFeatures(\n version: Sablier.EVM.Version\n): Sablier.EVM.LockupReleaseFeatures | undefined {\n const registry = evmReleaseFeatures[Protocol.Lockup];\n if (!(version in registry)) {\n return undefined;\n }\n return registry[version as Sablier.EVM.Version.Lockup];\n}\n\n/**\n * Returns whether the airdrops release supports the `claimTo` function for claiming to a third-party address.\n * Returns `false` for non-Airdrops versions.\n */\nexport function hasClaimTo(version: Sablier.EVM.Version): boolean {\n return getAirdropsReleaseFeatures(version)?.claimTo ?? false;\n}\n\n/**\n * Returns whether the airdrops release supports sponsor-driven claims.\n * Returns `false` for non-Airdrops versions.\n */\nexport function hasSponsor(version: Sablier.EVM.Version): boolean {\n return getAirdropsReleaseFeatures(version)?.sponsor ?? false;\n}\n\n/**\n * Returns whether a Flow or Lockup release exposes an on-chain minimum fee in wei.\n */\nexport function hasOnchainMinFee(release: EvmReleaseReference): boolean;\n/**\n * @deprecated Pass a release object instead. This overload will be removed in the next major version (v4).\n */\nexport function hasOnchainMinFee(\n protocol: Sablier.EVM.Protocol,\n version: Sablier.EVM.Version\n): boolean;\nexport function hasOnchainMinFee(\n releaseOrProtocol: EvmReleaseReference | Sablier.EVM.Protocol,\n version?: Sablier.EVM.Version\n): boolean {\n let release: EvmReleaseReference;\n\n if (typeof releaseOrProtocol === \"string\") {\n if (!version) {\n throw new Error('Sablier SDK: Missing \"version\" for hasOnchainMinFee(protocol, version)');\n }\n\n release = { protocol: releaseOrProtocol, version };\n } else {\n release = releaseOrProtocol;\n }\n\n switch (release.protocol) {\n case Protocol.Flow:\n return getFlowReleaseFeatures(release.version)?.minFee ?? false;\n case Protocol.Lockup:\n return getLockupReleaseFeatures(release.version)?.minFee ?? false;\n default:\n return false;\n }\n}\n\n/**\n * Returns whether the flow release exposes the `transferTokens` wrapper for forwarding an ERC-20 transfer on behalf of\n * the caller. Returns `false` for non-Flow versions.\n */\nexport function hasSimpleTransfer(version: Sablier.EVM.Version): boolean {\n return getFlowReleaseFeatures(version)?.simpleTransfer ?? false;\n}\n\n/**\n * Returns whether the lockup release uses the split ABI layout.\n * Returns `false` for non-Lockup versions.\n */\nexport function hasSplitLockupArchitecture(version: Sablier.EVM.Version): boolean {\n return getLockupReleaseFeatures(version)?.legacyAbi ?? false;\n}\n\n/** @deprecated Use {@link hasSplitLockupArchitecture} instead. */\nexport const usesLockupSplit = hasSplitLockupArchitecture;\n\n/**\n * Returns whether a release charges native-token fees on claim or withdraw operations.\n */\nexport function isEvmReleasePayable(release: EvmReleaseReference): boolean;\n/**\n * @deprecated Pass a release object instead. This overload will be removed in the next major version (v4).\n */\nexport function isEvmReleasePayable(\n protocol: Sablier.EVM.Protocol,\n version: Sablier.EVM.Version\n): boolean;\nexport function isEvmReleasePayable(\n releaseOrProtocol: EvmReleaseReference | Sablier.EVM.Protocol,\n version?: Sablier.EVM.Version\n): boolean {\n const release = normalizePayableReleaseInput(releaseOrProtocol, version);\n\n if (!isPayableEvmRelease(release)) {\n return false;\n }\n\n const registry = evmReleaseFeatures[release.protocol] as Record<string, { payable: boolean }>;\n if (!(release.version in registry)) {\n return false;\n }\n\n return registry[release.version].payable;\n}\n\n/**\n * Returns whether the lockup release exposes batch create or withdraw flows.\n * Returns `false` for non-Lockup versions.\n */\nexport function supportsLockupBatch(version: Sablier.EVM.Version): boolean {\n return getLockupReleaseFeatures(version)?.batch ?? false;\n}\n\n/**\n * Returns whether the lockup release integrates with PRBProxy.\n * Returns `false` for non-Lockup versions.\n */\nexport function supportsLockupPrbProxy(version: Sablier.EVM.Version): boolean {\n return getLockupReleaseFeatures(version)?.prbProxy ?? false;\n}\n\n/**\n * Returns whether the lockup release stores shape as an on-chain parameter.\n * Returns `false` for non-Lockup versions.\n */\nexport function supportsLockupShape(version: Sablier.EVM.Version): boolean {\n return getLockupReleaseFeatures(version)?.shape ?? false;\n}\n\n/**\n * Returns whether the release wires a Comptroller reference (`ISablierComptroller` or the legacy\n * `ISablierV2Comptroller`) into its contracts. Returns `false` for protocols that do not expose a Comptroller flag\n * (Bob, Legacy).\n */\nexport function usesComptroller(release: EvmReleaseReference): boolean {\n switch (release.protocol) {\n case Protocol.Airdrops:\n return getAirdropsReleaseFeatures(release.version)?.comptroller ?? false;\n case Protocol.Flow:\n return getFlowReleaseFeatures(release.version)?.comptroller ?? false;\n case Protocol.Lockup:\n return getLockupReleaseFeatures(release.version)?.comptroller ?? false;\n default:\n return false;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../../../src/evm/releases/features.ts"],"names":[],"mappings":";;;AA6QA,gEAQC;AAKD,sDAKC;AAMD,wDAQC;AAMD,4DAQC;AAMD,gCAEC;AAMD,gCAEC;AAaD,4CAwBC;AAMD,8CAEC;AAMD,gEAEC;AAgBD,kDAgBC;AAMD,kDAEC;AAMD,wDAEC;AAOD,oEAEC;AAMD,kDAEC;AAOD,0CAWC;AA5cD,iDAAuD;AAqDvD,SAAS,UAAU,CAAI,KAAQ;IAC7B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,MAAM,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC,KAAgC,CAAC,EAAE,CAAC;QAC1E,UAAU,CAAC,WAAW,CAAC,CAAC;IAC1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9D,OAAO,wBAAwB,CAAC,OAAO,CAAC,EAAE,KAAK,IAAI,KAAK,CAAC;AAC3D,CAAC;AAOD,SAAgB,eAAe,CAAC,OAA4B;IAC1D,QAAQ,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzB,KAAK,mBAAQ,CAAC,QAAQ;YACpB,OAAO,0BAA0B,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,WAAW,IAAI,KAAK,CAAC;QAC3E,KAAK,mBAAQ,CAAC,IAAI;YAChB,OAAO,sBAAsB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,WAAW,IAAI,KAAK,CAAC;QACvE,KAAK,mBAAQ,CAAC,MAAM;YAClB,OAAO,wBAAwB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,WAAW,IAAI,KAAK,CAAC;QACzE;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC","sourcesContent":["/**\n * @file Canonical capability registry for every shipped EVM release.\n *\n * Release builders attach these feature bags to exported release objects, and\n * helper functions read from the same registry so version-dependent behavior\n * stays defined in one place.\n */\nimport { Protocol, Version } from \"@/src/evm/enums.js\";\nimport type { Sablier } from \"@/src/types.js\";\n\n/* -------------------------------------------------------------------------- */\n/* TYPES */\n/* -------------------------------------------------------------------------- */\n\nexport type EvmReleaseVersionByProtocol = {\n airdrops: Sablier.EVM.Version.Airdrops;\n bob: Sablier.EVM.Version.Bob;\n flow: Sablier.EVM.Version.Flow;\n legacy: Sablier.EVM.Version.Legacy;\n lockup: Sablier.EVM.Version.Lockup;\n};\n\nexport type EvmReleaseFeatureSetByProtocol = {\n airdrops: Sablier.EVM.AirdropsReleaseFeatures;\n bob: Sablier.EVM.EmptyReleaseFeatures;\n flow: Sablier.EVM.FlowReleaseFeatures;\n legacy: Sablier.EVM.EmptyReleaseFeatures;\n lockup: Sablier.EVM.LockupReleaseFeatures;\n};\n\ntype EvmReleaseFeatureRegistry = {\n [TProtocol in keyof EvmReleaseVersionByProtocol]: Record<\n EvmReleaseVersionByProtocol[TProtocol],\n EvmReleaseFeatureSetByProtocol[TProtocol]\n >;\n};\n\nexport type ReleaseFeaturesForProtocol<TProtocol extends keyof EvmReleaseFeatureSetByProtocol> =\n EvmReleaseFeatureSetByProtocol[TProtocol];\n\ntype ProtocolFeatureSet<TProtocol extends keyof EvmReleaseFeatureSetByProtocol> =\n EvmReleaseFeatureSetByProtocol[TProtocol];\n\ntype ProtocolWithBooleanFeature<TFeature extends PropertyKey> = {\n [TProtocol in keyof EvmReleaseFeatureSetByProtocol]: ProtocolFeatureSet<TProtocol> extends Record<\n TFeature,\n boolean\n >\n ? TProtocol\n : never;\n}[keyof EvmReleaseFeatureSetByProtocol];\n\ntype EvmReleaseReference = Pick<Sablier.EVM.Release, \"protocol\" | \"version\">;\ntype PayableEvmReleaseReference = {\n [TProtocol in PayableEvmProtocol]: {\n protocol: TProtocol;\n version: EvmReleaseVersionByProtocol[TProtocol];\n };\n}[PayableEvmProtocol];\n\nfunction deepFreeze<T>(value: T): T {\n if (typeof value !== \"object\" || value === null || Object.isFrozen(value)) {\n return value;\n }\n\n for (const nestedValue of Object.values(value as Record<string, unknown>)) {\n deepFreeze(nestedValue);\n }\n\n return Object.freeze(value);\n}\n\nconst emptyReleaseFeatures = deepFreeze({} as const satisfies Sablier.EVM.EmptyReleaseFeatures);\n\n/**\n * Protocol/version feature matrix used by both release resolvers and public helpers.\n *\n * Feature glossary:\n * - `claimTo`: Airdrops campaigns can redirect claims to a third-party recipient; introduced in `airdrops@v2.0`\n *\n * - `comptroller`: Release contracts take a Comptroller reference (`ISablierComptroller` or the legacy\n * `ISablierV2Comptroller`) that governs fee administration. True for `airdrops@v2.0+`, `flow@v2.0+`,\n * `lockup@v1.0`, `lockup@v1.1`, and `lockup@v3.0+`. Lockup v1.2 and v2.0 intentionally dropped the Comptroller wiring\n *\n * - `sponsor`: Airdrops campaigns expose the `sponsor` function; introduced in `airdrops@v3.0`\n *\n * - `payable`: Release entrypoints accept native-token value for protocol fees. This first appears in\n * `airdrops@v1.3`, `flow@v1.1`, and `lockup@v2.0`\n *\n * - `contractMinFee`: Contracts expose an onchain minimum-fee calculation; introduced in `flow@v2.0` and adopted by\n * Lockup in `lockup@v3.0`\n *\n * - `batch`: Lockup releases support batched execution helpers; introduced in `lockup@v2.0`\n *\n * - `shape`: Lockup create flows emit and consume canonical shape identifiers; introduced in `lockup@v2.0`\n *\n * - `simpleTransfer`: Flow releases expose a `transferTokens` wrapper that lets the contract forward an ERC-20 transfer\n * on behalf of the caller; introduced in `flow@v2.0`\n *\n * - `legacyAbi`: Lockup still uses the pre-`lockup@v1.2` split ABI layout and old hook interface; cleared when\n * `lockup@v1.2` shipped the new hook system\n *\n * - `prbProxy`: Lockup still uses the original `prbProxy` deployment wiring from `lockup@v1.0`; this is only true for\n * that initial release and is cleared from `lockup@v1.1` onward\n *\n * - `publicWithdraw`: Any caller may invoke `withdraw` on a Lockup stream as long as `to == recipient`; introduced in\n * `lockup@v1.2`. In `lockup@v1.0` and `lockup@v1.1` only the stream sender, recipient, or an approved address can\n * trigger a withdrawal\n *\n * @see {@link https://github.com/sablier-labs/evm-monorepo/blob/airdrops@v3.0/airdrops/CHANGELOG.md}\n * @see {@link https://github.com/sablier-labs/evm-monorepo/blob/flow@v3.0/flow/CHANGELOG.md}\n * @see {@link https://github.com/sablier-labs/evm-monorepo/blob/lockup@v4.0/lockup/CHANGELOG.md}\n */\nexport const evmReleaseFeatures = deepFreeze({\n [Protocol.Airdrops]: {\n [Version.Airdrops.V1_1]: { claimTo: false, comptroller: false, payable: false, sponsor: false },\n [Version.Airdrops.V1_2]: { claimTo: false, comptroller: false, payable: false, sponsor: false },\n [Version.Airdrops.V1_3]: { claimTo: false, comptroller: false, payable: true, sponsor: false },\n [Version.Airdrops.V2_0]: { claimTo: true, comptroller: true, payable: true, sponsor: false },\n [Version.Airdrops.V3_0]: { claimTo: true, comptroller: true, payable: true, sponsor: true },\n },\n [Protocol.Bob]: {\n [Version.Bob.V1_0]: emptyReleaseFeatures,\n },\n [Protocol.Flow]: {\n [Version.Flow.V1_0]: {\n comptroller: false,\n minFee: false,\n payable: false,\n simpleTransfer: false,\n },\n [Version.Flow.V1_1]: {\n comptroller: false,\n minFee: false,\n payable: true,\n simpleTransfer: false,\n },\n [Version.Flow.V2_0]: { comptroller: true, minFee: true, payable: true, simpleTransfer: true },\n [Version.Flow.V3_0]: { comptroller: true, minFee: true, payable: true, simpleTransfer: true },\n },\n [Protocol.Legacy]: {\n [Version.Legacy.V1_0]: emptyReleaseFeatures,\n [Version.Legacy.V1_1]: emptyReleaseFeatures,\n },\n [Protocol.Lockup]: {\n [Version.Lockup.V1_0]: {\n batch: false,\n comptroller: true,\n legacyAbi: true,\n minFee: false,\n payable: false,\n prbProxy: true,\n publicWithdraw: false,\n shape: false,\n },\n [Version.Lockup.V1_1]: {\n batch: false,\n comptroller: true,\n legacyAbi: true,\n minFee: false,\n payable: false,\n prbProxy: false,\n publicWithdraw: false,\n shape: false,\n },\n [Version.Lockup.V1_2]: {\n batch: false,\n comptroller: false,\n legacyAbi: false,\n minFee: false,\n payable: false,\n prbProxy: false,\n publicWithdraw: true,\n shape: false,\n },\n [Version.Lockup.V2_0]: {\n batch: true,\n comptroller: false,\n legacyAbi: false,\n minFee: false,\n payable: true,\n prbProxy: false,\n publicWithdraw: true,\n shape: true,\n },\n [Version.Lockup.V3_0]: {\n batch: true,\n comptroller: true,\n legacyAbi: false,\n minFee: true,\n payable: true,\n prbProxy: false,\n publicWithdraw: true,\n shape: true,\n },\n [Version.Lockup.V4_0]: {\n batch: true,\n comptroller: true,\n legacyAbi: false,\n minFee: true,\n payable: true,\n prbProxy: false,\n publicWithdraw: true,\n shape: true,\n },\n },\n} as const satisfies EvmReleaseFeatureRegistry);\n\nexport type PayableEvmProtocol = ProtocolWithBooleanFeature<\"payable\">;\n\n/* -------------------------------------------------------------------------- */\n/* PRIVATE HELPERS */\n/* -------------------------------------------------------------------------- */\n\nconst evmReleaseFeatureRegistry: EvmReleaseFeatureRegistry = evmReleaseFeatures;\n\ntype PayableReleaseFeatureRegistry = {\n [TProtocol in PayableEvmProtocol]: Record<\n EvmReleaseVersionByProtocol[TProtocol],\n Pick<ProtocolFeatureSet<TProtocol>, \"payable\">\n >;\n};\n\nconst payableReleaseFeatureRegistry = deepFreeze({\n [Protocol.Airdrops]: evmReleaseFeatures[Protocol.Airdrops],\n [Protocol.Flow]: evmReleaseFeatures[Protocol.Flow],\n [Protocol.Lockup]: evmReleaseFeatures[Protocol.Lockup],\n} satisfies PayableReleaseFeatureRegistry);\n\n/**\n * Narrows protocol checks for helpers that only apply to fee-charging releases.\n */\nfunction isPayableEvmProtocol(protocol: Sablier.EVM.Protocol): protocol is PayableEvmProtocol {\n return protocol in payableReleaseFeatureRegistry;\n}\n\n/**\n * Narrows a release descriptor to protocols whose feature bag includes a payable flag.\n */\nfunction isPayableEvmRelease(release: EvmReleaseReference): release is PayableEvmReleaseReference {\n return isPayableEvmProtocol(release.protocol);\n}\n\n/**\n * Normalizes the supported payable helper overloads to the canonical release shape.\n */\nfunction normalizePayableReleaseInput(\n releaseOrProtocol: EvmReleaseReference | Sablier.EVM.Protocol,\n version?: Sablier.EVM.Version\n): EvmReleaseReference {\n if (typeof releaseOrProtocol !== \"string\") {\n return releaseOrProtocol;\n }\n\n if (!version) {\n throw new Error('Sablier SDK: Missing \"version\" for isEvmReleasePayable(protocol, version)');\n }\n\n return { protocol: releaseOrProtocol, version };\n}\n\n/* -------------------------------------------------------------------------- */\n/* FEATURES */\n/* -------------------------------------------------------------------------- */\n\n/**\n * Reads the airdrops capability matrix for one released version.\n * Returns `undefined` when the version does not belong to the Airdrops protocol.\n */\nexport function getAirdropsReleaseFeatures(\n version: Sablier.EVM.Version\n): Sablier.EVM.AirdropsReleaseFeatures | undefined {\n const registry = evmReleaseFeatures[Protocol.Airdrops];\n if (!(version in registry)) {\n return undefined;\n }\n return registry[version as Sablier.EVM.Version.Airdrops];\n}\n\n/**\n * Returns the protocol-specific feature bag for a single EVM release.\n */\nexport function getEvmReleaseFeatures<TProtocol extends keyof EvmReleaseFeatureSetByProtocol>(\n protocol: TProtocol,\n version: EvmReleaseVersionByProtocol[TProtocol]\n): ReleaseFeaturesForProtocol<TProtocol> {\n return evmReleaseFeatureRegistry[protocol][version] as ReleaseFeaturesForProtocol<TProtocol>;\n}\n\n/**\n * Reads the flow capability matrix for one released version.\n * Returns `undefined` when the version does not belong to the Flow protocol.\n */\nexport function getFlowReleaseFeatures(\n version: Sablier.EVM.Version\n): Sablier.EVM.FlowReleaseFeatures | undefined {\n const registry = evmReleaseFeatures[Protocol.Flow];\n if (!(version in registry)) {\n return undefined;\n }\n return registry[version as Sablier.EVM.Version.Flow];\n}\n\n/**\n * Reads the lockup capability matrix for one released version.\n * Returns `undefined` when the version does not belong to the Lockup protocol.\n */\nexport function getLockupReleaseFeatures(\n version: Sablier.EVM.Version\n): Sablier.EVM.LockupReleaseFeatures | undefined {\n const registry = evmReleaseFeatures[Protocol.Lockup];\n if (!(version in registry)) {\n return undefined;\n }\n return registry[version as Sablier.EVM.Version.Lockup];\n}\n\n/**\n * Returns whether the airdrops release supports the `claimTo` function for claiming to a third-party address.\n * Returns `false` for non-Airdrops versions.\n */\nexport function hasClaimTo(version: Sablier.EVM.Version): boolean {\n return getAirdropsReleaseFeatures(version)?.claimTo ?? false;\n}\n\n/**\n * Returns whether the airdrops release supports sponsor-driven claims.\n * Returns `false` for non-Airdrops versions.\n */\nexport function hasSponsor(version: Sablier.EVM.Version): boolean {\n return getAirdropsReleaseFeatures(version)?.sponsor ?? false;\n}\n\n/**\n * Returns whether a Flow or Lockup release exposes an on-chain minimum fee in wei.\n */\nexport function hasOnchainMinFee(release: EvmReleaseReference): boolean;\n/**\n * @deprecated Pass a release object instead. This overload will be removed in the next major version (v4).\n */\nexport function hasOnchainMinFee(\n protocol: Sablier.EVM.Protocol,\n version: Sablier.EVM.Version\n): boolean;\nexport function hasOnchainMinFee(\n releaseOrProtocol: EvmReleaseReference | Sablier.EVM.Protocol,\n version?: Sablier.EVM.Version\n): boolean {\n let release: EvmReleaseReference;\n\n if (typeof releaseOrProtocol === \"string\") {\n if (!version) {\n throw new Error('Sablier SDK: Missing \"version\" for hasOnchainMinFee(protocol, version)');\n }\n\n release = { protocol: releaseOrProtocol, version };\n } else {\n release = releaseOrProtocol;\n }\n\n switch (release.protocol) {\n case Protocol.Flow:\n return getFlowReleaseFeatures(release.version)?.minFee ?? false;\n case Protocol.Lockup:\n return getLockupReleaseFeatures(release.version)?.minFee ?? false;\n default:\n return false;\n }\n}\n\n/**\n * Returns whether the flow release exposes the `transferTokens` wrapper for forwarding an ERC-20 transfer on behalf of\n * the caller. Returns `false` for non-Flow versions.\n */\nexport function hasSimpleTransfer(version: Sablier.EVM.Version): boolean {\n return getFlowReleaseFeatures(version)?.simpleTransfer ?? false;\n}\n\n/**\n * Returns whether the lockup release uses the split ABI layout.\n * Returns `false` for non-Lockup versions.\n */\nexport function hasSplitLockupArchitecture(version: Sablier.EVM.Version): boolean {\n return getLockupReleaseFeatures(version)?.legacyAbi ?? false;\n}\n\n/** @deprecated Use {@link hasSplitLockupArchitecture} instead. */\nexport const usesLockupSplit = hasSplitLockupArchitecture;\n\n/**\n * Returns whether a release charges native-token fees on claim or withdraw operations.\n */\nexport function isEvmReleasePayable(release: EvmReleaseReference): boolean;\n/**\n * @deprecated Pass a release object instead. This overload will be removed in the next major version (v4).\n */\nexport function isEvmReleasePayable(\n protocol: Sablier.EVM.Protocol,\n version: Sablier.EVM.Version\n): boolean;\nexport function isEvmReleasePayable(\n releaseOrProtocol: EvmReleaseReference | Sablier.EVM.Protocol,\n version?: Sablier.EVM.Version\n): boolean {\n const release = normalizePayableReleaseInput(releaseOrProtocol, version);\n\n if (!isPayableEvmRelease(release)) {\n return false;\n }\n\n const registry = evmReleaseFeatures[release.protocol] as Record<string, { payable: boolean }>;\n if (!(release.version in registry)) {\n return false;\n }\n\n return registry[release.version].payable;\n}\n\n/**\n * Returns whether the lockup release exposes batch create or withdraw flows.\n * Returns `false` for non-Lockup versions.\n */\nexport function supportsLockupBatch(version: Sablier.EVM.Version): boolean {\n return getLockupReleaseFeatures(version)?.batch ?? false;\n}\n\n/**\n * Returns whether the lockup release integrates with PRBProxy.\n * Returns `false` for non-Lockup versions.\n */\nexport function supportsLockupPrbProxy(version: Sablier.EVM.Version): boolean {\n return getLockupReleaseFeatures(version)?.prbProxy ?? false;\n}\n\n/**\n * Returns whether the lockup release allows any caller to invoke `withdraw` as long as `to == recipient`.\n * Releases that return `false` restrict withdrawals to the stream sender, recipient, or an approved address.\n * Returns `false` for non-Lockup versions.\n */\nexport function supportsLockupPublicWithdraw(version: Sablier.EVM.Version): boolean {\n return getLockupReleaseFeatures(version)?.publicWithdraw ?? false;\n}\n\n/**\n * Returns whether the lockup release stores shape as an on-chain parameter.\n * Returns `false` for non-Lockup versions.\n */\nexport function supportsLockupShape(version: Sablier.EVM.Version): boolean {\n return getLockupReleaseFeatures(version)?.shape ?? false;\n}\n\n/**\n * Returns whether the release wires a Comptroller reference (`ISablierComptroller` or the legacy\n * `ISablierV2Comptroller`) into its contracts. Returns `false` for protocols that do not expose a Comptroller flag\n * (Bob, Legacy).\n */\nexport function usesComptroller(release: EvmReleaseReference): boolean {\n switch (release.protocol) {\n case Protocol.Airdrops:\n return getAirdropsReleaseFeatures(release.version)?.comptroller ?? false;\n case Protocol.Flow:\n return getFlowReleaseFeatures(release.version)?.comptroller ?? false;\n case Protocol.Lockup:\n return getLockupReleaseFeatures(release.version)?.comptroller ?? false;\n default:\n return false;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/evm/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AliasMap, Repository, Shared } from \"@/src/shared/types.js\";\nimport type * as enums from \"./enums.js\";\n\nexport namespace EVM {\n /** Ethereum address in the format 0x followed by 40 hex characters. */\n export type Address = `0x${string}`;\n\n export type AbiMap = { [contractName: string]: readonly object[] };\n export type Chain = Shared.Chain & {\n /** Whether this is a zkEVM like zkSync. */\n isZK: boolean;\n rpc: Shared.Chain[\"rpc\"] & {\n /** Alchemy RPC URL generator. */\n alchemy?: (apiKey: string) => string;\n /** Infura RPC URL generator. */\n infura?: (apiKey: string) => string;\n /** RouteMesh RPC URL generator. */\n routemesh?: (apiKey: string) => string;\n };\n };\n\n /**\n * The base contract type for EVM chains.\n */\n export type Contract = Shared.Contract<Address, Protocol, Version>;\n\n /**\n * Reverse mapping of contracts so that we can look up contracts by address.\n */\n export type ContractCatalog = {\n [protocol in Protocol]: {\n [chainId: number]: {\n [address: Address]: Contract;\n };\n };\n };\n\n /**\n * Reverse mapping of contracts by alias for O(1) lookup.\n */\n export type AliasCatalog = {\n [protocol in Protocol]: {\n [chainId: number]: {\n [alias: string]: Contract;\n };\n };\n };\n\n /** @internal */\n export type ContractMap = Shared.ContractMap<Address>;\n\n export type Protocol = `${enums.Protocol}` | enums.Protocol;\n\n export type CompilerSettings = {\n /** The EVM version such as shanghai, paris, etc. */\n evmVersion: string;\n /** Whether the optimizer is enabled. */\n optimizer: boolean;\n /** The number of optimizer runs. */\n optimizerRuns: number;\n /** Optional salt used for CREATE2 deployment. None implies deployment using CREATE. */\n salt?: string;\n /** The solc version used. */\n solcVersion: `v${number}.${number}.${number}`;\n /** Whether the IR is used. */\n viaIR: boolean;\n /** Optional zk version used, only valid for zkEVM chains. */\n zkVersion?: `v${number}.${number}.${number}`;\n };\n\n /* -------------------------------------------------------------------------- */\n /* DEPLOYMENT */\n /* -------------------------------------------------------------------------- */\n\n export namespace Deployment {\n export type Standard = {\n chainId: number;\n contracts: Contract[];\n /** TODO: Compiler settings for the contract. Not implemented yet. */\n compilerSettings?: CompilerSettings;\n };\n\n export type LockupV1 = Standard & {\n core: Contract[];\n periphery: Contract[];\n };\n }\n\n export type Deployment = Deployment.Standard | Deployment.LockupV1;\n\n /* -------------------------------------------------------------------------- */\n /* MANIFEST */\n /* -------------------------------------------------------------------------- */\n\n /**\n * Contract names for a given protocol and version.\n * Note that this may contain both deployed contracts and abstract contracts that are not deployed.\n */\n export namespace Manifest {\n export type LockupV1 = {\n core: Standard;\n periphery: Standard;\n };\n\n export type Standard = Shared.Manifest;\n }\n\n export type Manifest = Manifest.LockupV1 | Manifest.Standard;\n\n /* -------------------------------------------------------------------------- */\n /* RELEASE */\n /* -------------------------------------------------------------------------- */\n\n export type AirdropsReleaseFeatures = {\n payable: boolean;\n claimTo: boolean;\n comptroller: boolean;\n sponsor: boolean;\n };\n\n export type FlowReleaseFeatures = {\n payable: boolean;\n comptroller: boolean;\n minFee: boolean;\n simpleTransfer: boolean;\n };\n\n export type LockupReleaseFeatures = {\n payable: boolean;\n comptroller: boolean;\n minFee: boolean;\n prbProxy: boolean;\n batch: boolean;\n legacyAbi: boolean;\n shape: boolean;\n };\n\n export type EmptyReleaseFeatures = Record<never, never>;\n\n export type EvmReleaseFeatures =\n | AirdropsReleaseFeatures\n | FlowReleaseFeatures\n | LockupReleaseFeatures\n | EmptyReleaseFeatures;\n\n /**\n * A collection of deployments for a given protocol and version.\n */\n export namespace Release {\n type Common<\n TAbiMap extends AbiMap = AbiMap,\n TFeatures extends EvmReleaseFeatures = EvmReleaseFeatures,\n > = {\n abi: TAbiMap;\n /** A map of contract names to their aliases, used in the Sablier Interface and the Graph. */\n aliases?: AliasMap;\n /** An array of contract names. */\n contractNames: string[];\n /** Release capabilities keyed to the owning protocol. */\n features: TFeatures;\n /** Whether this is the latest release for this protocol. */\n isLatest: boolean;\n /** The kind of release. */\n kind: \"standard\" | \"lockupV1\";\n /** The Sablier protocol released, e.g. `airdrops`. */\n protocol: Protocol;\n /** Repository information for the release. */\n repository?: Repository;\n /** The version of the release, e.g., `v1.3`. */\n version: Version;\n };\n\n /**\n * Lockup v1.x release used to separate Lockup contracts into core and periphery sub-categories.\n * @see https://github.com/sablier-labs/v2-periphery\n */\n export type LockupV1<\n TAbiMap extends AbiMap = AbiMap,\n TFeatures extends EvmReleaseFeatures = EvmReleaseFeatures,\n > = Common<TAbiMap, TFeatures> & {\n deployments: Deployment.LockupV1[];\n kind: \"lockupV1\";\n manifest: Manifest.LockupV1;\n };\n\n export type Standard<\n TAbiMap extends AbiMap = AbiMap,\n TFeatures extends EvmReleaseFeatures = EvmReleaseFeatures,\n > = Common<TAbiMap, TFeatures> & {\n deployments: Deployment.Standard[];\n kind: \"standard\";\n manifest: Manifest.Standard;\n };\n }\n\n export type Release = Release.Standard | Release.LockupV1;\n\n /* -------------------------------------------------------------------------- */\n /* VERSION */\n /* -------------------------------------------------------------------------- */\n\n export namespace Version {\n export type Airdrops = `${enums.Version.Airdrops}` | enums.Version.Airdrops;\n\n export type Bob = `${enums.Version.Bob}` | enums.Version.Bob;\n\n export type Flow = `${enums.Version.Flow}` | enums.Version.Flow;\n\n export type Legacy = `${enums.Version.Legacy}` | enums.Version.Legacy;\n\n export type Lockup = `${enums.Version.Lockup}` | enums.Version.Lockup;\n }\n export type Version =\n | Version.Airdrops\n | Version.Bob\n | Version.Flow\n | Version.Legacy\n | Version.Lockup;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/evm/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AliasMap, Repository, Shared } from \"@/src/shared/types.js\";\nimport type * as enums from \"./enums.js\";\n\nexport namespace EVM {\n /** Ethereum address in the format 0x followed by 40 hex characters. */\n export type Address = `0x${string}`;\n\n export type AbiMap = { [contractName: string]: readonly object[] };\n export type Chain = Shared.Chain & {\n /** Whether this is a zkEVM like zkSync. */\n isZK: boolean;\n rpc: Shared.Chain[\"rpc\"] & {\n /** Alchemy RPC URL generator. */\n alchemy?: (apiKey: string) => string;\n /** Infura RPC URL generator. */\n infura?: (apiKey: string) => string;\n /** RouteMesh RPC URL generator. */\n routemesh?: (apiKey: string) => string;\n };\n };\n\n /**\n * The base contract type for EVM chains.\n */\n export type Contract = Shared.Contract<Address, Protocol, Version>;\n\n /**\n * Reverse mapping of contracts so that we can look up contracts by address.\n */\n export type ContractCatalog = {\n [protocol in Protocol]: {\n [chainId: number]: {\n [address: Address]: Contract;\n };\n };\n };\n\n /**\n * Reverse mapping of contracts by alias for O(1) lookup.\n */\n export type AliasCatalog = {\n [protocol in Protocol]: {\n [chainId: number]: {\n [alias: string]: Contract;\n };\n };\n };\n\n /** @internal */\n export type ContractMap = Shared.ContractMap<Address>;\n\n export type Protocol = `${enums.Protocol}` | enums.Protocol;\n\n export type CompilerSettings = {\n /** The EVM version such as shanghai, paris, etc. */\n evmVersion: string;\n /** Whether the optimizer is enabled. */\n optimizer: boolean;\n /** The number of optimizer runs. */\n optimizerRuns: number;\n /** Optional salt used for CREATE2 deployment. None implies deployment using CREATE. */\n salt?: string;\n /** The solc version used. */\n solcVersion: `v${number}.${number}.${number}`;\n /** Whether the IR is used. */\n viaIR: boolean;\n /** Optional zk version used, only valid for zkEVM chains. */\n zkVersion?: `v${number}.${number}.${number}`;\n };\n\n /* -------------------------------------------------------------------------- */\n /* DEPLOYMENT */\n /* -------------------------------------------------------------------------- */\n\n export namespace Deployment {\n export type Standard = {\n chainId: number;\n contracts: Contract[];\n /** TODO: Compiler settings for the contract. Not implemented yet. */\n compilerSettings?: CompilerSettings;\n };\n\n export type LockupV1 = Standard & {\n core: Contract[];\n periphery: Contract[];\n };\n }\n\n export type Deployment = Deployment.Standard | Deployment.LockupV1;\n\n /* -------------------------------------------------------------------------- */\n /* MANIFEST */\n /* -------------------------------------------------------------------------- */\n\n /**\n * Contract names for a given protocol and version.\n * Note that this may contain both deployed contracts and abstract contracts that are not deployed.\n */\n export namespace Manifest {\n export type LockupV1 = {\n core: Standard;\n periphery: Standard;\n };\n\n export type Standard = Shared.Manifest;\n }\n\n export type Manifest = Manifest.LockupV1 | Manifest.Standard;\n\n /* -------------------------------------------------------------------------- */\n /* RELEASE */\n /* -------------------------------------------------------------------------- */\n\n export type AirdropsReleaseFeatures = {\n payable: boolean;\n claimTo: boolean;\n comptroller: boolean;\n sponsor: boolean;\n };\n\n export type FlowReleaseFeatures = {\n payable: boolean;\n comptroller: boolean;\n minFee: boolean;\n simpleTransfer: boolean;\n };\n\n export type LockupReleaseFeatures = {\n payable: boolean;\n comptroller: boolean;\n minFee: boolean;\n prbProxy: boolean;\n publicWithdraw: boolean;\n batch: boolean;\n legacyAbi: boolean;\n shape: boolean;\n };\n\n export type EmptyReleaseFeatures = Record<never, never>;\n\n export type EvmReleaseFeatures =\n | AirdropsReleaseFeatures\n | FlowReleaseFeatures\n | LockupReleaseFeatures\n | EmptyReleaseFeatures;\n\n /**\n * A collection of deployments for a given protocol and version.\n */\n export namespace Release {\n type Common<\n TAbiMap extends AbiMap = AbiMap,\n TFeatures extends EvmReleaseFeatures = EvmReleaseFeatures,\n > = {\n abi: TAbiMap;\n /** A map of contract names to their aliases, used in the Sablier Interface and the Graph. */\n aliases?: AliasMap;\n /** An array of contract names. */\n contractNames: string[];\n /** Release capabilities keyed to the owning protocol. */\n features: TFeatures;\n /** Whether this is the latest release for this protocol. */\n isLatest: boolean;\n /** The kind of release. */\n kind: \"standard\" | \"lockupV1\";\n /** The Sablier protocol released, e.g. `airdrops`. */\n protocol: Protocol;\n /** Repository information for the release. */\n repository?: Repository;\n /** The version of the release, e.g., `v1.3`. */\n version: Version;\n };\n\n /**\n * Lockup v1.x release used to separate Lockup contracts into core and periphery sub-categories.\n * @see https://github.com/sablier-labs/v2-periphery\n */\n export type LockupV1<\n TAbiMap extends AbiMap = AbiMap,\n TFeatures extends EvmReleaseFeatures = EvmReleaseFeatures,\n > = Common<TAbiMap, TFeatures> & {\n deployments: Deployment.LockupV1[];\n kind: \"lockupV1\";\n manifest: Manifest.LockupV1;\n };\n\n export type Standard<\n TAbiMap extends AbiMap = AbiMap,\n TFeatures extends EvmReleaseFeatures = EvmReleaseFeatures,\n > = Common<TAbiMap, TFeatures> & {\n deployments: Deployment.Standard[];\n kind: \"standard\";\n manifest: Manifest.Standard;\n };\n }\n\n export type Release = Release.Standard | Release.LockupV1;\n\n /* -------------------------------------------------------------------------- */\n /* VERSION */\n /* -------------------------------------------------------------------------- */\n\n export namespace Version {\n export type Airdrops = `${enums.Version.Airdrops}` | enums.Version.Airdrops;\n\n export type Bob = `${enums.Version.Bob}` | enums.Version.Bob;\n\n export type Flow = `${enums.Version.Flow}` | enums.Version.Flow;\n\n export type Legacy = `${enums.Version.Legacy}` | enums.Version.Legacy;\n\n export type Lockup = `${enums.Version.Lockup}` | enums.Version.Lockup;\n }\n export type Version =\n | Version.Airdrops\n | Version.Bob\n | Version.Flow\n | Version.Legacy\n | Version.Lockup;\n}\n"]}
|
|
@@ -54,6 +54,15 @@ export const chainSpecs = {
|
|
|
54
54
|
coinGeckoId: "avalanche-2",
|
|
55
55
|
wrapperContract: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
|
|
56
56
|
},
|
|
57
|
+
overrides: {
|
|
58
|
+
blockExplorers: {
|
|
59
|
+
default: {
|
|
60
|
+
apiUrl: "https://api.snowscan.xyz/api",
|
|
61
|
+
name: "Snowscan",
|
|
62
|
+
url: "https://snowscan.xyz",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
57
66
|
rpc: {
|
|
58
67
|
alchemy: "avax-mainnet",
|
|
59
68
|
infura: "avalanche-mainnet",
|