-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
967 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,7 +104,7 @@ Coinvent is a dedicated outsource development team, passionately committed to cr | |
### softstack | ||
|
||
#### Summary | ||
Softstack formerly known as Chainsulting, is a leading provider of comprehensive Web3 solutions, with a focus on software development and smart contract auditing. | ||
Softstack is a leading service provider of comprehensive Web3 solutions, since 2017, with a focus on software development and smart contract auditing. Made in Germany | ||
|
||
#### Workstreams | ||
- Smart Contract & dApp Development | ||
|
@@ -122,7 +122,7 @@ Softstack formerly known as Chainsulting, is a leading provider of comprehensive | |
#### Contacts | ||
- [email protected] | ||
- [softstack.io](https://softstack.io/) | ||
- Telegram [@softstack](https://t.me/softstack) | ||
- Telegram [@yannikheinze](https://t.me/yannikheinze) | ||
|
||
## Add your team | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
docs/develop/dapps/asset-processing/address-verification.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# Wallet Address Validation | ||
|
||
### How to Check the Validity of a TON Wallet Address? | ||
|
||
|
||
|
||
<Tabs groupId="address-examples"> | ||
|
||
<TabItem value="Tonweb" label="JS (Tonweb)"> | ||
|
||
```js | ||
const TonWeb = require("tonweb") | ||
TonWeb.utils.Address.isValid('...') | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="GO" label="tonutils-go"> | ||
|
||
```python | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"github.com/xssnick/tonutils-go/address" | ||
) | ||
|
||
if _, err := address.ParseAddr("EQCD39VS5j...HUn4bpAOg8xqB2N"); err != nil { | ||
return errors.New("invalid address") | ||
} | ||
``` | ||
|
||
|
||
</TabItem> | ||
<TabItem value="Java" label="Ton4j"> | ||
|
||
```javascript | ||
try { | ||
Address.of("..."); | ||
} catch (e) { | ||
// not valid address | ||
} | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="Kotlin" label="ton-kotlin"> | ||
|
||
```javascript | ||
try { | ||
AddrStd("...") | ||
} catch(e: IllegalArgumentException) { | ||
// not valid address | ||
} | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
:::tip | ||
Full Address description on the [Smart Contract Addresses](/learn/overviews/addresses) page. | ||
::: |
Oops, something went wrong.