forked from smartcontractkit/external-adapters-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixtures.ts
63 lines (62 loc) · 1.91 KB
/
fixtures.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import nock from 'nock'
export const mockGramChainResponseSuccess = (): nock =>
nock('https://api-prod.gramchain.net/api/public', { encodedQueryParams: true })
.persist()
.get('/getgrambalances?custodianID=Cache&metalCode=AU&utilizationLockCode=Locked')
.reply(
200,
(_, request) => [
{
VaultID: 'IDS_DFW1',
MetalCode: 'AU',
CustodianID: 'CACHE',
UtilizationLockCode: 'Locked',
EntityID: '',
ItemCategoryCode: 'Bullion',
NrParcels: 11,
PureGrams: 1099.89,
GrossGrams: 1100,
FixedValuation: 0,
AsOfUTC: '2022-02-02T02:22:24.293',
MetalName: 'Gold',
CategoryName: 'Bullion',
ParcelGrouping: 'Gold Bullion',
Valuation: 2046.03,
},
{
VaultID: 'LoomSWZ1',
MetalCode: 'AU',
CustodianID: 'CACHE',
UtilizationLockCode: 'Locked',
EntityID: '',
ItemCategoryCode: 'Bullion',
NrParcels: 19,
PureGrams: 9999,
GrossGrams: 10000,
FixedValuation: 0,
AsOfUTC: '2022-02-02T02:22:24.293',
MetalName: 'Gold',
CategoryName: 'Bullion',
ParcelGrouping: 'Gold Bullion',
Valuation: 18600.27,
},
{
VaultID: 'TSH_SIN1',
MetalCode: 'AU',
CustodianID: 'CACHE',
UtilizationLockCode: 'Locked',
EntityID: '',
ItemCategoryCode: 'Bullion',
NrParcels: 92,
PureGrams: 82022.89,
GrossGrams: 82031.1,
FixedValuation: 0,
AsOfUTC: '2022-02-02T02:22:24.293',
MetalName: 'Gold',
CategoryName: 'Bullion',
ParcelGrouping: 'Gold Bullion',
Valuation: 152580.06,
},
],
['Date', 'Mon, 07 Feb 2022 15:42:34 GMT', 'Content-Type', 'application/json; charset=utf-8'],
)