@fluent.xyz/connect 0.8.0 → 0.8.1
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/dist/fluent-connect.css +1 -1
- package/dist/index.js +978 -686
- package/dist/index.js.map +1 -1
- package/dist/internal.js +5 -4
- package/dist/internal.js.map +1 -1
- package/docs/concepts.md +20 -0
- package/package.json +1 -1
package/docs/concepts.md
CHANGED
|
@@ -81,6 +81,26 @@ once per `execute()` call:
|
|
|
81
81
|
|
|
82
82
|
The option itself is in [configuration.md](configuration.md).
|
|
83
83
|
|
|
84
|
+
## User tokens
|
|
85
|
+
|
|
86
|
+
The Tokens tab of the account drawer lists the Default tokens, the App's Integrator tokens
|
|
87
|
+
(`tokens` in [configuration.md](configuration.md#fluentwidgetprops)) and the person's User
|
|
88
|
+
tokens, and ends with an Add token row that opens the add form. The form takes one contract
|
|
89
|
+
address on the current Network, reads the token's symbol, name and decimals from that contract,
|
|
90
|
+
and shows them with the full address before the person confirms: the metadata comes from the
|
|
91
|
+
contract, never from typed input. Adding is refused for an address that is not a contract or
|
|
92
|
+
holds no token, for a token already on the list under any Token source, and past 50 User tokens
|
|
93
|
+
on one Network. A symbol another Display token already carries is allowed, after a warning that
|
|
94
|
+
anyone can deploy a token with someone else's symbol. A User token is labelled "Added by you" in
|
|
95
|
+
the list, and its row's menu removes it.
|
|
96
|
+
|
|
97
|
+
User tokens are part of the person's User settings, read and saved on the service with an Auth
|
|
98
|
+
token; while the widget has not yet read that person's settings, an add lands in this browser's
|
|
99
|
+
storage instead. The service's refusal of an add is shown under the address field, and of a
|
|
100
|
+
removal next to the list; neither reaches your app. An External wallet keeps User tokens the same
|
|
101
|
+
way, through the Service session its `getAuthToken()` row above describes, although Quick sign and
|
|
102
|
+
the Gas token do not apply to it.
|
|
103
|
+
|
|
84
104
|
## What the Swap page can do on mainnet
|
|
85
105
|
|
|
86
106
|
The drawer's Swap page deposits from Ethereum into the user's Fluent smart
|
package/package.json
CHANGED