sky_api 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +190 -0
- data/Rakefile +10 -0
- data/docs/Address.md +17 -0
- data/docs/ApiV1PendingTxsTransaction.md +29 -0
- data/docs/ApiV1PendingTxsTransactionOutputs.md +23 -0
- data/docs/BlockSchema.md +21 -0
- data/docs/BlockSchemaBody.md +17 -0
- data/docs/BlockVerboseSchema.md +21 -0
- data/docs/BlockVerboseSchemaBody.md +17 -0
- data/docs/BlockVerboseSchemaHeader.md +31 -0
- data/docs/DefaultApi.md +2767 -0
- data/docs/InlineResponse200.md +17 -0
- data/docs/InlineResponse2001.md +17 -0
- data/docs/InlineResponse20010.md +25 -0
- data/docs/InlineResponse2002.md +29 -0
- data/docs/InlineResponse2003.md +17 -0
- data/docs/InlineResponse2004.md +17 -0
- data/docs/InlineResponse2005.md +21 -0
- data/docs/InlineResponse2006.md +17 -0
- data/docs/InlineResponse2007.md +17 -0
- data/docs/InlineResponse2008.md +17 -0
- data/docs/InlineResponse2008Data.md +17 -0
- data/docs/InlineResponse2009.md +17 -0
- data/docs/InlineResponseDefault.md +19 -0
- data/docs/NetworkConnectionSchema.md +41 -0
- data/docs/NetworkConnectionSchemaUnconfirmedVerifyTransaction.md +21 -0
- data/docs/Transaction.md +21 -0
- data/docs/TransactionEncoded.md +25 -0
- data/docs/TransactionEncodedS.md +21 -0
- data/docs/TransactionStatus.md +23 -0
- data/docs/TransactionTxn.md +31 -0
- data/docs/TransactionV2ParamsAddress.md +17 -0
- data/docs/TransactionV2ParamsAddressHoursSelection.md +17 -0
- data/docs/TransactionV2ParamsUnspent.md +23 -0
- data/docs/TransactionV2ParamsUnspentHoursSelection.md +21 -0
- data/docs/TransactionV2ParamsUnspentTo.md +19 -0
- data/docs/TransactionVerbose.md +21 -0
- data/docs/TransactionVerboseTxn.md +35 -0
- data/docs/TransactionVerboseTxnInputs.md +25 -0
- data/docs/TransactionVerifyRequest.md +19 -0
- data/docs/WalletTransactionRequest.md +25 -0
- data/docs/WalletTransactionRequestHoursSelection.md +21 -0
- data/docs/WalletTransactionRequestWallet.md +23 -0
- data/docs/WalletTransactionSignRequest.md +23 -0
- data/git_push.sh +55 -0
- data/lib/sky_api.rb +81 -0
- data/lib/sky_api/api/default_api.rb +3371 -0
- data/lib/sky_api/api_client.rb +387 -0
- data/lib/sky_api/api_error.rb +57 -0
- data/lib/sky_api/configuration.rb +259 -0
- data/lib/sky_api/models/address.rb +201 -0
- data/lib/sky_api/models/api_v1_pending_txs_transaction.rb +256 -0
- data/lib/sky_api/models/api_v1_pending_txs_transaction_outputs.rb +223 -0
- data/lib/sky_api/models/block_schema.rb +214 -0
- data/lib/sky_api/models/block_schema_body.rb +198 -0
- data/lib/sky_api/models/block_verbose_schema.rb +214 -0
- data/lib/sky_api/models/block_verbose_schema_body.rb +198 -0
- data/lib/sky_api/models/block_verbose_schema_header.rb +259 -0
- data/lib/sky_api/models/inline_response200.rb +196 -0
- data/lib/sky_api/models/inline_response2001.rb +198 -0
- data/lib/sky_api/models/inline_response20010.rb +232 -0
- data/lib/sky_api/models/inline_response2002.rb +261 -0
- data/lib/sky_api/models/inline_response2003.rb +196 -0
- data/lib/sky_api/models/inline_response2004.rb +198 -0
- data/lib/sky_api/models/inline_response2005.rb +217 -0
- data/lib/sky_api/models/inline_response2006.rb +198 -0
- data/lib/sky_api/models/inline_response2007.rb +196 -0
- data/lib/sky_api/models/inline_response2008.rb +196 -0
- data/lib/sky_api/models/inline_response2008_data.rb +196 -0
- data/lib/sky_api/models/inline_response2009.rb +196 -0
- data/lib/sky_api/models/inline_response_default.rb +205 -0
- data/lib/sky_api/models/network_connection_schema.rb +338 -0
- data/lib/sky_api/models/network_connection_schema_unconfirmed_verify_transaction.rb +215 -0
- data/lib/sky_api/models/transaction.rb +214 -0
- data/lib/sky_api/models/transaction_encoded.rb +232 -0
- data/lib/sky_api/models/transaction_encoded_s.rb +214 -0
- data/lib/sky_api/models/transaction_status.rb +225 -0
- data/lib/sky_api/models/transaction_txn.rb +266 -0
- data/lib/sky_api/models/transaction_v2_params_address.rb +196 -0
- data/lib/sky_api/models/transaction_v2_params_address_hours_selection.rb +196 -0
- data/lib/sky_api/models/transaction_v2_params_unspent.rb +227 -0
- data/lib/sky_api/models/transaction_v2_params_unspent_hours_selection.rb +214 -0
- data/lib/sky_api/models/transaction_v2_params_unspent_to.rb +205 -0
- data/lib/sky_api/models/transaction_verbose.rb +214 -0
- data/lib/sky_api/models/transaction_verbose_txn.rb +284 -0
- data/lib/sky_api/models/transaction_verbose_txn_inputs.rb +232 -0
- data/lib/sky_api/models/transaction_verify_request.rb +205 -0
- data/lib/sky_api/models/wallet_transaction_request.rb +234 -0
- data/lib/sky_api/models/wallet_transaction_request_hours_selection.rb +214 -0
- data/lib/sky_api/models/wallet_transaction_request_wallet.rb +227 -0
- data/lib/sky_api/models/wallet_transaction_sign_request.rb +225 -0
- data/lib/sky_api/version.rb +15 -0
- data/sky_api.gemspec +45 -0
- data/spec/api/default_api_spec.rb +652 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/address_spec.rb +41 -0
- data/spec/models/api_v1_pending_txs_transaction_outputs_spec.rb +59 -0
- data/spec/models/api_v1_pending_txs_transaction_spec.rb +77 -0
- data/spec/models/block_schema_body_spec.rb +41 -0
- data/spec/models/block_schema_spec.rb +53 -0
- data/spec/models/block_verbose_schema_body_spec.rb +41 -0
- data/spec/models/block_verbose_schema_header_spec.rb +83 -0
- data/spec/models/block_verbose_schema_spec.rb +53 -0
- data/spec/models/inline_response20010_spec.rb +65 -0
- data/spec/models/inline_response2001_spec.rb +41 -0
- data/spec/models/inline_response2002_spec.rb +77 -0
- data/spec/models/inline_response2003_spec.rb +41 -0
- data/spec/models/inline_response2004_spec.rb +41 -0
- data/spec/models/inline_response2005_spec.rb +53 -0
- data/spec/models/inline_response2006_spec.rb +41 -0
- data/spec/models/inline_response2007_spec.rb +41 -0
- data/spec/models/inline_response2008_data_spec.rb +41 -0
- data/spec/models/inline_response2008_spec.rb +41 -0
- data/spec/models/inline_response2009_spec.rb +41 -0
- data/spec/models/inline_response200_spec.rb +41 -0
- data/spec/models/inline_response_default_spec.rb +47 -0
- data/spec/models/network_connection_schema_spec.rb +117 -0
- data/spec/models/network_connection_schema_unconfirmed_verify_transaction_spec.rb +53 -0
- data/spec/models/transaction_encoded_s_spec.rb +53 -0
- data/spec/models/transaction_encoded_spec.rb +65 -0
- data/spec/models/transaction_spec.rb +53 -0
- data/spec/models/transaction_status_spec.rb +59 -0
- data/spec/models/transaction_txn_spec.rb +83 -0
- data/spec/models/transaction_v2_params_address_hours_selection_spec.rb +41 -0
- data/spec/models/transaction_v2_params_address_spec.rb +41 -0
- data/spec/models/transaction_v2_params_unspent_hours_selection_spec.rb +53 -0
- data/spec/models/transaction_v2_params_unspent_spec.rb +59 -0
- data/spec/models/transaction_v2_params_unspent_to_spec.rb +47 -0
- data/spec/models/transaction_verbose_spec.rb +53 -0
- data/spec/models/transaction_verbose_txn_inputs_spec.rb +65 -0
- data/spec/models/transaction_verbose_txn_spec.rb +95 -0
- data/spec/models/transaction_verify_request_spec.rb +47 -0
- data/spec/models/wallet_transaction_request_hours_selection_spec.rb +53 -0
- data/spec/models/wallet_transaction_request_spec.rb +65 -0
- data/spec/models/wallet_transaction_request_wallet_spec.rb +59 -0
- data/spec/models/wallet_transaction_sign_request_spec.rb +59 -0
- data/spec/spec_helper.rb +111 -0
- metadata +407 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
# SkyApi::TransactionV2ParamsAddress
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**hours_selection** | [**TransactionV2ParamsAddressHoursSelection**](TransactionV2ParamsAddressHoursSelection.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'SkyApi'
|
13
|
+
|
14
|
+
instance = SkyApi::TransactionV2ParamsAddress.new(hours_selection: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# SkyApi::TransactionV2ParamsAddressHoursSelection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**type** | **String** | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'SkyApi'
|
13
|
+
|
14
|
+
instance = SkyApi::TransactionV2ParamsAddressHoursSelection.new(type: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# SkyApi::TransactionV2ParamsUnspent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**hours_selection** | [**TransactionV2ParamsUnspentHoursSelection**](TransactionV2ParamsUnspentHoursSelection.md) | | [optional]
|
8
|
+
**unspents** | **Array<String>** | | [optional]
|
9
|
+
**change_address** | **String** | | [optional]
|
10
|
+
**to** | [**Array<TransactionV2ParamsUnspentTo>**](TransactionV2ParamsUnspentTo.md) | | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'SkyApi'
|
16
|
+
|
17
|
+
instance = SkyApi::TransactionV2ParamsUnspent.new(hours_selection: null,
|
18
|
+
unspents: null,
|
19
|
+
change_address: null,
|
20
|
+
to: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# SkyApi::TransactionV2ParamsUnspentHoursSelection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**type** | **String** | | [optional]
|
8
|
+
**mode** | **String** | | [optional]
|
9
|
+
**share_factor** | **String** | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'SkyApi'
|
15
|
+
|
16
|
+
instance = SkyApi::TransactionV2ParamsUnspentHoursSelection.new(type: null,
|
17
|
+
mode: null,
|
18
|
+
share_factor: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SkyApi::TransactionV2ParamsUnspentTo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**address** | **String** | | [optional]
|
8
|
+
**coins** | **String** | | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'SkyApi'
|
14
|
+
|
15
|
+
instance = SkyApi::TransactionV2ParamsUnspentTo.new(address: null,
|
16
|
+
coins: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# SkyApi::TransactionVerbose
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**time** | **Integer** | | [optional]
|
8
|
+
**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional]
|
9
|
+
**txn** | [**TransactionVerboseTxn**](TransactionVerboseTxn.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'SkyApi'
|
15
|
+
|
16
|
+
instance = SkyApi::TransactionVerbose.new(time: null,
|
17
|
+
status: null,
|
18
|
+
txn: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# SkyApi::TransactionVerboseTxn
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional]
|
8
|
+
**fee** | **Integer** | | [optional]
|
9
|
+
**inner_hash** | **String** | | [optional]
|
10
|
+
**inputs** | [**Array<TransactionVerboseTxnInputs>**](TransactionVerboseTxnInputs.md) | | [optional]
|
11
|
+
**length** | **Integer** | | [optional]
|
12
|
+
**outputs** | **Array<Object>** | | [optional]
|
13
|
+
**sigs** | **Array<String>** | | [optional]
|
14
|
+
**timestamp** | **Integer** | | [optional]
|
15
|
+
**txid** | **String** | | [optional]
|
16
|
+
**type** | **Integer** | | [optional]
|
17
|
+
|
18
|
+
## Code Sample
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'SkyApi'
|
22
|
+
|
23
|
+
instance = SkyApi::TransactionVerboseTxn.new(status: null,
|
24
|
+
fee: null,
|
25
|
+
inner_hash: null,
|
26
|
+
inputs: null,
|
27
|
+
length: null,
|
28
|
+
outputs: null,
|
29
|
+
sigs: null,
|
30
|
+
timestamp: null,
|
31
|
+
txid: null,
|
32
|
+
type: null)
|
33
|
+
```
|
34
|
+
|
35
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# SkyApi::TransactionVerboseTxnInputs
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**uxid** | **String** | | [optional]
|
8
|
+
**owner** | **String** | | [optional]
|
9
|
+
**coins** | **String** | | [optional]
|
10
|
+
**hours** | **Integer** | | [optional]
|
11
|
+
**calculated_hours** | **Integer** | | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'SkyApi'
|
17
|
+
|
18
|
+
instance = SkyApi::TransactionVerboseTxnInputs.new(uxid: null,
|
19
|
+
owner: null,
|
20
|
+
coins: null,
|
21
|
+
hours: null,
|
22
|
+
calculated_hours: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SkyApi::TransactionVerifyRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**unsigned** | **Boolean** | | [optional]
|
8
|
+
**encoded_transaction** | **String** | | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'SkyApi'
|
14
|
+
|
15
|
+
instance = SkyApi::TransactionVerifyRequest.new(unsigned: null,
|
16
|
+
encoded_transaction: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# SkyApi::WalletTransactionRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**change_address** | **String** | | [optional]
|
8
|
+
**hours_selection** | [**WalletTransactionRequestHoursSelection**](WalletTransactionRequestHoursSelection.md) | | [optional]
|
9
|
+
**ignore_unconfirmed** | **Boolean** | | [optional]
|
10
|
+
**to** | **Array<Object>** | | [optional]
|
11
|
+
**wallet** | [**WalletTransactionRequestWallet**](WalletTransactionRequestWallet.md) | | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'SkyApi'
|
17
|
+
|
18
|
+
instance = SkyApi::WalletTransactionRequest.new(change_address: null,
|
19
|
+
hours_selection: null,
|
20
|
+
ignore_unconfirmed: null,
|
21
|
+
to: null,
|
22
|
+
wallet: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# SkyApi::WalletTransactionRequestHoursSelection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**mode** | **String** | | [optional]
|
8
|
+
**share_factor** | **String** | | [optional]
|
9
|
+
**type** | **String** | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'SkyApi'
|
15
|
+
|
16
|
+
instance = SkyApi::WalletTransactionRequestHoursSelection.new(mode: null,
|
17
|
+
share_factor: null,
|
18
|
+
type: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# SkyApi::WalletTransactionRequestWallet
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**addresses** | **Array<String>** | | [optional]
|
8
|
+
**id** | **String** | | [optional]
|
9
|
+
**password** | **String** | | [optional]
|
10
|
+
**unspents** | **Array<String>** | | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'SkyApi'
|
16
|
+
|
17
|
+
instance = SkyApi::WalletTransactionRequestWallet.new(addresses: null,
|
18
|
+
id: null,
|
19
|
+
password: null,
|
20
|
+
unspents: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# SkyApi::WalletTransactionSignRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**wallet_id** | **String** | | [optional]
|
8
|
+
**password** | **String** | | [optional]
|
9
|
+
**encoded_transaction** | **String** | | [optional]
|
10
|
+
**sign_indexes** | **Array<Integer>** | | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'SkyApi'
|
16
|
+
|
17
|
+
instance = SkyApi::WalletTransactionSignRequest.new(wallet_id: null,
|
18
|
+
password: null,
|
19
|
+
encoded_transaction: null,
|
20
|
+
sign_indexes: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://openapi-generator.tech
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
data/lib/sky_api.rb
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
=begin
|
2
|
+
#Skycoin REST API.
|
3
|
+
|
4
|
+
#Skycoin is a next-generation cryptocurrency.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.26.0
|
7
|
+
Contact: contact@skycoin.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'sky_api/api_client'
|
15
|
+
require 'sky_api/api_error'
|
16
|
+
require 'sky_api/version'
|
17
|
+
require 'sky_api/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'sky_api/models/address'
|
21
|
+
require 'sky_api/models/api_v1_pending_txs_transaction'
|
22
|
+
require 'sky_api/models/api_v1_pending_txs_transaction_outputs'
|
23
|
+
require 'sky_api/models/block_schema'
|
24
|
+
require 'sky_api/models/block_schema_body'
|
25
|
+
require 'sky_api/models/block_verbose_schema'
|
26
|
+
require 'sky_api/models/block_verbose_schema_body'
|
27
|
+
require 'sky_api/models/block_verbose_schema_header'
|
28
|
+
require 'sky_api/models/inline_response200'
|
29
|
+
require 'sky_api/models/inline_response2001'
|
30
|
+
require 'sky_api/models/inline_response20010'
|
31
|
+
require 'sky_api/models/inline_response2002'
|
32
|
+
require 'sky_api/models/inline_response2003'
|
33
|
+
require 'sky_api/models/inline_response2004'
|
34
|
+
require 'sky_api/models/inline_response2005'
|
35
|
+
require 'sky_api/models/inline_response2006'
|
36
|
+
require 'sky_api/models/inline_response2007'
|
37
|
+
require 'sky_api/models/inline_response2008'
|
38
|
+
require 'sky_api/models/inline_response2008_data'
|
39
|
+
require 'sky_api/models/inline_response2009'
|
40
|
+
require 'sky_api/models/inline_response_default'
|
41
|
+
require 'sky_api/models/network_connection_schema'
|
42
|
+
require 'sky_api/models/network_connection_schema_unconfirmed_verify_transaction'
|
43
|
+
require 'sky_api/models/transaction'
|
44
|
+
require 'sky_api/models/transaction_encoded'
|
45
|
+
require 'sky_api/models/transaction_encoded_s'
|
46
|
+
require 'sky_api/models/transaction_status'
|
47
|
+
require 'sky_api/models/transaction_txn'
|
48
|
+
require 'sky_api/models/transaction_v2_params_address'
|
49
|
+
require 'sky_api/models/transaction_v2_params_address_hours_selection'
|
50
|
+
require 'sky_api/models/transaction_v2_params_unspent'
|
51
|
+
require 'sky_api/models/transaction_v2_params_unspent_hours_selection'
|
52
|
+
require 'sky_api/models/transaction_v2_params_unspent_to'
|
53
|
+
require 'sky_api/models/transaction_verbose'
|
54
|
+
require 'sky_api/models/transaction_verbose_txn'
|
55
|
+
require 'sky_api/models/transaction_verbose_txn_inputs'
|
56
|
+
require 'sky_api/models/transaction_verify_request'
|
57
|
+
require 'sky_api/models/wallet_transaction_request'
|
58
|
+
require 'sky_api/models/wallet_transaction_request_hours_selection'
|
59
|
+
require 'sky_api/models/wallet_transaction_request_wallet'
|
60
|
+
require 'sky_api/models/wallet_transaction_sign_request'
|
61
|
+
|
62
|
+
# APIs
|
63
|
+
require 'sky_api/api/default_api'
|
64
|
+
|
65
|
+
module SkyApi
|
66
|
+
class << self
|
67
|
+
# Customize default settings for the SDK using block.
|
68
|
+
# SkyApi.configure do |config|
|
69
|
+
# config.username = "xxx"
|
70
|
+
# config.password = "xxx"
|
71
|
+
# end
|
72
|
+
# If no block given, return the default Configuration object.
|
73
|
+
def configure
|
74
|
+
if block_given?
|
75
|
+
yield(Configuration.default)
|
76
|
+
else
|
77
|
+
Configuration.default
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|