Class: Provide::Services::Goldmine
Instance Attribute Summary
Attributes inherited from ApiClient
#base_url, #token
Instance Method Summary
collapse
-
#bridge_details(bridge_id) ⇒ Object
-
#bridges(params = nil) ⇒ Object
-
#connector_details(connector_id) ⇒ Object
-
#connectors(params = nil) ⇒ Object
-
#contract_details(contract_id) ⇒ Object
-
#contracts(params = nil) ⇒ Object
-
#create_bridge(params) ⇒ Object
-
#create_connector(params) ⇒ Object
-
#create_contract(params) ⇒ Object
-
#create_network(params) ⇒ Object
-
#create_network_node(network_id, params) ⇒ Object
-
#create_oracle(params) ⇒ Object
-
#create_token(params) ⇒ Object
-
#create_transaction(params) ⇒ Object
-
#create_wallet(params) ⇒ Object
-
#destroy_connector(connector_id) ⇒ Object
-
#destroy_network_node(network_id, node_id) ⇒ Object
-
#execute_contract(contract_id, params) ⇒ Object
-
#initialize(scheme = 'http', host, token) ⇒ Goldmine
constructor
A new instance of Goldmine.
-
#network_accounts(network_id, params) ⇒ Object
-
#network_blocks(network_id, params) ⇒ Object
-
#network_bridges(network_id, params) ⇒ Object
-
#network_connectors(network_id, params) ⇒ Object
-
#network_contract_details(network_id, contract_id) ⇒ Object
-
#network_contracts(network_id, params) ⇒ Object
-
#network_details(network_id) ⇒ Object
-
#network_node_details(network_id, node_id) ⇒ Object
-
#network_node_logs(network_id, node_id, params = nil) ⇒ Object
-
#network_nodes(network_id, params = nil) ⇒ Object
-
#network_oracles(network_id, params) ⇒ Object
-
#network_status(network_id) ⇒ Object
-
#network_tokens(network_id, params) ⇒ Object
-
#network_transaction_details(network_id, transaction_id) ⇒ Object
-
#network_transactions(network_id, params) ⇒ Object
-
#networks(params = nil) ⇒ Object
-
#oracle_details(oracle_id) ⇒ Object
-
#oracles(params = nil) ⇒ Object
-
#prices(params = nil) ⇒ Object
-
#token_details(token_id) ⇒ Object
-
#tokens(params = nil) ⇒ Object
-
#transaction_details(tx_id) ⇒ Object
-
#transactions(params = nil) ⇒ Object
-
#update_network(network_id, params) ⇒ Object
-
#wallet_balance(wallet_id, token_id) ⇒ Object
-
#wallet_details(wallet_id) ⇒ Object
-
#wallets(params = nil) ⇒ Object
Methods inherited from ApiClient
#delete, #get, #post, #put, #send_request
Constructor Details
#initialize(scheme = 'http', host, token) ⇒ Goldmine
Returns a new instance of Goldmine.
5
6
7
8
9
|
# File 'lib/provide-ruby/services/goldmine.rb', line 5
def initialize(scheme = 'http', host, token)
@scheme = scheme
@host = host
@token = token
end
|
Instance Method Details
#bridge_details(bridge_id) ⇒ Object
15
16
17
|
# File 'lib/provide-ruby/services/goldmine.rb', line 15
def bridge_details(bridge_id)
parse client.get "bridges/#{bridge_id}"
end
|
#bridges(params = nil) ⇒ Object
11
12
13
|
# File 'lib/provide-ruby/services/goldmine.rb', line 11
def bridges(params = nil)
parse client.get 'bridges', (params || {})
end
|
#connector_details(connector_id) ⇒ Object
27
28
29
|
# File 'lib/provide-ruby/services/goldmine.rb', line 27
def connector_details(connector_id)
parse client.get "connectors/#{connector_id}"
end
|
#connectors(params = nil) ⇒ Object
23
24
25
|
# File 'lib/provide-ruby/services/goldmine.rb', line 23
def connectors(params = nil)
parse client.get 'connectors', (params || {})
end
|
#contract_details(contract_id) ⇒ Object
43
44
45
|
# File 'lib/provide-ruby/services/goldmine.rb', line 43
def contract_details(contract_id)
parse client.get "contracts/#{contract_id}"
end
|
#contracts(params = nil) ⇒ Object
39
40
41
|
# File 'lib/provide-ruby/services/goldmine.rb', line 39
def contracts(params = nil)
parse client.get 'contracts', (params || {})
end
|
#create_bridge(params) ⇒ Object
19
20
21
|
# File 'lib/provide-ruby/services/goldmine.rb', line 19
def create_bridge(params)
parse client.post 'bridges', params
end
|
#create_connector(params) ⇒ Object
31
32
33
|
# File 'lib/provide-ruby/services/goldmine.rb', line 31
def create_connector(params)
parse client.post 'connectors', params
end
|
#create_contract(params) ⇒ Object
47
48
49
|
# File 'lib/provide-ruby/services/goldmine.rb', line 47
def create_contract(params)
parse client.post 'contracts', params
end
|
#create_network(params) ⇒ Object
59
60
61
|
# File 'lib/provide-ruby/services/goldmine.rb', line 59
def create_network(params)
parse client.post 'networks', params
end
|
#create_network_node(network_id, params) ⇒ Object
119
120
121
|
# File 'lib/provide-ruby/services/goldmine.rb', line 119
def create_network_node(network_id, params)
parse client.post "networks/#{network_id}/nodes", params
end
|
#create_oracle(params) ⇒ Object
143
144
145
|
# File 'lib/provide-ruby/services/goldmine.rb', line 143
def create_oracle(params)
parse client.post 'oracles', params
end
|
#create_token(params) ⇒ Object
159
160
161
|
# File 'lib/provide-ruby/services/goldmine.rb', line 159
def create_token(params)
parse client.post 'tokens', params
end
|
#create_transaction(params) ⇒ Object
163
164
165
|
# File 'lib/provide-ruby/services/goldmine.rb', line 163
def create_transaction(params)
parse client.post 'transactions', params
end
|
#create_wallet(params) ⇒ Object
187
188
189
|
# File 'lib/provide-ruby/services/goldmine.rb', line 187
def create_wallet(params)
parse client.post 'wallets', params
end
|
#destroy_connector(connector_id) ⇒ Object
35
36
37
|
# File 'lib/provide-ruby/services/goldmine.rb', line 35
def destroy_connector(connector_id)
parse client.delete "connectors/#{connector_id}"
end
|
#destroy_network_node(network_id, node_id) ⇒ Object
131
132
133
|
# File 'lib/provide-ruby/services/goldmine.rb', line 131
def destroy_network_node(network_id, node_id)
parse client.delete "networks/#{network_id}/nodes/#{node_id}"
end
|
#execute_contract(contract_id, params) ⇒ Object
51
52
53
|
# File 'lib/provide-ruby/services/goldmine.rb', line 51
def execute_contract(contract_id, params)
parse client.post "contracts/#{contract_id}/execute", params
end
|
#network_accounts(network_id, params) ⇒ Object
71
72
73
|
# File 'lib/provide-ruby/services/goldmine.rb', line 71
def network_accounts(network_id, params)
parse client.get "networks/#{network_id}/accounts", params
end
|
#network_blocks(network_id, params) ⇒ Object
75
76
77
|
# File 'lib/provide-ruby/services/goldmine.rb', line 75
def network_blocks(network_id, params)
parse client.get "networks/#{network_id}/blocks", params
end
|
#network_bridges(network_id, params) ⇒ Object
79
80
81
|
# File 'lib/provide-ruby/services/goldmine.rb', line 79
def network_bridges(network_id, params)
parse client.get "networks/#{network_id}/bridges", params
end
|
#network_connectors(network_id, params) ⇒ Object
83
84
85
|
# File 'lib/provide-ruby/services/goldmine.rb', line 83
def network_connectors(network_id, params)
parse client.get "networks/#{network_id}/connectors", params
end
|
#network_contract_details(network_id, contract_id) ⇒ Object
91
92
93
|
# File 'lib/provide-ruby/services/goldmine.rb', line 91
def network_contract_details(network_id, contract_id)
parse client.get "networks/#{network_id}/contracts/#{contract_id}"
end
|
#network_contracts(network_id, params) ⇒ Object
87
88
89
|
# File 'lib/provide-ruby/services/goldmine.rb', line 87
def network_contracts(network_id, params)
parse client.get "networks/#{network_id}/contracts", params
end
|
#network_details(network_id) ⇒ Object
67
68
69
|
# File 'lib/provide-ruby/services/goldmine.rb', line 67
def network_details(network_id)
parse client.get "networks/#{network_id}"
end
|
#network_node_details(network_id, node_id) ⇒ Object
123
124
125
|
# File 'lib/provide-ruby/services/goldmine.rb', line 123
def network_node_details(network_id, node_id)
parse client.get "networks/#{network_id}/nodes/#{node_id}"
end
|
#network_node_logs(network_id, node_id, params = nil) ⇒ Object
127
128
129
|
# File 'lib/provide-ruby/services/goldmine.rb', line 127
def network_node_logs(network_id, node_id, params = nil)
parse client.get "networks/#{network_id}/nodes/#{node_id}/logs", (params || {})
end
|
#network_nodes(network_id, params = nil) ⇒ Object
115
116
117
|
# File 'lib/provide-ruby/services/goldmine.rb', line 115
def network_nodes(network_id, params = nil)
parse client.get "networks/#{network_id}/nodes", (params || {})
end
|
#network_oracles(network_id, params) ⇒ Object
95
96
97
|
# File 'lib/provide-ruby/services/goldmine.rb', line 95
def network_oracles(network_id, params)
parse client.get "networks/#{network_id}/oracles", params
end
|
#network_status(network_id) ⇒ Object
111
112
113
|
# File 'lib/provide-ruby/services/goldmine.rb', line 111
def network_status(network_id)
parse client.get "networks/#{network_id}/status"
end
|
#network_tokens(network_id, params) ⇒ Object
99
100
101
|
# File 'lib/provide-ruby/services/goldmine.rb', line 99
def network_tokens(network_id, params)
parse client.get "networks/#{network_id}/tokens", params
end
|
#network_transaction_details(network_id, transaction_id) ⇒ Object
107
108
109
|
# File 'lib/provide-ruby/services/goldmine.rb', line 107
def network_transaction_details(network_id, transaction_id)
parse client.get "networks/#{network_id}/transactions/#{transaction_id}"
end
|
#network_transactions(network_id, params) ⇒ Object
103
104
105
|
# File 'lib/provide-ruby/services/goldmine.rb', line 103
def network_transactions(network_id, params)
parse client.get "networks/#{network_id}/transactions", params
end
|
#networks(params = nil) ⇒ Object
55
56
57
|
# File 'lib/provide-ruby/services/goldmine.rb', line 55
def networks(params = nil)
parse client.get 'networks', (params || {})
end
|
#oracle_details(oracle_id) ⇒ Object
139
140
141
|
# File 'lib/provide-ruby/services/goldmine.rb', line 139
def oracle_details(oracle_id)
parse client.get "oracles/#{oracle_id}"
end
|
#oracles(params = nil) ⇒ Object
135
136
137
|
# File 'lib/provide-ruby/services/goldmine.rb', line 135
def oracles(params = nil)
parse client.get 'oracles', (params || {})
end
|
#prices(params = nil) ⇒ Object
147
148
149
|
# File 'lib/provide-ruby/services/goldmine.rb', line 147
def prices(params = nil)
parse client.get 'prices', (params || {})
end
|
#token_details(token_id) ⇒ Object
155
156
157
|
# File 'lib/provide-ruby/services/goldmine.rb', line 155
def token_details(token_id)
parse client.get "tokens/#{token_id}"
end
|
#tokens(params = nil) ⇒ Object
151
152
153
|
# File 'lib/provide-ruby/services/goldmine.rb', line 151
def tokens(params = nil)
parse client.get 'tokens', (params || {})
end
|
#transaction_details(tx_id) ⇒ Object
171
172
173
|
# File 'lib/provide-ruby/services/goldmine.rb', line 171
def transaction_details(tx_id)
parse client.get "transactions/#{tx_id}"
end
|
#transactions(params = nil) ⇒ Object
167
168
169
|
# File 'lib/provide-ruby/services/goldmine.rb', line 167
def transactions(params = nil)
parse client.get 'transactions', (params || {})
end
|
#update_network(network_id, params) ⇒ Object
63
64
65
|
# File 'lib/provide-ruby/services/goldmine.rb', line 63
def update_network(network_id, params)
parse client.put "networks/#{network_id}", params
end
|
#wallet_balance(wallet_id, token_id) ⇒ Object
175
176
177
|
# File 'lib/provide-ruby/services/goldmine.rb', line 175
def wallet_balance(wallet_id, token_id)
parse client.get "wallets/#{wallet_id}/balances/#{token_id}"
end
|
#wallet_details(wallet_id) ⇒ Object
183
184
185
|
# File 'lib/provide-ruby/services/goldmine.rb', line 183
def wallet_details(wallet_id)
parse client.get "wallets/#{wallet_id}"
end
|
#wallets(params = nil) ⇒ Object
179
180
181
|
# File 'lib/provide-ruby/services/goldmine.rb', line 179
def wallets(params = nil)
parse client.get 'wallets', (params || {})
end
|