-
Notifications
You must be signed in to change notification settings - Fork 7
/
wallets.go
59 lines (54 loc) · 1.52 KB
/
wallets.go
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
package tonconnect
import (
"slices"
)
type Wallet struct {
Name string `json:"name"`
UniversalURL string `json:"universal_url"`
BridgeURL string `json:"bridge_url"`
}
var Wallets = map[string]Wallet{
"telegram-wallet": {
Name: "Wallet",
UniversalURL: "https://t.me/wallet/start?startapp=",
BridgeURL: "https://bridge.ton.space/bridge",
},
"tonkeeper": {
Name: "Tonkeeper",
UniversalURL: "https://app.tonkeeper.com/ton-connect",
BridgeURL: "https://bridge.tonapi.io/bridge",
},
"mytonwallet": {
Name: "MyTonWallet",
UniversalURL: "https://connect.mytonwallet.org/",
BridgeURL: "https://tonconnectbridge.mytonwallet.org/bridge",
},
"tonhub": {
Name: "Tonhub",
UniversalURL: "https://tonhub.com/ton-connect",
BridgeURL: "https://connect.tonhubapi.com/tonconnect",
},
"dewallet": {
Name: "DeWallet",
UniversalURL: "https://t.me/dewallet?attach=wallet",
BridgeURL: "https://sse-bridge.delab.team/bridge",
},
"bitgetTonWallet": {
Name: "Bitget Wallet",
UniversalURL: "https://bkcode.vip/ton-connect",
BridgeURL: "https://bridge.tonapi.io/bridge",
},
"safepalwallet": {
Name: "SafePal",
UniversalURL: "https://link.safepal.io/ton-connect",
BridgeURL: "https://ton-bridge.safepal.com/tonbridge/v1/bridge",
},
}
func getBridgeURLs(wallets ...Wallet) []string {
var bridges []string
for _, w := range wallets {
bridges = append(bridges, w.BridgeURL)
}
slices.Sort(bridges)
return slices.Compact(bridges)
}