@rango-dev/provider-slush 0.17.1-next.6 → 0.17.1-next.7

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 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAUrD,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,8BAA8B,UAAU,CAAC;AAEtD,eAAO,MAAM,QAAQ,EAAE,gBAmCtB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAMrD,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,8BAA8B,UAAU,CAAC;AAEtD,eAAO,MAAM,QAAQ,EAAE,gBA+BtB,CAAC"}
package/dist/mod.js CHANGED
@@ -1,2 +1,2 @@
1
- var d=Object.defineProperty;var t=(e,o)=>d(e,"name",{value:o,configurable:!0});import{defineVersions as w}from"@hub3js/core/utils";import{ProviderBuilder as _}from"@hub3js/core";import{TransactionType as b}from"rango-types";import{getInstanceOrThrow as S}from"@hub3js/sui";import{dynamicImportWithRefinedError as g}from"@rango-dev/wallets-shared";import{DefaultSignerFactory as f,TransactionType as h}from"rango-types";async function n(){let e=S(a),{DefaultSuiSigner:o}=await g(async()=>await import("@rango-dev/signer-sui")),s=new f;return s.registerSigner(h.SUI,new o(e)),s}t(n,"getSigners");var r="slush",a="Slush",c={name:"Slush",icon:"https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/slush/icon.svg",extensions:{chrome:"https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil",edge:"https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil",brave:"https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil",homepage:"https://slush.app/download"},properties:[{name:"namespaces",value:{data:[{label:"Sui",value:"Sui",id:"SUI",getSupportedChains:e=>e.filter(o=>o.type===b.SUI)}],selection:"multiple"}},{name:"signers",value:{getSigners:async()=>n()}}]};import{NamespaceBuilder as y}from"@hub3js/core";import*as p from"@hub3js/std/builders";import{actions as E,builders as l}from"@hub3js/sui";import{getInstanceOrThrow as A}from"@hub3js/sui";import"@mysten/wallet-standard";function i(){try{return A(a)}catch{return null}}t(i,"suiWalletInstance");var T=l.canEagerConnect().action(E.canEagerConnect({name:a})).build(),W=l.connect({name:a}).build(),L=p.disconnect().before(async()=>{await i()?.features["standard:disconnect"].disconnect()}).build(),m=new y("Sui",r).action(W).action(L).action(T).build();var u=t(()=>new _(r).init(function(e){let[,o]=e.state();i()&&(o("installed",!0),console.debug("[slush] instance detected.",e))}).config("metadata",c).add("sui",m).build(),"buildProvider");var te=t(()=>w().version("1.0.0",u()).build(),"versions");export{te as versions};
1
+ var d=Object.defineProperty;var e=(o,r)=>d(o,"name",{value:r,configurable:!0});import{defineVersions as w}from"@hub3js/core/utils";import{ProviderBuilder as _}from"@hub3js/core";import{isSuiNamespace as b}from"@hub3js/sui";import{getInstanceOrThrow as g}from"@hub3js/sui";import{dynamicImportWithRefinedError as S}from"@rango-dev/wallets-shared";import{DefaultSignerFactory as f,TransactionType as h}from"rango-types";async function n(){let o=g(t),{DefaultSuiSigner:r}=await S(async()=>await import("@rango-dev/signer-sui")),s=new f;return s.registerSigner(h.SUI,new r(o)),s}e(n,"getSigners");var a="slush",t="Slush",c={name:"Slush",icon:"https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/slush/icon.svg",extensions:{chrome:"https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil",edge:"https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil",brave:"https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil",homepage:"https://slush.app/download"},properties:[{name:"namespaces",value:{data:[{label:"Sui",value:"Sui",id:"SUI",isChainSupported:b}],selection:"multiple"}},{name:"signers",value:{getSigners:async()=>n()}}]};import{NamespaceBuilder as E}from"@hub3js/core";import*as m from"@hub3js/std/builders";import{actions as W,builders as p}from"@hub3js/sui";import{getInstanceOrThrow as A}from"@hub3js/sui";import"@mysten/wallet-standard";function i(){try{return A(t)}catch{return null}}e(i,"suiWalletInstance");var L=p.canEagerConnect().action(W.canEagerConnect({name:t})).build(),y=p.connect({name:t}).build(),T=m.disconnect().before(async()=>{await i()?.features["standard:disconnect"].disconnect()}).build(),u=new E("Sui",a).action(y).action(T).action(L).build();var l=e(()=>new _(a).init(function(o){let[,r]=o.state();i()&&(r("installed",!0),console.debug("[slush] instance detected.",o))}).config("metadata",c).add("sui",u).build(),"buildProvider");var te=e(()=>w().version("1.0.0",l()).build(),"versions");export{te as versions};
2
2
  //# sourceMappingURL=mod.js.map
