@explorins/pers-sdk 1.3.4 → 1.3.5
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/business/index.d.ts +9 -9
- package/dist/campaign/index.d.ts +19 -19
- package/dist/donation/index.d.ts +1 -1
- package/dist/index.cjs +1 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/dist/package.json +148 -147
- package/dist/payment/index.d.ts +6 -6
- package/dist/redemption/index.d.ts +10 -10
- package/dist/tenant/index.d.ts +4 -4
- package/dist/transaction/index.d.ts +4 -4
- package/dist/web3/application/web3-application.service.d.ts +3 -3
- package/dist/web3/application/web3-application.service.d.ts.map +1 -1
- package/dist/web3/domain/models/index.d.ts.map +1 -1
- package/dist/web3/domain/services/contract-domain.service.d.ts +2 -4
- package/dist/web3/domain/services/contract-domain.service.d.ts.map +1 -1
- package/dist/web3/domain/services/token-domain.service.d.ts +5 -5
- package/dist/web3/domain/services/token-domain.service.d.ts.map +1 -1
- package/dist/web3/index.d.ts +5 -5
- package/dist/web3/index.d.ts.map +1 -1
- package/dist/web3/infrastructure/api/web3-api.d.ts +4 -4
- package/dist/web3/infrastructure/api/web3-api.d.ts.map +1 -1
- package/dist/web3-chain/index.d.ts +3 -5
- package/dist/web3-chain/index.d.ts.map +1 -1
- package/dist/web3-chain/services/ethers-provider.service.d.ts +11 -0
- package/dist/web3-chain/services/ethers-provider.service.d.ts.map +1 -0
- package/dist/web3-chain/services/getWeb3FCD.service.d.ts +1 -1
- package/dist/web3-chain/services/getWeb3FCD.service.d.ts.map +1 -1
- package/dist/web3-chain/services/web3-chain-service.d.ts +7 -7
- package/dist/web3-chain/services/web3-chain-service.d.ts.map +1 -1
- package/dist/web3-chain/services/web3-provider.service.d.ts +1 -0
- package/dist/web3-chain/services/web3-provider.service.d.ts.map +1 -0
- package/dist/web3-chain.cjs +108 -231
- package/dist/web3-chain.cjs.map +1 -1
- package/dist/web3-chain.js +106 -228
- package/dist/web3-chain.js.map +1 -1
- package/dist/web3.cjs +19 -27
- package/dist/web3.cjs.map +1 -1
- package/dist/web3.js +17 -25
- package/dist/web3.js.map +1 -1
- package/package.json +148 -147
- package/dist/web3-chain/services/provider.service.d.ts +0 -13
- package/dist/web3-chain/services/provider.service.d.ts.map +0 -1
package/dist/business/index.d.ts
CHANGED
|
@@ -18,15 +18,15 @@ import { BusinessService } from './services/business-service';
|
|
|
18
18
|
* @returns Business SDK with flattened structure for better DX
|
|
19
19
|
*/
|
|
20
20
|
export declare function createBusinessSDK(apiClient: PersApiClient): {
|
|
21
|
-
getActiveBusinesses: () => Promise<import("@explorins/pers-shared
|
|
22
|
-
getAllBusinessTypes: () => Promise<import("@explorins/pers-shared
|
|
23
|
-
getBusinessById: (businessId: string) => Promise<import("@explorins/pers-shared
|
|
24
|
-
getBusinessByAccount: (accountAddress: string) => Promise<import("@explorins/pers-shared
|
|
25
|
-
getBusinessesByType: (typeId: string) => Promise<import("@explorins/pers-shared
|
|
26
|
-
getAllBusinesses: () => Promise<import("@explorins/pers-shared
|
|
27
|
-
createBusinessByDisplayName: (displayName: string) => Promise<import("@explorins/pers-shared
|
|
28
|
-
updateBusiness: (id: string, businessData: BusinessUpdateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
29
|
-
toggleBusinessActive: (id: string, isActive: boolean) => Promise<import("@explorins/pers-shared
|
|
21
|
+
getActiveBusinesses: () => Promise<import("@explorins/pers-shared").BusinessDTO[]>;
|
|
22
|
+
getAllBusinessTypes: () => Promise<import("@explorins/pers-shared").BusinessTypeDTO[]>;
|
|
23
|
+
getBusinessById: (businessId: string) => Promise<import("@explorins/pers-shared").BusinessDTO>;
|
|
24
|
+
getBusinessByAccount: (accountAddress: string) => Promise<import("@explorins/pers-shared").BusinessDTO>;
|
|
25
|
+
getBusinessesByType: (typeId: string) => Promise<import("@explorins/pers-shared").BusinessDTO[]>;
|
|
26
|
+
getAllBusinesses: () => Promise<import("@explorins/pers-shared").BusinessDTO[]>;
|
|
27
|
+
createBusinessByDisplayName: (displayName: string) => Promise<import("@explorins/pers-shared").BusinessDTO>;
|
|
28
|
+
updateBusiness: (id: string, businessData: BusinessUpdateRequestDTO) => Promise<import("@explorins/pers-shared").BusinessDTO>;
|
|
29
|
+
toggleBusinessActive: (id: string, isActive: boolean) => Promise<import("@explorins/pers-shared").BusinessDTO>;
|
|
30
30
|
api: BusinessApi;
|
|
31
31
|
service: BusinessService;
|
|
32
32
|
};
|
package/dist/campaign/index.d.ts
CHANGED
|
@@ -18,25 +18,25 @@ import { CampaignClaimRequestDTO, CampaignCreateRequestDTO, TokenUnitCreateReque
|
|
|
18
18
|
* @returns Campaign SDK with flattened structure for better DX
|
|
19
19
|
*/
|
|
20
20
|
export declare function createCampaignSDK(apiClient: PersApiClient): {
|
|
21
|
-
getActiveCampaigns: () => Promise<import("@explorins/pers-shared
|
|
22
|
-
getCampaignById: (id: string) => Promise<import("@explorins/pers-shared
|
|
23
|
-
claimCampaign: (request: CampaignClaimRequestDTO) => Promise<import("@explorins/pers-shared
|
|
24
|
-
getClaimsForLoggedUser: () => Promise<import("@explorins/pers-shared
|
|
25
|
-
getCampaigns: (active?: boolean) => Promise<import("@explorins/pers-shared
|
|
26
|
-
getCampaignTriggers: () => Promise<import("@explorins/pers-shared
|
|
27
|
-
toggleCampaignActive: (campaignId: string) => Promise<import("@explorins/pers-shared
|
|
28
|
-
toggleCampaignTestnet: (campaignId: string) => Promise<import("@explorins/pers-shared
|
|
29
|
-
createCampaign: (campaign: CampaignCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
30
|
-
setCampaignTrigger: (campaignId: string, triggerId: string) => Promise<import("@explorins/pers-shared
|
|
31
|
-
updateCampaign: (campaignId: string, campaign: CampaignCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
32
|
-
createCampaignTokenUnit: (campaignId: string, campaignTokenUnit: TokenUnitCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
33
|
-
deleteCampaignTokenUnit: (campaignId: string, campaignTokenUnitId: string) => Promise<import("@explorins/pers-shared
|
|
34
|
-
addBusinessEngagementToCampaign: (campaignId: string, campaignBusinessEngagement: CampaignBusinessEngagementCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
35
|
-
updateCampaignBusinessEngagement: (campaignId: string, businessEngagementId: string, campaignBusinessEngagement: CampaignBusinessEngagementCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
36
|
-
deleteCampaignBusinessEngagement: (campaignId: string, businessEngagementId: string) => Promise<import("@explorins/pers-shared
|
|
37
|
-
getCampaignClaims: () => Promise<import("@explorins/pers-shared
|
|
38
|
-
getCampaignClaimsByUserId: (userId: string) => Promise<import("@explorins/pers-shared
|
|
39
|
-
getCampaignClaimsByBusinessId: (businessId: string) => Promise<import("@explorins/pers-shared
|
|
21
|
+
getActiveCampaigns: () => Promise<import("@explorins/pers-shared").CampaignDTO[]>;
|
|
22
|
+
getCampaignById: (id: string) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
23
|
+
claimCampaign: (request: CampaignClaimRequestDTO) => Promise<import("@explorins/pers-shared").CampaignClaimDTO>;
|
|
24
|
+
getClaimsForLoggedUser: () => Promise<import("@explorins/pers-shared").CampaignClaimDTO[]>;
|
|
25
|
+
getCampaigns: (active?: boolean) => Promise<import("@explorins/pers-shared").CampaignDTO[]>;
|
|
26
|
+
getCampaignTriggers: () => Promise<import("@explorins/pers-shared").CampaignTriggerDTO[]>;
|
|
27
|
+
toggleCampaignActive: (campaignId: string) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
28
|
+
toggleCampaignTestnet: (campaignId: string) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
29
|
+
createCampaign: (campaign: CampaignCreateRequestDTO) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
30
|
+
setCampaignTrigger: (campaignId: string, triggerId: string) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
31
|
+
updateCampaign: (campaignId: string, campaign: CampaignCreateRequestDTO) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
32
|
+
createCampaignTokenUnit: (campaignId: string, campaignTokenUnit: TokenUnitCreateRequestDTO) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
33
|
+
deleteCampaignTokenUnit: (campaignId: string, campaignTokenUnitId: string) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
34
|
+
addBusinessEngagementToCampaign: (campaignId: string, campaignBusinessEngagement: CampaignBusinessEngagementCreateRequestDTO) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
35
|
+
updateCampaignBusinessEngagement: (campaignId: string, businessEngagementId: string, campaignBusinessEngagement: CampaignBusinessEngagementCreateRequestDTO) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
36
|
+
deleteCampaignBusinessEngagement: (campaignId: string, businessEngagementId: string) => Promise<import("@explorins/pers-shared").CampaignDTO>;
|
|
37
|
+
getCampaignClaims: () => Promise<import("@explorins/pers-shared").CampaignClaimDTO[]>;
|
|
38
|
+
getCampaignClaimsByUserId: (userId: string) => Promise<import("@explorins/pers-shared").CampaignClaimDTO[]>;
|
|
39
|
+
getCampaignClaimsByBusinessId: (businessId: string) => Promise<import("@explorins/pers-shared").CampaignClaimDTO[]>;
|
|
40
40
|
api: CampaignApi;
|
|
41
41
|
service: CampaignService;
|
|
42
42
|
};
|
package/dist/donation/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { DonationService } from './services/donation-service';
|
|
|
17
17
|
* @returns Donation SDK with flattened structure for better DX
|
|
18
18
|
*/
|
|
19
19
|
export declare function createDonationSDK(apiClient: PersApiClient): {
|
|
20
|
-
getAllDonationTypes: () => Promise<import("@explorins/pers-shared
|
|
20
|
+
getAllDonationTypes: () => Promise<import("@explorins/pers-shared").DonationTypeDTO[]>;
|
|
21
21
|
api: DonationApi;
|
|
22
22
|
service: DonationService;
|
|
23
23
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -18,10 +18,7 @@ var web3Chain = require('./web3-chain.cjs');
|
|
|
18
18
|
var web3 = require('./web3.cjs');
|
|
19
19
|
require('./chunks/jwt.function-BYiyl-z_.cjs');
|
|
20
20
|
require('jwt-decode');
|
|
21
|
-
require('web3');
|
|
22
|
-
require('ethers/providers');
|
|
23
|
-
require('ethers/utils');
|
|
24
|
-
require('@explorins/web3-ts');
|
|
21
|
+
require('@explorins/web3-ts/ethers');
|
|
25
22
|
|
|
26
23
|
|
|
27
24
|
|
|
@@ -79,7 +76,6 @@ exports.createUserStatusSDK = userStatus.createUserStatusSDK;
|
|
|
79
76
|
exports.ChainTypes = web3Chain.ChainTypes;
|
|
80
77
|
exports.Web3ChainApi = web3Chain.Web3ChainApi;
|
|
81
78
|
exports.Web3ChainService = web3Chain.Web3ChainService;
|
|
82
|
-
exports.Web3ProviderService = web3Chain.Web3ProviderService;
|
|
83
79
|
exports.createWeb3ChainSDK = web3Chain.createWeb3ChainSDK;
|
|
84
80
|
exports.IPFSInfrastructureApi = web3.IPFSInfrastructureApi;
|
|
85
81
|
exports.Web3ApplicationService = web3.Web3ApplicationService;
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -12,12 +12,9 @@ export { TenantApi, TenantService, createTenantSDK } from './tenant.js';
|
|
|
12
12
|
export { B as BaseTokenService, a as TokenApi, T as TokenSDK, b as TokenService } from './chunks/base-token-service-BA81_Ouq.js';
|
|
13
13
|
export { UserApi, UserService, createUserSDK } from './user.js';
|
|
14
14
|
export { UserStatusApi, UserStatusService, createUserStatusSDK } from './user-status.js';
|
|
15
|
-
export { ChainTypes, Web3ChainApi, Web3ChainService,
|
|
15
|
+
export { ChainTypes, Web3ChainApi, Web3ChainService, createWeb3ChainSDK } from './web3-chain.js';
|
|
16
16
|
export { IPFSInfrastructureApi, Web3ApplicationService, Web3InfrastructureApi, createWeb3SDK } from './web3.js';
|
|
17
17
|
import './chunks/jwt.function-d6jPtBqI.js';
|
|
18
18
|
import 'jwt-decode';
|
|
19
|
-
import 'web3';
|
|
20
|
-
import 'ethers/providers';
|
|
21
|
-
import 'ethers/utils';
|
|
22
|
-
import '@explorins/web3-ts';
|
|
19
|
+
import '@explorins/web3-ts/ethers';
|
|
23
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
package/dist/package.json
CHANGED
|
@@ -1,147 +1,148 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@explorins/pers-sdk",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "Platform-agnostic SDK for PERS (Phygital Experience Rewards System) - Production Defaults",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.cjs",
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"browser": {
|
|
10
|
-
"crypto": false,
|
|
11
|
-
"stream": false,
|
|
12
|
-
"http": false,
|
|
13
|
-
"https": false,
|
|
14
|
-
"os": false,
|
|
15
|
-
"net": false,
|
|
16
|
-
"tls": false,
|
|
17
|
-
"fs": false
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"dist/**/*"
|
|
21
|
-
],
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"types": "./dist/index.d.ts",
|
|
25
|
-
"import": "./dist/index.js",
|
|
26
|
-
"require": "./dist/index.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./analytics": {
|
|
29
|
-
"types": "./dist/analytics/index.d.ts",
|
|
30
|
-
"import": "./dist/analytics.js",
|
|
31
|
-
"require": "./dist/analytics.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./auth": {
|
|
34
|
-
"types": "./dist/auth/index.d.ts",
|
|
35
|
-
"import": "./dist/auth.js",
|
|
36
|
-
"require": "./dist/auth.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./business": {
|
|
39
|
-
"types": "./dist/business/index.d.ts",
|
|
40
|
-
"import": "./dist/business.js",
|
|
41
|
-
"require": "./dist/business.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./campaign": {
|
|
44
|
-
"types": "./dist/campaign/index.d.ts",
|
|
45
|
-
"import": "./dist/campaign.js",
|
|
46
|
-
"require": "./dist/campaign.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./core": {
|
|
49
|
-
"types": "./dist/core/index.d.ts",
|
|
50
|
-
"import": "./dist/core.js",
|
|
51
|
-
"require": "./dist/core.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./donation": {
|
|
54
|
-
"types": "./dist/donation/index.d.ts",
|
|
55
|
-
"import": "./dist/donation.js",
|
|
56
|
-
"require": "./dist/donation.cjs"
|
|
57
|
-
},
|
|
58
|
-
"./payment": {
|
|
59
|
-
"types": "./dist/payment/index.d.ts",
|
|
60
|
-
"import": "./dist/payment.js",
|
|
61
|
-
"require": "./dist/payment.cjs"
|
|
62
|
-
},
|
|
63
|
-
"./redemption": {
|
|
64
|
-
"types": "./dist/redemption/index.d.ts",
|
|
65
|
-
"import": "./dist/redemption.js",
|
|
66
|
-
"require": "./dist/redemption.cjs"
|
|
67
|
-
},
|
|
68
|
-
"./tenant": {
|
|
69
|
-
"types": "./dist/tenant/index.d.ts",
|
|
70
|
-
"import": "./dist/tenant.js",
|
|
71
|
-
"require": "./dist/tenant.cjs"
|
|
72
|
-
},
|
|
73
|
-
"./token": {
|
|
74
|
-
"types": "./dist/token/index.d.ts",
|
|
75
|
-
"import": "./dist/token.js",
|
|
76
|
-
"require": "./dist/token.cjs"
|
|
77
|
-
},
|
|
78
|
-
"./transaction": {
|
|
79
|
-
"types": "./dist/transaction/index.d.ts",
|
|
80
|
-
"import": "./dist/transaction.js",
|
|
81
|
-
"require": "./dist/transaction.cjs"
|
|
82
|
-
},
|
|
83
|
-
"./user": {
|
|
84
|
-
"types": "./dist/user/index.d.ts",
|
|
85
|
-
"import": "./dist/user.js",
|
|
86
|
-
"require": "./dist/user.cjs"
|
|
87
|
-
},
|
|
88
|
-
"./user-status": {
|
|
89
|
-
"types": "./dist/user-status/index.d.ts",
|
|
90
|
-
"import": "./dist/user-status.js",
|
|
91
|
-
"require": "./dist/user-status.cjs"
|
|
92
|
-
},
|
|
93
|
-
"./web3-chain": {
|
|
94
|
-
"types": "./dist/web3-chain/index.d.ts",
|
|
95
|
-
"import": "./dist/web3-chain.js",
|
|
96
|
-
"require": "./dist/web3-chain.cjs"
|
|
97
|
-
},
|
|
98
|
-
"./web3": {
|
|
99
|
-
"types": "./dist/web3/index.d.ts",
|
|
100
|
-
"import": "./dist/web3.js",
|
|
101
|
-
"require": "./dist/web3.cjs"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"scripts": {
|
|
105
|
-
"build": "rollup -c",
|
|
106
|
-
"build:watch": "rollup -c --watch",
|
|
107
|
-
"clean": "rimraf dist",
|
|
108
|
-
"test": "jest",
|
|
109
|
-
"test:watch": "jest --watch",
|
|
110
|
-
"lint": "eslint src/**/*.ts",
|
|
111
|
-
"prepublishOnly": "npm run clean && npm run build",
|
|
112
|
-
"publish-version": "npm publish"
|
|
113
|
-
},
|
|
114
|
-
"dependencies": {
|
|
115
|
-
"@explorins/web3-ts": "^0.3.
|
|
116
|
-
"jwt-decode": "^4.0.0"
|
|
117
|
-
},
|
|
118
|
-
"devDependencies": {
|
|
119
|
-
"@explorins/pers-shared": "^2.1.40",
|
|
120
|
-
"@rollup/plugin-
|
|
121
|
-
"@
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"
|
|
147
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@explorins/pers-sdk",
|
|
3
|
+
"version": "1.3.5",
|
|
4
|
+
"description": "Platform-agnostic SDK for PERS (Phygital Experience Rewards System) - Production Defaults",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"browser": {
|
|
10
|
+
"crypto": false,
|
|
11
|
+
"stream": false,
|
|
12
|
+
"http": false,
|
|
13
|
+
"https": false,
|
|
14
|
+
"os": false,
|
|
15
|
+
"net": false,
|
|
16
|
+
"tls": false,
|
|
17
|
+
"fs": false
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist/**/*"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"require": "./dist/index.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./analytics": {
|
|
29
|
+
"types": "./dist/analytics/index.d.ts",
|
|
30
|
+
"import": "./dist/analytics.js",
|
|
31
|
+
"require": "./dist/analytics.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./auth": {
|
|
34
|
+
"types": "./dist/auth/index.d.ts",
|
|
35
|
+
"import": "./dist/auth.js",
|
|
36
|
+
"require": "./dist/auth.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./business": {
|
|
39
|
+
"types": "./dist/business/index.d.ts",
|
|
40
|
+
"import": "./dist/business.js",
|
|
41
|
+
"require": "./dist/business.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./campaign": {
|
|
44
|
+
"types": "./dist/campaign/index.d.ts",
|
|
45
|
+
"import": "./dist/campaign.js",
|
|
46
|
+
"require": "./dist/campaign.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./core": {
|
|
49
|
+
"types": "./dist/core/index.d.ts",
|
|
50
|
+
"import": "./dist/core.js",
|
|
51
|
+
"require": "./dist/core.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./donation": {
|
|
54
|
+
"types": "./dist/donation/index.d.ts",
|
|
55
|
+
"import": "./dist/donation.js",
|
|
56
|
+
"require": "./dist/donation.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./payment": {
|
|
59
|
+
"types": "./dist/payment/index.d.ts",
|
|
60
|
+
"import": "./dist/payment.js",
|
|
61
|
+
"require": "./dist/payment.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./redemption": {
|
|
64
|
+
"types": "./dist/redemption/index.d.ts",
|
|
65
|
+
"import": "./dist/redemption.js",
|
|
66
|
+
"require": "./dist/redemption.cjs"
|
|
67
|
+
},
|
|
68
|
+
"./tenant": {
|
|
69
|
+
"types": "./dist/tenant/index.d.ts",
|
|
70
|
+
"import": "./dist/tenant.js",
|
|
71
|
+
"require": "./dist/tenant.cjs"
|
|
72
|
+
},
|
|
73
|
+
"./token": {
|
|
74
|
+
"types": "./dist/token/index.d.ts",
|
|
75
|
+
"import": "./dist/token.js",
|
|
76
|
+
"require": "./dist/token.cjs"
|
|
77
|
+
},
|
|
78
|
+
"./transaction": {
|
|
79
|
+
"types": "./dist/transaction/index.d.ts",
|
|
80
|
+
"import": "./dist/transaction.js",
|
|
81
|
+
"require": "./dist/transaction.cjs"
|
|
82
|
+
},
|
|
83
|
+
"./user": {
|
|
84
|
+
"types": "./dist/user/index.d.ts",
|
|
85
|
+
"import": "./dist/user.js",
|
|
86
|
+
"require": "./dist/user.cjs"
|
|
87
|
+
},
|
|
88
|
+
"./user-status": {
|
|
89
|
+
"types": "./dist/user-status/index.d.ts",
|
|
90
|
+
"import": "./dist/user-status.js",
|
|
91
|
+
"require": "./dist/user-status.cjs"
|
|
92
|
+
},
|
|
93
|
+
"./web3-chain": {
|
|
94
|
+
"types": "./dist/web3-chain/index.d.ts",
|
|
95
|
+
"import": "./dist/web3-chain.js",
|
|
96
|
+
"require": "./dist/web3-chain.cjs"
|
|
97
|
+
},
|
|
98
|
+
"./web3": {
|
|
99
|
+
"types": "./dist/web3/index.d.ts",
|
|
100
|
+
"import": "./dist/web3.js",
|
|
101
|
+
"require": "./dist/web3.cjs"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"scripts": {
|
|
105
|
+
"build": "rollup -c",
|
|
106
|
+
"build:watch": "rollup -c --watch",
|
|
107
|
+
"clean": "rimraf dist",
|
|
108
|
+
"test": "jest",
|
|
109
|
+
"test:watch": "jest --watch",
|
|
110
|
+
"lint": "eslint src/**/*.ts",
|
|
111
|
+
"prepublishOnly": "npm run clean && npm run build",
|
|
112
|
+
"publish-version": "npm run clean && npm run build && npm version patch && npm publish"
|
|
113
|
+
},
|
|
114
|
+
"dependencies": {
|
|
115
|
+
"@explorins/web3-ts": "^0.3.75",
|
|
116
|
+
"jwt-decode": "^4.0.0"
|
|
117
|
+
},
|
|
118
|
+
"devDependencies": {
|
|
119
|
+
"@explorins/pers-shared": "^2.1.40",
|
|
120
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
121
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
122
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
123
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
124
|
+
"@types/jest": "^29.5.12",
|
|
125
|
+
"jest": "^29.7.0",
|
|
126
|
+
"rimraf": "^5.0.5",
|
|
127
|
+
"rollup": "^4.50.0",
|
|
128
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
129
|
+
"typescript": "^5.4.5"
|
|
130
|
+
},
|
|
131
|
+
"peerDependencies": {
|
|
132
|
+
"@explorins/pers-shared": "*",
|
|
133
|
+
"ethers": "^6.15.0"
|
|
134
|
+
},
|
|
135
|
+
"peerDependenciesMeta": {},
|
|
136
|
+
"publishConfig": {
|
|
137
|
+
"access": "public",
|
|
138
|
+
"registry": "https://registry.npmjs.org/"
|
|
139
|
+
},
|
|
140
|
+
"keywords": [
|
|
141
|
+
"pers",
|
|
142
|
+
"business",
|
|
143
|
+
"sdk",
|
|
144
|
+
"platform-agnostic"
|
|
145
|
+
],
|
|
146
|
+
"author": "Explorins",
|
|
147
|
+
"license": "MIT"
|
|
148
|
+
}
|
package/dist/payment/index.d.ts
CHANGED
|
@@ -23,12 +23,12 @@ import { PaymentService } from './services/payment-service';
|
|
|
23
23
|
* @returns Payment SDK with flattened structure for better DX
|
|
24
24
|
*/
|
|
25
25
|
export declare function createPaymentSDK(apiClient: PersApiClient): {
|
|
26
|
-
getActivePurchaseTokens: (active?: boolean) => Promise<import("@explorins/pers-shared
|
|
27
|
-
createPaymentIntent: (amount: number, currency: PurchaseCurrency, receiptEmail: string, description: string) => Promise<import("@explorins/pers-shared
|
|
28
|
-
updatePaymentIntent: (paymentIntentId: string, amount: number, currency: PurchaseCurrency, receiptEmail: string, description: string) => Promise<import("@explorins/pers-shared
|
|
29
|
-
cancelPaymentIntent: (paymentIntentId: string) => Promise<import("@explorins/pers-shared
|
|
30
|
-
createPurchase: (paymentIntentId: string, amount: number, purchaseTokenId?: string, donationTypeId?: number, donationAccountAddress?: string) => Promise<import("@explorins/pers-shared
|
|
31
|
-
getAllUserPurchases: () => Promise<import("@explorins/pers-shared
|
|
26
|
+
getActivePurchaseTokens: (active?: boolean) => Promise<import("@explorins/pers-shared").PurchaseTokenDTO[]>;
|
|
27
|
+
createPaymentIntent: (amount: number, currency: PurchaseCurrency, receiptEmail: string, description: string) => Promise<import("@explorins/pers-shared").PaymentIntentDTO>;
|
|
28
|
+
updatePaymentIntent: (paymentIntentId: string, amount: number, currency: PurchaseCurrency, receiptEmail: string, description: string) => Promise<import("@explorins/pers-shared").PaymentIntentDTO>;
|
|
29
|
+
cancelPaymentIntent: (paymentIntentId: string) => Promise<import("@explorins/pers-shared").PaymentIntentDTO>;
|
|
30
|
+
createPurchase: (paymentIntentId: string, amount: number, purchaseTokenId?: string, donationTypeId?: number, donationAccountAddress?: string) => Promise<import("@explorins/pers-shared").PurchaseDTO>;
|
|
31
|
+
getAllUserPurchases: () => Promise<import("@explorins/pers-shared").PurchaseDTO[]>;
|
|
32
32
|
api: PaymentApi;
|
|
33
33
|
service: PaymentService;
|
|
34
34
|
};
|
|
@@ -18,16 +18,16 @@ import { RedemptionService } from './services/redemption-service';
|
|
|
18
18
|
* @returns Redemption SDK with flattened structure for better DX
|
|
19
19
|
*/
|
|
20
20
|
export declare function createRedemptionSDK(apiClient: PersApiClient): {
|
|
21
|
-
getActiveRedemptions: () => Promise<import("@explorins/pers-shared
|
|
22
|
-
getRedemptionTypes: () => Promise<import("@explorins/pers-shared
|
|
23
|
-
redeemRedemption: (redemptionId: string) => Promise<import("@explorins/pers-shared
|
|
24
|
-
getUserRedeems: () => Promise<import("@explorins/pers-shared
|
|
25
|
-
getRedemptionsAsAdmin: (active?: boolean) => Promise<import("@explorins/pers-shared
|
|
26
|
-
createRedemption: (redemption: RedemptionCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
27
|
-
updateRedemption: (id: string, redemptionCreateRequest: RedemptionCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
28
|
-
toggleRedemptionActive: (redemptionId: string) => Promise<import("@explorins/pers-shared
|
|
29
|
-
createRedemptionTokenUnit: (redemptionId: string, redemptionTokenUnit: TokenUnitCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
30
|
-
deleteRedemptionTokenUnit: (redemptionId: string, redemptionTokenUnitId: string) => Promise<import("@explorins/pers-shared
|
|
21
|
+
getActiveRedemptions: () => Promise<import("@explorins/pers-shared").RedemptionDTO[]>;
|
|
22
|
+
getRedemptionTypes: () => Promise<import("@explorins/pers-shared").RedemptionTypeDTO[]>;
|
|
23
|
+
redeemRedemption: (redemptionId: string) => Promise<import("@explorins/pers-shared").RedemptionRedeemRequestResponseDTO>;
|
|
24
|
+
getUserRedeems: () => Promise<import("@explorins/pers-shared").RedemptionRedeemDTO[]>;
|
|
25
|
+
getRedemptionsAsAdmin: (active?: boolean) => Promise<import("@explorins/pers-shared").RedemptionDTO[]>;
|
|
26
|
+
createRedemption: (redemption: RedemptionCreateRequestDTO) => Promise<import("@explorins/pers-shared").RedemptionDTO>;
|
|
27
|
+
updateRedemption: (id: string, redemptionCreateRequest: RedemptionCreateRequestDTO) => Promise<import("@explorins/pers-shared").RedemptionDTO>;
|
|
28
|
+
toggleRedemptionActive: (redemptionId: string) => Promise<import("@explorins/pers-shared").RedemptionDTO>;
|
|
29
|
+
createRedemptionTokenUnit: (redemptionId: string, redemptionTokenUnit: TokenUnitCreateRequestDTO) => Promise<import("@explorins/pers-shared").RedemptionDTO>;
|
|
30
|
+
deleteRedemptionTokenUnit: (redemptionId: string, redemptionTokenUnitId: string) => Promise<import("@explorins/pers-shared").RedemptionDTO>;
|
|
31
31
|
api: RedemptionApi;
|
|
32
32
|
service: RedemptionService;
|
|
33
33
|
};
|
package/dist/tenant/index.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ import { TenantPublicDTO, AdminCreateRequestDTO } from './models';
|
|
|
22
22
|
export declare function createTenantSDK(apiClient: PersApiClient): {
|
|
23
23
|
getRemoteTenant: () => Promise<TenantPublicDTO>;
|
|
24
24
|
getRemoteLoginToken: () => Promise<string>;
|
|
25
|
-
getRemoteClientConfig: () => Promise<import("@explorins/pers-shared
|
|
25
|
+
getRemoteClientConfig: () => Promise<import("@explorins/pers-shared").TenantClientConfigDTO>;
|
|
26
26
|
updateRemoteTenant: (tenantData: TenantPublicDTO) => Promise<TenantPublicDTO>;
|
|
27
|
-
getAdmins: () => Promise<import("@explorins/pers-shared
|
|
28
|
-
postAdmin: (adminData: AdminCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
29
|
-
putAdmin: (adminId: string, adminData: AdminCreateRequestDTO) => Promise<import("@explorins/pers-shared
|
|
27
|
+
getAdmins: () => Promise<import("@explorins/pers-shared").AdminDTO[]>;
|
|
28
|
+
postAdmin: (adminData: AdminCreateRequestDTO) => Promise<import("@explorins/pers-shared").AdminDTO>;
|
|
29
|
+
putAdmin: (adminId: string, adminData: AdminCreateRequestDTO) => Promise<import("@explorins/pers-shared").AdminDTO>;
|
|
30
30
|
api: TenantApi;
|
|
31
31
|
service: TenantService;
|
|
32
32
|
};
|
|
@@ -21,10 +21,10 @@ import { TransactionPaginationParams } from './models';
|
|
|
21
21
|
* @returns Transaction SDK with flattened structure for better DX
|
|
22
22
|
*/
|
|
23
23
|
export declare function createTransactionSDK(apiClient: PersApiClient): {
|
|
24
|
-
getTransactionById: (transactionId: string) => Promise<import("@explorins/pers-shared
|
|
25
|
-
createTransaction: (request: TransactionRequestDTO) => Promise<import("@explorins/pers-shared
|
|
26
|
-
getUserTransactionHistory: (type: string) => Promise<import("@explorins/pers-shared
|
|
27
|
-
getTenantTransactions: () => Promise<import("@explorins/pers-shared
|
|
24
|
+
getTransactionById: (transactionId: string) => Promise<import("@explorins/pers-shared").TransactionDTO>;
|
|
25
|
+
createTransaction: (request: TransactionRequestDTO) => Promise<import("@explorins/pers-shared").TransactionRequestResponseDTO>;
|
|
26
|
+
getUserTransactionHistory: (type: string) => Promise<import("@explorins/pers-shared").TransactionDTO[]>;
|
|
27
|
+
getTenantTransactions: () => Promise<import("@explorins/pers-shared").TransactionDTO[]>;
|
|
28
28
|
getPaginatedTransactions: (params: TransactionPaginationParams) => Promise<import("./models").TransactionPaginationResponse>;
|
|
29
29
|
exportTransactionsCSV: () => Promise<Blob>;
|
|
30
30
|
api: TransactionApi;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Web3InfrastructureApi, IPFSInfrastructureApi } from '../infrastructure';
|
|
2
2
|
import { TokenBalance, TokenCollection, TokenMetadata } from '../domain/models';
|
|
3
|
-
import
|
|
3
|
+
import { Interface } from 'ethers';
|
|
4
4
|
export interface TokenBalanceRequest {
|
|
5
5
|
readonly accountAddress?: string;
|
|
6
6
|
readonly contractAddress: string;
|
|
7
|
-
readonly abi:
|
|
7
|
+
readonly abi: Interface;
|
|
8
8
|
readonly tokenId?: string;
|
|
9
9
|
readonly chainId: number;
|
|
10
10
|
readonly maxTokens?: number;
|
|
@@ -12,7 +12,7 @@ export interface TokenBalanceRequest {
|
|
|
12
12
|
export interface TokenCollectionRequest {
|
|
13
13
|
readonly accountAddress?: string;
|
|
14
14
|
readonly contractAddress: string;
|
|
15
|
-
readonly abi:
|
|
15
|
+
readonly abi: Interface;
|
|
16
16
|
readonly tokenIds?: string[];
|
|
17
17
|
readonly chainId: number;
|
|
18
18
|
readonly maxTokens?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web3-application.service.d.ts","sourceRoot":"","sources":["../../../src/web3/application/web3-application.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"web3-application.service.d.ts","sourceRoot":"","sources":["../../../src/web3/application/web3-application.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAInC,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAGD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAGD,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAErF;;;;GAIG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAwB;IAC9D,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAwB;gBAG5D,OAAO,EAAE,qBAAqB,EAC9B,OAAO,EAAE,qBAAqB;IAYhC;;OAEG;IACG,uBAAuB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC;IAoBlF;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAWnF;;OAEG;IACG,kBAAkB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC;IAYnF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAyB7B;IAEF;;OAEG;IACG,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAInE;;OAEG;IACG,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;CAiBhG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/web3/domain/models/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/web3/domain/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD;;GAEG;AAGH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IACpD,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC;AAGD,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,eAAe,CAAC,QAAQ,EAAE;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;QAC3C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,GAAG,aAAa,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,QAAQ,EAAE,aAAa,GAAG;QACtC,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;QAC3C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH;AAGD,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAC7C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Interface } from 'ethers';
|
|
2
2
|
/**
|
|
3
3
|
* ContractDomainService - Clean contract analysis without external dependencies
|
|
4
4
|
*/
|
|
5
5
|
export declare class ContractDomainService {
|
|
6
6
|
constructor();
|
|
7
|
-
analyzeContract(abi:
|
|
7
|
+
analyzeContract(abi: Interface): {
|
|
8
8
|
hasEnumeration: boolean;
|
|
9
9
|
hasOwnerOf: boolean;
|
|
10
10
|
hasBalanceOf: boolean;
|
|
@@ -14,7 +14,5 @@ export declare class ContractDomainService {
|
|
|
14
14
|
isERC721: boolean;
|
|
15
15
|
isERC1155: boolean;
|
|
16
16
|
};
|
|
17
|
-
supportsEnumeration(abi: ContractAbi): boolean;
|
|
18
|
-
supportsMethod(abi: ContractAbi, methodName: string): boolean;
|
|
19
17
|
}
|
|
20
18
|
//# sourceMappingURL=contract-domain.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-domain.service.d.ts","sourceRoot":"","sources":["../../../../src/web3/domain/services/contract-domain.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contract-domain.service.d.ts","sourceRoot":"","sources":["../../../../src/web3/domain/services/contract-domain.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC;;GAEG;AACH,qBAAa,qBAAqB;;IAGhC,eAAe,CAAC,GAAG,EAAE,SAAS,GAAG;QAC/B,cAAc,EAAE,OAAO,CAAC;QACxB,UAAU,EAAE,OAAO,CAAC;QACpB,YAAY,EAAE,OAAO,CAAC;QACtB,WAAW,EAAE,OAAO,CAAC;QACrB,WAAW,EAAE,OAAO,CAAC;QACrB,UAAU,EAAE,OAAO,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;QAClB,SAAS,EAAE,OAAO,CAAC;KACpB;CA2BF"}
|