@requestnetwork/payment-detection 0.55.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -0
- package/dist/erc20/fee-proxy-contract.d.ts +2 -1
- package/dist/erc20/fee-proxy-contract.d.ts.map +1 -1
- package/dist/erc20/fee-proxy-contract.js +4 -1
- package/dist/erc20/fee-proxy-contract.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/payment-network-factory.d.ts.map +1 -1
- package/dist/payment-network-factory.js +8 -0
- package/dist/payment-network-factory.js.map +1 -1
- package/dist/thegraph/client.d.ts +5 -3
- package/dist/thegraph/client.d.ts.map +1 -1
- package/dist/thegraph/client.js +19 -1
- package/dist/thegraph/client.js.map +1 -1
- package/dist/thegraph/generated/graphql-tron.d.ts +156 -0
- package/dist/thegraph/generated/graphql-tron.d.ts.map +1 -0
- package/dist/thegraph/generated/graphql-tron.js +101 -0
- package/dist/thegraph/generated/graphql-tron.js.map +1 -0
- package/dist/thegraph/generated/graphql.d.ts +346 -0
- package/dist/thegraph/generated/graphql.d.ts.map +1 -1
- package/dist/thegraph/generated/graphql.js +60 -1
- package/dist/thegraph/generated/graphql.js.map +1 -1
- package/dist/tron/index.d.ts +7 -0
- package/dist/tron/index.d.ts.map +1 -0
- package/dist/tron/index.js +13 -0
- package/dist/tron/index.js.map +1 -0
- package/dist/tron/retrievers/hasura-client.d.ts +62 -0
- package/dist/tron/retrievers/hasura-client.d.ts.map +1 -0
- package/dist/tron/retrievers/hasura-client.js +106 -0
- package/dist/tron/retrievers/hasura-client.js.map +1 -0
- package/dist/tron/retrievers/index.d.ts +3 -0
- package/dist/tron/retrievers/index.d.ts.map +1 -0
- package/dist/tron/retrievers/index.js +6 -0
- package/dist/tron/retrievers/index.js.map +1 -0
- package/dist/tron/retrievers/tron-info-retriever.d.ts +24 -0
- package/dist/tron/retrievers/tron-info-retriever.d.ts.map +1 -0
- package/dist/tron/retrievers/tron-info-retriever.js +71 -0
- package/dist/tron/retrievers/tron-info-retriever.js.map +1 -0
- package/dist/tron/retrievers/tron-thegraph-info-retriever.d.ts +20 -0
- package/dist/tron/retrievers/tron-thegraph-info-retriever.d.ts.map +1 -0
- package/dist/tron/retrievers/tron-thegraph-info-retriever.js +57 -0
- package/dist/tron/retrievers/tron-thegraph-info-retriever.js.map +1 -0
- package/dist/tron/tron-fee-proxy-detector.d.ts +29 -0
- package/dist/tron/tron-fee-proxy-detector.d.ts.map +1 -0
- package/dist/tron/tron-fee-proxy-detector.js +76 -0
- package/dist/tron/tron-fee-proxy-detector.js.map +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTronPaymentsAnyToken = exports.GetTronPayments = exports.GetTronPaymentsAnyTokenDocument = exports.GetTronPaymentsDocument = exports.Payment_OrderBy = exports.OrderDirection = void 0;
|
|
4
|
+
exports.getSdk = getSdk;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
7
|
+
var OrderDirection;
|
|
8
|
+
(function (OrderDirection) {
|
|
9
|
+
OrderDirection["Asc"] = "asc";
|
|
10
|
+
OrderDirection["Desc"] = "desc";
|
|
11
|
+
})(OrderDirection || (exports.OrderDirection = OrderDirection = {}));
|
|
12
|
+
var Payment_OrderBy;
|
|
13
|
+
(function (Payment_OrderBy) {
|
|
14
|
+
Payment_OrderBy["Amount"] = "amount";
|
|
15
|
+
Payment_OrderBy["Block"] = "block";
|
|
16
|
+
Payment_OrderBy["Timestamp"] = "timestamp";
|
|
17
|
+
})(Payment_OrderBy || (exports.Payment_OrderBy = Payment_OrderBy = {}));
|
|
18
|
+
exports.GetTronPaymentsDocument = (0, graphql_tag_1.default) `
|
|
19
|
+
query GetTronPayments($reference: Bytes!, $to: String!, $tokenAddress: String!, $contractAddress: String!) {
|
|
20
|
+
payments(
|
|
21
|
+
where: {reference: $reference, to: $to, tokenAddress: $tokenAddress, contractAddress: $contractAddress}
|
|
22
|
+
orderBy: timestamp
|
|
23
|
+
orderDirection: asc
|
|
24
|
+
) {
|
|
25
|
+
amount
|
|
26
|
+
block
|
|
27
|
+
txHash
|
|
28
|
+
feeAmount
|
|
29
|
+
feeAddress
|
|
30
|
+
from
|
|
31
|
+
timestamp
|
|
32
|
+
tokenAddress
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
exports.GetTronPaymentsAnyTokenDocument = (0, graphql_tag_1.default) `
|
|
37
|
+
query GetTronPaymentsAnyToken($reference: Bytes!, $to: String!, $contractAddress: String!) {
|
|
38
|
+
payments(
|
|
39
|
+
where: {reference: $reference, to: $to, contractAddress: $contractAddress}
|
|
40
|
+
orderBy: timestamp
|
|
41
|
+
orderDirection: asc
|
|
42
|
+
) {
|
|
43
|
+
amount
|
|
44
|
+
block
|
|
45
|
+
txHash
|
|
46
|
+
feeAmount
|
|
47
|
+
feeAddress
|
|
48
|
+
from
|
|
49
|
+
timestamp
|
|
50
|
+
tokenAddress
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
const defaultWrapper = (action, _operationName, _operationType, _variables) => action();
|
|
55
|
+
function getSdk(client, withWrapper = defaultWrapper) {
|
|
56
|
+
return {
|
|
57
|
+
GetTronPayments(variables, requestHeaders) {
|
|
58
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetTronPaymentsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetTronPayments', 'query', variables);
|
|
59
|
+
},
|
|
60
|
+
GetTronPaymentsAnyToken(variables, requestHeaders) {
|
|
61
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetTronPaymentsAnyTokenDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetTronPaymentsAnyToken', 'query', variables);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.GetTronPayments = (0, graphql_tag_1.default) `
|
|
66
|
+
query GetTronPayments($reference: Bytes!, $to: String!, $tokenAddress: String!, $contractAddress: String!) {
|
|
67
|
+
payments(
|
|
68
|
+
where: {reference: $reference, to: $to, tokenAddress: $tokenAddress, contractAddress: $contractAddress}
|
|
69
|
+
orderBy: timestamp
|
|
70
|
+
orderDirection: asc
|
|
71
|
+
) {
|
|
72
|
+
amount
|
|
73
|
+
block
|
|
74
|
+
txHash
|
|
75
|
+
feeAmount
|
|
76
|
+
feeAddress
|
|
77
|
+
from
|
|
78
|
+
timestamp
|
|
79
|
+
tokenAddress
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
exports.GetTronPaymentsAnyToken = (0, graphql_tag_1.default) `
|
|
84
|
+
query GetTronPaymentsAnyToken($reference: Bytes!, $to: String!, $contractAddress: String!) {
|
|
85
|
+
payments(
|
|
86
|
+
where: {reference: $reference, to: $to, contractAddress: $contractAddress}
|
|
87
|
+
orderBy: timestamp
|
|
88
|
+
orderDirection: asc
|
|
89
|
+
) {
|
|
90
|
+
amount
|
|
91
|
+
block
|
|
92
|
+
txHash
|
|
93
|
+
feeAmount
|
|
94
|
+
feeAddress
|
|
95
|
+
from
|
|
96
|
+
timestamp
|
|
97
|
+
tokenAddress
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
//# sourceMappingURL=graphql-tron.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql-tron.js","sourceRoot":"","sources":["../../../src/thegraph/generated/graphql-tron.ts"],"names":[],"mappings":";;;AA6IA,wBASC;;AArJD,sEAA8B;AAoB9B,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAqCD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,kCAAe,CAAA;IACf,0CAAuB,CAAA;AACzB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAkCY,QAAA,uBAAuB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;KAiBrC,CAAC;AACO,QAAA,+BAA+B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;KAiB7C,CAAC;AAKN,MAAM,cAAc,GAAuB,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC;AAE5G,SAAgB,MAAM,CAAC,MAAqB,EAAE,cAAkC,cAAc;IAC5F,OAAO;QACL,eAAe,CAAC,SAAwC,EAAE,cAA4C;YACpG,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAuB,+BAAuB,EAAE,SAAS,kCAAM,cAAc,GAAK,qBAAqB,EAAE,EAAE,iBAAiB,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QAChN,CAAC;QACD,uBAAuB,CAAC,SAAgD,EAAE,cAA4C;YACpH,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAA+B,uCAA+B,EAAE,SAAS,kCAAM,cAAc,GAAK,qBAAqB,EAAE,EAAE,yBAAyB,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QACxO,CAAC;KACF,CAAC;AACJ,CAAC;AAGY,QAAA,eAAe,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;KAiB7B,CAAC;AACO,QAAA,uBAAuB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;KAiBrC,CAAC"}
|
|
@@ -76,6 +76,320 @@ export type Block_Height = {
|
|
|
76
76
|
number?: InputMaybe<Scalars['Int']['input']>;
|
|
77
77
|
number_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
78
78
|
};
|
|
79
|
+
export type CommerceEscrow = {
|
|
80
|
+
__typename?: 'CommerceEscrow';
|
|
81
|
+
amount: Scalars['BigDecimal']['output'];
|
|
82
|
+
commercePaymentHash: Scalars['Bytes']['output'];
|
|
83
|
+
contractAddress: Scalars['Bytes']['output'];
|
|
84
|
+
creationBlock: Scalars['Int']['output'];
|
|
85
|
+
creationTimestamp: Scalars['Int']['output'];
|
|
86
|
+
escrowState: CommerceEscrowState;
|
|
87
|
+
events?: Maybe<Array<CommerceEscrowEvent>>;
|
|
88
|
+
id: Scalars['ID']['output'];
|
|
89
|
+
merchant: Scalars['Bytes']['output'];
|
|
90
|
+
payer: Scalars['Bytes']['output'];
|
|
91
|
+
reference: Scalars['Bytes']['output'];
|
|
92
|
+
tokenAddress: Scalars['Bytes']['output'];
|
|
93
|
+
};
|
|
94
|
+
export type CommerceEscrowEventsArgs = {
|
|
95
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
96
|
+
orderBy?: InputMaybe<CommerceEscrowEvent_OrderBy>;
|
|
97
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
98
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
99
|
+
where?: InputMaybe<CommerceEscrowEvent_Filter>;
|
|
100
|
+
};
|
|
101
|
+
export type CommerceEscrowEvent = {
|
|
102
|
+
__typename?: 'CommerceEscrowEvent';
|
|
103
|
+
amount?: Maybe<Scalars['BigDecimal']['output']>;
|
|
104
|
+
block: Scalars['Int']['output'];
|
|
105
|
+
contractAddress: Scalars['Bytes']['output'];
|
|
106
|
+
escrow: CommerceEscrow;
|
|
107
|
+
eventName: CommerceEscrowEventName;
|
|
108
|
+
from: Scalars['Bytes']['output'];
|
|
109
|
+
gasPrice: Scalars['BigInt']['output'];
|
|
110
|
+
gasUsed: Scalars['BigInt']['output'];
|
|
111
|
+
id: Scalars['ID']['output'];
|
|
112
|
+
reference: Scalars['Bytes']['output'];
|
|
113
|
+
timestamp: Scalars['Int']['output'];
|
|
114
|
+
txHash: Scalars['Bytes']['output'];
|
|
115
|
+
};
|
|
116
|
+
export declare enum CommerceEscrowEventName {
|
|
117
|
+
Authorized = "authorized",
|
|
118
|
+
Captured = "captured",
|
|
119
|
+
Charged = "charged",
|
|
120
|
+
Reclaimed = "reclaimed",
|
|
121
|
+
Refunded = "refunded",
|
|
122
|
+
Voided = "voided"
|
|
123
|
+
}
|
|
124
|
+
export type CommerceEscrowEvent_Filter = {
|
|
125
|
+
/** Filter for the block changed event. */
|
|
126
|
+
_change_block?: InputMaybe<BlockChangedFilter>;
|
|
127
|
+
amount?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
128
|
+
amount_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
129
|
+
amount_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
130
|
+
amount_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
131
|
+
amount_lt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
132
|
+
amount_lte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
133
|
+
amount_not?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
134
|
+
amount_not_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
135
|
+
and?: InputMaybe<Array<InputMaybe<CommerceEscrowEvent_Filter>>>;
|
|
136
|
+
block?: InputMaybe<Scalars['Int']['input']>;
|
|
137
|
+
block_gt?: InputMaybe<Scalars['Int']['input']>;
|
|
138
|
+
block_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
139
|
+
block_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
140
|
+
block_lt?: InputMaybe<Scalars['Int']['input']>;
|
|
141
|
+
block_lte?: InputMaybe<Scalars['Int']['input']>;
|
|
142
|
+
block_not?: InputMaybe<Scalars['Int']['input']>;
|
|
143
|
+
block_not_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
144
|
+
contractAddress?: InputMaybe<Scalars['Bytes']['input']>;
|
|
145
|
+
contractAddress_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
146
|
+
contractAddress_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
147
|
+
contractAddress_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
148
|
+
contractAddress_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
149
|
+
contractAddress_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
150
|
+
contractAddress_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
151
|
+
contractAddress_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
152
|
+
contractAddress_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
153
|
+
contractAddress_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
154
|
+
escrow?: InputMaybe<Scalars['String']['input']>;
|
|
155
|
+
escrow_?: InputMaybe<CommerceEscrow_Filter>;
|
|
156
|
+
escrow_contains?: InputMaybe<Scalars['String']['input']>;
|
|
157
|
+
escrow_contains_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
158
|
+
escrow_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
159
|
+
escrow_ends_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
160
|
+
escrow_gt?: InputMaybe<Scalars['String']['input']>;
|
|
161
|
+
escrow_gte?: InputMaybe<Scalars['String']['input']>;
|
|
162
|
+
escrow_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
163
|
+
escrow_lt?: InputMaybe<Scalars['String']['input']>;
|
|
164
|
+
escrow_lte?: InputMaybe<Scalars['String']['input']>;
|
|
165
|
+
escrow_not?: InputMaybe<Scalars['String']['input']>;
|
|
166
|
+
escrow_not_contains?: InputMaybe<Scalars['String']['input']>;
|
|
167
|
+
escrow_not_contains_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
168
|
+
escrow_not_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
169
|
+
escrow_not_ends_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
170
|
+
escrow_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
171
|
+
escrow_not_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
172
|
+
escrow_not_starts_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
173
|
+
escrow_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
174
|
+
escrow_starts_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
175
|
+
eventName?: InputMaybe<CommerceEscrowEventName>;
|
|
176
|
+
eventName_in?: InputMaybe<Array<CommerceEscrowEventName>>;
|
|
177
|
+
eventName_not?: InputMaybe<CommerceEscrowEventName>;
|
|
178
|
+
eventName_not_in?: InputMaybe<Array<CommerceEscrowEventName>>;
|
|
179
|
+
from?: InputMaybe<Scalars['Bytes']['input']>;
|
|
180
|
+
from_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
181
|
+
from_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
182
|
+
from_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
183
|
+
from_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
184
|
+
from_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
185
|
+
from_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
186
|
+
from_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
187
|
+
from_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
188
|
+
from_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
189
|
+
gasPrice?: InputMaybe<Scalars['BigInt']['input']>;
|
|
190
|
+
gasPrice_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
191
|
+
gasPrice_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
192
|
+
gasPrice_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
193
|
+
gasPrice_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
194
|
+
gasPrice_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
195
|
+
gasPrice_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
196
|
+
gasPrice_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
197
|
+
gasUsed?: InputMaybe<Scalars['BigInt']['input']>;
|
|
198
|
+
gasUsed_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
199
|
+
gasUsed_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
200
|
+
gasUsed_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
201
|
+
gasUsed_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
202
|
+
gasUsed_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
203
|
+
gasUsed_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
204
|
+
gasUsed_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
205
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
206
|
+
id_gt?: InputMaybe<Scalars['ID']['input']>;
|
|
207
|
+
id_gte?: InputMaybe<Scalars['ID']['input']>;
|
|
208
|
+
id_in?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
209
|
+
id_lt?: InputMaybe<Scalars['ID']['input']>;
|
|
210
|
+
id_lte?: InputMaybe<Scalars['ID']['input']>;
|
|
211
|
+
id_not?: InputMaybe<Scalars['ID']['input']>;
|
|
212
|
+
id_not_in?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
213
|
+
or?: InputMaybe<Array<InputMaybe<CommerceEscrowEvent_Filter>>>;
|
|
214
|
+
reference?: InputMaybe<Scalars['Bytes']['input']>;
|
|
215
|
+
reference_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
216
|
+
reference_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
217
|
+
reference_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
218
|
+
reference_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
219
|
+
reference_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
220
|
+
reference_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
221
|
+
reference_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
222
|
+
reference_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
223
|
+
reference_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
224
|
+
timestamp?: InputMaybe<Scalars['Int']['input']>;
|
|
225
|
+
timestamp_gt?: InputMaybe<Scalars['Int']['input']>;
|
|
226
|
+
timestamp_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
227
|
+
timestamp_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
228
|
+
timestamp_lt?: InputMaybe<Scalars['Int']['input']>;
|
|
229
|
+
timestamp_lte?: InputMaybe<Scalars['Int']['input']>;
|
|
230
|
+
timestamp_not?: InputMaybe<Scalars['Int']['input']>;
|
|
231
|
+
timestamp_not_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
232
|
+
txHash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
233
|
+
txHash_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
234
|
+
txHash_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
235
|
+
txHash_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
236
|
+
txHash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
237
|
+
txHash_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
238
|
+
txHash_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
239
|
+
txHash_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
240
|
+
txHash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
241
|
+
txHash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
242
|
+
};
|
|
243
|
+
export declare enum CommerceEscrowEvent_OrderBy {
|
|
244
|
+
Amount = "amount",
|
|
245
|
+
Block = "block",
|
|
246
|
+
ContractAddress = "contractAddress",
|
|
247
|
+
Escrow = "escrow",
|
|
248
|
+
EscrowAmount = "escrow__amount",
|
|
249
|
+
EscrowCommercePaymentHash = "escrow__commercePaymentHash",
|
|
250
|
+
EscrowContractAddress = "escrow__contractAddress",
|
|
251
|
+
EscrowCreationBlock = "escrow__creationBlock",
|
|
252
|
+
EscrowCreationTimestamp = "escrow__creationTimestamp",
|
|
253
|
+
EscrowEscrowState = "escrow__escrowState",
|
|
254
|
+
EscrowId = "escrow__id",
|
|
255
|
+
EscrowMerchant = "escrow__merchant",
|
|
256
|
+
EscrowPayer = "escrow__payer",
|
|
257
|
+
EscrowReference = "escrow__reference",
|
|
258
|
+
EscrowTokenAddress = "escrow__tokenAddress",
|
|
259
|
+
EventName = "eventName",
|
|
260
|
+
From = "from",
|
|
261
|
+
GasPrice = "gasPrice",
|
|
262
|
+
GasUsed = "gasUsed",
|
|
263
|
+
Id = "id",
|
|
264
|
+
Reference = "reference",
|
|
265
|
+
Timestamp = "timestamp",
|
|
266
|
+
TxHash = "txHash"
|
|
267
|
+
}
|
|
268
|
+
export declare enum CommerceEscrowState {
|
|
269
|
+
Authorized = "authorized",
|
|
270
|
+
Captured = "captured",
|
|
271
|
+
Charged = "charged",
|
|
272
|
+
Reclaimed = "reclaimed",
|
|
273
|
+
Refunded = "refunded",
|
|
274
|
+
Voided = "voided"
|
|
275
|
+
}
|
|
276
|
+
export type CommerceEscrow_Filter = {
|
|
277
|
+
/** Filter for the block changed event. */
|
|
278
|
+
_change_block?: InputMaybe<BlockChangedFilter>;
|
|
279
|
+
amount?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
280
|
+
amount_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
281
|
+
amount_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
282
|
+
amount_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
283
|
+
amount_lt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
284
|
+
amount_lte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
285
|
+
amount_not?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
286
|
+
amount_not_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
287
|
+
and?: InputMaybe<Array<InputMaybe<CommerceEscrow_Filter>>>;
|
|
288
|
+
commercePaymentHash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
289
|
+
commercePaymentHash_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
290
|
+
commercePaymentHash_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
291
|
+
commercePaymentHash_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
292
|
+
commercePaymentHash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
293
|
+
commercePaymentHash_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
294
|
+
commercePaymentHash_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
295
|
+
commercePaymentHash_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
296
|
+
commercePaymentHash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
297
|
+
commercePaymentHash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
298
|
+
contractAddress?: InputMaybe<Scalars['Bytes']['input']>;
|
|
299
|
+
contractAddress_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
300
|
+
contractAddress_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
301
|
+
contractAddress_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
302
|
+
contractAddress_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
303
|
+
contractAddress_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
304
|
+
contractAddress_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
305
|
+
contractAddress_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
306
|
+
contractAddress_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
307
|
+
contractAddress_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
308
|
+
creationBlock?: InputMaybe<Scalars['Int']['input']>;
|
|
309
|
+
creationBlock_gt?: InputMaybe<Scalars['Int']['input']>;
|
|
310
|
+
creationBlock_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
311
|
+
creationBlock_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
312
|
+
creationBlock_lt?: InputMaybe<Scalars['Int']['input']>;
|
|
313
|
+
creationBlock_lte?: InputMaybe<Scalars['Int']['input']>;
|
|
314
|
+
creationBlock_not?: InputMaybe<Scalars['Int']['input']>;
|
|
315
|
+
creationBlock_not_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
316
|
+
creationTimestamp?: InputMaybe<Scalars['Int']['input']>;
|
|
317
|
+
creationTimestamp_gt?: InputMaybe<Scalars['Int']['input']>;
|
|
318
|
+
creationTimestamp_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
319
|
+
creationTimestamp_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
320
|
+
creationTimestamp_lt?: InputMaybe<Scalars['Int']['input']>;
|
|
321
|
+
creationTimestamp_lte?: InputMaybe<Scalars['Int']['input']>;
|
|
322
|
+
creationTimestamp_not?: InputMaybe<Scalars['Int']['input']>;
|
|
323
|
+
creationTimestamp_not_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
324
|
+
escrowState?: InputMaybe<CommerceEscrowState>;
|
|
325
|
+
escrowState_in?: InputMaybe<Array<CommerceEscrowState>>;
|
|
326
|
+
escrowState_not?: InputMaybe<CommerceEscrowState>;
|
|
327
|
+
escrowState_not_in?: InputMaybe<Array<CommerceEscrowState>>;
|
|
328
|
+
events_?: InputMaybe<CommerceEscrowEvent_Filter>;
|
|
329
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
330
|
+
id_gt?: InputMaybe<Scalars['ID']['input']>;
|
|
331
|
+
id_gte?: InputMaybe<Scalars['ID']['input']>;
|
|
332
|
+
id_in?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
333
|
+
id_lt?: InputMaybe<Scalars['ID']['input']>;
|
|
334
|
+
id_lte?: InputMaybe<Scalars['ID']['input']>;
|
|
335
|
+
id_not?: InputMaybe<Scalars['ID']['input']>;
|
|
336
|
+
id_not_in?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
337
|
+
merchant?: InputMaybe<Scalars['Bytes']['input']>;
|
|
338
|
+
merchant_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
339
|
+
merchant_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
340
|
+
merchant_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
341
|
+
merchant_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
342
|
+
merchant_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
343
|
+
merchant_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
344
|
+
merchant_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
345
|
+
merchant_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
346
|
+
merchant_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
347
|
+
or?: InputMaybe<Array<InputMaybe<CommerceEscrow_Filter>>>;
|
|
348
|
+
payer?: InputMaybe<Scalars['Bytes']['input']>;
|
|
349
|
+
payer_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
350
|
+
payer_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
351
|
+
payer_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
352
|
+
payer_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
353
|
+
payer_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
354
|
+
payer_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
355
|
+
payer_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
356
|
+
payer_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
357
|
+
payer_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
358
|
+
reference?: InputMaybe<Scalars['Bytes']['input']>;
|
|
359
|
+
reference_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
360
|
+
reference_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
361
|
+
reference_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
362
|
+
reference_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
363
|
+
reference_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
364
|
+
reference_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
365
|
+
reference_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
366
|
+
reference_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
367
|
+
reference_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
368
|
+
tokenAddress?: InputMaybe<Scalars['Bytes']['input']>;
|
|
369
|
+
tokenAddress_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
370
|
+
tokenAddress_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
371
|
+
tokenAddress_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
372
|
+
tokenAddress_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
373
|
+
tokenAddress_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
374
|
+
tokenAddress_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
375
|
+
tokenAddress_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
376
|
+
tokenAddress_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
377
|
+
tokenAddress_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
378
|
+
};
|
|
379
|
+
export declare enum CommerceEscrow_OrderBy {
|
|
380
|
+
Amount = "amount",
|
|
381
|
+
CommercePaymentHash = "commercePaymentHash",
|
|
382
|
+
ContractAddress = "contractAddress",
|
|
383
|
+
CreationBlock = "creationBlock",
|
|
384
|
+
CreationTimestamp = "creationTimestamp",
|
|
385
|
+
EscrowState = "escrowState",
|
|
386
|
+
Events = "events",
|
|
387
|
+
Id = "id",
|
|
388
|
+
Merchant = "merchant",
|
|
389
|
+
Payer = "payer",
|
|
390
|
+
Reference = "reference",
|
|
391
|
+
TokenAddress = "tokenAddress"
|
|
392
|
+
}
|
|
79
393
|
export type Escrow = {
|
|
80
394
|
__typename?: 'Escrow';
|
|
81
395
|
amount: Scalars['BigDecimal']['output'];
|
|
@@ -617,6 +931,10 @@ export type Query = {
|
|
|
617
931
|
__typename?: 'Query';
|
|
618
932
|
/** Access to subgraph metadata */
|
|
619
933
|
_meta?: Maybe<_Meta_>;
|
|
934
|
+
commerceEscrow?: Maybe<CommerceEscrow>;
|
|
935
|
+
commerceEscrowEvent?: Maybe<CommerceEscrowEvent>;
|
|
936
|
+
commerceEscrowEvents: Array<CommerceEscrowEvent>;
|
|
937
|
+
commerceEscrows: Array<CommerceEscrow>;
|
|
620
938
|
escrow?: Maybe<Escrow>;
|
|
621
939
|
escrowEvent?: Maybe<EscrowEvent>;
|
|
622
940
|
escrowEvents: Array<EscrowEvent>;
|
|
@@ -629,6 +947,34 @@ export type Query = {
|
|
|
629
947
|
export type Query_MetaArgs = {
|
|
630
948
|
block?: InputMaybe<Block_Height>;
|
|
631
949
|
};
|
|
950
|
+
export type QueryCommerceEscrowArgs = {
|
|
951
|
+
block?: InputMaybe<Block_Height>;
|
|
952
|
+
id: Scalars['ID']['input'];
|
|
953
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
954
|
+
};
|
|
955
|
+
export type QueryCommerceEscrowEventArgs = {
|
|
956
|
+
block?: InputMaybe<Block_Height>;
|
|
957
|
+
id: Scalars['ID']['input'];
|
|
958
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
959
|
+
};
|
|
960
|
+
export type QueryCommerceEscrowEventsArgs = {
|
|
961
|
+
block?: InputMaybe<Block_Height>;
|
|
962
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
963
|
+
orderBy?: InputMaybe<CommerceEscrowEvent_OrderBy>;
|
|
964
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
965
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
966
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
967
|
+
where?: InputMaybe<CommerceEscrowEvent_Filter>;
|
|
968
|
+
};
|
|
969
|
+
export type QueryCommerceEscrowsArgs = {
|
|
970
|
+
block?: InputMaybe<Block_Height>;
|
|
971
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
972
|
+
orderBy?: InputMaybe<CommerceEscrow_OrderBy>;
|
|
973
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
974
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
975
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
976
|
+
where?: InputMaybe<CommerceEscrow_Filter>;
|
|
977
|
+
};
|
|
632
978
|
export type QueryEscrowArgs = {
|
|
633
979
|
block?: InputMaybe<Block_Height>;
|
|
634
980
|
id: Scalars['ID']['input'];
|