Get the @gnosis.pm/safe-core-sdk package working

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2021-06-21 21:08:55 +02:00
parent cf5ce069c4
commit f005179911
5 changed files with 871 additions and 1 deletions
+5 -1
View File
@@ -10,7 +10,11 @@
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="preload" href="/fonts/Inter-Regular.woff" as="font" type="font/woff">
<link rel="preload" href="/fonts/Inter-SemiBold.otf" as="font" type="font/otf">
<script type="text/javascript">
// Workaround to get `global` to work in old-school transitive
// dependencies.
window.global = window;
</script>
<title>Radicle Interface</title>
</head>
<body>
+852
View File
File diff suppressed because it is too large Load Diff
+5
View File
@@ -21,7 +21,12 @@
"vite-plugin-rewrite-all": "^0.1.2"
},
"dependencies": {
"@gnosis.pm/safe-core-sdk": "^0.2.0",
"@gnosis.pm/safe-core-sdk-types": "^0.1.1",
"@gnosis.pm/safe-service-client": "^0.1.0-alpha.0",
"@stardazed/streams": "^3.1.0",
"@types/marked": "^2.0.3",
"buffer": "^6.0.3",
"ethereum-blockies": "^0.1.1",
"ethers": "^5.0.31",
"marked": "^2.0.7",
+7
View File
@@ -0,0 +1,7 @@
// This shim is used as a stand-in for the node "stream" library, used by
// the "keccack" package depended on by @gnosis.pm/safe-core-sdk.
import * as streams from '@stardazed/streams';
// "Transform" is the old name for "TransformStream".
export const Transform = streams.TransformStream;
export default streams;
+2
View File
@@ -11,6 +11,8 @@ const config: UserConfig = {
resolve: {
alias: {
"@app": path.resolve("./src"),
// Polyfill for Node.js "stream" library.
"stream": path.resolve("./src/polyfills/stream.ts"),
},
},
build: {