package/dist/mod.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/mod.ts", "../src/provider.ts", "../src/constants.ts", "../src/signer.ts", "../src/namespaces/sui.ts", "../src/utils.ts"],
4
- "sourcesContent": ["import { defineVersions } from '@hub3js/core/utils';\n\nimport { buildProvider } from './provider.js';\n\nconst versions = () =>\n defineVersions().version('1.0.0', buildProvider()).build();\n\nexport { versions };\n", "import { ProviderBuilder } from '@hub3js/core';\n\nimport { metadata, WALLET_ID } from './constants.js';\nimport { sui } from './namespaces/sui.js';\nimport { suiWalletInstance } from './utils.js';\n\nconst buildProvider = () =>\n new ProviderBuilder(WALLET_ID)\n .init(function (context) {\n const [, setState] = context.state();\n if (suiWalletInstance()) {\n setState('installed', true);\n console.debug('[slush] instance detected.', context);\n }\n })\n .config('metadata', metadata)\n .add('sui', sui)\n .build();\n\nexport { buildProvider };\n", "import type { ProviderMetadata } from '@hub3js/core';\n\nimport {\n type BlockchainMeta,\n type SuiBlockchainMeta,\n TransactionType,\n} from 'rango-types';\n\nimport getSigners from './signer.js';\n\nexport const WALLET_ID = 'slush';\nexport const WALLET_NAME_IN_WALLET_STANDARD = 'Slush';\n\nexport const metadata: ProviderMetadata = {\n name: 'Slush',\n icon: 'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/slush/icon.svg',\n extensions: {\n chrome:\n 'https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil',\n edge: 'https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil',\n brave:\n 'https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil',\n homepage: 'https://slush.app/download',\n },\n properties: [\n {\n name: 'namespaces',\n value: {\n data: [\n {\n label: 'Sui',\n value: 'Sui',\n id: 'SUI',\n getSupportedChains: (allBlockchains: BlockchainMeta[]) =>\n allBlockchains.filter(\n (chain): chain is SuiBlockchainMeta =>\n chain.type === TransactionType.SUI\n ),\n },\n ],\n selection: 'multiple',\n },\n },\n {\n name: 'signers',\n value: { getSigners: async () => getSigners() },\n },\n ],\n};\n", "import type { SignerFactory } from 'rango-types';\n\nimport { getInstanceOrThrow } from '@hub3js/sui';\nimport { dynamicImportWithRefinedError } from '@rango-dev/wallets-shared';\nimport { DefaultSignerFactory, TransactionType as TxType } from 'rango-types';\n\nimport { WALLET_NAME_IN_WALLET_STANDARD } from './constants.js';\n\nexport default async function getSigners(): Promise<SignerFactory> {\n const suiWalletProvider = getInstanceOrThrow(WALLET_NAME_IN_WALLET_STANDARD);\n\n const { DefaultSuiSigner } = await dynamicImportWithRefinedError(\n async () => await import('@rango-dev/signer-sui')\n );\n const signers = new DefaultSignerFactory();\n signers.registerSigner(TxType.SUI, new DefaultSuiSigner(suiWalletProvider));\n return signers;\n}\n", "import type { SuiActions } from '@hub3js/sui';\n\nimport { NamespaceBuilder } from '@hub3js/core';\nimport * as commonBuilders from '@hub3js/std/builders';\nimport { actions, builders } from '@hub3js/sui';\n\nimport { WALLET_ID, WALLET_NAME_IN_WALLET_STANDARD } from '../constants.js';\nimport { suiWalletInstance } from '../utils.js';\n\nconst canEagerConnect = builders\n .canEagerConnect()\n .action(\n actions.canEagerConnect({\n name: WALLET_NAME_IN_WALLET_STANDARD,\n })\n )\n .build();\n\nconst connect = builders\n .connect({\n name: WALLET_NAME_IN_WALLET_STANDARD,\n })\n .build();\n\nconst disconnect = commonBuilders\n .disconnect<SuiActions>()\n /*\n * This addresses a wallet bug where changing accounts within the app\n * and then reconnecting results in a connection to the previously connected account.\n * Explicitly calling `disconnect()` on the wallet instance ensures the wallet\n * itself is disconnected, allowing for a proper connection to the intended account\n * upon subsequent reconnection.\n */\n .before(async () => {\n await suiWalletInstance()?.features['standard:disconnect'].disconnect();\n })\n .build();\n\nconst sui = new NamespaceBuilder<SuiActions>('Sui', WALLET_ID)\n .action(connect)\n .action(disconnect)\n .action(canEagerConnect)\n .build();\n\nexport { sui };\n", "import { getInstanceOrThrow } from '@hub3js/sui';\nimport {\n type StandardConnectFeature,\n type StandardDisconnectFeature,\n type StandardEventsFeature,\n type SuiFeatures,\n type WalletWithFeatures,\n} from '@mysten/wallet-standard';\n\nimport { WALLET_NAME_IN_WALLET_STANDARD } from './constants.js';\n\ntype SuiWalletStandard = WalletWithFeatures<\n StandardConnectFeature &\n StandardEventsFeature &\n SuiFeatures &\n StandardDisconnectFeature\n>;\n\nexport function suiWalletInstance(): SuiWalletStandard | null {\n try {\n return getInstanceOrThrow(\n WALLET_NAME_IN_WALLET_STANDARD\n ) as SuiWalletStandard;\n } catch {\n return null;\n }\n}\n"],
5
- "mappings": "+EAAA,OAAS,kBAAAA,MAAsB,qBCA/B,OAAS,mBAAAC,MAAuB,eCEhC,OAGE,mBAAAC,MACK,cCJP,OAAS,sBAAAC,MAA0B,cACnC,OAAS,iCAAAC,MAAqC,4BAC9C,OAAS,wBAAAC,EAAsB,mBAAmBC,MAAc,cAIhE,eAAOC,GAA4D,CACjE,IAAMC,EAAoBC,EAAmBC,CAA8B,EAErE,CAAE,iBAAAC,CAAiB,EAAI,MAAMC,EACjC,SAAY,KAAM,QAAO,uBAAuB,CAClD,EACMC,EAAU,IAAIC,EACpB,OAAAD,EAAQ,eAAeE,EAAO,IAAK,IAAIJ,EAAiBH,CAAiB,CAAC,EACnEK,CACT,CAT8BG,EAAAT,EAAA,cDEvB,IAAMU,EAAY,QACZC,EAAiC,QAEjCC,EAA6B,CACxC,KAAM,QACN,KAAM,sFACN,WAAY,CACV,OACE,yGACF,KAAM,yGACN,MACE,yGACF,SAAU,4BACZ,EACA,WAAY,CACV,CACE,KAAM,aACN,MAAO,CACL,KAAM,CACJ,CACE,MAAO,MACP,MAAO,MACP,GAAI,MACJ,mBAAqBC,GACnBA,EAAe,OACZC,GACCA,EAAM,OAASC,EAAgB,GACnC,CACJ,CACF,EACA,UAAW,UACb,CACF,EACA,CACE,KAAM,UACN,MAAO,CAAE,WAAY,SAAYC,EAAW,CAAE,CAChD,CACF,CACF,EE9CA,OAAS,oBAAAC,MAAwB,eACjC,UAAYC,MAAoB,uBAChC,OAAS,WAAAC,EAAS,YAAAC,MAAgB,cCJlC,OAAS,sBAAAC,MAA0B,cACnC,MAMO,0BAWA,SAASC,GAA8C,CAC5D,GAAI,CACF,OAAOC,EACLC,CACF,CACF,MAAQ,CACN,OAAO,IACT,CACF,CARgBC,EAAAH,EAAA,qBDThB,IAAMI,EAAkBC,EACrB,gBAAgB,EAChB,OACCC,EAAQ,gBAAgB,CACtB,KAAMC,CACR,CAAC,CACH,EACC,MAAM,EAEHC,EAAUH,EACb,QAAQ,CACP,KAAME,CACR,CAAC,EACA,MAAM,EAEHE,EACH,aAAuB,EAQvB,OAAO,SAAY,CAClB,MAAMC,EAAkB,GAAG,SAAS,qBAAqB,EAAE,WAAW,CACxE,CAAC,EACA,MAAM,EAEHC,EAAM,IAAIC,EAA6B,MAAOC,CAAS,EAC1D,OAAOL,CAAO,EACd,OAAOC,CAAU,EACjB,OAAOL,CAAe,EACtB,MAAM,EHpCT,IAAMU,EAAgBC,EAAA,IACpB,IAAIC,EAAgBC,CAAS,EAC1B,KAAK,SAAUC,EAAS,CACvB,GAAM,CAAC,CAAEC,CAAQ,EAAID,EAAQ,MAAM,EAC/BE,EAAkB,IACpBD,EAAS,YAAa,EAAI,EAC1B,QAAQ,MAAM,6BAA8BD,CAAO,EAEvD,CAAC,EACA,OAAO,WAAYG,CAAQ,EAC3B,IAAI,MAAOC,CAAG,EACd,MAAM,EAXW,iBDFtB,IAAMC,GAAWC,EAAA,IACfC,EAAe,EAAE,QAAQ,QAASC,EAAc,CAAC,EAAE,MAAM,EAD1C",
6
- "names": ["defineVersions", "ProviderBuilder", "TransactionType", "getInstanceOrThrow", "dynamicImportWithRefinedError", "DefaultSignerFactory", "TxType", "getSigners", "suiWalletProvider", "getInstanceOrThrow", "WALLET_NAME_IN_WALLET_STANDARD", "DefaultSuiSigner", "dynamicImportWithRefinedError", "signers", "DefaultSignerFactory", "TxType", "__name", "WALLET_ID", "WALLET_NAME_IN_WALLET_STANDARD", "metadata", "allBlockchains", "chain", "TransactionType", "getSigners", "NamespaceBuilder", "commonBuilders", "actions", "builders", "getInstanceOrThrow", "suiWalletInstance", "getInstanceOrThrow", "WALLET_NAME_IN_WALLET_STANDARD", "__name", "canEagerConnect", "builders", "actions", "WALLET_NAME_IN_WALLET_STANDARD", "connect", "disconnect", "suiWalletInstance", "sui", "NamespaceBuilder", "WALLET_ID", "buildProvider", "__name", "ProviderBuilder", "WALLET_ID", "context", "setState", "suiWalletInstance", "metadata", "sui", "versions", "__name", "defineVersions", "buildProvider"]
4
+ "sourcesContent": ["import { defineVersions } from '@hub3js/core/utils';\n\nimport { buildProvider } from './provider.js';\n\nconst versions = () =>\n defineVersions().version('1.0.0', buildProvider()).build();\n\nexport { versions };\n", "import { ProviderBuilder } from '@hub3js/core';\n\nimport { metadata, WALLET_ID } from './constants.js';\nimport { sui } from './namespaces/sui.js';\nimport { suiWalletInstance } from './utils.js';\n\nconst buildProvider = () =>\n new ProviderBuilder(WALLET_ID)\n .init(function (context) {\n const [, setState] = context.state();\n if (suiWalletInstance()) {\n setState('installed', true);\n console.debug('[slush] instance detected.', context);\n }\n })\n .config('metadata', metadata)\n .add('sui', sui)\n .build();\n\nexport { buildProvider };\n", "import type { ProviderMetadata } from '@hub3js/core';\n\nimport { isSuiNamespace } from '@hub3js/sui';\n\nimport getSigners from './signer.js';\n\nexport const WALLET_ID = 'slush';\nexport const WALLET_NAME_IN_WALLET_STANDARD = 'Slush';\n\nexport const metadata: ProviderMetadata = {\n name: 'Slush',\n icon: 'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/slush/icon.svg',\n extensions: {\n chrome:\n 'https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil',\n edge: 'https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil',\n brave:\n 'https://chromewebstore.google.com/detail/slush-%E2%80%94-a-sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil',\n homepage: 'https://slush.app/download',\n },\n properties: [\n {\n name: 'namespaces',\n value: {\n data: [\n {\n label: 'Sui',\n value: 'Sui',\n id: 'SUI',\n isChainSupported: isSuiNamespace,\n },\n ],\n selection: 'multiple',\n },\n },\n {\n name: 'signers',\n value: { getSigners: async () => getSigners() },\n },\n ],\n};\n", "import type { SignerFactory } from 'rango-types';\n\nimport { getInstanceOrThrow } from '@hub3js/sui';\nimport { dynamicImportWithRefinedError } from '@rango-dev/wallets-shared';\nimport { DefaultSignerFactory, TransactionType as TxType } from 'rango-types';\n\nimport { WALLET_NAME_IN_WALLET_STANDARD } from './constants.js';\n\nexport default async function getSigners(): Promise<SignerFactory> {\n const suiWalletProvider = getInstanceOrThrow(WALLET_NAME_IN_WALLET_STANDARD);\n\n const { DefaultSuiSigner } = await dynamicImportWithRefinedError(\n async () => await import('@rango-dev/signer-sui')\n );\n const signers = new DefaultSignerFactory();\n signers.registerSigner(TxType.SUI, new DefaultSuiSigner(suiWalletProvider));\n return signers;\n}\n", "import type { SuiActions } from '@hub3js/sui';\n\nimport { NamespaceBuilder } from '@hub3js/core';\nimport * as commonBuilders from '@hub3js/std/builders';\nimport { actions, builders } from '@hub3js/sui';\n\nimport { WALLET_ID, WALLET_NAME_IN_WALLET_STANDARD } from '../constants.js';\nimport { suiWalletInstance } from '../utils.js';\n\nconst canEagerConnect = builders\n .canEagerConnect()\n .action(\n actions.canEagerConnect({\n name: WALLET_NAME_IN_WALLET_STANDARD,\n })\n )\n .build();\n\nconst connect = builders\n .connect({\n name: WALLET_NAME_IN_WALLET_STANDARD,\n })\n .build();\n\nconst disconnect = commonBuilders\n .disconnect<SuiActions>()\n /*\n * This addresses a wallet bug where changing accounts within the app\n * and then reconnecting results in a connection to the previously connected account.\n * Explicitly calling `disconnect()` on the wallet instance ensures the wallet\n * itself is disconnected, allowing for a proper connection to the intended account\n * upon subsequent reconnection.\n */\n .before(async () => {\n await suiWalletInstance()?.features['standard:disconnect'].disconnect();\n })\n .build();\n\nconst sui = new NamespaceBuilder<SuiActions>('Sui', WALLET_ID)\n .action(connect)\n .action(disconnect)\n .action(canEagerConnect)\n .build();\n\nexport { sui };\n", "import { getInstanceOrThrow } from '@hub3js/sui';\nimport {\n type StandardConnectFeature,\n type StandardDisconnectFeature,\n type StandardEventsFeature,\n type SuiFeatures,\n type WalletWithFeatures,\n} from '@mysten/wallet-standard';\n\nimport { WALLET_NAME_IN_WALLET_STANDARD } from './constants.js';\n\ntype SuiWalletStandard = WalletWithFeatures<\n StandardConnectFeature &\n StandardEventsFeature &\n SuiFeatures &\n StandardDisconnectFeature\n>;\n\nexport function suiWalletInstance(): SuiWalletStandard | null {\n try {\n return getInstanceOrThrow(\n WALLET_NAME_IN_WALLET_STANDARD\n ) as SuiWalletStandard;\n } catch {\n return null;\n }\n}\n"],
5
+ "mappings": "+EAAA,OAAS,kBAAAA,MAAsB,qBCA/B,OAAS,mBAAAC,MAAuB,eCEhC,OAAS,kBAAAC,MAAsB,cCA/B,OAAS,sBAAAC,MAA0B,cACnC,OAAS,iCAAAC,MAAqC,4BAC9C,OAAS,wBAAAC,EAAsB,mBAAmBC,MAAc,cAIhE,eAAOC,GAA4D,CACjE,IAAMC,EAAoBC,EAAmBC,CAA8B,EAErE,CAAE,iBAAAC,CAAiB,EAAI,MAAMC,EACjC,SAAY,KAAM,QAAO,uBAAuB,CAClD,EACMC,EAAU,IAAIC,EACpB,OAAAD,EAAQ,eAAeE,EAAO,IAAK,IAAIJ,EAAiBH,CAAiB,CAAC,EACnEK,CACT,CAT8BG,EAAAT,EAAA,cDFvB,IAAMU,EAAY,QACZC,EAAiC,QAEjCC,EAA6B,CACxC,KAAM,QACN,KAAM,sFACN,WAAY,CACV,OACE,yGACF,KAAM,yGACN,MACE,yGACF,SAAU,4BACZ,EACA,WAAY,CACV,CACE,KAAM,aACN,MAAO,CACL,KAAM,CACJ,CACE,MAAO,MACP,MAAO,MACP,GAAI,MACJ,iBAAkBC,CACpB,CACF,EACA,UAAW,UACb,CACF,EACA,CACE,KAAM,UACN,MAAO,CAAE,WAAY,SAAYC,EAAW,CAAE,CAChD,CACF,CACF,EEtCA,OAAS,oBAAAC,MAAwB,eACjC,UAAYC,MAAoB,uBAChC,OAAS,WAAAC,EAAS,YAAAC,MAAgB,cCJlC,OAAS,sBAAAC,MAA0B,cACnC,MAMO,0BAWA,SAASC,GAA8C,CAC5D,GAAI,CACF,OAAOC,EACLC,CACF,CACF,MAAQ,CACN,OAAO,IACT,CACF,CARgBC,EAAAH,EAAA,qBDThB,IAAMI,EAAkBC,EACrB,gBAAgB,EAChB,OACCC,EAAQ,gBAAgB,CACtB,KAAMC,CACR,CAAC,CACH,EACC,MAAM,EAEHC,EAAUH,EACb,QAAQ,CACP,KAAME,CACR,CAAC,EACA,MAAM,EAEHE,EACH,aAAuB,EAQvB,OAAO,SAAY,CAClB,MAAMC,EAAkB,GAAG,SAAS,qBAAqB,EAAE,WAAW,CACxE,CAAC,EACA,MAAM,EAEHC,EAAM,IAAIC,EAA6B,MAAOC,CAAS,EAC1D,OAAOL,CAAO,EACd,OAAOC,CAAU,EACjB,OAAOL,CAAe,EACtB,MAAM,EHpCT,IAAMU,EAAgBC,EAAA,IACpB,IAAIC,EAAgBC,CAAS,EAC1B,KAAK,SAAUC,EAAS,CACvB,GAAM,CAAC,CAAEC,CAAQ,EAAID,EAAQ,MAAM,EAC/BE,EAAkB,IACpBD,EAAS,YAAa,EAAI,EAC1B,QAAQ,MAAM,6BAA8BD,CAAO,EAEvD,CAAC,EACA,OAAO,WAAYG,CAAQ,EAC3B,IAAI,MAAOC,CAAG,EACd,MAAM,EAXW,iBDFtB,IAAMC,GAAWC,EAAA,IACfC,EAAe,EAAE,QAAQ,QAASC,EAAc,CAAC,EAAE,MAAM,EAD1C",
6
+ "names": ["defineVersions", "ProviderBuilder", "isSuiNamespace", "getInstanceOrThrow", "dynamicImportWithRefinedError", "DefaultSignerFactory", "TxType", "getSigners", "suiWalletProvider", "getInstanceOrThrow", "WALLET_NAME_IN_WALLET_STANDARD", "DefaultSuiSigner", "dynamicImportWithRefinedError", "signers", "DefaultSignerFactory", "TxType", "__name", "WALLET_ID", "WALLET_NAME_IN_WALLET_STANDARD", "metadata", "isSuiNamespace", "getSigners", "NamespaceBuilder", "commonBuilders", "actions", "builders", "getInstanceOrThrow", "suiWalletInstance", "getInstanceOrThrow", "WALLET_NAME_IN_WALLET_STANDARD", "__name", "canEagerConnect", "builders", "actions", "WALLET_NAME_IN_WALLET_STANDARD", "connect", "disconnect", "suiWalletInstance", "sui", "NamespaceBuilder", "WALLET_ID", "buildProvider", "__name", "ProviderBuilder", "WALLET_ID", "context", "setState", "suiWalletInstance", "metadata", "sui", "versions", "__name", "defineVersions", "buildProvider"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/provider-slush",
3
- "version": "0.17.1-next.6",
3
+ "version": "0.17.1-next.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/mod.ts",
@@ -21,14 +21,14 @@
21
21
  "lint": "eslint \"**/*.{ts,tsx}\""
22
22
  },
