@tonconnect/ui-react 1.0.0-beta.7 → 1.0.0-beta.9

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.
Files changed (2) hide show
  1. package/README.md +17 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -6,7 +6,7 @@ If you don't use React for your app, take a look at [TonConnect UI](https://gith
6
6
 
7
7
  If you want to use TonConnect on the server side, you should use the [TonConnect SDK](https://github.com/ton-connect/sdk/tree/main/packages/sdk).
8
8
 
9
- You can find more details and the protocol specification in the [docs](https://github.com/ton-connect/docs).
9
+ You can find more details and the protocol specification in the [docs](https://docs.ton.org/develop/dapps/ton-connect/overview).
10
10
 
11
11
  ---
12
12
 
@@ -125,6 +125,22 @@ export const Settings = () => {
125
125
  setOptions({ language: lang as Locales });
126
126
  };
127
127
 
128
+ const myTransaction = {
129
+ validUntil: Math.floor(Date.now() / 1000) + 60, // 60 sec
130
+ messages: [
131
+ {
132
+ address: "EQBBJBB3HagsujBqVfqeDUPJ0kXjgTPLWPFFffuNXNiJL0aA",
133
+ amount: "20000000",
134
+ // stateInit: "base64bocblahblahblah==" // just for instance. Replace with your transaction initState or remove
135
+ },
136
+ {
137
+ address: "EQDmnxDMhId6v1Ofg_h5KR5coWlFG6e86Ro3pc7Tq4CA0-Jn",
138
+ amount: "60000000",
139
+ // payload: "base64bocblahblahblah==" // just for instance. Replace with your transaction payload or remove
140
+ }
141
+ ]
142
+ }
143
+
128
144
  return (
129
145
  <div>
130
146
  <button onClick={() => tonConnectUI.sendTransaction(myTransaction)}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonconnect/ui-react",
3
- "version": "1.0.0-beta.7",
3
+ "version": "1.0.0-beta.9",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build"
@@ -52,7 +52,7 @@
52
52
  "vite-plugin-dts": "^1.7.1"
53
53
  },
54
54
  "dependencies": {
55
- "@tonconnect/ui": "^1.0.0-beta.6"
55
+ "@tonconnect/ui": "^1.0.0-beta.7"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "react": ">=17.0.0",