diff --git a/package-lock.json b/package-lock.json index 2b615e3..958a7be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@tact-lang/compiler": "^1.5.3", "@ton-community/func-js": "^0.5.0", "@ton/core": "^0.56.3", - "@ton/sandbox": "^0.16.0", + "@ton/sandbox": "^0.20.0", "@ton/ton": "^13.11.1", "@tonconnect/ui-react": "1.0.0-beta.4", "@types/node": "18.14.0", @@ -1386,7 +1386,9 @@ } }, "node_modules/@ton/sandbox": { - "version": "0.16.0", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@ton/sandbox/-/sandbox-0.20.0.tgz", + "integrity": "sha512-uci6DRDZGW1eu+hHgbVzf4lDTi29PV+5XKPC8ZyYUJaoOtulkHDtgyrfZ1H5QSOVOmUIjHDQhPwLsn1kU51yHw==", "license": "MIT", "peerDependencies": { "@ton/core": ">=0.56.0", diff --git a/package.json b/package.json index fb10094..1ccfc5b 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@tact-lang/compiler": "^1.5.3", "@ton-community/func-js": "^0.5.0", "@ton/core": "^0.56.3", - "@ton/sandbox": "^0.16.0", + "@ton/sandbox": "^0.20.0", "@ton/ton": "^13.11.1", "@tonconnect/ui-react": "1.0.0-beta.4", "@types/node": "18.14.0", diff --git a/src/components/workspace/WorkspaceSidebar/WorkspaceSidebar.tsx b/src/components/workspace/WorkspaceSidebar/WorkspaceSidebar.tsx index 11f985f..e6f6e4e 100644 --- a/src/components/workspace/WorkspaceSidebar/WorkspaceSidebar.tsx +++ b/src/components/workspace/WorkspaceSidebar/WorkspaceSidebar.tsx @@ -35,10 +35,13 @@ const WorkspaceSidebar: FC = ({ activeMenu, onMenuClicked }) => { getSettingStateByKey, updateEditorMode, toggleExternalMessage, + toggleMasterChain, } = useSettingAction(); const editorMode = getSettingStateByKey('editorMode'); const isExternalMessage = getSettingStateByKey('isExternalMessage'); + const isMasterChainEnabled = getSettingStateByKey('masterchain'); + const themeContext = useContext(ThemeContext); const menuItems: MenuItem[] = [ @@ -96,6 +99,16 @@ const WorkspaceSidebar: FC = ({ activeMenu, onMenuClicked }) => { /> +
+ + { + toggleMasterChain(toggleState); + }} + /> + +