-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into chainmanager-to-pinia
- Loading branch information
Showing
9 changed files
with
206 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { Session, SessionKit } from '@wharfkit/session'; | ||
import { TransactPluginResourceProvider } from '@wharfkit/transact-plugin-resource-provider'; | ||
import { WalletPluginAnchor } from '@wharfkit/wallet-plugin-anchor'; | ||
import { WalletPluginCleos } from '@wharfkit/wallet-plugin-cleos'; | ||
import { WalletPluginPrivateKey } from '@wharfkit/wallet-plugin-privatekey'; | ||
import WebRenderer from '@wharfkit/web-renderer'; | ||
import { boot } from 'quasar/wrappers'; | ||
import { getChain } from 'src/config/ConfigManager'; | ||
import { Chain } from 'src/types/Chain'; | ||
|
||
const chain: Chain = getChain(); | ||
Check failure on line 11 in src/boot/wharf.ts GitHub Actions / tests
|
||
|
||
declare module 'vue' { | ||
interface ComponentCustomProperties { | ||
$kit: SessionKit; | ||
$user: Session; | ||
} | ||
} | ||
|
||
export const ui = new WebRenderer(); | ||
|
||
export const kit = new SessionKit({ | ||
appName: process.env.APP_NAME, | ||
chains: [ | ||
{ | ||
id: chain.getChainId(), | ||
url: String(chain.getRPCEndpoint()), | ||
}, | ||
], | ||
ui, | ||
walletPlugins: [ | ||
new WalletPluginAnchor(), | ||
new WalletPluginCleos(), | ||
new WalletPluginPrivateKey('5Jtoxgny5tT7NiNFp1MLogviuPJ9NniWjnU4wKzaX4t7pL4kJ8s'), | ||
], | ||
}, | ||
{ | ||
transactPlugins: [ | ||
new TransactPluginResourceProvider(), | ||
], | ||
}); | ||
|
||
export default boot(({ app }) => { | ||
app.config.globalProperties.$kit = kit; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.