File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,6 +181,9 @@ def get_wallets(self) -> dict:
181181 {
182182 ownedWallets {
183183 publicKey
184+ balance {
185+ total
186+ }
184187 }
185188 }
186189 '''
Original file line number Diff line number Diff line change 1212
1313setup (
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' ,
Original file line number Diff line number Diff line change 4949 'Accept' : 'application/json'
5050 },
5151 'json' : {
52- 'query' : '{ ownedWallets { publicKey } }'
52+ 'query' : '{ ownedWallets { publicKey balance { total } } }'
5353 }
5454 }
5555 ,)
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+ ]
You can’t perform that action at this time.
0 commit comments