@luno-kit/core 0.0.8 → 0.0.9

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.
@@ -1,3 +1,3 @@
1
- 'use strict';var chunkVDC6UBTV_cjs=require('../chunk-VDC6UBTV.cjs');var u={genesisHash:"0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe",name:"Kusama",nativeCurrency:{name:"Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-rpc.polkadot.io","wss://kusama.api.onfinality.io/public-ws"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://kusama.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.j,testnet:false},h={genesisHash:"0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a",name:"AssetHub Kusama",nativeCurrency:{name:"AssetHub Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-asset-hub-rpc.polkadot.io","wss://asset-hub-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://assethub-kusama.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.b,testnet:false},f={genesisHash:"0xc1af4cb4eb3918e5db15086c0cc5ec17fb334f728b7c65dd44bfe1e174ff8b3f",name:"People Kusama",nativeCurrency:{name:"People Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-people-rpc.polkadot.io","wss://people-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://people-kusama.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.o,testnet:false},k={genesisHash:"0x638cd2b9af4b3bb54b8c1f0d22711fc89924ca93300f0caf25a580432b29d050",name:"Coretime Kusama",nativeCurrency:{name:"Coretime Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-coretime-rpc.polkadot.io","wss://coretime-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://coretime-kusama.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.g,testnet:false};var x={genesisHash:"0x77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f",name:"Paseo",nativeCurrency:{name:"Paseo",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://rpc.ibp.network/paseo","wss://paseo.rpc.amforc.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://paseo.subscan.io/"}},chainIconUrl:chunkVDC6UBTV_cjs.m,testnet:true},y={genesisHash:"0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2",name:"AssetHub Paseo",nativeCurrency:{name:"AssetHub Paseo",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://pas-rpc.stakeworld.io/assethub","wss://asset-hub-paseo-rpc.n.dwellir.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://assethub-paseo.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.c,testnet:true},S={genesisHash:"0xfd974cf9eaf028f5e44b9fdd1949ab039c6cf9cc54449b0b60d71b042e79aeb6",name:"PAassetHub",nativeCurrency:{name:"PassetHub",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://testnet-passet-hub.polkadot.io","wss://passet-hub-paseo.ibp.network"]},ss58Format:42,chainIconUrl:chunkVDC6UBTV_cjs.c,testnet:true};var P={genesisHash:"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3",name:"Polkadot",nativeCurrency:{name:"Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://rpc.polkadot.io","wss://polkadot.api.onfinality.io/public-ws"],http:["https://rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.p,testnet:false},v={genesisHash:"0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f",name:"AssetHub",nativeCurrency:{name:"AssetHub Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-asset-hub-rpc.polkadot.io","wss://asset-hub-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-asset-hub-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://assethub-polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.a,testnet:false},A={genesisHash:"0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008",name:"People",nativeCurrency:{name:"People Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-people-rpc.polkadot.io","wss://people-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-people-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://people-polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.n,testnet:false},K={genesisHash:"0xefb56e30d9b4a24099f88820987d0f45fb645992416535d87650d98e00f46fc4",name:"Coretime",nativeCurrency:{name:"Coretime Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-coretime-rpc.polkadot.io","wss://coretime-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-coretime-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://coretime-polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.f,testnet:false},g={genesisHash:"0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2",name:"Collectives",nativeCurrency:{name:"Collectives Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://collectives-polkadot-rpc.n.dwellir.com","wss://polkadot-collectives-rpc.polkadot.io"],http:["https://collectives-polkadot-rpc.n.dwellir.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://collectives-polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.e,testnet:false};var E={genesisHash:"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",name:"Westend",nativeCurrency:{name:"Westend",symbol:"WND",decimals:12},rpcUrls:{webSocket:["wss://westend-rpc.polkadot.io","wss://westend-rpc.n.dwellir.com"]},ss58Format:42,blockExplorers:{default:{name:"Subscan",url:"https://westend.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.v,testnet:true},D={genesisHash:"0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9",name:"AssetHub Westend",nativeCurrency:{name:"AssetHub Westend",symbol:"WND",decimals:12},rpcUrls:{webSocket:["wss://westend-asset-hub-rpc.polkadot.io","wss://asset-hub-westend-rpc.n.dwellir.com"]},ss58Format:42,blockExplorers:{default:{name:"Subscan",url:"https://assethub-westend.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.d,testnet:true};
2
- exports.kusama=u;exports.kusamaAssetHub=h;exports.kusamaCoretime=k;exports.kusamaPeople=f;exports.paseo=x;exports.paseoAssetHub=y;exports.paseoPassetHub=S;exports.polkadot=P;exports.polkadotAssetHub=v;exports.polkadotCollectives=g;exports.polkadotCoretime=K;exports.polkadotPeople=A;exports.westend=E;exports.westendAssetHub=D;//# sourceMappingURL=index.cjs.map
1
+ 'use strict';var chunkVDC6UBTV_cjs=require('../chunk-VDC6UBTV.cjs');var d={genesisHash:"0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe",name:"Kusama",nativeCurrency:{name:"Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-rpc.polkadot.io","wss://kusama.api.onfinality.io/public-ws"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://kusama.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.j,testnet:false,subscan:{url:"https://kusama.subscan.io",api:"https://kusama.api.subscan.io"}},h={genesisHash:"0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a",name:"AssetHub Kusama",nativeCurrency:{name:"AssetHub Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-asset-hub-rpc.polkadot.io","wss://asset-hub-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://assethub-kusama.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.b,testnet:false,subscan:{url:"https://assethub-kusama.subscan.io",api:"https://assethub-kusama.api.subscan.io"}},k={genesisHash:"0xc1af4cb4eb3918e5db15086c0cc5ec17fb334f728b7c65dd44bfe1e174ff8b3f",name:"People Kusama",nativeCurrency:{name:"People Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-people-rpc.polkadot.io","wss://people-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://people-kusama.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.o,testnet:false,subscan:{url:"https://people-kusama.subscan.io",api:"https://people-kusama.api.subscan.io"}},f={genesisHash:"0x638cd2b9af4b3bb54b8c1f0d22711fc89924ca93300f0caf25a580432b29d050",name:"Coretime Kusama",nativeCurrency:{name:"Coretime Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-coretime-rpc.polkadot.io","wss://coretime-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://coretime-kusama.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.g,testnet:false,subscan:{url:"https://coretime-kusama.subscan.io",api:"https://coretime-kusama.api.subscan.io"}};var x={genesisHash:"0x77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f",name:"Paseo",nativeCurrency:{name:"Paseo",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://rpc.ibp.network/paseo","wss://paseo.rpc.amforc.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://paseo.subscan.io/"}},chainIconUrl:chunkVDC6UBTV_cjs.m,testnet:true,subscan:{url:"https://paseo.subscan.io",api:"https://paseo.api.subscan.io"}},y={genesisHash:"0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2",name:"AssetHub Paseo",nativeCurrency:{name:"AssetHub Paseo",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://pas-rpc.stakeworld.io/assethub","wss://asset-hub-paseo-rpc.n.dwellir.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://assethub-paseo.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.c,testnet:true,subscan:{url:"https://assethub-paseo.subscan.io",api:"https://assethub-paseo.api.subscan.io"}},S={genesisHash:"0xfd974cf9eaf028f5e44b9fdd1949ab039c6cf9cc54449b0b60d71b042e79aeb6",name:"PAassetHub",nativeCurrency:{name:"PassetHub",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://testnet-passet-hub.polkadot.io","wss://passet-hub-paseo.ibp.network"]},ss58Format:42,chainIconUrl:chunkVDC6UBTV_cjs.c,testnet:true};var v={genesisHash:"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3",name:"Polkadot",nativeCurrency:{name:"Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://rpc.polkadot.io","wss://polkadot.api.onfinality.io/public-ws"],http:["https://rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.p,testnet:false,subscan:{url:"https://polkadot.subscan.io",api:"https://polkadot.api.subscan.io"}},P={genesisHash:"0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f",name:"AssetHub",nativeCurrency:{name:"AssetHub Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-asset-hub-rpc.polkadot.io","wss://asset-hub-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-asset-hub-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://assethub-polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.a,testnet:false,subscan:{url:"https://assethub-polkadot.subscan.io",api:"https://assethub-polkadot.api.subscan.io"}},A={genesisHash:"0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008",name:"People",nativeCurrency:{name:"People Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-people-rpc.polkadot.io","wss://people-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-people-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://people-polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.n,testnet:false,subscan:{url:"https://people-polkadot.subscan.io",api:"https://people-polkadot.api.subscan.io"}},K={genesisHash:"0xefb56e30d9b4a24099f88820987d0f45fb645992416535d87650d98e00f46fc4",name:"Coretime",nativeCurrency:{name:"Coretime Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-coretime-rpc.polkadot.io","wss://coretime-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-coretime-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://coretime-polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.f,testnet:false,subscan:{url:"https://coretime-polkadot.subscan.io",api:"https://coretime-polkadot.api.subscan.io"}},g={genesisHash:"0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2",name:"Collectives",nativeCurrency:{name:"Collectives Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://collectives-polkadot-rpc.n.dwellir.com","wss://polkadot-collectives-rpc.polkadot.io"],http:["https://collectives-polkadot-rpc.n.dwellir.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://collectives-polkadot.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.e,testnet:false,subscan:{url:"https://collectives-polkadot.subscan.io",api:"https://collectives-polkadot.api.subscan.io"}};var E={genesisHash:"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",name:"Westend",nativeCurrency:{name:"Westend",symbol:"WND",decimals:12},rpcUrls:{webSocket:["wss://westend-rpc.polkadot.io","wss://westend-rpc.n.dwellir.com"]},ss58Format:42,blockExplorers:{default:{name:"Subscan",url:"https://westend.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.v,testnet:true,subscan:{url:"https://westend.subscan.io",api:"https://westend.api.subscan.io"}},D={genesisHash:"0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9",name:"AssetHub Westend",nativeCurrency:{name:"AssetHub Westend",symbol:"WND",decimals:12},rpcUrls:{webSocket:["wss://westend-asset-hub-rpc.polkadot.io","wss://asset-hub-westend-rpc.n.dwellir.com"]},ss58Format:42,blockExplorers:{default:{name:"Subscan",url:"https://assethub-westend.subscan.io"}},chainIconUrl:chunkVDC6UBTV_cjs.d,testnet:true,subscan:{url:"https://assethub-westend.subscan.io",api:"https://assethub-westend.api.subscan.io"}};
2
+ exports.kusama=d;exports.kusamaAssetHub=h;exports.kusamaCoretime=f;exports.kusamaPeople=k;exports.paseo=x;exports.paseoAssetHub=y;exports.paseoPassetHub=S;exports.polkadot=v;exports.polkadotAssetHub=P;exports.polkadotCollectives=g;exports.polkadotCoretime=K;exports.polkadotPeople=A;exports.westend=E;exports.westendAssetHub=D;//# sourceMappingURL=index.cjs.map
3
3
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/chains/kusama.ts","../../src/chains/paseo.ts","../../src/chains/polkadot.ts","../../src/chains/westend.ts"],"names":["kusama","kusamaChain","kusamaAssetHub","assethubKusamaChain","kusamaPeople","peopleKusamaChain","kusamaCoretime","coretimeKusamaChain","paseo","paseoChain","paseoAssetHub","assethubPaseoChain","paseoPassetHub","polkadot","polkadotChain","polkadotAssetHub","assethubChain","polkadotPeople","peopleChain","polkadotCoretime","coretimeChain","polkadotCollectives","collectivesChain","westend","westendChain","westendAssetHub","assethubWestendChain"],"mappings":"oEAQO,IAAMA,CAAAA,CAAgB,CAC3B,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,QAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,QAAA,CAAU,MAAA,CAAQ,KAAA,CAAO,SAAU,EAAG,CAAA,CAC9D,OAAA,CAAS,CACP,SAAA,CAAW,CAAC,8BAAA,CAAgC,0CAA0C,CACxF,CAAA,CACA,UAAA,CAAY,CAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,UAAW,GAAA,CAAK,2BAA4B,CAAE,CAAA,CACjF,YAAA,CAAcC,mBAAAA,CACd,OAAA,CAAS,KACX,EAEaC,CAAAA,CAAwB,CACnC,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,iBAAA,CACN,cAAA,CAAgB,CAAE,KAAM,iBAAA,CAAmB,MAAA,CAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CACvE,OAAA,CAAS,CACP,UAAW,CACT,wCAAA,CACA,0CACF,CACF,CAAA,CACA,UAAA,CAAY,CAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,oCAAqC,CAAE,CAAA,CAC1F,aAAcC,mBAAAA,CACd,OAAA,CAAS,KACX,CAAA,CAEaC,CAAAA,CAAsB,CACjC,WAAA,CAAa,oEAAA,CACb,KAAM,eAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,eAAA,CAAiB,MAAA,CAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CACrE,OAAA,CAAS,CACP,SAAA,CAAW,CAAC,qCAAA,CAAuC,uCAAuC,CAC5F,EACA,UAAA,CAAY,CAAA,CACZ,cAAA,CAAgB,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AAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,yCAA0C,CAAE,CAAA,CAC/F,YAAA,CAAcC,mBAAAA,CACd,QAAS,KACX,ECnFO,IAAMC,CAAAA,CAAiB,CAC5B,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,UACN,cAAA,CAAgB,CAAE,IAAA,CAAM,SAAA,CAAW,MAAA,CAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,EAC/D,OAAA,CAAS,CAAE,SAAA,CAAW,CAAC,+BAAA,CAAiC,iCAAiC,CAAE,CAAA,CAC3F,WAAY,EAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,4BAA6B,CAAE,CAAA,CAClF,YAAA,CAAcC,mBAAAA,CACd,OAAA,CAAS,IACX,CAAA,CAEaC,CAAAA,CAAyB,CACpC,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,kBAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,kBAAA,CAAoB,OAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CACxE,OAAA,CAAS,CACP,SAAA,CAAW,CACT,0CACA,2CACF,CACF,CAAA,CACA,UAAA,CAAY,EAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,qCAAsC,CAAE,CAAA,CAC3F,YAAA,CAAcC,mBAAAA,CACd,QAAS,IACX","file":"index.cjs","sourcesContent":["import {\n assethubKusamaChain,\n coretimeKusamaChain,\n kusamaChain,\n peopleKusamaChain,\n} from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const kusama: Chain = {\n genesisHash: '0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe',\n name: 'Kusama',\n nativeCurrency: { name: 'Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-rpc.polkadot.io', 'wss://kusama.api.onfinality.io/public-ws'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://kusama.subscan.io' } },\n chainIconUrl: kusamaChain,\n testnet: false,\n};\n\nexport const kusamaAssetHub: Chain = {\n genesisHash: '0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a',\n name: 'AssetHub Kusama',\n nativeCurrency: { name: 'AssetHub Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: [\n 'wss://kusama-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-kusama-rpc.n.dwellir.com',\n ],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-kusama.subscan.io' } },\n chainIconUrl: assethubKusamaChain,\n testnet: false,\n};\n\nexport const kusamaPeople: Chain = {\n genesisHash: '0xc1af4cb4eb3918e5db15086c0cc5ec17fb334f728b7c65dd44bfe1e174ff8b3f',\n name: 'People Kusama',\n nativeCurrency: { name: 'People Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-people-rpc.polkadot.io', 'wss://people-kusama-rpc.n.dwellir.com'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://people-kusama.subscan.io' } },\n chainIconUrl: peopleKusamaChain,\n testnet: false,\n};\n\nexport const kusamaCoretime: Chain = {\n genesisHash: '0x638cd2b9af4b3bb54b8c1f0d22711fc89924ca93300f0caf25a580432b29d050',\n name: 'Coretime Kusama',\n nativeCurrency: { name: 'Coretime Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-coretime-rpc.polkadot.io', 'wss://coretime-kusama-rpc.n.dwellir.com'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://coretime-kusama.subscan.io' } },\n chainIconUrl: coretimeKusamaChain,\n testnet: false,\n};\n","import { assethubPaseoChain, paseoChain } from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const paseo: Chain = {\n genesisHash: '0x77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f',\n name: 'Paseo',\n nativeCurrency: { name: 'Paseo', symbol: 'PAS', decimals: 10 },\n rpcUrls: { webSocket: ['wss://rpc.ibp.network/paseo', 'wss://paseo.rpc.amforc.com'] },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://paseo.subscan.io/' } },\n chainIconUrl: paseoChain,\n testnet: true,\n};\n\nexport const paseoAssetHub: Chain = {\n genesisHash: '0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2',\n name: 'AssetHub Paseo',\n nativeCurrency: { name: 'AssetHub Paseo', symbol: 'PAS', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://pas-rpc.stakeworld.io/assethub', 'wss://asset-hub-paseo-rpc.n.dwellir.com'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-paseo.subscan.io' } },\n chainIconUrl: assethubPaseoChain,\n testnet: true,\n};\n\nexport const paseoPassetHub: Chain = {\n genesisHash: '0xfd974cf9eaf028f5e44b9fdd1949ab039c6cf9cc54449b0b60d71b042e79aeb6',\n name: 'PAassetHub',\n nativeCurrency: { name: 'PassetHub', symbol: 'PAS', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://testnet-passet-hub.polkadot.io', 'wss://passet-hub-paseo.ibp.network'],\n },\n ss58Format: 42,\n chainIconUrl: assethubPaseoChain,\n testnet: true,\n};\n","import {\n assethubChain,\n collectivesChain,\n coretimeChain,\n peopleChain,\n polkadotChain,\n} from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const polkadot: Chain = {\n genesisHash: '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3',\n name: 'Polkadot',\n nativeCurrency: { name: 'Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://rpc.polkadot.io', 'wss://polkadot.api.onfinality.io/public-ws'],\n http: ['https://rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://polkadot.subscan.io' } },\n chainIconUrl: polkadotChain,\n testnet: false,\n};\n\nexport const polkadotAssetHub: Chain = {\n genesisHash: '0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f',\n name: 'AssetHub',\n nativeCurrency: { name: 'AssetHub Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://polkadot-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-polkadot-rpc.n.dwellir.com',\n ],\n http: ['https://polkadot-asset-hub-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-polkadot.subscan.io' } },\n chainIconUrl: assethubChain,\n testnet: false,\n};\n\nexport const polkadotPeople: Chain = {\n genesisHash: '0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008',\n name: 'People',\n nativeCurrency: { name: 'People Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://polkadot-people-rpc.polkadot.io', 'wss://people-polkadot-rpc.n.dwellir.com'],\n http: ['https://polkadot-people-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://people-polkadot.subscan.io' } },\n chainIconUrl: peopleChain,\n testnet: false,\n};\n\nexport const polkadotCoretime: Chain = {\n genesisHash: '0xefb56e30d9b4a24099f88820987d0f45fb645992416535d87650d98e00f46fc4',\n name: 'Coretime',\n nativeCurrency: { name: 'Coretime Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://polkadot-coretime-rpc.polkadot.io',\n 'wss://coretime-polkadot-rpc.n.dwellir.com',\n ],\n http: ['https://polkadot-coretime-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://coretime-polkadot.subscan.io' } },\n chainIconUrl: coretimeChain,\n testnet: false,\n};\n\nexport const polkadotCollectives: Chain = {\n genesisHash: '0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2',\n name: 'Collectives',\n nativeCurrency: { name: 'Collectives Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://collectives-polkadot-rpc.n.dwellir.com',\n 'wss://polkadot-collectives-rpc.polkadot.io',\n ],\n http: ['https://collectives-polkadot-rpc.n.dwellir.com'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://collectives-polkadot.subscan.io' } },\n chainIconUrl: collectivesChain,\n testnet: false,\n};\n","import { assethubWestendChain, westendChain } from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const westend: Chain = {\n genesisHash: '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e',\n name: 'Westend',\n nativeCurrency: { name: 'Westend', symbol: 'WND', decimals: 12 },\n rpcUrls: { webSocket: ['wss://westend-rpc.polkadot.io', 'wss://westend-rpc.n.dwellir.com'] },\n ss58Format: 42,\n blockExplorers: { default: { name: 'Subscan', url: 'https://westend.subscan.io' } },\n chainIconUrl: westendChain,\n testnet: true,\n};\n\nexport const westendAssetHub: Chain = {\n genesisHash: '0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9',\n name: 'AssetHub Westend',\n nativeCurrency: { name: 'AssetHub Westend', symbol: 'WND', decimals: 12 },\n rpcUrls: {\n webSocket: [\n 'wss://westend-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-westend-rpc.n.dwellir.com',\n ],\n },\n ss58Format: 42,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-westend.subscan.io' } },\n chainIconUrl: assethubWestendChain,\n testnet: true,\n};\n"]}
1
+ {"version":3,"sources":["../../src/chains/kusama.ts","../../src/chains/paseo.ts","../../src/chains/polkadot.ts","../../src/chains/westend.ts"],"names":["kusama","kusamaChain","kusamaAssetHub","assethubKusamaChain","kusamaPeople","peopleKusamaChain","kusamaCoretime","coretimeKusamaChain","paseo","paseoChain","paseoAssetHub","assethubPaseoChain","paseoPassetHub","polkadot","polkadotChain","polkadotAssetHub","assethubChain","polkadotPeople","peopleChain","polkadotCoretime","coretimeChain","polkadotCollectives","collectivesChain","westend","westendChain","westendAssetHub","assethubWestendChain"],"mappings":"oEAQO,IAAMA,EAAgB,CAC3B,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,SACN,cAAA,CAAgB,CAAE,IAAA,CAAM,QAAA,CAAU,OAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CAC9D,QAAS,CACP,SAAA,CAAW,CAAC,8BAAA,CAAgC,0CAA0C,CACxF,CAAA,CACA,UAAA,CAAY,CAAA,CACZ,eAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,UAAW,GAAA,CAAK,2BAA4B,CAAE,CAAA,CACjF,YAAA,CAAcC,oBACd,OAAA,CAAS,KAAA,CACT,OAAA,CAAS,CACP,IAAK,2BAAA,CACL,GAAA,CAAK,+BACP,CACF,EAEaC,CAAAA,CAAwB,CACnC,WAAA,CAAa,oEAAA,CACb,KAAM,iBAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,iBAAA,CAAmB,OAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CACvE,QAAS,CACP,SAAA,CAAW,CACT,wCAAA,CACA,0CACF,CACF,CAAA,CACA,UAAA,CAAY,CAAA,CACZ,eAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,IAAK,oCAAqC,CAAE,CAAA,CAC1F,YAAA,CAAcC,oBACd,OAAA,CAAS,KAAA,CACT,OAAA,CAAS,CACP,IAAK,oCAAA,CACL,GAAA,CAAK,wCACP,CACF,EAEaC,CAAAA,CAAsB,CACjC,WAAA,CAAa,oEAAA,CACb,KAAM,eA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AAA,CAAM,kBAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,kBAAA,CAAoB,MAAA,CAAQ,KAAA,CAAO,SAAU,EAAG,CAAA,CACxE,OAAA,CAAS,CACP,UAAW,CACT,yCAAA,CACA,2CACF,CACF,CAAA,CACA,WAAY,EAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,qCAAsC,CAAE,CAAA,CAC3F,YAAA,CAAcC,mBAAAA,CACd,OAAA,CAAS,KACT,OAAA,CAAS,CACP,IAAK,qCAAA,CACL,GAAA,CAAK,yCACP,CACF","file":"index.cjs","sourcesContent":["import {\n assethubKusamaChain,\n coretimeKusamaChain,\n kusamaChain,\n peopleKusamaChain,\n} from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const kusama: Chain = {\n genesisHash: '0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe',\n name: 'Kusama',\n nativeCurrency: { name: 'Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-rpc.polkadot.io', 'wss://kusama.api.onfinality.io/public-ws'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://kusama.subscan.io' } },\n chainIconUrl: kusamaChain,\n testnet: false,\n subscan: {\n url: 'https://kusama.subscan.io',\n api: 'https://kusama.api.subscan.io',\n },\n};\n\nexport const kusamaAssetHub: Chain = {\n genesisHash: '0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a',\n name: 'AssetHub Kusama',\n nativeCurrency: { name: 'AssetHub Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: [\n 'wss://kusama-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-kusama-rpc.n.dwellir.com',\n ],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-kusama.subscan.io' } },\n chainIconUrl: assethubKusamaChain,\n testnet: false,\n subscan: {\n url: 'https://assethub-kusama.subscan.io',\n api: 'https://assethub-kusama.api.subscan.io',\n },\n};\n\nexport const kusamaPeople: Chain = {\n genesisHash: '0xc1af4cb4eb3918e5db15086c0cc5ec17fb334f728b7c65dd44bfe1e174ff8b3f',\n name: 'People Kusama',\n nativeCurrency: { name: 'People Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-people-rpc.polkadot.io', 'wss://people-kusama-rpc.n.dwellir.com'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://people-kusama.subscan.io' } },\n chainIconUrl: peopleKusamaChain,\n testnet: false,\n subscan: {\n url: 'https://people-kusama.subscan.io',\n api: 'https://people-kusama.api.subscan.io',\n },\n};\n\nexport const kusamaCoretime: Chain = {\n genesisHash: '0x638cd2b9af4b3bb54b8c1f0d22711fc89924ca93300f0caf25a580432b29d050',\n name: 'Coretime Kusama',\n nativeCurrency: { name: 'Coretime Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-coretime-rpc.polkadot.io', 'wss://coretime-kusama-rpc.n.dwellir.com'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://coretime-kusama.subscan.io' } },\n chainIconUrl: coretimeKusamaChain,\n testnet: false,\n subscan: {\n url: 'https://coretime-kusama.subscan.io',\n api: 'https://coretime-kusama.api.subscan.io',\n },\n};\n","import { assethubPaseoChain, paseoChain } from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const paseo: Chain = {\n genesisHash: '0x77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f',\n name: 'Paseo',\n nativeCurrency: { name: 'Paseo', symbol: 'PAS', decimals: 10 },\n rpcUrls: { webSocket: ['wss://rpc.ibp.network/paseo', 'wss://paseo.rpc.amforc.com'] },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://paseo.subscan.io/' } },\n chainIconUrl: paseoChain,\n testnet: true,\n subscan: {\n url: 'https://paseo.subscan.io',\n api: 'https://paseo.api.subscan.io',\n },\n};\n\nexport const paseoAssetHub: Chain = {\n genesisHash: '0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2',\n name: 'AssetHub Paseo',\n nativeCurrency: { name: 'AssetHub Paseo', symbol: 'PAS', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://pas-rpc.stakeworld.io/assethub', 'wss://asset-hub-paseo-rpc.n.dwellir.com'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-paseo.subscan.io' } },\n chainIconUrl: assethubPaseoChain,\n testnet: true,\n subscan: {\n url: 'https://assethub-paseo.subscan.io',\n api: 'https://assethub-paseo.api.subscan.io',\n },\n};\n\nexport const paseoPassetHub: Chain = {\n genesisHash: '0xfd974cf9eaf028f5e44b9fdd1949ab039c6cf9cc54449b0b60d71b042e79aeb6',\n name: 'PAassetHub',\n nativeCurrency: { name: 'PassetHub', symbol: 'PAS', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://testnet-passet-hub.polkadot.io', 'wss://passet-hub-paseo.ibp.network'],\n },\n ss58Format: 42,\n chainIconUrl: assethubPaseoChain,\n testnet: true,\n};\n","import {\n assethubChain,\n collectivesChain,\n coretimeChain,\n peopleChain,\n polkadotChain,\n} from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const polkadot: Chain = {\n genesisHash: '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3',\n name: 'Polkadot',\n nativeCurrency: { name: 'Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://rpc.polkadot.io', 'wss://polkadot.api.onfinality.io/public-ws'],\n http: ['https://rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://polkadot.subscan.io' } },\n chainIconUrl: polkadotChain,\n testnet: false,\n subscan: {\n url: 'https://polkadot.subscan.io',\n api: 'https://polkadot.api.subscan.io',\n },\n};\n\nexport const polkadotAssetHub: Chain = {\n genesisHash: '0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f',\n name: 'AssetHub',\n nativeCurrency: { name: 'AssetHub Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://polkadot-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-polkadot-rpc.n.dwellir.com',\n ],\n http: ['https://polkadot-asset-hub-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-polkadot.subscan.io' } },\n chainIconUrl: assethubChain,\n testnet: false,\n subscan: {\n url: 'https://assethub-polkadot.subscan.io',\n api: 'https://assethub-polkadot.api.subscan.io',\n },\n};\n\nexport const polkadotPeople: Chain = {\n genesisHash: '0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008',\n name: 'People',\n nativeCurrency: { name: 'People Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://polkadot-people-rpc.polkadot.io', 'wss://people-polkadot-rpc.n.dwellir.com'],\n http: ['https://polkadot-people-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://people-polkadot.subscan.io' } },\n chainIconUrl: peopleChain,\n testnet: false,\n subscan: {\n url: 'https://people-polkadot.subscan.io',\n api: 'https://people-polkadot.api.subscan.io',\n },\n};\n\nexport const polkadotCoretime: Chain = {\n genesisHash: '0xefb56e30d9b4a24099f88820987d0f45fb645992416535d87650d98e00f46fc4',\n name: 'Coretime',\n nativeCurrency: { name: 'Coretime Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://polkadot-coretime-rpc.polkadot.io',\n 'wss://coretime-polkadot-rpc.n.dwellir.com',\n ],\n http: ['https://polkadot-coretime-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://coretime-polkadot.subscan.io' } },\n chainIconUrl: coretimeChain,\n testnet: false,\n subscan: {\n url: 'https://coretime-polkadot.subscan.io',\n api: 'https://coretime-polkadot.api.subscan.io',\n },\n};\n\nexport const polkadotCollectives: Chain = {\n genesisHash: '0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2',\n name: 'Collectives',\n nativeCurrency: { name: 'Collectives Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://collectives-polkadot-rpc.n.dwellir.com',\n 'wss://polkadot-collectives-rpc.polkadot.io',\n ],\n http: ['https://collectives-polkadot-rpc.n.dwellir.com'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://collectives-polkadot.subscan.io' } },\n chainIconUrl: collectivesChain,\n testnet: false,\n subscan: {\n url: 'https://collectives-polkadot.subscan.io',\n api: 'https://collectives-polkadot.api.subscan.io',\n },\n};\n","import { assethubWestendChain, westendChain } from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const westend: Chain = {\n genesisHash: '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e',\n name: 'Westend',\n nativeCurrency: { name: 'Westend', symbol: 'WND', decimals: 12 },\n rpcUrls: { webSocket: ['wss://westend-rpc.polkadot.io', 'wss://westend-rpc.n.dwellir.com'] },\n ss58Format: 42,\n blockExplorers: { default: { name: 'Subscan', url: 'https://westend.subscan.io' } },\n chainIconUrl: westendChain,\n testnet: true,\n subscan: {\n url: 'https://westend.subscan.io',\n api: 'https://westend.api.subscan.io',\n },\n};\n\nexport const westendAssetHub: Chain = {\n genesisHash: '0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9',\n name: 'AssetHub Westend',\n nativeCurrency: { name: 'AssetHub Westend', symbol: 'WND', decimals: 12 },\n rpcUrls: {\n webSocket: [\n 'wss://westend-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-westend-rpc.n.dwellir.com',\n ],\n },\n ss58Format: 42,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-westend.subscan.io' } },\n chainIconUrl: assethubWestendChain,\n testnet: true,\n subscan: {\n url: 'https://assethub-westend.subscan.io',\n api: 'https://assethub-westend.api.subscan.io',\n },\n};\n"]}
@@ -1,5 +1,10 @@
1
- import { C as Chain } from '../chain-xQJ0MDiz.cjs';
1
+ import { Chain } from '../types/index.cjs';
2
2
  import 'dedot/types';
3
+ import 'dedot';
4
+ import 'dedot/shape';
5
+ import '@walletconnect/universal-provider';
6
+ import 'eventemitter3';
7
+ import '@polkadot-api/pjs-signer';
3
8
 
4
9
  declare const kusama: Chain;
5
10
  declare const kusamaAssetHub: Chain;
@@ -1,5 +1,10 @@
1
- import { C as Chain } from '../chain-xQJ0MDiz.js';
1
+ import { Chain } from '../types/index.js';
2
2
  import 'dedot/types';
3
+ import 'dedot';
4
+ import 'dedot/shape';
5
+ import '@walletconnect/universal-provider';
6
+ import 'eventemitter3';
7
+ import '@polkadot-api/pjs-signer';
3
8
 
4
9
  declare const kusama: Chain;
5
10
  declare const kusamaAssetHub: Chain;
@@ -1,3 +1,3 @@
1
- import {j,b,g as g$1,o,m,c,p,a,e,f as f$1,n,v as v$1,d}from'../chunk-5WHVXOMN.js';var u={genesisHash:"0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe",name:"Kusama",nativeCurrency:{name:"Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-rpc.polkadot.io","wss://kusama.api.onfinality.io/public-ws"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://kusama.subscan.io"}},chainIconUrl:j,testnet:false},h={genesisHash:"0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a",name:"AssetHub Kusama",nativeCurrency:{name:"AssetHub Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-asset-hub-rpc.polkadot.io","wss://asset-hub-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://assethub-kusama.subscan.io"}},chainIconUrl:b,testnet:false},f={genesisHash:"0xc1af4cb4eb3918e5db15086c0cc5ec17fb334f728b7c65dd44bfe1e174ff8b3f",name:"People Kusama",nativeCurrency:{name:"People Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-people-rpc.polkadot.io","wss://people-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://people-kusama.subscan.io"}},chainIconUrl:o,testnet:false},k={genesisHash:"0x638cd2b9af4b3bb54b8c1f0d22711fc89924ca93300f0caf25a580432b29d050",name:"Coretime Kusama",nativeCurrency:{name:"Coretime Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-coretime-rpc.polkadot.io","wss://coretime-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://coretime-kusama.subscan.io"}},chainIconUrl:g$1,testnet:false};var x={genesisHash:"0x77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f",name:"Paseo",nativeCurrency:{name:"Paseo",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://rpc.ibp.network/paseo","wss://paseo.rpc.amforc.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://paseo.subscan.io/"}},chainIconUrl:m,testnet:true},y={genesisHash:"0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2",name:"AssetHub Paseo",nativeCurrency:{name:"AssetHub Paseo",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://pas-rpc.stakeworld.io/assethub","wss://asset-hub-paseo-rpc.n.dwellir.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://assethub-paseo.subscan.io"}},chainIconUrl:c,testnet:true},S={genesisHash:"0xfd974cf9eaf028f5e44b9fdd1949ab039c6cf9cc54449b0b60d71b042e79aeb6",name:"PAassetHub",nativeCurrency:{name:"PassetHub",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://testnet-passet-hub.polkadot.io","wss://passet-hub-paseo.ibp.network"]},ss58Format:42,chainIconUrl:c,testnet:true};var P={genesisHash:"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3",name:"Polkadot",nativeCurrency:{name:"Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://rpc.polkadot.io","wss://polkadot.api.onfinality.io/public-ws"],http:["https://rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://polkadot.subscan.io"}},chainIconUrl:p,testnet:false},v={genesisHash:"0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f",name:"AssetHub",nativeCurrency:{name:"AssetHub Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-asset-hub-rpc.polkadot.io","wss://asset-hub-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-asset-hub-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://assethub-polkadot.subscan.io"}},chainIconUrl:a,testnet:false},A={genesisHash:"0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008",name:"People",nativeCurrency:{name:"People Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-people-rpc.polkadot.io","wss://people-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-people-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://people-polkadot.subscan.io"}},chainIconUrl:n,testnet:false},K={genesisHash:"0xefb56e30d9b4a24099f88820987d0f45fb645992416535d87650d98e00f46fc4",name:"Coretime",nativeCurrency:{name:"Coretime Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-coretime-rpc.polkadot.io","wss://coretime-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-coretime-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://coretime-polkadot.subscan.io"}},chainIconUrl:f$1,testnet:false},g={genesisHash:"0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2",name:"Collectives",nativeCurrency:{name:"Collectives Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://collectives-polkadot-rpc.n.dwellir.com","wss://polkadot-collectives-rpc.polkadot.io"],http:["https://collectives-polkadot-rpc.n.dwellir.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://collectives-polkadot.subscan.io"}},chainIconUrl:e,testnet:false};var E={genesisHash:"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",name:"Westend",nativeCurrency:{name:"Westend",symbol:"WND",decimals:12},rpcUrls:{webSocket:["wss://westend-rpc.polkadot.io","wss://westend-rpc.n.dwellir.com"]},ss58Format:42,blockExplorers:{default:{name:"Subscan",url:"https://westend.subscan.io"}},chainIconUrl:v$1,testnet:true},D={genesisHash:"0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9",name:"AssetHub Westend",nativeCurrency:{name:"AssetHub Westend",symbol:"WND",decimals:12},rpcUrls:{webSocket:["wss://westend-asset-hub-rpc.polkadot.io","wss://asset-hub-westend-rpc.n.dwellir.com"]},ss58Format:42,blockExplorers:{default:{name:"Subscan",url:"https://assethub-westend.subscan.io"}},chainIconUrl:d,testnet:true};
2
- export{u as kusama,h as kusamaAssetHub,k as kusamaCoretime,f as kusamaPeople,x as paseo,y as paseoAssetHub,S as paseoPassetHub,P as polkadot,v as polkadotAssetHub,g as polkadotCollectives,K as polkadotCoretime,A as polkadotPeople,E as westend,D as westendAssetHub};//# sourceMappingURL=index.js.map
1
+ import {j,b,g as g$1,o,m,c,p,a,e,f as f$1,n,v as v$1,d as d$1}from'../chunk-5WHVXOMN.js';var d={genesisHash:"0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe",name:"Kusama",nativeCurrency:{name:"Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-rpc.polkadot.io","wss://kusama.api.onfinality.io/public-ws"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://kusama.subscan.io"}},chainIconUrl:j,testnet:false,subscan:{url:"https://kusama.subscan.io",api:"https://kusama.api.subscan.io"}},h={genesisHash:"0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a",name:"AssetHub Kusama",nativeCurrency:{name:"AssetHub Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-asset-hub-rpc.polkadot.io","wss://asset-hub-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://assethub-kusama.subscan.io"}},chainIconUrl:b,testnet:false,subscan:{url:"https://assethub-kusama.subscan.io",api:"https://assethub-kusama.api.subscan.io"}},k={genesisHash:"0xc1af4cb4eb3918e5db15086c0cc5ec17fb334f728b7c65dd44bfe1e174ff8b3f",name:"People Kusama",nativeCurrency:{name:"People Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-people-rpc.polkadot.io","wss://people-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://people-kusama.subscan.io"}},chainIconUrl:o,testnet:false,subscan:{url:"https://people-kusama.subscan.io",api:"https://people-kusama.api.subscan.io"}},f={genesisHash:"0x638cd2b9af4b3bb54b8c1f0d22711fc89924ca93300f0caf25a580432b29d050",name:"Coretime Kusama",nativeCurrency:{name:"Coretime Kusama",symbol:"KSM",decimals:12},rpcUrls:{webSocket:["wss://kusama-coretime-rpc.polkadot.io","wss://coretime-kusama-rpc.n.dwellir.com"]},ss58Format:2,blockExplorers:{default:{name:"Subscan",url:"https://coretime-kusama.subscan.io"}},chainIconUrl:g$1,testnet:false,subscan:{url:"https://coretime-kusama.subscan.io",api:"https://coretime-kusama.api.subscan.io"}};var x={genesisHash:"0x77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f",name:"Paseo",nativeCurrency:{name:"Paseo",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://rpc.ibp.network/paseo","wss://paseo.rpc.amforc.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://paseo.subscan.io/"}},chainIconUrl:m,testnet:true,subscan:{url:"https://paseo.subscan.io",api:"https://paseo.api.subscan.io"}},y={genesisHash:"0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2",name:"AssetHub Paseo",nativeCurrency:{name:"AssetHub Paseo",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://pas-rpc.stakeworld.io/assethub","wss://asset-hub-paseo-rpc.n.dwellir.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://assethub-paseo.subscan.io"}},chainIconUrl:c,testnet:true,subscan:{url:"https://assethub-paseo.subscan.io",api:"https://assethub-paseo.api.subscan.io"}},S={genesisHash:"0xfd974cf9eaf028f5e44b9fdd1949ab039c6cf9cc54449b0b60d71b042e79aeb6",name:"PAassetHub",nativeCurrency:{name:"PassetHub",symbol:"PAS",decimals:10},rpcUrls:{webSocket:["wss://testnet-passet-hub.polkadot.io","wss://passet-hub-paseo.ibp.network"]},ss58Format:42,chainIconUrl:c,testnet:true};var v={genesisHash:"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3",name:"Polkadot",nativeCurrency:{name:"Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://rpc.polkadot.io","wss://polkadot.api.onfinality.io/public-ws"],http:["https://rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://polkadot.subscan.io"}},chainIconUrl:p,testnet:false,subscan:{url:"https://polkadot.subscan.io",api:"https://polkadot.api.subscan.io"}},P={genesisHash:"0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f",name:"AssetHub",nativeCurrency:{name:"AssetHub Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-asset-hub-rpc.polkadot.io","wss://asset-hub-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-asset-hub-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://assethub-polkadot.subscan.io"}},chainIconUrl:a,testnet:false,subscan:{url:"https://assethub-polkadot.subscan.io",api:"https://assethub-polkadot.api.subscan.io"}},A={genesisHash:"0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008",name:"People",nativeCurrency:{name:"People Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-people-rpc.polkadot.io","wss://people-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-people-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://people-polkadot.subscan.io"}},chainIconUrl:n,testnet:false,subscan:{url:"https://people-polkadot.subscan.io",api:"https://people-polkadot.api.subscan.io"}},K={genesisHash:"0xefb56e30d9b4a24099f88820987d0f45fb645992416535d87650d98e00f46fc4",name:"Coretime",nativeCurrency:{name:"Coretime Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://polkadot-coretime-rpc.polkadot.io","wss://coretime-polkadot-rpc.n.dwellir.com"],http:["https://polkadot-coretime-rpc.polkadot.io"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://coretime-polkadot.subscan.io"}},chainIconUrl:f$1,testnet:false,subscan:{url:"https://coretime-polkadot.subscan.io",api:"https://coretime-polkadot.api.subscan.io"}},g={genesisHash:"0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2",name:"Collectives",nativeCurrency:{name:"Collectives Polkadot",symbol:"DOT",decimals:10},rpcUrls:{webSocket:["wss://collectives-polkadot-rpc.n.dwellir.com","wss://polkadot-collectives-rpc.polkadot.io"],http:["https://collectives-polkadot-rpc.n.dwellir.com"]},ss58Format:0,blockExplorers:{default:{name:"Subscan",url:"https://collectives-polkadot.subscan.io"}},chainIconUrl:e,testnet:false,subscan:{url:"https://collectives-polkadot.subscan.io",api:"https://collectives-polkadot.api.subscan.io"}};var E={genesisHash:"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",name:"Westend",nativeCurrency:{name:"Westend",symbol:"WND",decimals:12},rpcUrls:{webSocket:["wss://westend-rpc.polkadot.io","wss://westend-rpc.n.dwellir.com"]},ss58Format:42,blockExplorers:{default:{name:"Subscan",url:"https://westend.subscan.io"}},chainIconUrl:v$1,testnet:true,subscan:{url:"https://westend.subscan.io",api:"https://westend.api.subscan.io"}},D={genesisHash:"0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9",name:"AssetHub Westend",nativeCurrency:{name:"AssetHub Westend",symbol:"WND",decimals:12},rpcUrls:{webSocket:["wss://westend-asset-hub-rpc.polkadot.io","wss://asset-hub-westend-rpc.n.dwellir.com"]},ss58Format:42,blockExplorers:{default:{name:"Subscan",url:"https://assethub-westend.subscan.io"}},chainIconUrl:d$1,testnet:true,subscan:{url:"https://assethub-westend.subscan.io",api:"https://assethub-westend.api.subscan.io"}};
2
+ export{d as kusama,h as kusamaAssetHub,f as kusamaCoretime,k as kusamaPeople,x as paseo,y as paseoAssetHub,S as paseoPassetHub,v as polkadot,P as polkadotAssetHub,g as polkadotCollectives,K as polkadotCoretime,A as polkadotPeople,E as westend,D as westendAssetHub};//# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/chains/kusama.ts","../../src/chains/paseo.ts","../../src/chains/polkadot.ts","../../src/chains/westend.ts"],"names":["kusama","kusamaChain","kusamaAssetHub","assethubKusamaChain","kusamaPeople","peopleKusamaChain","kusamaCoretime","coretimeKusamaChain","paseo","paseoChain","paseoAssetHub","assethubPaseoChain","paseoPassetHub","polkadot","polkadotChain","polkadotAssetHub","assethubChain","polkadotPeople","peopleChain","polkadotCoretime","coretimeChain","polkadotCollectives","collectivesChain","westend","westendChain","westendAssetHub","assethubWestendChain"],"mappings":"kFAQO,IAAMA,CAAAA,CAAgB,CAC3B,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,QAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,QAAA,CAAU,MAAA,CAAQ,KAAA,CAAO,SAAU,EAAG,CAAA,CAC9D,OAAA,CAAS,CACP,SAAA,CAAW,CAAC,8BAAA,CAAgC,0CAA0C,CACxF,CAAA,CACA,UAAA,CAAY,CAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,UAAW,GAAA,CAAK,2BAA4B,CAAE,CAAA,CACjF,YAAA,CAAcC,CAAAA,CACd,OAAA,CAAS,KACX,EAEaC,CAAAA,CAAwB,CACnC,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,iBAAA,CACN,cAAA,CAAgB,CAAE,KAAM,iBAAA,CAAmB,MAAA,CAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CACvE,OAAA,CAAS,CACP,UAAW,CACT,wCAAA,CACA,0CACF,CACF,CAAA,CACA,UAAA,CAAY,CAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,oCAAqC,CAAE,CAAA,CAC1F,aAAcC,CAAAA,CACd,OAAA,CAAS,KACX,CAAA,CAEaC,CAAAA,CAAsB,CACjC,WAAA,CAAa,oEAAA,CACb,KAAM,eAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,eAAA,CAAiB,MAAA,CAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CACrE,OAAA,CAAS,CACP,SAAA,CAAW,CAAC,qCAAA,CAAuC,uC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,CACA,UAAA,CAAY,CAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,yCAA0C,CAAE,CAAA,CAC/F,YAAA,CAAcC,CAAAA,CACd,QAAS,KACX,ECnFO,IAAMC,CAAAA,CAAiB,CAC5B,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,UACN,cAAA,CAAgB,CAAE,IAAA,CAAM,SAAA,CAAW,MAAA,CAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,EAC/D,OAAA,CAAS,CAAE,SAAA,CAAW,CAAC,+BAAA,CAAiC,iCAAiC,CAAE,CAAA,CAC3F,WAAY,EAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,4BAA6B,CAAE,CAAA,CAClF,YAAA,CAAcC,GAAAA,CACd,OAAA,CAAS,IACX,CAAA,CAEaC,CAAAA,CAAyB,CACpC,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,kBAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,kBAAA,CAAoB,OAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CACxE,OAAA,CAAS,CACP,SAAA,CAAW,CACT,0CACA,2CACF,CACF,CAAA,CACA,UAAA,CAAY,EAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,qCAAsC,CAAE,CAAA,CAC3F,YAAA,CAAcC,CAAAA,CACd,QAAS,IACX","file":"index.js","sourcesContent":["import {\n assethubKusamaChain,\n coretimeKusamaChain,\n kusamaChain,\n peopleKusamaChain,\n} from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const kusama: Chain = {\n genesisHash: '0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe',\n name: 'Kusama',\n nativeCurrency: { name: 'Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-rpc.polkadot.io', 'wss://kusama.api.onfinality.io/public-ws'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://kusama.subscan.io' } },\n chainIconUrl: kusamaChain,\n testnet: false,\n};\n\nexport const kusamaAssetHub: Chain = {\n genesisHash: '0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a',\n name: 'AssetHub Kusama',\n nativeCurrency: { name: 'AssetHub Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: [\n 'wss://kusama-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-kusama-rpc.n.dwellir.com',\n ],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-kusama.subscan.io' } },\n chainIconUrl: assethubKusamaChain,\n testnet: false,\n};\n\nexport const kusamaPeople: Chain = {\n genesisHash: '0xc1af4cb4eb3918e5db15086c0cc5ec17fb334f728b7c65dd44bfe1e174ff8b3f',\n name: 'People Kusama',\n nativeCurrency: { name: 'People Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-people-rpc.polkadot.io', 'wss://people-kusama-rpc.n.dwellir.com'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://people-kusama.subscan.io' } },\n chainIconUrl: peopleKusamaChain,\n testnet: false,\n};\n\nexport const kusamaCoretime: Chain = {\n genesisHash: '0x638cd2b9af4b3bb54b8c1f0d22711fc89924ca93300f0caf25a580432b29d050',\n name: 'Coretime Kusama',\n nativeCurrency: { name: 'Coretime Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-coretime-rpc.polkadot.io', 'wss://coretime-kusama-rpc.n.dwellir.com'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://coretime-kusama.subscan.io' } },\n chainIconUrl: coretimeKusamaChain,\n testnet: false,\n};\n","import { assethubPaseoChain, paseoChain } from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const paseo: Chain = {\n genesisHash: '0x77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f',\n name: 'Paseo',\n nativeCurrency: { name: 'Paseo', symbol: 'PAS', decimals: 10 },\n rpcUrls: { webSocket: ['wss://rpc.ibp.network/paseo', 'wss://paseo.rpc.amforc.com'] },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://paseo.subscan.io/' } },\n chainIconUrl: paseoChain,\n testnet: true,\n};\n\nexport const paseoAssetHub: Chain = {\n genesisHash: '0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2',\n name: 'AssetHub Paseo',\n nativeCurrency: { name: 'AssetHub Paseo', symbol: 'PAS', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://pas-rpc.stakeworld.io/assethub', 'wss://asset-hub-paseo-rpc.n.dwellir.com'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-paseo.subscan.io' } },\n chainIconUrl: assethubPaseoChain,\n testnet: true,\n};\n\nexport const paseoPassetHub: Chain = {\n genesisHash: '0xfd974cf9eaf028f5e44b9fdd1949ab039c6cf9cc54449b0b60d71b042e79aeb6',\n name: 'PAassetHub',\n nativeCurrency: { name: 'PassetHub', symbol: 'PAS', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://testnet-passet-hub.polkadot.io', 'wss://passet-hub-paseo.ibp.network'],\n },\n ss58Format: 42,\n chainIconUrl: assethubPaseoChain,\n testnet: true,\n};\n","import {\n assethubChain,\n collectivesChain,\n coretimeChain,\n peopleChain,\n polkadotChain,\n} from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const polkadot: Chain = {\n genesisHash: '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3',\n name: 'Polkadot',\n nativeCurrency: { name: 'Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://rpc.polkadot.io', 'wss://polkadot.api.onfinality.io/public-ws'],\n http: ['https://rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://polkadot.subscan.io' } },\n chainIconUrl: polkadotChain,\n testnet: false,\n};\n\nexport const polkadotAssetHub: Chain = {\n genesisHash: '0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f',\n name: 'AssetHub',\n nativeCurrency: { name: 'AssetHub Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://polkadot-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-polkadot-rpc.n.dwellir.com',\n ],\n http: ['https://polkadot-asset-hub-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-polkadot.subscan.io' } },\n chainIconUrl: assethubChain,\n testnet: false,\n};\n\nexport const polkadotPeople: Chain = {\n genesisHash: '0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008',\n name: 'People',\n nativeCurrency: { name: 'People Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://polkadot-people-rpc.polkadot.io', 'wss://people-polkadot-rpc.n.dwellir.com'],\n http: ['https://polkadot-people-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://people-polkadot.subscan.io' } },\n chainIconUrl: peopleChain,\n testnet: false,\n};\n\nexport const polkadotCoretime: Chain = {\n genesisHash: '0xefb56e30d9b4a24099f88820987d0f45fb645992416535d87650d98e00f46fc4',\n name: 'Coretime',\n nativeCurrency: { name: 'Coretime Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://polkadot-coretime-rpc.polkadot.io',\n 'wss://coretime-polkadot-rpc.n.dwellir.com',\n ],\n http: ['https://polkadot-coretime-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://coretime-polkadot.subscan.io' } },\n chainIconUrl: coretimeChain,\n testnet: false,\n};\n\nexport const polkadotCollectives: Chain = {\n genesisHash: '0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2',\n name: 'Collectives',\n nativeCurrency: { name: 'Collectives Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://collectives-polkadot-rpc.n.dwellir.com',\n 'wss://polkadot-collectives-rpc.polkadot.io',\n ],\n http: ['https://collectives-polkadot-rpc.n.dwellir.com'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://collectives-polkadot.subscan.io' } },\n chainIconUrl: collectivesChain,\n testnet: false,\n};\n","import { assethubWestendChain, westendChain } from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const westend: Chain = {\n genesisHash: '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e',\n name: 'Westend',\n nativeCurrency: { name: 'Westend', symbol: 'WND', decimals: 12 },\n rpcUrls: { webSocket: ['wss://westend-rpc.polkadot.io', 'wss://westend-rpc.n.dwellir.com'] },\n ss58Format: 42,\n blockExplorers: { default: { name: 'Subscan', url: 'https://westend.subscan.io' } },\n chainIconUrl: westendChain,\n testnet: true,\n};\n\nexport const westendAssetHub: Chain = {\n genesisHash: '0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9',\n name: 'AssetHub Westend',\n nativeCurrency: { name: 'AssetHub Westend', symbol: 'WND', decimals: 12 },\n rpcUrls: {\n webSocket: [\n 'wss://westend-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-westend-rpc.n.dwellir.com',\n ],\n },\n ss58Format: 42,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-westend.subscan.io' } },\n chainIconUrl: assethubWestendChain,\n testnet: true,\n};\n"]}
1
+ {"version":3,"sources":["../../src/chains/kusama.ts","../../src/chains/paseo.ts","../../src/chains/polkadot.ts","../../src/chains/westend.ts"],"names":["kusama","kusamaChain","kusamaAssetHub","assethubKusamaChain","kusamaPeople","peopleKusamaChain","kusamaCoretime","coretimeKusamaChain","paseo","paseoChain","paseoAssetHub","assethubPaseoChain","paseoPassetHub","polkadot","polkadotChain","polkadotAssetHub","assethubChain","polkadotPeople","peopleChain","polkadotCoretime","coretimeChain","polkadotCollectives","collectivesChain","westend","westendChain","westendAssetHub","assethubWestendChain"],"mappings":"yFAQO,IAAMA,EAAgB,CAC3B,WAAA,CAAa,oEAAA,CACb,IAAA,CAAM,SACN,cAAA,CAAgB,CAAE,IAAA,CAAM,QAAA,CAAU,OAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CAC9D,QAAS,CACP,SAAA,CAAW,CAAC,8BAAA,CAAgC,0CAA0C,CACxF,CAAA,CACA,UAAA,CAAY,CAAA,CACZ,eAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,UAAW,GAAA,CAAK,2BAA4B,CAAE,CAAA,CACjF,YAAA,CAAcC,EACd,OAAA,CAAS,KAAA,CACT,OAAA,CAAS,CACP,IAAK,2BAAA,CACL,GAAA,CAAK,+BACP,CACF,EAEaC,CAAAA,CAAwB,CACnC,WAAA,CAAa,oEAAA,CACb,KAAM,iBAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,iBAAA,CAAmB,OAAQ,KAAA,CAAO,QAAA,CAAU,EAAG,CAAA,CACvE,QAAS,CACP,SAAA,CAAW,CACT,wCAAA,CACA,0CACF,CACF,CAAA,CACA,UAAA,CAAY,CAAA,CACZ,eAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,IAAK,oCAAqC,CAAE,CAAA,CAC1F,YAAA,CAAcC,EACd,OAAA,CAAS,KAAA,CACT,OAAA,CAAS,CACP,IAAK,oCAAA,CACL,GAAA,CAAK,wCACP,CACF,EAEaC,CAAAA,CAAsB,CAC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pC,YAAa,oEAAA,CACb,IAAA,CAAM,kBAAA,CACN,cAAA,CAAgB,CAAE,IAAA,CAAM,kBAAA,CAAoB,MAAA,CAAQ,KAAA,CAAO,SAAU,EAAG,CAAA,CACxE,OAAA,CAAS,CACP,UAAW,CACT,yCAAA,CACA,2CACF,CACF,CAAA,CACA,WAAY,EAAA,CACZ,cAAA,CAAgB,CAAE,OAAA,CAAS,CAAE,IAAA,CAAM,SAAA,CAAW,GAAA,CAAK,qCAAsC,CAAE,CAAA,CAC3F,YAAA,CAAcC,GAAAA,CACd,OAAA,CAAS,KACT,OAAA,CAAS,CACP,IAAK,qCAAA,CACL,GAAA,CAAK,yCACP,CACF","file":"index.js","sourcesContent":["import {\n assethubKusamaChain,\n coretimeKusamaChain,\n kusamaChain,\n peopleKusamaChain,\n} from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const kusama: Chain = {\n genesisHash: '0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe',\n name: 'Kusama',\n nativeCurrency: { name: 'Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-rpc.polkadot.io', 'wss://kusama.api.onfinality.io/public-ws'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://kusama.subscan.io' } },\n chainIconUrl: kusamaChain,\n testnet: false,\n subscan: {\n url: 'https://kusama.subscan.io',\n api: 'https://kusama.api.subscan.io',\n },\n};\n\nexport const kusamaAssetHub: Chain = {\n genesisHash: '0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a',\n name: 'AssetHub Kusama',\n nativeCurrency: { name: 'AssetHub Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: [\n 'wss://kusama-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-kusama-rpc.n.dwellir.com',\n ],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-kusama.subscan.io' } },\n chainIconUrl: assethubKusamaChain,\n testnet: false,\n subscan: {\n url: 'https://assethub-kusama.subscan.io',\n api: 'https://assethub-kusama.api.subscan.io',\n },\n};\n\nexport const kusamaPeople: Chain = {\n genesisHash: '0xc1af4cb4eb3918e5db15086c0cc5ec17fb334f728b7c65dd44bfe1e174ff8b3f',\n name: 'People Kusama',\n nativeCurrency: { name: 'People Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-people-rpc.polkadot.io', 'wss://people-kusama-rpc.n.dwellir.com'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://people-kusama.subscan.io' } },\n chainIconUrl: peopleKusamaChain,\n testnet: false,\n subscan: {\n url: 'https://people-kusama.subscan.io',\n api: 'https://people-kusama.api.subscan.io',\n },\n};\n\nexport const kusamaCoretime: Chain = {\n genesisHash: '0x638cd2b9af4b3bb54b8c1f0d22711fc89924ca93300f0caf25a580432b29d050',\n name: 'Coretime Kusama',\n nativeCurrency: { name: 'Coretime Kusama', symbol: 'KSM', decimals: 12 },\n rpcUrls: {\n webSocket: ['wss://kusama-coretime-rpc.polkadot.io', 'wss://coretime-kusama-rpc.n.dwellir.com'],\n },\n ss58Format: 2,\n blockExplorers: { default: { name: 'Subscan', url: 'https://coretime-kusama.subscan.io' } },\n chainIconUrl: coretimeKusamaChain,\n testnet: false,\n subscan: {\n url: 'https://coretime-kusama.subscan.io',\n api: 'https://coretime-kusama.api.subscan.io',\n },\n};\n","import { assethubPaseoChain, paseoChain } from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const paseo: Chain = {\n genesisHash: '0x77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f',\n name: 'Paseo',\n nativeCurrency: { name: 'Paseo', symbol: 'PAS', decimals: 10 },\n rpcUrls: { webSocket: ['wss://rpc.ibp.network/paseo', 'wss://paseo.rpc.amforc.com'] },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://paseo.subscan.io/' } },\n chainIconUrl: paseoChain,\n testnet: true,\n subscan: {\n url: 'https://paseo.subscan.io',\n api: 'https://paseo.api.subscan.io',\n },\n};\n\nexport const paseoAssetHub: Chain = {\n genesisHash: '0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2',\n name: 'AssetHub Paseo',\n nativeCurrency: { name: 'AssetHub Paseo', symbol: 'PAS', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://pas-rpc.stakeworld.io/assethub', 'wss://asset-hub-paseo-rpc.n.dwellir.com'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-paseo.subscan.io' } },\n chainIconUrl: assethubPaseoChain,\n testnet: true,\n subscan: {\n url: 'https://assethub-paseo.subscan.io',\n api: 'https://assethub-paseo.api.subscan.io',\n },\n};\n\nexport const paseoPassetHub: Chain = {\n genesisHash: '0xfd974cf9eaf028f5e44b9fdd1949ab039c6cf9cc54449b0b60d71b042e79aeb6',\n name: 'PAassetHub',\n nativeCurrency: { name: 'PassetHub', symbol: 'PAS', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://testnet-passet-hub.polkadot.io', 'wss://passet-hub-paseo.ibp.network'],\n },\n ss58Format: 42,\n chainIconUrl: assethubPaseoChain,\n testnet: true,\n};\n","import {\n assethubChain,\n collectivesChain,\n coretimeChain,\n peopleChain,\n polkadotChain,\n} from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const polkadot: Chain = {\n genesisHash: '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3',\n name: 'Polkadot',\n nativeCurrency: { name: 'Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://rpc.polkadot.io', 'wss://polkadot.api.onfinality.io/public-ws'],\n http: ['https://rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://polkadot.subscan.io' } },\n chainIconUrl: polkadotChain,\n testnet: false,\n subscan: {\n url: 'https://polkadot.subscan.io',\n api: 'https://polkadot.api.subscan.io',\n },\n};\n\nexport const polkadotAssetHub: Chain = {\n genesisHash: '0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f',\n name: 'AssetHub',\n nativeCurrency: { name: 'AssetHub Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://polkadot-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-polkadot-rpc.n.dwellir.com',\n ],\n http: ['https://polkadot-asset-hub-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-polkadot.subscan.io' } },\n chainIconUrl: assethubChain,\n testnet: false,\n subscan: {\n url: 'https://assethub-polkadot.subscan.io',\n api: 'https://assethub-polkadot.api.subscan.io',\n },\n};\n\nexport const polkadotPeople: Chain = {\n genesisHash: '0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008',\n name: 'People',\n nativeCurrency: { name: 'People Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: ['wss://polkadot-people-rpc.polkadot.io', 'wss://people-polkadot-rpc.n.dwellir.com'],\n http: ['https://polkadot-people-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://people-polkadot.subscan.io' } },\n chainIconUrl: peopleChain,\n testnet: false,\n subscan: {\n url: 'https://people-polkadot.subscan.io',\n api: 'https://people-polkadot.api.subscan.io',\n },\n};\n\nexport const polkadotCoretime: Chain = {\n genesisHash: '0xefb56e30d9b4a24099f88820987d0f45fb645992416535d87650d98e00f46fc4',\n name: 'Coretime',\n nativeCurrency: { name: 'Coretime Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://polkadot-coretime-rpc.polkadot.io',\n 'wss://coretime-polkadot-rpc.n.dwellir.com',\n ],\n http: ['https://polkadot-coretime-rpc.polkadot.io'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://coretime-polkadot.subscan.io' } },\n chainIconUrl: coretimeChain,\n testnet: false,\n subscan: {\n url: 'https://coretime-polkadot.subscan.io',\n api: 'https://coretime-polkadot.api.subscan.io',\n },\n};\n\nexport const polkadotCollectives: Chain = {\n genesisHash: '0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2',\n name: 'Collectives',\n nativeCurrency: { name: 'Collectives Polkadot', symbol: 'DOT', decimals: 10 },\n rpcUrls: {\n webSocket: [\n 'wss://collectives-polkadot-rpc.n.dwellir.com',\n 'wss://polkadot-collectives-rpc.polkadot.io',\n ],\n http: ['https://collectives-polkadot-rpc.n.dwellir.com'],\n },\n ss58Format: 0,\n blockExplorers: { default: { name: 'Subscan', url: 'https://collectives-polkadot.subscan.io' } },\n chainIconUrl: collectivesChain,\n testnet: false,\n subscan: {\n url: 'https://collectives-polkadot.subscan.io',\n api: 'https://collectives-polkadot.api.subscan.io',\n },\n};\n","import { assethubWestendChain, westendChain } from '../config/logos/generated';\nimport type { Chain } from '../types';\n\nexport const westend: Chain = {\n genesisHash: '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e',\n name: 'Westend',\n nativeCurrency: { name: 'Westend', symbol: 'WND', decimals: 12 },\n rpcUrls: { webSocket: ['wss://westend-rpc.polkadot.io', 'wss://westend-rpc.n.dwellir.com'] },\n ss58Format: 42,\n blockExplorers: { default: { name: 'Subscan', url: 'https://westend.subscan.io' } },\n chainIconUrl: westendChain,\n testnet: true,\n subscan: {\n url: 'https://westend.subscan.io',\n api: 'https://westend.api.subscan.io',\n },\n};\n\nexport const westendAssetHub: Chain = {\n genesisHash: '0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9',\n name: 'AssetHub Westend',\n nativeCurrency: { name: 'AssetHub Westend', symbol: 'WND', decimals: 12 },\n rpcUrls: {\n webSocket: [\n 'wss://westend-asset-hub-rpc.polkadot.io',\n 'wss://asset-hub-westend-rpc.n.dwellir.com',\n ],\n },\n ss58Format: 42,\n blockExplorers: { default: { name: 'Subscan', url: 'https://assethub-westend.subscan.io' } },\n chainIconUrl: assethubWestendChain,\n testnet: true,\n subscan: {\n url: 'https://assethub-westend.subscan.io',\n api: 'https://assethub-westend.api.subscan.io',\n },\n};\n"]}
@@ -1,3 +1,3 @@
1
- 'use strict';var chunkVDC6UBTV_cjs=require('../chunk-VDC6UBTV.cjs'),chunkUXRZAYEH_cjs=require('../chunk-UXRZAYEH.cjs'),eventemitter3=require('eventemitter3'),utils=require('dedot/utils');var d=class extends eventemitter3.EventEmitter{constructor(){super();this.links={};this.accounts=[];this.signer=void 0;this.connectionUri=void 0;}async getAccounts(){return [...this.accounts]}async getSigner(){return this.signer||console.warn(`Connector ${this.id}: Signer not available. Connection might be incomplete or failed.`),this.signer}hasConnectionUri(){return false}async getConnectionUri(){return this.connectionUri}};var o=class extends d{constructor(e){super();this.unsubscribe=null;this.specificInjector=void 0;this.id=e.id,this.name=e.name,this.icon=e.icon,this.links=e.links,this.injectorId=e.injectorId||e.id;}isInstalled(){if(typeof window>"u")return false;let e=window.injectedWeb3;return typeof e=="object"&&typeof e[this.injectorId]<"u"}async isAvailable(){return this.isInstalled()}async connect(e){if(console.log(`Connector ${this.id}: Attempting to connect...`),this.signer)return console.log(`Connector ${this.id}: Already connected.`),[...this.accounts];if(!await this.isAvailable())throw new Error(`${this.name} extension not found or not enabled.`);try{if(this.specificInjector=await window.injectedWeb3[this.injectorId].enable(e),!this.specificInjector)throw new Error(`Failed to enable the '${this.id}' extension.`);if(this.signer=this.specificInjector.signer,!this.signer)throw new Error(`Could not get signer from ${this.name}.`);let n=await this.specificInjector.accounts.get();if(n.length===0)throw new Error(`No accounts found in ${this.name}. Make sure accounts are visible and access is granted.`);return this.accounts=chunkUXRZAYEH_cjs.e(n,this.id),console.log(`Connector ${this.id}: Initial accounts loaded`,this.accounts),await this.startSubscription(),this.emit("connect",[...this.accounts]),[...this.accounts]}catch(n){throw console.error(`Connector ${this.id}: Connection failed:`,n),await this.cleanup(),n}}async disconnect(){console.log(`Connector ${this.id}: Disconnecting...`),await this.cleanup(),this.emit("disconnect");}async signMessage(e,n){if(!n||!e)return;let t=await this.getSigner();if(!t||!t?.signRaw)throw new Error("Signer is not available or does not support signRaw.");if(!(await this.getAccounts()).some(i=>i.address.toLowerCase()===n.toLowerCase()))throw new Error(`Address ${n} is not managed by ${this.name}.`);try{let i=utils.stringToHex(e);return (await t.signRaw({address:n,data:i,type:"bytes"})).signature}catch(i){throw console.log("error",i),new Error(`Connector ${this.id}: Failed to sign message: ${i.message}`)}}async startSubscription(){if(await this.cleanupSubscription(),!this.specificInjector)throw new Error(`Connector ${this.id}: Cannot subscribe, specificInjector not available.`);try{this.unsubscribe=this.specificInjector.accounts.subscribe(e=>{let n=chunkUXRZAYEH_cjs.e(e,this.id);JSON.stringify(this.accounts)!==JSON.stringify(n)&&(this.accounts=n,this.emit("accountsChanged",[...this.accounts]));}),console.log(`Connector ${this.id}: Subscribed to account changes.`);}catch(e){console.error(`Connector ${this.id}: Failed to subscribe to accounts:`,e),this.unsubscribe=null;}}async cleanupSubscription(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,console.log(`Connector ${this.id}: Unsubscribed from account changes.`));}async cleanup(){await this.cleanupSubscription(),this.accounts=[],this.signer=void 0,this.specificInjector=void 0;}};var W=()=>new o({id:"enkrypt",name:"Enkrypt",icon:chunkVDC6UBTV_cjs.h,links:{browserExtension:"https://www.enkrypt.com"}});var U=()=>new o({id:"fearless-wallet",name:"Fearless",icon:chunkVDC6UBTV_cjs.i,links:{browserExtension:"https://fearlesswallet.io"}});var C=class extends o{constructor(e){super({...e});this.mimirReady=false;this.mimirInject();}isInstalled(){return this.mimirReady}async mimirInject(){try{if(!(typeof window<"u"&&window!==window.parent))return;let{isMimirReady:n,MIMIR_REGEXP:t,inject:s}=await import('@mimirdev/apps-inject'),i=await n();i&&t.test(i)&&(s(),this.mimirReady=!0);}catch(e){console.error("Failed to inject Mimir:",e);}}async connect(e){if(!this.mimirReady){let{MIMIR_REGEXP:n}=await import('@mimirdev/apps-inject');if(!window.origin||!n.test(window.origin)){window.open(`https://app.mimir.global/explorer/${encodeURIComponent(window.origin)}`);return}}return super.connect(e)}};function R(){return new C({id:"mimir",name:"Mimir",icon:chunkVDC6UBTV_cjs.k,links:{browserExtension:"https://mimir.global"}})}var y=class extends o{constructor(){super({id:"nova-mobile",name:"Nova",icon:chunkVDC6UBTV_cjs.l,injectorId:"polkadot-js",links:{deepLink:"https://app.novawallet.io/open/dapp"}});}isInstalled(){if(typeof window>"u")return false;let p=window.injectedWeb3;return typeof p=="object"&&typeof p["polkadot-js"]<"u"&&window.walletExtension?.isNovaWallet===true}async isAvailable(){return this.isInstalled()}},g=()=>new y;var h=class extends d{constructor(e){super();this.supportedChains=[];this.unsubscribe=null;this.id=e.id||"walletconnect",this.name=e.name||"WalletConnect",this.links=e.links||{},this.icon=e.icon||chunkVDC6UBTV_cjs.u,this.projectId=e.projectId,this.relayUrl=e.relayUrl||"wss://relay.walletconnect.com",this.metadata=e.metadata,this.supportedChains=e.supportedChains||[];}isInstalled(){return false}async isAvailable(){return true}convertChainIdToCaipId(e){return e.map(n=>`polkadot:${(n.genesisHash||n).replace("0x","").slice(0,32)}`)}async connect(e,n){if(!this.projectId)throw new Error(`${this.name} requires a projectId. Please visit https://cloud.walletconnect.com to get one.`);let t=n?.length?n:this.supportedChains.length?this.supportedChains:void 0;if(!t||t.length===0)throw new Error(`${this.name} requires chains configuration.`);this.connectedChains=t;let{UniversalProvider:s}=await import('@walletconnect/universal-provider');try{if(this.provider=await s.init({projectId:this.projectId,relayUrl:this.relayUrl,metadata:this.metadata||{name:e,description:"LunoKit DApp",url:typeof window<"u"?window.location.origin:"",icons:[this.icon]}}),this.provider.session){this.session=this.provider.session;let u=this.getAccountsFromSession(t);return this.accounts=u,await this.startSubscription(),this.emit("connect",[...this.accounts]),[...this.accounts]}if(!this.provider?.client)throw new Error("Provider not initialized or not connected");let{uri:i,approval:r}=await this.provider.client.connect({requiredNamespaces:{polkadot:{methods:["polkadot_signMessage","polkadot_sendTransaction","polkadot_signTransaction","polkadot_requestAccounts"],chains:this.convertChainIdToCaipId(t),events:["accountsChanged","chainChanged","connect"]}},optionalNamespaces:{polkadot:{methods:["polkadot_signMessage","polkadot_sendTransaction","polkadot_signTransaction","polkadot_requestAccounts"],chains:this.convertChainIdToCaipId(t),events:["accountsChanged","chainChanged","connect"]}}});this.emit("get_uri",i);let a=await r();this.session=a,this.provider.session=a,this.connectionUri=void 0;let l=this.getAccountsFromSession(t);return this.accounts=l,await this.startSubscription(),this.emit("connect",[...this.accounts]),[...this.accounts]}catch(i){throw this.connectionUri=void 0,i}}getAccountsFromSession(e){let n=[e[0].genesisHash||e[0]],t=this.convertChainIdToCaipId(n)[0],s=this.session?.namespaces.polkadot.accounts.flat().filter(r=>r.includes(t)).map(r=>r.replace(`${t}:`,""));if(s&&s.length===0){console.error("No accounts found for the specified chain, please connect to the correct chain");let r=this.convertChainIdToCaipId(e)[0];s=this.session?.namespaces.polkadot.accounts.flat().filter(a=>a.includes(r)).map(a=>a.replace(`${r}:`,""));}let i=s.map(r=>({address:r,name:`${this.name} Account`,meta:{source:this.id},publicKey:void 0}));return this.emit("accountsChanged",[...i]),i}async disconnect(){try{this.provider&&await Promise.race([await this.provider.disconnect(),new Promise((e,n)=>setTimeout(()=>n(new Error("Disconnect timeout")),5e3))]);}catch{}await this.cleanup(),this.emit("disconnect");}async signMessage(e,n){if(!this.provider?.client||!this.session?.topic)throw new Error("Provider not initialized or not connected");try{let t=await this.getSigner();if(!t)throw new Error("No signer provided");let{signature:s}=await t.signRaw({address:n,data:e,type:"bytes"});return s}catch(t){throw console.error("Sign message error:",t),t}}hasConnectionUri(){return true}async getConnectionUri(){return this.connectionUri?this.connectionUri:new Promise(e=>{this.once("get_uri",n=>{this.connectionUri=n,e(n);});})}async getSigner(){if(!(!this.provider?.client||!this.session))return {signPayload:async e=>{let n=`polkadot:${e.genesisHash.replace("0x","").slice(0,32)}`,s=this.session.namespaces.polkadot.accounts.find(l=>{let u=l.replace(`${n}:`,"");return l.includes(n)&&chunkUXRZAYEH_cjs.c(e.address,u)});if(!s)throw new Error(`Chain ${e.genesisHash} is not supported by the wallet.}`);let i=s.replace(`${n}:`,""),r={...e,address:i};return await this.provider?.client?.request({topic:this.session.topic,chainId:`polkadot:${r.genesisHash.replace("0x","").slice(0,32)}`,request:{method:"polkadot_signTransaction",params:{address:i,transactionPayload:r}}})},signRaw:async e=>{let n=this.convertChainIdToCaipId(this.connectedChains)[0],s=this.session.namespaces.polkadot.accounts.find(l=>{let u=l.replace(`${n}:`,"");return l.includes(n)&&chunkUXRZAYEH_cjs.c(e.address,u)});if(!s)throw new Error(`No accounts available for chain ${n}`);let i=s.replace(`${n}:`,""),r={...e};return await this.provider.client.request({topic:this.session.topic,chainId:n,request:{method:"polkadot_signMessage",params:{address:i,message:r.data,type:r.type}}})}}}async startSubscription(){if(await this.cleanupSubscription(),!this.provider?.client||!this.session)throw new Error(`Connector ${this.id}: Cannot subscribe, provider or session not available.`);try{let e=async()=>{console.log(`Connector ${this.id}: Session deleted, disconnecting...`),await this.cleanup(),this.emit("disconnect");};this.provider.client.on("session_delete",e),this.unsubscribe=()=>{this.provider?.client?.off("session_delete",e);};}catch{this.unsubscribe=null;}}async cleanupSubscription(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,console.log(`Connector ${this.id}: Unsubscribed from events.`));}async cleanup(){await this.cleanupSubscription(),this.accounts=[],this.signer=void 0,this.provider=void 0,this.session=void 0;}},M=c=>new h(c);var O=c=>chunkUXRZAYEH_cjs.i()?g():!chunkUXRZAYEH_cjs.i()&&"mobileOnly"in c&&c.mobileOnly?(console.error("Nova Wallet mobile connector is being used on a desktop device. This may not work as expected."),g()):new h({id:"nova",name:"Nova",icon:chunkVDC6UBTV_cjs.l,links:{browserExtension:"https://novawallet.io"},...c});var T=()=>new o({id:"polkadot-js",name:"Polkadot{.js}",icon:chunkVDC6UBTV_cjs.q,links:{browserExtension:"https://polkadot.js.org/extension"}});var _=()=>new o({id:"polkagate",name:"Polkagate",icon:chunkVDC6UBTV_cjs.r,links:{browserExtension:"https://chromewebstore.google.com/detail/polkagate-the-gateway-to/ginchbkmljhldofnbjabmeophlhdldgp"}});var N=()=>new o({id:"subwallet-js",name:"SubWallet",icon:chunkVDC6UBTV_cjs.s,links:{browserExtension:"https://chromewebstore.google.com/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",deepLink:"https://mobile.subwallet.app/browser"}});var H=()=>new o({id:"talisman",name:"Talisman",icon:chunkVDC6UBTV_cjs.t,links:{browserExtension:"https://chromewebstore.google.com/detail/talisman-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld"}});
1
+ 'use strict';var chunkVDC6UBTV_cjs=require('../chunk-VDC6UBTV.cjs'),chunkUXRZAYEH_cjs=require('../chunk-UXRZAYEH.cjs'),eventemitter3=require('eventemitter3'),utils=require('dedot/utils');var d=class extends eventemitter3.EventEmitter{constructor(){super();this.links={};this.accounts=[];this.signer=void 0;this.connectionUri=void 0;}async getAccounts(){return [...this.accounts]}async getSigner(){return this.signer||console.warn(`Connector ${this.id}: Signer not available. Connection might be incomplete or failed.`),this.signer}hasConnectionUri(){return false}async getConnectionUri(){return this.connectionUri}};var o=class extends d{constructor(e){super();this.unsubscribe=null;this.specificInjector=void 0;this.id=e.id,this.name=e.name,this.icon=e.icon,this.links=e.links,this.injectorId=e.injectorId||e.id;}isInstalled(){if(typeof window>"u")return false;let e=window.injectedWeb3;return typeof e=="object"&&typeof e[this.injectorId]<"u"}async isAvailable(){return this.isInstalled()}async connect(e){if(console.log(`Connector ${this.id}: Attempting to connect...`),this.signer)return console.log(`Connector ${this.id}: Already connected.`),[...this.accounts];if(!await this.isAvailable())throw new Error(`${this.name} extension not found or not enabled.`);try{if(this.specificInjector=await window.injectedWeb3[this.injectorId].enable(e),!this.specificInjector)throw new Error(`Failed to enable the '${this.id}' extension.`);if(this.signer=this.specificInjector.signer,!this.signer)throw new Error(`Could not get signer from ${this.name}.`);let t=await this.specificInjector.accounts.get();if(t.length===0)throw new Error(`No accounts found in ${this.name}. Make sure accounts are visible and access is granted.`);return this.accounts=chunkUXRZAYEH_cjs.e(t,this.id),console.log(`Connector ${this.id}: Initial accounts loaded`,this.accounts),await this.startSubscription(),this.emit("connect",[...this.accounts]),[...this.accounts]}catch(t){throw console.error(`Connector ${this.id}: Connection failed:`,t),await this.cleanup(),t}}async disconnect(){console.log(`Connector ${this.id}: Disconnecting...`),await this.cleanup(),this.emit("disconnect");}async signMessage(e,t){if(!t||!e)return;let n=await this.getSigner();if(!n||!n?.signRaw)throw new Error("Signer is not available or does not support signRaw.");if(!(await this.getAccounts()).some(i=>i.address.toLowerCase()===t.toLowerCase()))throw new Error(`Address ${t} is not managed by ${this.name}.`);try{let i=utils.stringToHex(e);return (await n.signRaw({address:t,data:i,type:"bytes"})).signature}catch(i){throw console.log("error",i),new Error(`Connector ${this.id}: Failed to sign message: ${i.message}`)}}async startSubscription(){if(await this.cleanupSubscription(),!this.specificInjector)throw new Error(`Connector ${this.id}: Cannot subscribe, specificInjector not available.`);try{this.unsubscribe=this.specificInjector.accounts.subscribe(e=>{let t=chunkUXRZAYEH_cjs.e(e,this.id);JSON.stringify(this.accounts)!==JSON.stringify(t)&&(this.accounts=t,this.emit("accountsChanged",[...this.accounts]));}),console.log(`Connector ${this.id}: Subscribed to account changes.`);}catch(e){console.error(`Connector ${this.id}: Failed to subscribe to accounts:`,e),this.unsubscribe=null;}}async cleanupSubscription(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,console.log(`Connector ${this.id}: Unsubscribed from account changes.`));}async cleanup(){await this.cleanupSubscription(),this.accounts=[],this.signer=void 0,this.specificInjector=void 0;}};var W=()=>new o({id:"enkrypt",name:"Enkrypt",icon:chunkVDC6UBTV_cjs.h,links:{browserExtension:"https://www.enkrypt.com"}});var U=()=>new o({id:"fearless-wallet",name:"Fearless",icon:chunkVDC6UBTV_cjs.i,links:{browserExtension:"https://fearlesswallet.io"}});var C=class extends o{constructor(e){super({...e});this.mimirReady=false;this.mimirInject();}isInstalled(){return this.mimirReady}async mimirInject(){try{if(!(typeof window<"u"&&window!==window.parent))return;let{isMimirReady:t,MIMIR_REGEXP:n,inject:s}=await import('@mimirdev/apps-inject'),i=await t();i&&n.test(i)&&(s(),this.mimirReady=!0);}catch(e){console.error("Failed to inject Mimir:",e);}}async connect(e){if(!this.mimirReady){let{MIMIR_REGEXP:t}=await import('@mimirdev/apps-inject');if(!window.origin||!t.test(window.origin)){window.open(`https://app.mimir.global/explorer/${encodeURIComponent(window.origin)}`);return}}return super.connect(e)}};function R(){return new C({id:"mimir",name:"Mimir",icon:chunkVDC6UBTV_cjs.k,links:{browserExtension:"https://mimir.global"}})}var y=class extends o{constructor(){super({id:"nova-mobile",name:"Nova",icon:chunkVDC6UBTV_cjs.l,injectorId:"polkadot-js",links:{deepLink:"https://app.novawallet.io/open/dapp"}});}isInstalled(){if(typeof window>"u")return false;let p=window.injectedWeb3;return typeof p=="object"&&typeof p["polkadot-js"]<"u"&&window.walletExtension?.isNovaWallet===true}async isAvailable(){return this.isInstalled()}},g=()=>new y;var h=class extends d{constructor(e){super();this.supportedChains=[];this.unsubscribe=null;this.id=e.id||"walletconnect",this.name=e.name||"WalletConnect",this.links=e.links||{},this.icon=e.icon||chunkVDC6UBTV_cjs.u,this.projectId=e.projectId,this.relayUrl=e.relayUrl||"wss://relay.walletconnect.com",this.metadata=e.metadata,this.supportedChains=e.supportedChains||[];}isInstalled(){return false}async isAvailable(){return true}convertChainIdToCaipId(e){return e.map(t=>`polkadot:${(t.genesisHash||t).replace("0x","").slice(0,32)}`)}async connect(e,t){if(!this.projectId)throw new Error(`${this.name} requires a projectId. Please visit https://cloud.walletconnect.com to get one.`);let n=t?.length?t:this.supportedChains.length?this.supportedChains:void 0;if(!n||n.length===0)throw new Error(`${this.name} requires chains configuration.`);this.connectedChains=n;let{UniversalProvider:s}=await import('@walletconnect/universal-provider');try{if(this.provider=await s.init({projectId:this.projectId,relayUrl:this.relayUrl,metadata:this.metadata||{name:e,description:"LunoKit DApp",url:typeof window<"u"?window.location.origin:"",icons:[this.icon]}}),this.provider.session){this.session=this.provider.session;let u=this.getAccountsFromSession(n);return this.accounts=u,await this.startSubscription(),this.emit("connect",[...this.accounts]),[...this.accounts]}if(!this.provider?.client)throw new Error("Provider not initialized or not connected");let{uri:i,approval:r}=await this.provider.client.connect({requiredNamespaces:{polkadot:{methods:["polkadot_signMessage","polkadot_sendTransaction","polkadot_signTransaction","polkadot_requestAccounts"],chains:this.convertChainIdToCaipId(n),events:["accountsChanged","chainChanged","connect"]}},optionalNamespaces:{polkadot:{methods:["polkadot_signMessage","polkadot_sendTransaction","polkadot_signTransaction","polkadot_requestAccounts"],chains:this.convertChainIdToCaipId(n),events:["accountsChanged","chainChanged","connect"]}}});this.emit("get_uri",i);let a=await r();this.session=a,this.provider.session=a,this.connectionUri=void 0;let l=this.getAccountsFromSession(n);return this.accounts=l,await this.startSubscription(),this.emit("connect",[...this.accounts]),[...this.accounts]}catch(i){throw this.connectionUri=void 0,i}}getAccountsFromSession(e){let t=[e[0].genesisHash||e[0]],n=this.convertChainIdToCaipId(t)[0],s=this.session?.namespaces.polkadot.accounts.flat().filter(r=>r.includes(n)).map(r=>r.replace(`${n}:`,""));if(s&&s.length===0){console.error("No accounts found for the specified chain, please connect to the correct chain");let r=this.convertChainIdToCaipId(e)[0];s=this.session?.namespaces.polkadot.accounts.flat().filter(a=>a.includes(r)).map(a=>a.replace(`${r}:`,""));}let i=s.map(r=>({address:r,name:`${this.name} Account`,meta:{source:this.id},publicKey:void 0}));return this.emit("accountsChanged",[...i]),i}async disconnect(){try{this.provider&&await Promise.race([await this.provider.disconnect(),new Promise((e,t)=>setTimeout(()=>t(new Error("Disconnect timeout")),5e3))]);}catch{}await this.cleanup(),this.emit("disconnect");}async signMessage(e,t){if(!this.provider?.client||!this.session?.topic)throw new Error("Provider not initialized or not connected");try{let n=await this.getSigner();if(!n)throw new Error("No signer provided");let{signature:s}=await n.signRaw({address:t,data:e,type:"bytes"});return s}catch(n){throw console.error("Sign message error:",n),n}}hasConnectionUri(){return true}async getConnectionUri(){return this.connectionUri?this.connectionUri:new Promise(e=>{this.once("get_uri",t=>{this.connectionUri=t,e(t);});})}async getSigner(){if(!(!this.provider?.client||!this.session))return {signPayload:async e=>{let t=`polkadot:${e.genesisHash.replace("0x","").slice(0,32)}`,s=this.session.namespaces.polkadot.accounts.find(l=>{let u=l.replace(`${t}:`,"");return l.includes(t)&&chunkUXRZAYEH_cjs.c(e.address,u)});if(!s)throw new Error(`Chain ${e.genesisHash} is not supported by the wallet.}`);let i=s.replace(`${t}:`,""),r={...e,address:i};return await this.provider?.client?.request({topic:this.session.topic,chainId:`polkadot:${r.genesisHash.replace("0x","").slice(0,32)}`,request:{method:"polkadot_signTransaction",params:{address:i,transactionPayload:r}}})},signRaw:async e=>{let t=this.convertChainIdToCaipId(this.connectedChains)[0],s=this.session.namespaces.polkadot.accounts.find(l=>{let u=l.replace(`${t}:`,"");return l.includes(t)&&chunkUXRZAYEH_cjs.c(e.address,u)});if(!s)throw new Error(`No accounts available for chain ${t}`);let i=s.replace(`${t}:`,""),r={...e};return await this.provider.client.request({topic:this.session.topic,chainId:t,request:{method:"polkadot_signMessage",params:{address:i,message:r.data,type:r.type}}})}}}async startSubscription(){if(await this.cleanupSubscription(),!this.provider?.client||!this.session)throw new Error(`Connector ${this.id}: Cannot subscribe, provider or session not available.`);try{let e=async()=>{console.log(`Connector ${this.id}: Session deleted, disconnecting...`),await this.cleanup(),this.emit("disconnect");};this.provider.client.on("session_delete",e),this.unsubscribe=()=>{this.provider?.client?.off("session_delete",e);};}catch{this.unsubscribe=null;}}async cleanupSubscription(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,console.log(`Connector ${this.id}: Unsubscribed from events.`));}async cleanup(){await this.cleanupSubscription(),this.accounts=[],this.signer=void 0,this.provider=void 0,this.session=void 0;}},M=c=>new h(c);var O=c=>chunkUXRZAYEH_cjs.i()?g():!chunkUXRZAYEH_cjs.i()&&"mobileOnly"in c&&c.mobileOnly?(console.error("Nova Wallet mobile connector is being used on a desktop device. This may not work as expected."),g()):new h({id:"nova",name:"Nova",icon:chunkVDC6UBTV_cjs.l,links:{browserExtension:"https://novawallet.io"},...c});var T=()=>new o({id:"polkadot-js",name:"Polkadot{.js}",icon:chunkVDC6UBTV_cjs.q,links:{browserExtension:"https://polkadot.js.org/extension"}});var _=()=>new o({id:"polkagate",name:"Polkagate",icon:chunkVDC6UBTV_cjs.r,links:{browserExtension:"https://chromewebstore.google.com/detail/polkagate-the-gateway-to/ginchbkmljhldofnbjabmeophlhdldgp"}});var N=()=>new o({id:"subwallet-js",name:"SubWallet",icon:chunkVDC6UBTV_cjs.s,links:{browserExtension:"https://chromewebstore.google.com/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",deepLink:"https://mobile.subwallet.app/browser"}});var H=()=>new o({id:"talisman",name:"Talisman",icon:chunkVDC6UBTV_cjs.t,links:{browserExtension:"https://chromewebstore.google.com/detail/talisman-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld"}});
2
2
  exports.BaseConnector=d;exports.InjectConnector=o;exports.enkryptConnector=W;exports.fearlessConnector=U;exports.mimirConnector=R;exports.novaConnector=O;exports.novaMobileConnector=g;exports.polkadotjsConnector=T;exports.polkagateConnector=_;exports.subwalletConnector=N;exports.talismanConnector=H;exports.walletConnectConnector=M;//# sourceMappingURL=index.cjs.map
3
3
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/connectors/base.ts","../../src/connectors/inject.ts","../../src/connectors/enkrypt.ts","../../src/connectors/fearless.ts","../../src/connectors/mimir.ts","../../src/connectors/novaMobile.ts","../../src/connectors/walletconnect.ts","../../src/connectors/nova.ts","../../src/connectors/polkadot-js.ts","../../src/connectors/polkagate.ts","../../src/connectors/subwallet.ts","../../src/connectors/talisman.ts"],"names":["BaseConnector","EventEmitter","InjectConnector","options","injectedWeb3","appName","rawAccounts","mapInjectedAccounts","error","message","address","signer","acc","dataHex","stringToHex","updatedRawAccounts","newAccounts","enkryptConnector","enkryptWallet","fearlessConnector","fearlessWallet","MimirConnector","isMimirReady","MIMIR_REGEXP","inject","origin","mimirConnector","mimirWallet","NovaMobileConnector","novaWallet","novaMobileConnector","WalletConnectConnector","walletconnectWallet","chains","chain","effectiveChains","UniversalProvider","accounts","uri","approval","session","targetChain","caipId","result","_","reject","signature","resolve","payload","chainCaipId","chainAccount","isSameAddress","chainAddress","updatedPayload","sessionDeleteHandler","walletConnectConnector","novaConnector","config","isMobileDevice","polkadotjsConnector","polkadotjsWallet","polkagateConnector","polkagateWallet","subwalletConnector","subwalletWallet","talismanConnector","talismanWallet"],"mappings":"2LAOO,IAAeA,CAAAA,CAAf,cAAqCC,0BAAa,CAiCvD,WAAA,EAAc,CACZ,KAAA,EAAM,CAfR,KAAS,KAAA,CAAwB,EAAC,CAKlC,IAAA,CAAU,QAAA,CAAsB,EAAC,CAKjC,IAAA,CAAU,MAAA,CAA6B,MAAA,CAEvC,IAAA,CAAU,aAAA,CAAoC,OAI9C,CAiCA,MAAa,WAAA,EAAuC,CAClD,OAAO,CAAC,GAAG,IAAA,CAAK,QAAQ,CAC1B,CAMA,MAAa,SAAA,EAAyC,CACpD,OAAK,KAAK,MAAA,EACR,OAAA,CAAQ,IAAA,CACN,CAAA,UAAA,EAAa,IAAA,CAAK,EAAE,CAAA,iEAAA,CACtB,CAAA,CAEK,IAAA,CAAK,MACd,CAOO,gBAAA,EAA4B,CACjC,OAAO,MACT,CAEA,MAAa,gBAAA,EAAgD,CAC3D,OAAO,IAAA,CAAK,aACd,CACF,MC1FaC,CAAAA,CAAN,cAA8B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kB,mCACpB,CACF,CAAC,MCRUC,CAAAA,CAAqB,IACzB,IAAI3D,CAAAA,CAAgB,CACzB,EAAA,CAAI,YACJ,IAAA,CAAM,WAAA,CACN,IAAA,CAAM4D,mBAAAA,CACN,KAAA,CAAO,CACL,iBACE,oGACJ,CACF,CAAC,ECTI,IAAMC,CAAAA,CAAqB,IACzB,IAAI7D,CAAAA,CAAgB,CACzB,EAAA,CAAI,cAAA,CACJ,IAAA,CAAM,WAAA,CACN,KAAM8D,mBAAAA,CACN,KAAA,CAAO,CACL,gBAAA,CACE,qGAAA,CACF,QAAA,CAAU,sCACZ,CACF,CAAC,ECVI,IAAMC,CAAAA,CAAoB,IACxB,IAAI/D,EAAgB,CACzB,EAAA,CAAI,UAAA,CACJ,IAAA,CAAM,UAAA,CACN,IAAA,CAAMgE,mBAAAA,CACN,KAAA,CAAO,CACL,gBAAA,CACE,2FACJ,CACF,CAAC","file":"index.cjs","sourcesContent":["import { EventEmitter } from 'eventemitter3';\nimport type { Account, Chain, ConnectorLinks, Signer } from '../types';\n\n/**\n * base connector abstract class\n * defines the basic properties and methods that all wallet connectors should have.\n */\nexport abstract class BaseConnector extends EventEmitter {\n /**\n * the unique identifier of the connector (e.g., 'polkadot-js', 'subwallet-js')\n * subclasses must implement.\n */\n abstract readonly id: string;\n\n /**\n * user-friendly connector name (e.g., 'Polkadot{.js}', 'SubWallet')\n * subclasses must implement.\n */\n abstract readonly name: string;\n\n /**\n * connector icon URL (optional)\n * subclasses can implement.\n */\n abstract readonly icon?: string;\n\n readonly links: ConnectorLinks = {};\n /**\n * store the current connected accounts.\n * subclasses are responsible for maintaining this list when connecting and updating accounts.\n */\n protected accounts: Account[] = [];\n /**\n * store the signer.\n * subclasses are responsible for getting and storing it when connecting.\n */\n protected signer: Signer | undefined = undefined;\n\n protected connectionUri: string | undefined = undefined;\n\n constructor() {\n super();\n }\n\n public abstract isAvailable(): Promise<boolean>;\n\n public abstract isInstalled(): boolean;\n\n /**\n * connect to the wallet, get the initial accounts and signer, and set the necessary event listeners.\n * subclasses must implement:\n * 1. get the signer and assign it to this.signer.\n * 2. get the initial accounts list and assign it to this.accounts.\n * 3. set the account update mechanism of itself (e.g., use web3AccountsSubscribe or WalletConnect events).\n * 4. update this.accounts when the account list changes and trigger the 'accountsChanged' event.\n * 5. (optional) trigger the 'connect' event.\n * @returns the initial available accounts list\n */\n abstract connect(\n appName: string,\n chains?: Chain[],\n targetChainId?: string\n ): Promise<Account[] | undefined>;\n /**\n * disconnect from the wallet.\n * subclasses must implement this method to perform specific cleanup logic\n * (e.g., unsubscribe, close session).\n * implementers should clear this.accounts and this.signer after cleanup and trigger the 'disconnect' event.\n */\n abstract disconnect(): Promise<void>;\n\n /**\n * get the current connected accounts list.\n * @returns the current available accounts list\n */\n public async getAccounts(): Promise<Array<Account>> {\n return [...this.accounts];\n }\n\n /**\n * get the cached signer object.\n * @returns the signer object, or undefined if the connection is not successful or cannot be obtained.\n */\n public async getSigner(): Promise<Signer | undefined> {\n if (!this.signer) {\n console.warn(\n `Connector ${this.id}: Signer not available. Connection might be incomplete or failed.`\n );\n }\n return this.signer;\n }\n\n /**\n * sign a message with the specified account.\n */\n abstract signMessage(message: string, address: string): Promise<string | undefined>;\n\n public hasConnectionUri(): boolean {\n return false;\n }\n\n public async getConnectionUri(): Promise<string | undefined> {\n return this.connectionUri;\n }\n}\n","import type { Injected, InjectedAccount } from 'dedot/types';\nimport { stringToHex } from 'dedot/utils';\nimport type { Account, ConnectorLinks, Signer } from '../types';\nimport { mapInjectedAccounts } from '../utils';\nimport { BaseConnector } from './base';\n\nexport interface InjectConnectorOptions {\n id: string;\n name: string;\n icon: string;\n links: ConnectorLinks;\n injectorId?: string;\n}\n\nexport class InjectConnector extends BaseConnector {\n readonly id: string;\n readonly name: string;\n readonly icon: string;\n readonly links: ConnectorLinks;\n protected readonly injectorId: string;\n\n private unsubscribe: (() => void) | null = null;\n\n private specificInjector?: Injected = undefined;\n\n constructor(options: InjectConnectorOptions) {\n super();\n this.id = options.id;\n this.name = options.name;\n this.icon = options.icon;\n this.links = options.links;\n this.injectorId = options.injectorId || options.id;\n }\n\n public isInstalled(): boolean {\n if (typeof window === 'undefined') return false;\n const injectedWeb3 = window.injectedWeb3;\n return typeof injectedWeb3 === 'object' && typeof injectedWeb3[this.injectorId] !== 'undefined';\n }\n\n public async isAvailable(): Promise<boolean> {\n return this.isInstalled();\n }\n\n public async connect(appName: string): Promise<Account[] | undefined> {\n console.log(`Connector ${this.id}: Attempting to connect...`);\n if (this.signer) {\n console.log(`Connector ${this.id}: Already connected.`);\n return [...this.accounts];\n }\n if (!(await this.isAvailable())) {\n throw new Error(`${this.name} extension not found or not enabled.`);\n }\n\n try {\n this.specificInjector = (await window.injectedWeb3![this.injectorId]!.enable(\n appName\n )) as Injected;\n\n if (!this.specificInjector) {\n throw new Error(`Failed to enable the '${this.id}' extension.`);\n }\n\n this.signer = this.specificInjector.signer as Signer;\n\n if (!this.signer) {\n throw new Error(`Could not get signer from ${this.name}.`);\n }\n\n const rawAccounts = await this.specificInjector.accounts.get();\n if (rawAccounts.length === 0) {\n throw new Error(\n `No accounts found in ${this.name}. Make sure accounts are visible and access is granted.`\n );\n }\n this.accounts = mapInjectedAccounts(rawAccounts, this.id);\n console.log(`Connector ${this.id}: Initial accounts loaded`, this.accounts);\n\n await this.startSubscription();\n\n this.emit('connect', [...this.accounts]);\n\n return [...this.accounts];\n } catch (error) {\n console.error(`Connector ${this.id}: Connection failed:`, error);\n await this.cleanup();\n throw error;\n }\n }\n\n public async disconnect(): Promise<void> {\n console.log(`Connector ${this.id}: Disconnecting...`);\n await this.cleanup();\n this.emit('disconnect');\n }\n\n public async signMessage(message: string, address: string): Promise<string | undefined> {\n if (!address || !message) return undefined;\n const signer = await this.getSigner();\n if (!signer || !signer?.signRaw) {\n throw new Error('Signer is not available or does not support signRaw.');\n }\n const accounts = await this.getAccounts();\n if (!accounts.some((acc) => acc.address.toLowerCase() === address.toLowerCase())) {\n throw new Error(`Address ${address} is not managed by ${this.name}.`);\n }\n\n try {\n const dataHex = stringToHex(message);\n const result = await signer.signRaw({ address, data: dataHex, type: 'bytes' });\n return result.signature;\n } catch (error: any) {\n console.log('error', error);\n throw new Error(`Connector ${this.id}: Failed to sign message: ${error.message}`);\n }\n }\n\n private async startSubscription(): Promise<void> {\n await this.cleanupSubscription();\n if (!this.specificInjector) {\n throw new Error(`Connector ${this.id}: Cannot subscribe, specificInjector not available.`);\n }\n\n try {\n this.unsubscribe = this.specificInjector.accounts.subscribe(\n (updatedRawAccounts: InjectedAccount[]) => {\n const newAccounts = mapInjectedAccounts(updatedRawAccounts, this.id);\n if (JSON.stringify(this.accounts) !== JSON.stringify(newAccounts)) {\n this.accounts = newAccounts;\n this.emit('accountsChanged', [...this.accounts]);\n }\n }\n );\n console.log(`Connector ${this.id}: Subscribed to account changes.`);\n } catch (error) {\n console.error(`Connector ${this.id}: Failed to subscribe to accounts:`, error);\n this.unsubscribe = null;\n }\n }\n\n private async cleanupSubscription(): Promise<void> {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n console.log(`Connector ${this.id}: Unsubscribed from account changes.`);\n }\n }\n\n private async cleanup(): Promise<void> {\n await this.cleanupSubscription();\n this.accounts = [];\n this.signer = undefined;\n this.specificInjector = undefined;\n }\n}\n","import { enkryptWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const enkryptConnector = () => {\n return new InjectConnector({\n id: 'enkrypt',\n name: 'Enkrypt',\n icon: enkryptWallet,\n links: {\n browserExtension: 'https://www.enkrypt.com',\n },\n });\n};\n","import { fearlessWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const fearlessConnector = () => {\n return new InjectConnector({\n id: 'fearless-wallet',\n name: 'Fearless',\n icon: fearlessWallet,\n links: {\n browserExtension: 'https://fearlesswallet.io',\n },\n });\n};\n","import { mimirWallet } from '../config/logos/generated';\nimport { InjectConnector, type InjectConnectorOptions } from './inject';\n\nexport class MimirConnector extends InjectConnector {\n private mimirReady: boolean = false;\n\n constructor(options: InjectConnectorOptions) {\n super({ ...options });\n\n this.mimirInject();\n }\n\n public isInstalled(): boolean {\n return this.mimirReady;\n }\n\n private async mimirInject() {\n try {\n const inIframe = typeof window !== 'undefined' && window !== window.parent;\n if (!inIframe) return;\n\n const { isMimirReady, MIMIR_REGEXP, inject } = await import('@mimirdev/apps-inject');\n\n const origin = await isMimirReady();\n\n if (origin && MIMIR_REGEXP.test(origin)) {\n inject();\n this.mimirReady = true;\n }\n } catch (e: any) {\n console.error('Failed to inject Mimir:', e);\n }\n }\n\n public async connect(appName: string) {\n if (!this.mimirReady) {\n const { MIMIR_REGEXP } = await import('@mimirdev/apps-inject');\n\n if (!window.origin || !MIMIR_REGEXP.test(window.origin)) {\n window.open(`https://app.mimir.global/explorer/${encodeURIComponent(window.origin)}`);\n return;\n }\n }\n\n return super.connect(appName);\n }\n}\n\nexport function mimirConnector(): MimirConnector {\n return new MimirConnector({\n id: 'mimir',\n name: 'Mimir',\n icon: mimirWallet,\n links: {\n browserExtension: 'https://mimir.global',\n },\n });\n}\n","import { novaWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport class NovaMobileConnector extends InjectConnector {\n constructor() {\n super({\n id: 'nova-mobile',\n name: 'Nova',\n icon: novaWallet,\n injectorId: 'polkadot-js',\n links: {\n deepLink: 'https://app.novawallet.io/open/dapp',\n },\n });\n }\n\n public isInstalled(): boolean {\n if (typeof window === 'undefined') return false;\n const injectedWeb3 = window.injectedWeb3;\n return (\n typeof injectedWeb3 === 'object' &&\n typeof injectedWeb3['polkadot-js'] !== 'undefined' &&\n window.walletExtension?.isNovaWallet === true\n );\n }\n\n public async isAvailable(): Promise<boolean> {\n return this.isInstalled();\n }\n}\n\nexport const novaMobileConnector = () => new NovaMobileConnector();\n","import { type SessionTypes, SignClientTypes } from '@walletconnect/types';\nimport type { IUniversalProvider, Metadata } from '@walletconnect/universal-provider';\nimport type { SignerPayloadJSON, SignerPayloadRaw, SignerResult } from 'dedot/types';\nimport { walletconnectWallet } from '../config/logos/generated';\nimport type {\n Account,\n Chain,\n ConnectorLinks,\n HexString,\n Signer,\n WalletConnectConnectorOptions,\n} from '../types';\nimport { isSameAddress } from '../utils';\nimport { BaseConnector } from './base';\n\nexport class WalletConnectConnector extends BaseConnector {\n readonly id: string;\n readonly name: string;\n readonly icon: string;\n readonly links: ConnectorLinks;\n\n private provider?: IUniversalProvider;\n private projectId: string;\n private relayUrl: string;\n private metadata?: Metadata;\n private supportedChains: HexString[] = [];\n\n private session?: SessionTypes.Struct;\n private connectedChains?: Chain[] | HexString[];\n\n private unsubscribe: (() => void) | null = null;\n\n constructor(options: WalletConnectConnectorOptions) {\n super();\n this.id = options.id || 'walletconnect';\n this.name = options.name || 'WalletConnect';\n this.links = options.links || {};\n\n this.icon = options.icon || walletconnectWallet;\n\n this.projectId = options.projectId;\n this.relayUrl = options.relayUrl || 'wss://relay.walletconnect.com';\n this.metadata = options.metadata;\n this.supportedChains = options.supportedChains || [];\n }\n\n public isInstalled(): boolean {\n return false;\n }\n\n public async isAvailable(): Promise<boolean> {\n return true;\n }\n\n private convertChainIdToCaipId(chains: Chain[] | HexString[]): `polkadot:${string}`[] {\n return chains.map((chain) => {\n const capid: HexString = (chain as Chain).genesisHash || chain;\n return `polkadot:${capid.replace('0x', '').slice(0, 32)}` as `polkadot:${string}`;\n });\n }\n\n public async connect(appName: string, chains?: Chain[]): Promise<Array<Account>> {\n if (!this.projectId) {\n throw new Error(\n `${this.name} requires a projectId. Please visit https://cloud.walletconnect.com to get one.`\n );\n }\n\n const effectiveChains = chains?.length\n ? chains\n : this.supportedChains.length\n ? this.supportedChains\n : undefined;\n\n if (!effectiveChains || effectiveChains.length === 0) {\n throw new Error(`${this.name} requires chains configuration.`);\n }\n\n this.connectedChains = effectiveChains;\n\n const { UniversalProvider } = await import('@walletconnect/universal-provider');\n\n try {\n this.provider = await UniversalProvider.init({\n projectId: this.projectId,\n relayUrl: this.relayUrl,\n metadata: this.metadata || {\n name: appName,\n description: 'LunoKit DApp',\n url: typeof window !== 'undefined' ? window.location.origin : '',\n icons: [this.icon],\n },\n });\n\n if (this.provider.session) {\n this.session = this.provider.session;\n const accounts = this.getAccountsFromSession(effectiveChains);\n this.accounts = accounts;\n\n await this.startSubscription();\n\n this.emit('connect', [...this.accounts]);\n return [...this.accounts];\n }\n\n if (!this.provider?.client) {\n throw new Error('Provider not initialized or not connected');\n }\n\n const { uri, approval } = await this.provider.client.connect({\n requiredNamespaces: {\n polkadot: {\n methods: [\n 'polkadot_signMessage',\n 'polkadot_sendTransaction',\n 'polkadot_signTransaction',\n 'polkadot_requestAccounts',\n ],\n chains: this.convertChainIdToCaipId(effectiveChains),\n events: ['accountsChanged', 'chainChanged', 'connect'],\n },\n },\n optionalNamespaces: {\n polkadot: {\n methods: [\n 'polkadot_signMessage',\n 'polkadot_sendTransaction',\n 'polkadot_signTransaction',\n 'polkadot_requestAccounts',\n ],\n chains: this.convertChainIdToCaipId(effectiveChains),\n events: ['accountsChanged', 'chainChanged', 'connect'],\n },\n },\n });\n\n this.emit('get_uri', uri);\n\n const session = await approval();\n this.session = session;\n this.provider.session = session;\n\n this.connectionUri = undefined;\n\n const accounts = this.getAccountsFromSession(effectiveChains);\n this.accounts = accounts;\n\n // 启动订阅\n await this.startSubscription();\n\n this.emit('connect', [...this.accounts]);\n return [...this.accounts];\n } catch (error) {\n this.connectionUri = undefined;\n throw error;\n }\n }\n\n private getAccountsFromSession(chains: Chain[] | HexString[]): Account[] {\n const targetChain = [(chains[0] as Chain).genesisHash || chains[0]] as HexString[] | Chain[];\n // ? (chains as Chain[]).filter(chain => chain.genesisHash.toLowerCase() === chainId.toLowerCase())\n // : (chains as string[]).filter(chain => chain.toLowerCase() === chainId.toLowerCase())\n const caipId = this.convertChainIdToCaipId(targetChain)[0];\n\n let rawAccounts = this.session?.namespaces.polkadot.accounts\n .flat()\n .filter((address: string) => address.includes(caipId))\n .map((address: string) => address.replace(`${caipId}:`, ''));\n\n if (rawAccounts && rawAccounts.length === 0) {\n console.error(\n `No accounts found for the specified chain, please connect to the correct chain`\n );\n\n const caipId = this.convertChainIdToCaipId(chains)[0];\n\n rawAccounts = this.session?.namespaces.polkadot.accounts\n .flat()\n .filter((address: string) => address.includes(caipId))\n .map((address: string) => address.replace(`${caipId}:`, ''));\n }\n\n const result = rawAccounts!.map((address: string) => ({\n address,\n name: `${this.name} Account`,\n meta: {\n source: this.id,\n },\n publicKey: undefined,\n }));\n\n this.emit('accountsChanged', [...result]);\n\n return result!;\n }\n\n public async disconnect(): Promise<void> {\n try {\n if (this.provider) {\n await Promise.race([\n await this.provider.disconnect(),\n new Promise((_, reject) =>\n setTimeout(() => reject(new Error('Disconnect timeout')), 5000)\n ),\n ]);\n }\n } catch (e) {}\n\n await this.cleanup();\n this.emit('disconnect');\n }\n\n public async signMessage(message: string, address: string): Promise<string | undefined> {\n if (!this.provider?.client || !this.session?.topic) {\n throw new Error('Provider not initialized or not connected');\n }\n\n try {\n const signer = await this.getSigner();\n if (!signer) {\n throw new Error('No signer provided');\n }\n\n const { signature } = await signer.signRaw!({ address, data: message, type: 'bytes' });\n return signature;\n } catch (error) {\n console.error('Sign message error:', error);\n throw error;\n }\n }\n\n public hasConnectionUri(): boolean {\n return true;\n }\n\n public async getConnectionUri(): Promise<string> {\n if (this.connectionUri) {\n return this.connectionUri;\n }\n\n return new Promise<string>((resolve) => {\n this.once('get_uri', (uri: string) => {\n this.connectionUri = uri;\n resolve(uri);\n });\n });\n }\n\n public async getSigner(): Promise<Signer | undefined> {\n if (!this.provider?.client || !this.session) return undefined;\n\n return {\n signPayload: async (payload: SignerPayloadJSON): Promise<SignerResult> => {\n const chainCaipId = `polkadot:${payload.genesisHash.replace('0x', '').slice(0, 32)}`;\n const sessionAccounts = this.session!.namespaces.polkadot.accounts;\n\n const chainAccount = sessionAccounts.find((acc) => {\n const address = acc.replace(`${chainCaipId}:`, '');\n\n return acc.includes(chainCaipId) && isSameAddress(payload.address, address);\n });\n\n if (!chainAccount) {\n throw new Error(`Chain ${payload.genesisHash} is not supported by the wallet.}`);\n }\n\n const chainAddress = chainAccount.replace(`${chainCaipId}:`, '');\n\n const updatedPayload = { ...payload, address: chainAddress };\n\n const result = await this.provider?.client?.request<{ signature: string }>({\n topic: this.session!.topic,\n chainId: `polkadot:${updatedPayload.genesisHash.replace('0x', '').slice(0, 32)}`,\n request: {\n method: 'polkadot_signTransaction',\n params: {\n address: chainAddress,\n transactionPayload: updatedPayload,\n },\n },\n });\n return result as SignerResult;\n },\n signRaw: async (payload: SignerPayloadRaw): Promise<SignerResult> => {\n const chainCaipId = this.convertChainIdToCaipId(this.connectedChains!)[0];\n\n const sessionAccounts = this.session!.namespaces.polkadot.accounts;\n\n const chainAccount = sessionAccounts.find((acc) => {\n const address = acc.replace(`${chainCaipId}:`, '');\n\n return acc.includes(chainCaipId) && isSameAddress(payload.address, address);\n });\n\n if (!chainAccount) {\n throw new Error(`No accounts available for chain ${chainCaipId}`);\n }\n const chainAddress = chainAccount.replace(`${chainCaipId}:`, '');\n\n const updatedPayload = { ...payload, address: chainAddress };\n\n const result: SignerResult = await this.provider!.client!.request({\n topic: this.session!.topic,\n chainId: chainCaipId,\n request: {\n method: 'polkadot_signMessage',\n params: {\n address: chainAddress,\n message: updatedPayload.data,\n type: updatedPayload.type,\n },\n },\n });\n\n return result;\n },\n };\n }\n\n private async startSubscription(): Promise<void> {\n await this.cleanupSubscription();\n\n if (!this.provider?.client || !this.session) {\n throw new Error(`Connector ${this.id}: Cannot subscribe, provider or session not available.`);\n }\n\n try {\n const sessionDeleteHandler = async () => {\n console.log(`Connector ${this.id}: Session deleted, disconnecting...`);\n await this.cleanup();\n this.emit('disconnect');\n };\n this.provider.client.on('session_delete', sessionDeleteHandler);\n\n this.unsubscribe = () => {\n this.provider?.client?.off('session_delete', sessionDeleteHandler);\n };\n } catch (error) {\n this.unsubscribe = null;\n }\n }\n\n private async cleanupSubscription(): Promise<void> {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n console.log(`Connector ${this.id}: Unsubscribed from events.`);\n }\n }\n\n private async cleanup(): Promise<void> {\n await this.cleanupSubscription();\n this.accounts = [];\n this.signer = undefined;\n this.provider = undefined;\n this.session = undefined;\n }\n}\n\nexport const walletConnectConnector = (options: WalletConnectConnectorOptions) =>\n new WalletConnectConnector(options);\n","import { novaWallet } from '../config/logos/generated';\nimport type { WalletConnectConnectorOptions } from '../types';\nimport { isMobileDevice } from '../utils';\nimport { novaMobileConnector } from './novaMobile';\nimport { WalletConnectConnector } from './walletconnect';\n\ntype WalletConnectConfig = Pick<\n WalletConnectConnectorOptions,\n 'projectId' | 'relayUrl' | 'metadata' | 'supportedChains'\n>;\n\ntype MobileOnlyConfig = {\n mobileOnly: true;\n};\n\ntype NovaConnectorConfig = WalletConnectConfig | MobileOnlyConfig;\n\nexport const novaConnector = (config: NovaConnectorConfig) => {\n if (isMobileDevice()) {\n return novaMobileConnector();\n }\n\n if (!isMobileDevice() && 'mobileOnly' in config && config.mobileOnly) {\n console.error(\n 'Nova Wallet mobile connector is being used on a desktop device. This may not work as expected.'\n );\n return novaMobileConnector();\n }\n\n return new WalletConnectConnector({\n id: 'nova',\n name: 'Nova',\n icon: novaWallet,\n links: {\n browserExtension: 'https://novawallet.io',\n },\n ...(config as WalletConnectConfig),\n });\n};\n","import { polkadotjsWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const polkadotjsConnector = () => {\n return new InjectConnector({\n id: 'polkadot-js',\n name: 'Polkadot{.js}',\n icon: polkadotjsWallet,\n links: {\n browserExtension: 'https://polkadot.js.org/extension',\n },\n });\n};\n","import { polkagateWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const polkagateConnector = () => {\n return new InjectConnector({\n id: 'polkagate',\n name: 'Polkagate',\n icon: polkagateWallet,\n links: {\n browserExtension:\n 'https://chromewebstore.google.com/detail/polkagate-the-gateway-to/ginchbkmljhldofnbjabmeophlhdldgp',\n },\n });\n};\n","import { subwalletWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const subwalletConnector = () => {\n return new InjectConnector({\n id: 'subwallet-js',\n name: 'SubWallet',\n icon: subwalletWallet,\n links: {\n browserExtension:\n 'https://chromewebstore.google.com/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn',\n deepLink: 'https://mobile.subwallet.app/browser',\n },\n });\n};\n","import { talismanWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const talismanConnector = () => {\n return new InjectConnector({\n id: 'talisman',\n name: 'Talisman',\n icon: talismanWallet,\n links: {\n browserExtension:\n 'https://chromewebstore.google.com/detail/talisman-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld',\n },\n });\n};\n"]}
1
+ {"version":3,"sources":["../../src/connectors/base.ts","../../src/connectors/inject.ts","../../src/connectors/enkrypt.ts","../../src/connectors/fearless.ts","../../src/connectors/mimir.ts","../../src/connectors/novaMobile.ts","../../src/connectors/walletconnect.ts","../../src/connectors/nova.ts","../../src/connectors/polkadot-js.ts","../../src/connectors/polkagate.ts","../../src/connectors/subwallet.ts","../../src/connectors/talisman.ts"],"names":["BaseConnector","EventEmitter","InjectConnector","options","injectedWeb3","appName","rawAccounts","mapInjectedAccounts","error","message","address","signer","acc","dataHex","stringToHex","updatedRawAccounts","newAccounts","enkryptConnector","enkryptWallet","fearlessConnector","fearlessWallet","MimirConnector","isMimirReady","MIMIR_REGEXP","inject","origin","mimirConnector","mimirWallet","NovaMobileConnector","novaWallet","novaMobileConnector","WalletConnectConnector","walletconnectWallet","chains","chain","effectiveChains","UniversalProvider","accounts","uri","approval","session","targetChain","caipId","result","_","reject","signature","resolve","payload","chainCaipId","chainAccount","isSameAddress","chainAddress","updatedPayload","sessionDeleteHandler","walletConnectConnector","novaConnector","config","isMobileDevice","polkadotjsConnector","polkadotjsWallet","polkagateConnector","polkagateWallet","subwalletConnector","subwalletWallet","talismanCon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{ Account, Chain, ConnectorLinks, Signer } from '../types';\n\n/**\n * base connector abstract class\n * defines the basic properties and methods that all wallet connectors should have.\n */\nexport abstract class BaseConnector extends EventEmitter {\n /**\n * the unique identifier of the connector (e.g., 'polkadot-js', 'subwallet-js')\n * subclasses must implement.\n */\n abstract readonly id: string;\n\n /**\n * user-friendly connector name (e.g., 'Polkadot{.js}', 'SubWallet')\n * subclasses must implement.\n */\n abstract readonly name: string;\n\n /**\n * connector icon URL (optional)\n * subclasses can implement.\n */\n abstract readonly icon?: string;\n\n readonly links: ConnectorLinks = {};\n /**\n * store the current connected accounts.\n * subclasses are responsible for maintaining this list when connecting and updating accounts.\n */\n protected accounts: Account[] = [];\n /**\n * store the signer.\n * subclasses are responsible for getting and storing it when connecting.\n */\n protected signer: Signer | undefined = undefined;\n\n protected connectionUri: string | undefined = undefined;\n\n constructor() {\n super();\n }\n\n public abstract isAvailable(): Promise<boolean>;\n\n public abstract isInstalled(): boolean;\n\n /**\n * connect to the wallet, get the initial accounts and signer, and set the necessary event listeners.\n * subclasses must implement:\n * 1. get the signer and assign it to this.signer.\n * 2. get the initial accounts list and assign it to this.accounts.\n * 3. set the account update mechanism of itself (e.g., use web3AccountsSubscribe or WalletConnect events).\n * 4. update this.accounts when the account list changes and trigger the 'accountsChanged' event.\n * 5. (optional) trigger the 'connect' event.\n * @returns the initial available accounts list\n */\n abstract connect(\n appName: string,\n chains?: Chain[],\n targetChainId?: string\n ): Promise<Account[] | undefined>;\n /**\n * disconnect from the wallet.\n * subclasses must implement this method to perform specific cleanup logic\n * (e.g., unsubscribe, close session).\n * implementers should clear this.accounts and this.signer after cleanup and trigger the 'disconnect' event.\n */\n abstract disconnect(): Promise<void>;\n\n /**\n * get the current connected accounts list.\n * @returns the current available accounts list\n */\n public async getAccounts(): Promise<Array<Account>> {\n return [...this.accounts];\n }\n\n /**\n * get the cached signer object.\n * @returns the signer object, or undefined if the connection is not successful or cannot be obtained.\n */\n public async getSigner(): Promise<Signer | undefined> {\n if (!this.signer) {\n console.warn(\n `Connector ${this.id}: Signer not available. Connection might be incomplete or failed.`\n );\n }\n return this.signer;\n }\n\n /**\n * sign a message with the specified account.\n */\n abstract signMessage(message: string, address: string): Promise<string | undefined>;\n\n public hasConnectionUri(): boolean {\n return false;\n }\n\n public async getConnectionUri(): Promise<string | undefined> {\n return this.connectionUri;\n }\n}\n","import type { Injected, InjectedAccount } from 'dedot/types';\nimport { stringToHex } from 'dedot/utils';\nimport type { Account, ConnectorLinks, Signer } from '../types';\nimport { mapInjectedAccounts } from '../utils';\nimport { BaseConnector } from './base';\n\nexport interface InjectConnectorOptions {\n id: string;\n name: string;\n icon: string;\n links: ConnectorLinks;\n injectorId?: string;\n}\n\nexport class InjectConnector extends BaseConnector {\n readonly id: string;\n readonly name: string;\n readonly icon: string;\n readonly links: ConnectorLinks;\n protected readonly injectorId: string;\n\n private unsubscribe: (() => void) | null = null;\n\n private specificInjector?: Injected = undefined;\n\n constructor(options: InjectConnectorOptions) {\n super();\n this.id = options.id;\n this.name = options.name;\n this.icon = options.icon;\n this.links = options.links;\n this.injectorId = options.injectorId || options.id;\n }\n\n public isInstalled(): boolean {\n if (typeof window === 'undefined') return false;\n const injectedWeb3 = window.injectedWeb3;\n return typeof injectedWeb3 === 'object' && typeof injectedWeb3[this.injectorId] !== 'undefined';\n }\n\n public async isAvailable(): Promise<boolean> {\n return this.isInstalled();\n }\n\n public async connect(appName: string): Promise<Account[] | undefined> {\n console.log(`Connector ${this.id}: Attempting to connect...`);\n if (this.signer) {\n console.log(`Connector ${this.id}: Already connected.`);\n return [...this.accounts];\n }\n if (!(await this.isAvailable())) {\n throw new Error(`${this.name} extension not found or not enabled.`);\n }\n\n try {\n this.specificInjector = (await window.injectedWeb3![this.injectorId]!.enable(\n appName\n )) as Injected;\n\n if (!this.specificInjector) {\n throw new Error(`Failed to enable the '${this.id}' extension.`);\n }\n\n this.signer = this.specificInjector.signer as Signer;\n\n if (!this.signer) {\n throw new Error(`Could not get signer from ${this.name}.`);\n }\n\n const rawAccounts = await this.specificInjector.accounts.get();\n if (rawAccounts.length === 0) {\n throw new Error(\n `No accounts found in ${this.name}. Make sure accounts are visible and access is granted.`\n );\n }\n this.accounts = mapInjectedAccounts(rawAccounts, this.id);\n console.log(`Connector ${this.id}: Initial accounts loaded`, this.accounts);\n\n await this.startSubscription();\n\n this.emit('connect', [...this.accounts]);\n\n return [...this.accounts];\n } catch (error) {\n console.error(`Connector ${this.id}: Connection failed:`, error);\n await this.cleanup();\n throw error;\n }\n }\n\n public async disconnect(): Promise<void> {\n console.log(`Connector ${this.id}: Disconnecting...`);\n await this.cleanup();\n this.emit('disconnect');\n }\n\n public async signMessage(message: string, address: string): Promise<string | undefined> {\n if (!address || !message) return undefined;\n const signer = await this.getSigner();\n if (!signer || !signer?.signRaw) {\n throw new Error('Signer is not available or does not support signRaw.');\n }\n const accounts = await this.getAccounts();\n if (!accounts.some((acc) => acc.address.toLowerCase() === address.toLowerCase())) {\n throw new Error(`Address ${address} is not managed by ${this.name}.`);\n }\n\n try {\n const dataHex = stringToHex(message);\n const result = await signer.signRaw({ address, data: dataHex, type: 'bytes' });\n return result.signature;\n } catch (error: any) {\n console.log('error', error);\n throw new Error(`Connector ${this.id}: Failed to sign message: ${error.message}`);\n }\n }\n\n private async startSubscription(): Promise<void> {\n await this.cleanupSubscription();\n if (!this.specificInjector) {\n throw new Error(`Connector ${this.id}: Cannot subscribe, specificInjector not available.`);\n }\n\n try {\n this.unsubscribe = this.specificInjector.accounts.subscribe(\n (updatedRawAccounts: InjectedAccount[]) => {\n const newAccounts = mapInjectedAccounts(updatedRawAccounts, this.id);\n if (JSON.stringify(this.accounts) !== JSON.stringify(newAccounts)) {\n this.accounts = newAccounts;\n this.emit('accountsChanged', [...this.accounts]);\n }\n }\n );\n console.log(`Connector ${this.id}: Subscribed to account changes.`);\n } catch (error) {\n console.error(`Connector ${this.id}: Failed to subscribe to accounts:`, error);\n this.unsubscribe = null;\n }\n }\n\n private async cleanupSubscription(): Promise<void> {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n console.log(`Connector ${this.id}: Unsubscribed from account changes.`);\n }\n }\n\n private async cleanup(): Promise<void> {\n await this.cleanupSubscription();\n this.accounts = [];\n this.signer = undefined;\n this.specificInjector = undefined;\n }\n}\n","import { enkryptWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const enkryptConnector = () => {\n return new InjectConnector({\n id: 'enkrypt',\n name: 'Enkrypt',\n icon: enkryptWallet,\n links: {\n browserExtension: 'https://www.enkrypt.com',\n },\n });\n};\n","import { fearlessWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const fearlessConnector = () => {\n return new InjectConnector({\n id: 'fearless-wallet',\n name: 'Fearless',\n icon: fearlessWallet,\n links: {\n browserExtension: 'https://fearlesswallet.io',\n },\n });\n};\n","import { mimirWallet } from '../config/logos/generated';\nimport { InjectConnector, type InjectConnectorOptions } from './inject';\n\nexport class MimirConnector extends InjectConnector {\n private mimirReady: boolean = false;\n\n constructor(options: InjectConnectorOptions) {\n super({ ...options });\n\n this.mimirInject();\n }\n\n public isInstalled(): boolean {\n return this.mimirReady;\n }\n\n private async mimirInject() {\n try {\n const inIframe = typeof window !== 'undefined' && window !== window.parent;\n if (!inIframe) return;\n\n const { isMimirReady, MIMIR_REGEXP, inject } = await import('@mimirdev/apps-inject');\n\n const origin = await isMimirReady();\n\n if (origin && MIMIR_REGEXP.test(origin)) {\n inject();\n this.mimirReady = true;\n }\n } catch (e: any) {\n console.error('Failed to inject Mimir:', e);\n }\n }\n\n public async connect(appName: string) {\n if (!this.mimirReady) {\n const { MIMIR_REGEXP } = await import('@mimirdev/apps-inject');\n\n if (!window.origin || !MIMIR_REGEXP.test(window.origin)) {\n window.open(`https://app.mimir.global/explorer/${encodeURIComponent(window.origin)}`);\n return;\n }\n }\n\n return super.connect(appName);\n }\n}\n\nexport function mimirConnector(): MimirConnector {\n return new MimirConnector({\n id: 'mimir',\n name: 'Mimir',\n icon: mimirWallet,\n links: {\n browserExtension: 'https://mimir.global',\n },\n });\n}\n","import { novaWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport class NovaMobileConnector extends InjectConnector {\n constructor() {\n super({\n id: 'nova-mobile',\n name: 'Nova',\n icon: novaWallet,\n injectorId: 'polkadot-js',\n links: {\n deepLink: 'https://app.novawallet.io/open/dapp',\n },\n });\n }\n\n public isInstalled(): boolean {\n if (typeof window === 'undefined') return false;\n const injectedWeb3 = window.injectedWeb3;\n return (\n typeof injectedWeb3 === 'object' &&\n typeof injectedWeb3['polkadot-js'] !== 'undefined' &&\n window.walletExtension?.isNovaWallet === true\n );\n }\n\n public async isAvailable(): Promise<boolean> {\n return this.isInstalled();\n }\n}\n\nexport const novaMobileConnector = () => new NovaMobileConnector();\n","import type { SessionTypes } from '@walletconnect/types';\nimport type { IUniversalProvider, Metadata } from '@walletconnect/universal-provider';\nimport type { SignerPayloadJSON, SignerPayloadRaw, SignerResult } from 'dedot/types';\nimport { walletconnectWallet } from '../config/logos/generated';\nimport type {\n Account,\n Chain,\n ConnectorLinks,\n HexString,\n Signer,\n WalletConnectConnectorOptions,\n} from '../types';\nimport { isSameAddress } from '../utils';\nimport { BaseConnector } from './base';\n\nexport class WalletConnectConnector extends BaseConnector {\n readonly id: string;\n readonly name: string;\n readonly icon: string;\n readonly links: ConnectorLinks;\n\n private provider?: IUniversalProvider;\n private projectId: string;\n private relayUrl: string;\n private metadata?: Metadata;\n private supportedChains: HexString[] = [];\n\n private session?: SessionTypes.Struct;\n private connectedChains?: Chain[] | HexString[];\n\n private unsubscribe: (() => void) | null = null;\n\n constructor(options: WalletConnectConnectorOptions) {\n super();\n this.id = options.id || 'walletconnect';\n this.name = options.name || 'WalletConnect';\n this.links = options.links || {};\n\n this.icon = options.icon || walletconnectWallet;\n\n this.projectId = options.projectId;\n this.relayUrl = options.relayUrl || 'wss://relay.walletconnect.com';\n this.metadata = options.metadata;\n this.supportedChains = options.supportedChains || [];\n }\n\n public isInstalled(): boolean {\n return false;\n }\n\n public async isAvailable(): Promise<boolean> {\n return true;\n }\n\n private convertChainIdToCaipId(chains: Chain[] | HexString[]): `polkadot:${string}`[] {\n return chains.map((chain) => {\n const capid: HexString = (chain as Chain).genesisHash || chain;\n return `polkadot:${capid.replace('0x', '').slice(0, 32)}` as `polkadot:${string}`;\n });\n }\n\n public async connect(appName: string, chains?: Chain[]): Promise<Array<Account>> {\n if (!this.projectId) {\n throw new Error(\n `${this.name} requires a projectId. Please visit https://cloud.walletconnect.com to get one.`\n );\n }\n\n const effectiveChains = chains?.length\n ? chains\n : this.supportedChains.length\n ? this.supportedChains\n : undefined;\n\n if (!effectiveChains || effectiveChains.length === 0) {\n throw new Error(`${this.name} requires chains configuration.`);\n }\n\n this.connectedChains = effectiveChains;\n\n const { UniversalProvider } = await import('@walletconnect/universal-provider');\n\n try {\n this.provider = await UniversalProvider.init({\n projectId: this.projectId,\n relayUrl: this.relayUrl,\n metadata: this.metadata || {\n name: appName,\n description: 'LunoKit DApp',\n url: typeof window !== 'undefined' ? window.location.origin : '',\n icons: [this.icon],\n },\n });\n\n if (this.provider.session) {\n this.session = this.provider.session;\n const accounts = this.getAccountsFromSession(effectiveChains);\n this.accounts = accounts;\n\n await this.startSubscription();\n\n this.emit('connect', [...this.accounts]);\n return [...this.accounts];\n }\n\n if (!this.provider?.client) {\n throw new Error('Provider not initialized or not connected');\n }\n\n const { uri, approval } = await this.provider.client.connect({\n requiredNamespaces: {\n polkadot: {\n methods: [\n 'polkadot_signMessage',\n 'polkadot_sendTransaction',\n 'polkadot_signTransaction',\n 'polkadot_requestAccounts',\n ],\n chains: this.convertChainIdToCaipId(effectiveChains),\n events: ['accountsChanged', 'chainChanged', 'connect'],\n },\n },\n optionalNamespaces: {\n polkadot: {\n methods: [\n 'polkadot_signMessage',\n 'polkadot_sendTransaction',\n 'polkadot_signTransaction',\n 'polkadot_requestAccounts',\n ],\n chains: this.convertChainIdToCaipId(effectiveChains),\n events: ['accountsChanged', 'chainChanged', 'connect'],\n },\n },\n });\n\n this.emit('get_uri', uri);\n\n const session = await approval();\n this.session = session;\n this.provider.session = session;\n\n this.connectionUri = undefined;\n\n const accounts = this.getAccountsFromSession(effectiveChains);\n this.accounts = accounts;\n\n // 启动订阅\n await this.startSubscription();\n\n this.emit('connect', [...this.accounts]);\n return [...this.accounts];\n } catch (error) {\n this.connectionUri = undefined;\n throw error;\n }\n }\n\n private getAccountsFromSession(chains: Chain[] | HexString[]): Account[] {\n const targetChain = [(chains[0] as Chain).genesisHash || chains[0]] as HexString[] | Chain[];\n // ? (chains as Chain[]).filter(chain => chain.genesisHash.toLowerCase() === chainId.toLowerCase())\n // : (chains as string[]).filter(chain => chain.toLowerCase() === chainId.toLowerCase())\n const caipId = this.convertChainIdToCaipId(targetChain)[0];\n\n let rawAccounts = this.session?.namespaces.polkadot.accounts\n .flat()\n .filter((address: string) => address.includes(caipId))\n .map((address: string) => address.replace(`${caipId}:`, ''));\n\n if (rawAccounts && rawAccounts.length === 0) {\n console.error(\n `No accounts found for the specified chain, please connect to the correct chain`\n );\n\n const caipId = this.convertChainIdToCaipId(chains)[0];\n\n rawAccounts = this.session?.namespaces.polkadot.accounts\n .flat()\n .filter((address: string) => address.includes(caipId))\n .map((address: string) => address.replace(`${caipId}:`, ''));\n }\n\n const result = rawAccounts!.map((address: string) => ({\n address,\n name: `${this.name} Account`,\n meta: {\n source: this.id,\n },\n publicKey: undefined,\n }));\n\n this.emit('accountsChanged', [...result]);\n\n return result!;\n }\n\n public async disconnect(): Promise<void> {\n try {\n if (this.provider) {\n await Promise.race([\n await this.provider.disconnect(),\n new Promise((_, reject) =>\n setTimeout(() => reject(new Error('Disconnect timeout')), 5000)\n ),\n ]);\n }\n } catch (e) {}\n\n await this.cleanup();\n this.emit('disconnect');\n }\n\n public async signMessage(message: string, address: string): Promise<string | undefined> {\n if (!this.provider?.client || !this.session?.topic) {\n throw new Error('Provider not initialized or not connected');\n }\n\n try {\n const signer = await this.getSigner();\n if (!signer) {\n throw new Error('No signer provided');\n }\n\n const { signature } = await signer.signRaw!({ address, data: message, type: 'bytes' });\n return signature;\n } catch (error) {\n console.error('Sign message error:', error);\n throw error;\n }\n }\n\n public hasConnectionUri(): boolean {\n return true;\n }\n\n public async getConnectionUri(): Promise<string> {\n if (this.connectionUri) {\n return this.connectionUri;\n }\n\n return new Promise<string>((resolve) => {\n this.once('get_uri', (uri: string) => {\n this.connectionUri = uri;\n resolve(uri);\n });\n });\n }\n\n public async getSigner(): Promise<Signer | undefined> {\n if (!this.provider?.client || !this.session) return undefined;\n\n return {\n signPayload: async (payload: SignerPayloadJSON): Promise<SignerResult> => {\n const chainCaipId = `polkadot:${payload.genesisHash.replace('0x', '').slice(0, 32)}`;\n const sessionAccounts = this.session!.namespaces.polkadot.accounts;\n\n const chainAccount = sessionAccounts.find((acc) => {\n const address = acc.replace(`${chainCaipId}:`, '');\n\n return acc.includes(chainCaipId) && isSameAddress(payload.address, address);\n });\n\n if (!chainAccount) {\n throw new Error(`Chain ${payload.genesisHash} is not supported by the wallet.}`);\n }\n\n const chainAddress = chainAccount.replace(`${chainCaipId}:`, '');\n\n const updatedPayload = { ...payload, address: chainAddress };\n\n const result = await this.provider?.client?.request<{ signature: string }>({\n topic: this.session!.topic,\n chainId: `polkadot:${updatedPayload.genesisHash.replace('0x', '').slice(0, 32)}`,\n request: {\n method: 'polkadot_signTransaction',\n params: {\n address: chainAddress,\n transactionPayload: updatedPayload,\n },\n },\n });\n return result as SignerResult;\n },\n signRaw: async (payload: SignerPayloadRaw): Promise<SignerResult> => {\n const chainCaipId = this.convertChainIdToCaipId(this.connectedChains!)[0];\n\n const sessionAccounts = this.session!.namespaces.polkadot.accounts;\n\n const chainAccount = sessionAccounts.find((acc) => {\n const address = acc.replace(`${chainCaipId}:`, '');\n\n return acc.includes(chainCaipId) && isSameAddress(payload.address, address);\n });\n\n if (!chainAccount) {\n throw new Error(`No accounts available for chain ${chainCaipId}`);\n }\n const chainAddress = chainAccount.replace(`${chainCaipId}:`, '');\n\n const updatedPayload = { ...payload, address: chainAddress };\n\n const result: SignerResult = await this.provider!.client!.request({\n topic: this.session!.topic,\n chainId: chainCaipId,\n request: {\n method: 'polkadot_signMessage',\n params: {\n address: chainAddress,\n message: updatedPayload.data,\n type: updatedPayload.type,\n },\n },\n });\n\n return result;\n },\n };\n }\n\n private async startSubscription(): Promise<void> {\n await this.cleanupSubscription();\n\n if (!this.provider?.client || !this.session) {\n throw new Error(`Connector ${this.id}: Cannot subscribe, provider or session not available.`);\n }\n\n try {\n const sessionDeleteHandler = async () => {\n console.log(`Connector ${this.id}: Session deleted, disconnecting...`);\n await this.cleanup();\n this.emit('disconnect');\n };\n this.provider.client.on('session_delete', sessionDeleteHandler);\n\n this.unsubscribe = () => {\n this.provider?.client?.off('session_delete', sessionDeleteHandler);\n };\n } catch (error) {\n this.unsubscribe = null;\n }\n }\n\n private async cleanupSubscription(): Promise<void> {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n console.log(`Connector ${this.id}: Unsubscribed from events.`);\n }\n }\n\n private async cleanup(): Promise<void> {\n await this.cleanupSubscription();\n this.accounts = [];\n this.signer = undefined;\n this.provider = undefined;\n this.session = undefined;\n }\n}\n\nexport const walletConnectConnector = (options: WalletConnectConnectorOptions) =>\n new WalletConnectConnector(options);\n","import { novaWallet } from '../config/logos/generated';\nimport type { WalletConnectConnectorOptions } from '../types';\nimport { isMobileDevice } from '../utils';\nimport { novaMobileConnector } from './novaMobile';\nimport { WalletConnectConnector } from './walletconnect';\n\ntype WalletConnectConfig = Pick<\n WalletConnectConnectorOptions,\n 'projectId' | 'relayUrl' | 'metadata' | 'supportedChains'\n>;\n\ntype MobileOnlyConfig = {\n mobileOnly: true;\n};\n\ntype NovaConnectorConfig = WalletConnectConfig | MobileOnlyConfig;\n\nexport const novaConnector = (config: NovaConnectorConfig) => {\n if (isMobileDevice()) {\n return novaMobileConnector();\n }\n\n if (!isMobileDevice() && 'mobileOnly' in config && config.mobileOnly) {\n console.error(\n 'Nova Wallet mobile connector is being used on a desktop device. This may not work as expected.'\n );\n return novaMobileConnector();\n }\n\n return new WalletConnectConnector({\n id: 'nova',\n name: 'Nova',\n icon: novaWallet,\n links: {\n browserExtension: 'https://novawallet.io',\n },\n ...(config as WalletConnectConfig),\n });\n};\n","import { polkadotjsWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const polkadotjsConnector = () => {\n return new InjectConnector({\n id: 'polkadot-js',\n name: 'Polkadot{.js}',\n icon: polkadotjsWallet,\n links: {\n browserExtension: 'https://polkadot.js.org/extension',\n },\n });\n};\n","import { polkagateWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const polkagateConnector = () => {\n return new InjectConnector({\n id: 'polkagate',\n name: 'Polkagate',\n icon: polkagateWallet,\n links: {\n browserExtension:\n 'https://chromewebstore.google.com/detail/polkagate-the-gateway-to/ginchbkmljhldofnbjabmeophlhdldgp',\n },\n });\n};\n","import { subwalletWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const subwalletConnector = () => {\n return new InjectConnector({\n id: 'subwallet-js',\n name: 'SubWallet',\n icon: subwalletWallet,\n links: {\n browserExtension:\n 'https://chromewebstore.google.com/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn',\n deepLink: 'https://mobile.subwallet.app/browser',\n },\n });\n};\n","import { talismanWallet } from '../config/logos/generated';\nimport { InjectConnector } from './inject';\n\nexport const talismanConnector = () => {\n return new InjectConnector({\n id: 'talisman',\n name: 'Talisman',\n icon: talismanWallet,\n links: {\n browserExtension:\n 'https://chromewebstore.google.com/detail/talisman-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld',\n },\n });\n};\n"]}
@@ -1,9 +1,10 @@
1
1
  import { EventEmitter } from 'eventemitter3';
2
- import { A as Account, C as Chain } from '../chain-xQJ0MDiz.cjs';
3
- import { C as ConnectorLinks, W as WalletConnectConnectorOptions } from '../connector-LleKwjLP.cjs';
4
- import { S as Signer } from '../signer-BimV-6cq.cjs';
2
+ import { ConnectorLinks, Account, Signer, Chain, WalletConnectConnectorOptions } from '../types/index.cjs';
5
3
  import 'dedot/types';
4
+ import 'dedot';
5
+ import 'dedot/shape';
6
6
  import '@walletconnect/universal-provider';
7
+ import '@polkadot-api/pjs-signer';
7
8
 
8
9
  /**
9
10
  * base connector abstract class
@@ -1,9 +1,10 @@
1
1
  import { EventEmitter } from 'eventemitter3';
2
- import { A as Account, C as Chain } from '../chain-xQJ0MDiz.js';
3
- import { C as ConnectorLinks, W as WalletConnectConnectorOptions } from '../connector-LTtOKOSm.js';
4
- import { S as Signer } from '../signer-BimV-6cq.js';
2
+ import { ConnectorLinks, Account, Signer, Chain, WalletConnectConnectorOptions } from '../types/index.js';
5
3
  import 'dedot/types';
4
+ import 'dedot';
5
+ import 'dedot/shape';
6
6
  import '@walletconnect/universal-provider';
7
+ import '@polkadot-api/pjs-signer';
7
8
 
8
9
  /**
9
10
  * base connector abstract class