-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgenerate_ws_from_rpc.sh
executable file
·153 lines (134 loc) · 6.16 KB
/
generate_ws_from_rpc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!/bin/bash
cat admin/admin_rpc.py \
| sed "s/NamespaceRPC/NamespaceWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> admin/admin_ws.py
cat debug/debug_rpc.py \
| sed "s/NamespaceRPC/NamespaceWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> debug/debug_ws.py
cat net/net_rpc.py \
| sed "s/NamespaceRPC/NamespaceWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> net/net_ws.py
cat personal/personal_rpc.py \
| sed "s/NamespaceRPC/NamespaceWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> personal/personal_ws.py
cat txpool/txpool_rpc.py \
| sed "s/NamespaceRPC/NamespaceWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> txpool/txpool_ws.py
cat eth/account/eth_account_rpc.py \
| sed "s/NamespaceAccountRPC/NamespaceAccountWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> eth/account/eth_account_ws.py
cat eth/block/eth_block_rpc.py \
| sed "s/NamespaceBlockRPC/NamespaceBlockWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> eth/block/eth_block_ws.py
cat eth/configuration/eth_configuration_rpc.py \
| sed "s/NamespaceConfigurationRPC/NamespaceConfigurationWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> eth/configuration/eth_configuration_ws.py
cat eth/miscellaneous/eth_miscellaneous_rpc.py \
| sed "s/NamespaceMiscellaneousRPC/NamespaceMiscellaneousWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> eth/miscellaneous/eth_miscellaneous_ws.py
cat eth/transaction/eth_transaction_rpc.py \
| sed "s/NamespaceTransactionRPC/NamespaceTransactionWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> eth/transaction/eth_transaction_ws.py
cat eth/filter/eth_filter_rpc.py \
| sed "s/NamespaceFilterRPC/NamespaceFilterWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> eth/filter/eth_filter_ws.py
cat kaia/account/kaia_account_rpc.py \
| sed "s/NamespaceAccountRPC/NamespaceAccountWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> kaia/account/kaia_account_ws.py
cat kaia/block/kaia_block_rpc.py \
| sed "s/NamespaceBlockRPC/NamespaceBlockWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> kaia/block/kaia_block_ws.py
cat kaia/configuration/kaia_configuration_rpc.py \
| sed "s/NamespaceConfigurationRPC/NamespaceConfigurationWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> kaia/configuration/kaia_configuration_ws.py
cat kaia/miscellaneous/kaia_miscellaneous_rpc.py \
| sed "s/NamespaceMiscellaneousRPC/NamespaceMiscellaneousWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> kaia/miscellaneous/kaia_miscellaneous_ws.py
cat kaia/transaction/kaia_transaction_rpc.py \
| sed "s/NamespaceTransactionRPC/NamespaceTransactionWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> kaia/transaction/kaia_transaction_ws.py
cat kaia/filter/kaia_filter_rpc.py \
| sed "s/NamespaceFilterRPC/NamespaceFilterWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> kaia/filter/kaia_filter_ws.py
cat eth/gas/eth_gas_rpc.py \
| sed "s/NamespaceGasRPC/NamespaceGasWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> eth/gas/eth_gas_ws.py
cat kaia/gas/kaia_gas_rpc.py \
| sed "s/NamespaceGasRPC/NamespaceGasWS/g" \
| sed "s/WebSocket/RPC/g" \
| sed "s/created_by_rpc/created_by_ws/g" \
| sed "s/_, error = Utils.call_rpc/_, error = Utils.call_ws/g" \
| sed "s/result, error = Utils.call_rpc/result, error = Utils.call_ws/g" \
> kaia/gas/kaia_gas_ws.py