-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
235 lines (229 loc) · 7.64 KB
/
index.html
File metadata and controls
235 lines (229 loc) · 7.64 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="theme-color" content="#ccc" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>any.sender</title>
<!--code highlighting-->
<link
href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css?family=Lato&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css"
rel="stylesheet"
/>
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<script>
function docReady(fn) {
// see if DOM is already available
if (
document.readyState === "complete" ||
document.readyState === "interactive"
) {
// call on next available tick
setTimeout(fn, 1);
} else {
document.addEventListener("DOMContentLoaded", fn);
}
}
docReady();
</script>
<link rel="icon" href="./img/redRing.png" type="image/x-icon" />
<link rel="stylesheet" href="main.css" />
<link
rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/atom-one-dark-reasonable.min.css"
/>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
</head>
<body>
<header class="header">
<div class="container">
<div class="header-top">
<div class="telegram-container">
<a href="https://t.me/anydotsender">
<img
width="32"
height="32"
src="./img/telegram_transp_white.png"
alt="Telegram logo"
/>
</a>
</div>
<div class="twitter-container">
<a href="https://twitter.com/PisaResearch">
<img
width="32"
height="32"
src="./img/Twitter_Social_Icon_Circle_White.png"
alt="Twitter logo"
/>
</a>
</div>
<div class="medium-container">
<a
href="https://medium.com/pisa-research/any-sender-transactions-made-simple-34b36ba7519b"
>
<img
width="32"
height="32"
src="./img/Medium_Monogram.png"
alt="Medium logo"
/>
</a>
</div>
<div class="github-container">
<a href="https://github.com/PISAresearch/docs.any.sender">
<img
width="32"
height="32"
src="./img/GitHub-Mark-Light-120px-plus.png"
alt="Github logo"
/>
</a>
</div>
</div>
<div class="main-title-container-left">
<h1 class="main-title">
an<span class="last-y">y</span
><span class="title-dot">.</span>sender
</h1>
</div>
<div class="subtitle-text-container">
<div class="subtitle">Ethereum transactions made simple</div>
<div class="subtitle-text">
any.sender is a transaction sending service that makes sure your
transaction is delivered on time, every time.
</div>
<a
class="subtitle-read-the-docs"
href="https://github.com/PISAresearch/docs.any.sender"
>
Read the docs<i class="material-icons docs-arrow">
arrow_forward
</i>
</a>
</div>
</div>
</header>
<main class="main">
<section class="why">
<div class="container">
<h2 class="why-title">
Why use it?
</h2>
<div class="why-para">
any.sender makes it easy to outsource your transaction
infrastructure so you can focus on product development and not
re-writing infrastructure. It's the first in its kind to use smart
contracts to enforce a quality of service.
</div>
<ul class="reason-list">
<li class="reason">
<i class="reason-icon material-icons">alarm</i>
<h3 class="reason-title">
Build faster!
</h3>
<p class="reason-text">
Accelerate development. Let any.sender deal with transaction
management so you can focus on what makes your dapp great.
</p>
</li>
<li class="reason">
<i class="reason-icon material-icons">send</i>
<h3 class="reason-title">
Non-custodial
</h3>
<p class="reason-text">
any.sender can only relay pre-authorised transactions. And
thanks to meta-transactions, you can enable gasless interactions
with your dapp
</p>
</li>
<li class="reason">
<i class="reason-icon material-icons">favorite_border</i>
<h3 class="reason-title">
Better UX
</h3>
<p class="reason-text">
Users never have to deal with setting gas prices or bumping up
stuck transactions. Just set a deadline and let us do the rest.
</p>
</li>
</ul>
</div>
</section>
<section class="getting-started">
<div class="container">
<h2 class="getting-started-title">
Getting started
</h2>
<div class="code-header">
1. Install the client
</div>
<div class="example-code-item">
<pre class="pre"><code class="bash code">
npm i @any-sender/client
</code></pre>
</div>
<div class="code-header">
2. Use your favourite wallet to send funds to the relay contract.
</div>
<div class="example-code-item">
<pre class="pre"><code class="typescript code">
// Wrap any.sender functionality
const userDotWallet = any.sender(userWallet);
// Deposit into any.sender
const tx = await userDotWallet.any.deposit({
value: parseEther("1")
});
await tx.wait(12);
// check the balance
const balance = await userDotWallet.any.getBalance();
</code></pre>
</div>
<div class="code-header">
3. Create a transaction and relay it with any.sender.
</div>
<div class="example-code-item">
<pre class="pre"><code class="typescript code">
// Wrap any.sender functionality
const userDotWallet = any.sender(userWallet);
// Send transaction and wait for confirmation
const tx = await userDotWallet.any.sendTransaction({to: echoContractAddress, data});
const receipt = await tx.wait(1); // Transaction Receipt
</code></pre>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="container">
<div class="footer-bottom">
<div class="pisa">
<a href="https://www.pisa.watch/">
Built by
</a>
<a href="https://www.pisa.watch/" class="pisa-name">
P/SA
</a>
</div>
</div>
</div>
</footer>
</body>
</html>