@requestnetwork/payment-detection 0.36.1-next.1890 → 0.36.1-next.1893
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/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/thegraph/generated/graphql-superfluid.d.ts +12 -0
- package/dist/thegraph/generated/graphql-superfluid.d.ts.map +1 -1
- package/dist/thegraph/generated/graphql-superfluid.js +2 -0
- package/dist/thegraph/generated/graphql-superfluid.js.map +1 -1
- package/dist/utils.d.ts +5 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +9 -5
- package/dist/utils.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as Erc20PaymentNetwork from './erc20';
|
|
|
7
7
|
import { AnyToERC20PaymentDetector, AnyToEthFeeProxyPaymentDetector } from './any';
|
|
8
8
|
import { EthFeeProxyPaymentDetector, EthInputDataPaymentDetector } from './eth';
|
|
9
9
|
import { getTheGraphClient, getTheGraphNearClient } from './thegraph';
|
|
10
|
-
import { calculateEscrowState, formatAddress, getPaymentNetworkExtension, getPaymentReference, padAmountForChainlink, parseLogArgs, unpadAmountFromChainlink } from './utils';
|
|
10
|
+
import { calculateEscrowState, formatAddress, getPaymentNetworkExtension, getPaymentReference, hashReference, padAmountForChainlink, parseLogArgs, unpadAmountFromChainlink } from './utils';
|
|
11
11
|
import { NearConversionNativeTokenPaymentDetector, NearNativeTokenPaymentDetector } from './near';
|
|
12
12
|
import { FeeReferenceBasedDetector } from './fee-reference-based-detector';
|
|
13
13
|
import { SuperFluidPaymentDetector } from './erc777/superfluid-detector';
|
|
@@ -16,5 +16,5 @@ import { SuperFluidInfoRetriever } from './erc777/superfluid-retriever';
|
|
|
16
16
|
import { PaymentNetworkOptions } from './types';
|
|
17
17
|
import { ERC20TransferableReceivablePaymentDetector } from './erc20';
|
|
18
18
|
export type { TheGraphClient } from './thegraph';
|
|
19
|
-
export { PaymentNetworkFactory, PaymentNetworkOptions, PaymentReferenceCalculator, BtcPaymentNetwork, DeclarativePaymentDetector, Erc20PaymentNetwork, ERC20TransferableReceivablePaymentDetector, EthInputDataPaymentDetector, EthFeeProxyPaymentDetector, AnyToERC20PaymentDetector, AnyToEthFeeProxyPaymentDetector, FeeReferenceBasedDetector, SuperFluidPaymentDetector, NearNativeTokenPaymentDetector, NearConversionNativeTokenPaymentDetector, EscrowERC20InfoRetriever, SuperFluidInfoRetriever, setProviderFactory, initPaymentDetectionApiKeys, getDefaultProvider, getTheGraphClient, getTheGraphNearClient, parseLogArgs, padAmountForChainlink, unpadAmountFromChainlink, calculateEscrowState, getPaymentNetworkExtension, getPaymentReference, formatAddress, };
|
|
19
|
+
export { PaymentNetworkFactory, PaymentNetworkOptions, PaymentReferenceCalculator, BtcPaymentNetwork, DeclarativePaymentDetector, Erc20PaymentNetwork, ERC20TransferableReceivablePaymentDetector, EthInputDataPaymentDetector, EthFeeProxyPaymentDetector, AnyToERC20PaymentDetector, AnyToEthFeeProxyPaymentDetector, FeeReferenceBasedDetector, SuperFluidPaymentDetector, NearNativeTokenPaymentDetector, NearConversionNativeTokenPaymentDetector, EscrowERC20InfoRetriever, SuperFluidInfoRetriever, setProviderFactory, initPaymentDetectionApiKeys, getDefaultProvider, getTheGraphClient, getTheGraphNearClient, parseLogArgs, padAmountForChainlink, unpadAmountFromChainlink, calculateEscrowState, getPaymentNetworkExtension, getPaymentReference, hashReference, formatAddress, };
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EA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,CAAC;AAChD,OAAO,EAAE,0CAA0C,EAAE,MAAM,SAAS,CAAC;AAErE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACnB,0CAA0C,EAC1C,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,8BAA8B,EAC9B,wCAAwC,EACxC,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,aAAa,GACd,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatAddress = exports.getPaymentReference = exports.getPaymentNetworkExtension = exports.calculateEscrowState = exports.unpadAmountFromChainlink = exports.padAmountForChainlink = exports.parseLogArgs = exports.getTheGraphNearClient = exports.getTheGraphClient = exports.getDefaultProvider = exports.initPaymentDetectionApiKeys = exports.setProviderFactory = exports.SuperFluidInfoRetriever = exports.EscrowERC20InfoRetriever = exports.NearConversionNativeTokenPaymentDetector = exports.NearNativeTokenPaymentDetector = exports.SuperFluidPaymentDetector = exports.FeeReferenceBasedDetector = exports.AnyToEthFeeProxyPaymentDetector = exports.AnyToERC20PaymentDetector = exports.EthFeeProxyPaymentDetector = exports.EthInputDataPaymentDetector = exports.ERC20TransferableReceivablePaymentDetector = exports.Erc20PaymentNetwork = exports.DeclarativePaymentDetector = exports.BtcPaymentNetwork = exports.PaymentReferenceCalculator = exports.PaymentNetworkFactory = void 0;
|
|
3
|
+
exports.formatAddress = exports.hashReference = exports.getPaymentReference = exports.getPaymentNetworkExtension = exports.calculateEscrowState = exports.unpadAmountFromChainlink = exports.padAmountForChainlink = exports.parseLogArgs = exports.getTheGraphNearClient = exports.getTheGraphClient = exports.getDefaultProvider = exports.initPaymentDetectionApiKeys = exports.setProviderFactory = exports.SuperFluidInfoRetriever = exports.EscrowERC20InfoRetriever = exports.NearConversionNativeTokenPaymentDetector = exports.NearNativeTokenPaymentDetector = exports.SuperFluidPaymentDetector = exports.FeeReferenceBasedDetector = exports.AnyToEthFeeProxyPaymentDetector = exports.AnyToERC20PaymentDetector = exports.EthFeeProxyPaymentDetector = exports.EthInputDataPaymentDetector = exports.ERC20TransferableReceivablePaymentDetector = exports.Erc20PaymentNetwork = exports.DeclarativePaymentDetector = exports.BtcPaymentNetwork = exports.PaymentReferenceCalculator = exports.PaymentNetworkFactory = void 0;
|
|
4
4
|
const utils_1 = require("@requestnetwork/utils");
|
|
5
5
|
Object.defineProperty(exports, "getDefaultProvider", { enumerable: true, get: function () { return utils_1.getDefaultProvider; } });
|
|
6
6
|
Object.defineProperty(exports, "initPaymentDetectionApiKeys", { enumerable: true, get: function () { return utils_1.initPaymentDetectionApiKeys; } });
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "calculateEscrowState", { enumerable: true, get:
|
|
|
29
29
|
Object.defineProperty(exports, "formatAddress", { enumerable: true, get: function () { return utils_2.formatAddress; } });
|
|
30
30
|
Object.defineProperty(exports, "getPaymentNetworkExtension", { enumerable: true, get: function () { return utils_2.getPaymentNetworkExtension; } });
|
|
31
31
|
Object.defineProperty(exports, "getPaymentReference", { enumerable: true, get: function () { return utils_2.getPaymentReference; } });
|
|
32
|
+
Object.defineProperty(exports, "hashReference", { enumerable: true, get: function () { return utils_2.hashReference; } });
|
|
32
33
|
Object.defineProperty(exports, "padAmountForChainlink", { enumerable: true, get: function () { return utils_2.padAmountForChainlink; } });
|
|
33
34
|
Object.defineProperty(exports, "parseLogArgs", { enumerable: true, get: function () { return utils_2.parseLogArgs; } });
|
|
34
35
|
Object.defineProperty(exports, "unpadAmountFromChainlink", { enumerable: true, get: function () { return utils_2.unpadAmountFromChainlink; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAI+B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAI+B;AAiD7B,mGApDA,0BAAkB,OAoDA;AADlB,4GAlDA,mCAA2B,OAkDA;AAD3B,mGAhDA,0BAAkB,OAgDA;AA9CpB,uEAAkE;AA6BhE,sGA7BO,+CAAqB,OA6BP;AA5BvB,iFAAwE;AA8BtE,qCA9BK,sCAA0B,CA8BL;AA7B5B,2CAA2C;AA8BzC,8CAAiB;AA7BnB,+CAA2D;AA8BzD,2GA9BO,wCAA0B,OA8BP;AA7B5B,+CAA+C;AA8B7C,kDAAmB;AA7BrB,+BAAmF;AAiCjF,0GAjCO,+BAAyB,OAiCP;AACzB,gHAlCkC,qCAA+B,OAkClC;AAjCjC,+BAAgF;AA+B9E,2GA/BO,gCAA0B,OA+BP;AAD1B,4GA9BmC,iCAA2B,OA8BnC;AA7B7B,yCAAsE;AA0CpE,kGA1CO,4BAAiB,OA0CP;AACjB,sGA3C0B,gCAAqB,OA2C1B;AA1CvB,mCASiB;AAqCf,qGA7CA,4BAAoB,OA6CA;AAIpB,8FAhDA,qBAAa,OAgDA;AAHb,2GA5CA,kCAA0B,OA4CA;AAC1B,oGA5CA,2BAAmB,OA4CA;AACnB,8FA5CA,qBAAa,OA4CA;AALb,sGAtCA,6BAAqB,OAsCA;AADrB,6FApCA,oBAAY,OAoCA;AAEZ,yGArCA,gCAAwB,OAqCA;AAnC1B,iCAAkG;AAyBhG,yHAzBO,+CAAwC,OAyBP;AADxC,+GAxBiD,qCAA8B,OAwBjD;AAvBhC,iFAA2E;AAqBzE,0GArBO,wDAAyB,OAqBP;AApB3B,sEAAyE;AAqBvE,0GArBO,+CAAyB,OAqBP;AApB3B,yEAAyE;AAuBvE,yGAvBO,gDAAwB,OAuBP;AAtB1B,wEAAwE;AAuBtE,wGAvBO,8CAAuB,OAuBP;AArBzB,mCAAqE;AAWnE,2HAXO,kDAA0C,OAWP"}
|
|
@@ -3068,6 +3068,8 @@ export type FlowOperator = {
|
|
|
3068
3068
|
* NOTE: this value will NOT go down if max flow rate allowance is set.
|
|
3069
3069
|
*/
|
|
3070
3070
|
flowRateAllowanceRemaining: Scalars['BigInt'];
|
|
3071
|
+
/** The transfer allowance granted to the `flowOperator` by the `sender`. */
|
|
3072
|
+
allowance: Scalars['BigInt'];
|
|
3071
3073
|
flowOperator: Scalars['Bytes'];
|
|
3072
3074
|
sender: Account;
|
|
3073
3075
|
token: Token;
|
|
@@ -3290,6 +3292,7 @@ export declare enum FlowOperatorUpdatedEvent_OrderBy {
|
|
|
3290
3292
|
FlowOperator__permissions = "flowOperator__permissions",
|
|
3291
3293
|
FlowOperator__flowRateAllowanceGranted = "flowOperator__flowRateAllowanceGranted",
|
|
3292
3294
|
FlowOperator__flowRateAllowanceRemaining = "flowOperator__flowRateAllowanceRemaining",
|
|
3295
|
+
FlowOperator__allowance = "flowOperator__allowance",
|
|
3293
3296
|
FlowOperator__flowOperator = "flowOperator__flowOperator"
|
|
3294
3297
|
}
|
|
3295
3298
|
export type FlowOperator_Filter = {
|
|
@@ -3357,6 +3360,14 @@ export type FlowOperator_Filter = {
|
|
|
3357
3360
|
flowRateAllowanceRemaining_lte?: Maybe<Scalars['BigInt']>;
|
|
3358
3361
|
flowRateAllowanceRemaining_in?: Maybe<Array<Scalars['BigInt']>>;
|
|
3359
3362
|
flowRateAllowanceRemaining_not_in?: Maybe<Array<Scalars['BigInt']>>;
|
|
3363
|
+
allowance?: Maybe<Scalars['BigInt']>;
|
|
3364
|
+
allowance_not?: Maybe<Scalars['BigInt']>;
|
|
3365
|
+
allowance_gt?: Maybe<Scalars['BigInt']>;
|
|
3366
|
+
allowance_lt?: Maybe<Scalars['BigInt']>;
|
|
3367
|
+
allowance_gte?: Maybe<Scalars['BigInt']>;
|
|
3368
|
+
allowance_lte?: Maybe<Scalars['BigInt']>;
|
|
3369
|
+
allowance_in?: Maybe<Array<Scalars['BigInt']>>;
|
|
3370
|
+
allowance_not_in?: Maybe<Array<Scalars['BigInt']>>;
|
|
3360
3371
|
flowOperator?: Maybe<Scalars['Bytes']>;
|
|
3361
3372
|
flowOperator_not?: Maybe<Scalars['Bytes']>;
|
|
3362
3373
|
flowOperator_gt?: Maybe<Scalars['Bytes']>;
|
|
@@ -3445,6 +3456,7 @@ export declare enum FlowOperator_OrderBy {
|
|
|
3445
3456
|
Permissions = "permissions",
|
|
3446
3457
|
FlowRateAllowanceGranted = "flowRateAllowanceGranted",
|
|
3447
3458
|
FlowRateAllowanceRemaining = "flowRateAllowanceRemaining",
|
|
3459
|
+
Allowance = "allowance",
|
|
3448
3460
|
FlowOperator = "flowOperator",
|
|
3449
3461
|
Sender = "sender",
|
|
3450
3462
|
Sender__id = "sender__id",
|