@openzeppelin/guardian-evm-client 0.14.5 → 0.15.2
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.
- package/README.md +12 -4
- package/package.json +10 -1
package/README.md
CHANGED
|
@@ -12,11 +12,19 @@ Default server builds do not register the `/evm/*` routes.
|
|
|
12
12
|
|
|
13
13
|
## Setup
|
|
14
14
|
|
|
15
|
-
Run Guardian with server-owned RPC and EntryPoint
|
|
15
|
+
Run Guardian with server-owned RPC URLs and the shared EntryPoint v0.9 address:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
GUARDIAN_EVM_RPC_URLS=31337=http://127.0.0.1:8545 \
|
|
19
|
-
|
|
19
|
+
GUARDIAN_EVM_ENTRYPOINT_ADDRESS=0x433709009b8330fda32311df1c2afa402ed8d009 \
|
|
20
|
+
cargo run -p guardian-server --features evm --bin server
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
For a browser UI hosted on a different origin, configure Guardian with explicit
|
|
24
|
+
CORS origins and credentialed requests:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
GUARDIAN_CORS_ALLOWED_ORIGINS=https://accounts.openzeppelin.com \
|
|
20
28
|
cargo run -p guardian-server --features evm --bin server
|
|
21
29
|
```
|
|
22
30
|
|
|
@@ -38,8 +46,8 @@ await client.login();
|
|
|
38
46
|
## Configure
|
|
39
47
|
|
|
40
48
|
Configure the smart account once before creating proposals. Guardian resolves
|
|
41
|
-
RPC
|
|
42
|
-
the chain, smart account, and validator addresses.
|
|
49
|
+
RPC URLs from the server chain map and uses one server-owned EntryPoint address;
|
|
50
|
+
clients only provide the chain, smart account, and validator addresses.
|
|
43
51
|
|
|
44
52
|
```typescript
|
|
45
53
|
await client.configure({
|
package/package.json
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openzeppelin/guardian-evm-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "TypeScript EVM client for Guardian server proposal workflows",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/OpenZeppelin/guardian.git",
|
|
8
|
+
"directory": "packages/guardian-evm-client"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/OpenZeppelin/guardian/tree/main/packages/guardian-evm-client#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/OpenZeppelin/guardian/issues"
|
|
13
|
+
},
|
|
5
14
|
"type": "module",
|
|
6
15
|
"main": "./dist/index.js",
|
|
7
16
|
"module": "./dist/index.js",
|