Skip to content

Commit 1cc3336

Browse files
author
Conner Swann
committed
new version
1 parent 88546af commit 1cc3336

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

CodaClient.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ def get_wallets(self) -> dict:
181181
{
182182
ownedWallets {
183183
publicKey
184+
balance {
185+
total
186+
}
184187
}
185188
}
186189
'''

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
setup(
1414
name='CodaClient',
15-
version='0.0.12',
15+
version='0.0.13',
1616
python_requires='>=3.5',
1717
description='A Python wrapper around the Coda Daemon GraphQL API.',
1818
github='http://github.com/CodaProtocol/coda-python',

tests/snapshots/snap_test_client.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
'Accept': 'application/json'
5050
},
5151
'json': {
52-
'query': '{ ownedWallets { publicKey } }'
52+
'query': '{ ownedWallets { publicKey balance { total } } }'
5353
}
5454
}
5555
,)
@@ -160,3 +160,22 @@
160160
}
161161
,)
162162
]
163+
164+
snapshots['TestCodaClient.test_get_transaction_status 1'] = [
165+
(
166+
(
167+
'http://localhost:8304/graphql'
168+
,),
169+
{
170+
'headers': {
171+
'Accept': 'application/json'
172+
},
173+
'json': {
174+
'query': 'query($paymentId:ID!){ transactionStatus(payment:$paymentId) }',
175+
'variables': {
176+
'paymentId': 'payment_id'
177+
}
178+
}
179+
}
180+
,)
181+
]

0 commit comments

Comments
 (0)