@ton/appkit-react 0.0.4 → 0.0.5-alpha.0

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 CHANGED
@@ -1,3 +1,9 @@
1
+ <!--
2
+ This file is auto-generated. Do not edit manually.
3
+ Changes will be overwritten when running the docs update script.
4
+ Source template: template/packages/appkit-react/README.md
5
+ -->
6
+
1
7
  # @ton/appkit-react
2
8
 
3
9
  React components and hooks for AppKit.
@@ -164,7 +170,7 @@ npm install @ston-fi/omniston-sdk
164
170
  Initialize `AppKit` with `OmnistonSwapProvider`:
165
171
 
166
172
  ```ts
167
- // Initialize AppKit with swap provider
173
+ // Initialize AppKit with swap providers
168
174
  const appKit = new AppKit({
169
175
  networks: {
170
176
  [Network.mainnet().chainId]: {
@@ -176,10 +182,13 @@ const appKit = new AppKit({
176
182
  },
177
183
  providers: [
178
184
  new OmnistonSwapProvider({
179
- // Optional configuration
180
185
  apiUrl: 'https://api.ston.fi',
181
186
  defaultSlippageBps: 100, // 1%
182
187
  }),
188
+ new DeDustSwapProvider({
189
+ defaultSlippageBps: 100,
190
+ referralAddress: 'EQ...', // Optional
191
+ }),
183
192
  ],
184
193
  });
185
194
  ```