23
23
  "dependencies": {
24
- "@hub3js/core": "^0.61.0",
25
- "@hub3js/std": "^0.2.0",
26
- "@hub3js/sui": "^0.2.0",
24
+ "@hub3js/core": "^0.61.1",
25
+ "@hub3js/std": "^0.2.3",
26
+ "@hub3js/sui": "^0.2.3",
27
27
  "@mysten/sui": "^1.21.2",
28
28
  "@mysten/wallet-standard": "^0.13.26",
29
29
  "@rango-dev/signer-sui": "^0.10.1-next.1",
30
- "@rango-dev/wallets-core": "^0.60.1-next.3",
31
- "@rango-dev/wallets-shared": "^0.61.1-next.4",
30
+ "@rango-dev/wallets-core": "^0.60.1-next.4",
31
+ "@rango-dev/wallets-shared": "^0.61.1-next.5",
32
32
  "rango-types": "^0.5.0"
33
33
  },
34
34
  "publishConfig": {
package/src/constants.ts CHANGED
@@ -1,10 +1,6 @@
1
1
  import type { ProviderMetadata } from '@hub3js/core';
2
2
 
3
- import {
4
- type BlockchainMeta,
5
- type SuiBlockchainMeta,
6
- TransactionType,
7
- } from 'rango-types';
3
+ import { isSuiNamespace } from '@hub3js/sui';
8
4
 
9
5
  import getSigners from './signer.js';
10
6
 
@@ -31,11 +27,7 @@ export const metadata: ProviderMetadata = {
31
27
  label: 'Sui',
32
28
  value: 'Sui',
33
29
  id: 'SUI',
34
- getSupportedChains: (allBlockchains: BlockchainMeta[]) =>
35
- allBlockchains.filter(
36
- (chain): chain is SuiBlockchainMeta =>
37
- chain.type === TransactionType.SUI
38
- ),
30
+ isChainSupported: isSuiNamespace,
39
31
  },
40
32
  ],
41
33
  selection: 'multiple',