Skip to content

Commit

Permalink
version 1.1.31
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed Jun 3, 2022
1 parent 13b0562 commit 30b6c66
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ gem install ton-client-ruby
Install TON-SDK
```bash
ton-client-ruby setup
# result - path to dylib file for ton-client-ruby configuration
# result - path to dylib file for everscale-client-ruby configuration
```

### Manual build FreeTON SDK
0. Install Rust to your OS
1. git clone https://github.com/tonlabs/TON-SDK
2. cd ./TON-SDK
1. git clone https://github.com/tonlabs/ever-sdk
2. cd ./ever-sdk
3. cargo update
4. cargo build --release

## Usage

```ruby
# For MAcOS
TonClient.configure { |config| config.ffi_lib(./TON-SDK/target/release/libton_client.dylib) }
TonClient.configure { |config| config.ffi_lib(./ever-sdk/target/release/libton_client.dylib) }
# For Linux
# TonClient.configure { |config| config.ffi_lib(./TON-SDK/target/release/libton_client.so) }
# TonClient.configure { |config| config.ffi_lib(./ever-sdk/target/release/libton_client.so) }

client = TonClient.create(config: {network: {server_address: "net.ton.dev"}})
client = TonClient.create(config: {network: {endpoints: ["https://eri01.net.everos.dev", "https://rbx01.net.everos.dev"]}})

# All methods are asynchronous

Expand Down Expand Up @@ -4799,7 +4799,7 @@ end

example for NodeSE
```
spec_ffi=./TON-SDK/target/release/libton_client.dylib
spec_ffi=./ever-sdk/target/release/libton_client.dylib
server_address=http://localhost:80
giver_abi_name=GiverNodeSE
giver_amount=10000000000
Expand All @@ -4822,7 +4822,7 @@ giver_amount=10000000000

```
ton-client-ruby update
everscale-client-ruby update
```

Expand All @@ -4832,15 +4832,15 @@ or

```
curl https://raw.githubusercontent.com/tonlabs/TON-SDK/master/tools/api.json > api.json
curl https://raw.githubusercontent.com/tonlabs/ever-sdk/master/tools/api.json > api.json
```


```
ton-client-ruby update ./api.json
everscale-client-ruby update ./api.json
```

Expand All @@ -4849,14 +4849,14 @@ or

```
cd ton-client-ruby
cd everscale-client-ruby
```


```
./bin/ton-client-ruby update
./bin/everscale-client-ruby update
```

2 changes: 1 addition & 1 deletion lib/everscale-client-ruby/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module TonClient
VERSION = "1.1.30"
VERSION = "1.1.31"
end

0 comments on commit 30b6c66

Please sign in to comment.