n8n-nodes-polymesh 1.0.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/LICENSE +46 -0
- package/README.md +495 -0
- package/dist/credentials/CddProvider.credentials.d.ts +8 -0
- package/dist/credentials/CddProvider.credentials.d.ts.map +1 -0
- package/dist/credentials/CddProvider.credentials.js +109 -0
- package/dist/credentials/CddProvider.credentials.js.map +1 -0
- package/dist/credentials/PolymeshMiddleware.credentials.d.ts +9 -0
- package/dist/credentials/PolymeshMiddleware.credentials.d.ts.map +1 -0
- package/dist/credentials/PolymeshMiddleware.credentials.js +81 -0
- package/dist/credentials/PolymeshMiddleware.credentials.js.map +1 -0
- package/dist/credentials/PolymeshNetwork.credentials.d.ts +10 -0
- package/dist/credentials/PolymeshNetwork.credentials.d.ts.map +1 -0
- package/dist/credentials/PolymeshNetwork.credentials.js +143 -0
- package/dist/credentials/PolymeshNetwork.credentials.js.map +1 -0
- package/dist/nodes/Polymesh/Polymesh.node.d.ts +13 -0
- package/dist/nodes/Polymesh/Polymesh.node.d.ts.map +1 -0
- package/dist/nodes/Polymesh/Polymesh.node.js +308 -0
- package/dist/nodes/Polymesh/Polymesh.node.js.map +1 -0
- package/dist/nodes/Polymesh/PolymeshTrigger.node.d.ts +12 -0
- package/dist/nodes/Polymesh/PolymeshTrigger.node.d.ts.map +1 -0
- package/dist/nodes/Polymesh/PolymeshTrigger.node.js +441 -0
- package/dist/nodes/Polymesh/PolymeshTrigger.node.js.map +1 -0
- package/dist/nodes/Polymesh/actions/account/account.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/account/account.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/account/account.description.js +221 -0
- package/dist/nodes/Polymesh/actions/account/account.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/account/account.operations.d.ts +3 -0
- package/dist/nodes/Polymesh/actions/account/account.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/account/account.operations.js +308 -0
- package/dist/nodes/Polymesh/actions/account/account.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/asset/asset.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/asset/asset.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/asset/asset.description.js +292 -0
- package/dist/nodes/Polymesh/actions/asset/asset.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/asset/asset.operations.d.ts +3 -0
- package/dist/nodes/Polymesh/actions/asset/asset.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/asset/asset.operations.js +387 -0
- package/dist/nodes/Polymesh/actions/asset/asset.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/authorizations/authorizations.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/authorizations/authorizations.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/authorizations/authorizations.description.js +60 -0
- package/dist/nodes/Polymesh/actions/authorizations/authorizations.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/authorizations/authorizations.operations.d.ts +13 -0
- package/dist/nodes/Polymesh/actions/authorizations/authorizations.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/authorizations/authorizations.operations.js +176 -0
- package/dist/nodes/Polymesh/actions/authorizations/authorizations.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/checkpoint/checkpoint.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/checkpoint/checkpoint.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/checkpoint/checkpoint.description.js +104 -0
- package/dist/nodes/Polymesh/actions/checkpoint/checkpoint.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/checkpoint/checkpoint.operations.d.ts +15 -0
- package/dist/nodes/Polymesh/actions/checkpoint/checkpoint.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/checkpoint/checkpoint.operations.js +205 -0
- package/dist/nodes/Polymesh/actions/checkpoint/checkpoint.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/claims/claims.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/claims/claims.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/claims/claims.description.js +135 -0
- package/dist/nodes/Polymesh/actions/claims/claims.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/claims/claims.operations.d.ts +3 -0
- package/dist/nodes/Polymesh/actions/claims/claims.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/claims/claims.operations.js +210 -0
- package/dist/nodes/Polymesh/actions/claims/claims.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/compliance/compliance.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/compliance/compliance.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/compliance/compliance.description.js +150 -0
- package/dist/nodes/Polymesh/actions/compliance/compliance.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/compliance/compliance.operations.d.ts +3 -0
- package/dist/nodes/Polymesh/actions/compliance/compliance.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/compliance/compliance.operations.js +149 -0
- package/dist/nodes/Polymesh/actions/compliance/compliance.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/confidentialAssets/confidentialAssets.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/confidentialAssets/confidentialAssets.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/confidentialAssets/confidentialAssets.description.js +303 -0
- package/dist/nodes/Polymesh/actions/confidentialAssets/confidentialAssets.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/confidentialAssets/confidentialAssets.operations.d.ts +16 -0
- package/dist/nodes/Polymesh/actions/confidentialAssets/confidentialAssets.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/confidentialAssets/confidentialAssets.operations.js +310 -0
- package/dist/nodes/Polymesh/actions/confidentialAssets/confidentialAssets.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/corporateActions/corporateActions.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/corporateActions/corporateActions.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/corporateActions/corporateActions.description.js +175 -0
- package/dist/nodes/Polymesh/actions/corporateActions/corporateActions.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/corporateActions/corporateActions.operations.d.ts +17 -0
- package/dist/nodes/Polymesh/actions/corporateActions/corporateActions.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/corporateActions/corporateActions.operations.js +295 -0
- package/dist/nodes/Polymesh/actions/corporateActions/corporateActions.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/externalAgents/externalAgents.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/externalAgents/externalAgents.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/externalAgents/externalAgents.description.js +109 -0
- package/dist/nodes/Polymesh/actions/externalAgents/externalAgents.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/externalAgents/externalAgents.operations.d.ts +13 -0
- package/dist/nodes/Polymesh/actions/externalAgents/externalAgents.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/externalAgents/externalAgents.operations.js +210 -0
- package/dist/nodes/Polymesh/actions/externalAgents/externalAgents.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/governance/governance.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/governance/governance.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/governance/governance.description.js +63 -0
- package/dist/nodes/Polymesh/actions/governance/governance.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/governance/governance.operations.d.ts +14 -0
- package/dist/nodes/Polymesh/actions/governance/governance.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/governance/governance.operations.js +129 -0
- package/dist/nodes/Polymesh/actions/governance/governance.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/identity/identity.description.d.ts +9 -0
- package/dist/nodes/Polymesh/actions/identity/identity.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/identity/identity.description.js +315 -0
- package/dist/nodes/Polymesh/actions/identity/identity.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/identity/identity.operations.d.ts +13 -0
- package/dist/nodes/Polymesh/actions/identity/identity.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/identity/identity.operations.js +454 -0
- package/dist/nodes/Polymesh/actions/identity/identity.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/multiSig/multiSig.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/multiSig/multiSig.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/multiSig/multiSig.description.js +83 -0
- package/dist/nodes/Polymesh/actions/multiSig/multiSig.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/multiSig/multiSig.operations.d.ts +14 -0
- package/dist/nodes/Polymesh/actions/multiSig/multiSig.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/multiSig/multiSig.operations.js +215 -0
- package/dist/nodes/Polymesh/actions/multiSig/multiSig.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/nft/nft.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/nft/nft.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/nft/nft.description.js +131 -0
- package/dist/nodes/Polymesh/actions/nft/nft.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/nft/nft.operations.d.ts +14 -0
- package/dist/nodes/Polymesh/actions/nft/nft.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/nft/nft.operations.js +233 -0
- package/dist/nodes/Polymesh/actions/nft/nft.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/portfolio/portfolio.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/portfolio/portfolio.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/portfolio/portfolio.description.js +261 -0
- package/dist/nodes/Polymesh/actions/portfolio/portfolio.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/portfolio/portfolio.operations.d.ts +3 -0
- package/dist/nodes/Polymesh/actions/portfolio/portfolio.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/portfolio/portfolio.operations.js +203 -0
- package/dist/nodes/Polymesh/actions/portfolio/portfolio.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/settlement/settlement.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/settlement/settlement.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/settlement/settlement.description.js +104 -0
- package/dist/nodes/Polymesh/actions/settlement/settlement.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/settlement/settlement.operations.d.ts +3 -0
- package/dist/nodes/Polymesh/actions/settlement/settlement.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/settlement/settlement.operations.js +229 -0
- package/dist/nodes/Polymesh/actions/settlement/settlement.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/statistics/statistics.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/statistics/statistics.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/statistics/statistics.description.js +77 -0
- package/dist/nodes/Polymesh/actions/statistics/statistics.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/statistics/statistics.operations.d.ts +15 -0
- package/dist/nodes/Polymesh/actions/statistics/statistics.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/statistics/statistics.operations.js +235 -0
- package/dist/nodes/Polymesh/actions/statistics/statistics.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/sto/sto.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/sto/sto.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/sto/sto.description.js +161 -0
- package/dist/nodes/Polymesh/actions/sto/sto.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/sto/sto.operations.d.ts +12 -0
- package/dist/nodes/Polymesh/actions/sto/sto.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/sto/sto.operations.js +280 -0
- package/dist/nodes/Polymesh/actions/sto/sto.operations.js.map +1 -0
- package/dist/nodes/Polymesh/actions/utility/utility.description.d.ts +4 -0
- package/dist/nodes/Polymesh/actions/utility/utility.description.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/utility/utility.description.js +130 -0
- package/dist/nodes/Polymesh/actions/utility/utility.description.js.map +1 -0
- package/dist/nodes/Polymesh/actions/utility/utility.operations.d.ts +15 -0
- package/dist/nodes/Polymesh/actions/utility/utility.operations.d.ts.map +1 -0
- package/dist/nodes/Polymesh/actions/utility/utility.operations.js +188 -0
- package/dist/nodes/Polymesh/actions/utility/utility.operations.js.map +1 -0
- package/dist/nodes/Polymesh/constants/assetIdentifiers.d.ts +83 -0
- package/dist/nodes/Polymesh/constants/assetIdentifiers.d.ts.map +1 -0
- package/dist/nodes/Polymesh/constants/assetIdentifiers.js +131 -0
- package/dist/nodes/Polymesh/constants/assetIdentifiers.js.map +1 -0
- package/dist/nodes/Polymesh/constants/claimTypes.d.ts +159 -0
- package/dist/nodes/Polymesh/constants/claimTypes.d.ts.map +1 -0
- package/dist/nodes/Polymesh/constants/claimTypes.js +118 -0
- package/dist/nodes/Polymesh/constants/claimTypes.js.map +1 -0
- package/dist/nodes/Polymesh/constants/complianceTypes.d.ts +145 -0
- package/dist/nodes/Polymesh/constants/complianceTypes.d.ts.map +1 -0
- package/dist/nodes/Polymesh/constants/complianceTypes.js +116 -0
- package/dist/nodes/Polymesh/constants/complianceTypes.js.map +1 -0
- package/dist/nodes/Polymesh/constants/index.d.ts +11 -0
- package/dist/nodes/Polymesh/constants/index.d.ts.map +1 -0
- package/dist/nodes/Polymesh/constants/index.js +27 -0
- package/dist/nodes/Polymesh/constants/index.js.map +1 -0
- package/dist/nodes/Polymesh/constants/networks.d.ts +62 -0
- package/dist/nodes/Polymesh/constants/networks.d.ts.map +1 -0
- package/dist/nodes/Polymesh/constants/networks.js +67 -0
- package/dist/nodes/Polymesh/constants/networks.js.map +1 -0
- package/dist/nodes/Polymesh/constants/permissionTypes.d.ts +93 -0
- package/dist/nodes/Polymesh/constants/permissionTypes.d.ts.map +1 -0
- package/dist/nodes/Polymesh/constants/permissionTypes.js +115 -0
- package/dist/nodes/Polymesh/constants/permissionTypes.js.map +1 -0
- package/dist/nodes/Polymesh/polymesh.svg +14 -0
- package/dist/nodes/Polymesh/transport/cddProviderClient.d.ts +94 -0
- package/dist/nodes/Polymesh/transport/cddProviderClient.d.ts.map +1 -0
- package/dist/nodes/Polymesh/transport/cddProviderClient.js +166 -0
- package/dist/nodes/Polymesh/transport/cddProviderClient.js.map +1 -0
- package/dist/nodes/Polymesh/transport/index.d.ts +10 -0
- package/dist/nodes/Polymesh/transport/index.d.ts.map +1 -0
- package/dist/nodes/Polymesh/transport/index.js +26 -0
- package/dist/nodes/Polymesh/transport/index.js.map +1 -0
- package/dist/nodes/Polymesh/transport/middlewareClient.d.ts +63 -0
- package/dist/nodes/Polymesh/transport/middlewareClient.d.ts.map +1 -0
- package/dist/nodes/Polymesh/transport/middlewareClient.js +311 -0
- package/dist/nodes/Polymesh/transport/middlewareClient.js.map +1 -0
- package/dist/nodes/Polymesh/transport/polymeshClient.d.ts +68 -0
- package/dist/nodes/Polymesh/transport/polymeshClient.d.ts.map +1 -0
- package/dist/nodes/Polymesh/transport/polymeshClient.js +223 -0
- package/dist/nodes/Polymesh/transport/polymeshClient.js.map +1 -0
- package/dist/nodes/Polymesh/transport/subscriptionClient.d.ts +124 -0
- package/dist/nodes/Polymesh/transport/subscriptionClient.d.ts.map +1 -0
- package/dist/nodes/Polymesh/transport/subscriptionClient.js +310 -0
- package/dist/nodes/Polymesh/transport/subscriptionClient.js.map +1 -0
- package/dist/nodes/Polymesh/utils/claimsUtils.d.ts +99 -0
- package/dist/nodes/Polymesh/utils/claimsUtils.d.ts.map +1 -0
- package/dist/nodes/Polymesh/utils/claimsUtils.js +192 -0
- package/dist/nodes/Polymesh/utils/claimsUtils.js.map +1 -0
- package/dist/nodes/Polymesh/utils/complianceUtils.d.ts +65 -0
- package/dist/nodes/Polymesh/utils/complianceUtils.d.ts.map +1 -0
- package/dist/nodes/Polymesh/utils/complianceUtils.js +235 -0
- package/dist/nodes/Polymesh/utils/complianceUtils.js.map +1 -0
- package/dist/nodes/Polymesh/utils/identityUtils.d.ts +76 -0
- package/dist/nodes/Polymesh/utils/identityUtils.d.ts.map +1 -0
- package/dist/nodes/Polymesh/utils/identityUtils.js +151 -0
- package/dist/nodes/Polymesh/utils/identityUtils.js.map +1 -0
- package/dist/nodes/Polymesh/utils/index.d.ts +11 -0
- package/dist/nodes/Polymesh/utils/index.d.ts.map +1 -0
- package/dist/nodes/Polymesh/utils/index.js +27 -0
- package/dist/nodes/Polymesh/utils/index.js.map +1 -0
- package/dist/nodes/Polymesh/utils/settlementUtils.d.ts +116 -0
- package/dist/nodes/Polymesh/utils/settlementUtils.d.ts.map +1 -0
- package/dist/nodes/Polymesh/utils/settlementUtils.js +227 -0
- package/dist/nodes/Polymesh/utils/settlementUtils.js.map +1 -0
- package/dist/nodes/Polymesh/utils/unitConverter.d.ts +85 -0
- package/dist/nodes/Polymesh/utils/unitConverter.d.ts.map +1 -0
- package/dist/nodes/Polymesh/utils/unitConverter.js +224 -0
- package/dist/nodes/Polymesh/utils/unitConverter.js.map +1 -0
- package/package.json +88 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
License text copyright (c) 2017 MariaDB Corporation Ab.
|
|
4
|
+
|
|
5
|
+
Licensor:
|
|
6
|
+
Velocity BPA, LLC
|
|
7
|
+
https://velobpa.com
|
|
8
|
+
|
|
9
|
+
Licensed Work:
|
|
10
|
+
This repository and all source code, documentation, and associated artifacts
|
|
11
|
+
contained herein, including all n8n community nodes published by Velocity BPA.
|
|
12
|
+
|
|
13
|
+
Additional Use Grant:
|
|
14
|
+
You may use, modify, and run the Licensed Work free of charge for:
|
|
15
|
+
- Personal use
|
|
16
|
+
- Educational use
|
|
17
|
+
- Research use
|
|
18
|
+
- Internal business use, provided such use does not involve resale,
|
|
19
|
+
redistribution, or offering the Licensed Work as part of a commercial
|
|
20
|
+
product or service.
|
|
21
|
+
|
|
22
|
+
Commercial Use Restriction:
|
|
23
|
+
Commercial Use of the Licensed Work is prohibited without a valid
|
|
24
|
+
Commercial License issued by the Licensor.
|
|
25
|
+
|
|
26
|
+
Commercial Use includes, but is not limited to:
|
|
27
|
+
- Use of the Licensed Work within any Software-as-a-Service (SaaS),
|
|
28
|
+
Platform-as-a-Service (PaaS), or hosted application that is sold,
|
|
29
|
+
licensed, or monetized in any form
|
|
30
|
+
- Offering the Licensed Work as part of a managed services engagement
|
|
31
|
+
- Bundling or redistributing the Licensed Work with a paid product
|
|
32
|
+
- Reselling, sublicensing, or white-labeling the Licensed Work
|
|
33
|
+
- Embedding the Licensed Work into any commercial automation platform,
|
|
34
|
+
integration product, or solution offering
|
|
35
|
+
|
|
36
|
+
Change Date:
|
|
37
|
+
January 1, 2030
|
|
38
|
+
|
|
39
|
+
Change License:
|
|
40
|
+
Apache License, Version 2.0
|
|
41
|
+
|
|
42
|
+
For commercial licensing inquiries:
|
|
43
|
+
licensing@velobpa.com
|
|
44
|
+
|
|
45
|
+
Business Source License 1.1 full text:
|
|
46
|
+
https://mariadb.com/bsl11/
|
package/README.md
ADDED
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
# n8n-nodes-polymesh
|
|
2
|
+
|
|
3
|
+
> [Velocity BPA Licensing Notice]
|
|
4
|
+
>
|
|
5
|
+
> This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).
|
|
6
|
+
>
|
|
7
|
+
> Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.
|
|
8
|
+
>
|
|
9
|
+
> For licensing information, visit https://velobpa.com/licensing or contact licensing@velobpa.com.
|
|
10
|
+
|
|
11
|
+
A comprehensive n8n community node package for interacting with the **Polymesh blockchain** - an institutional-grade, permissioned blockchain purpose-built for regulated assets and security tokens.
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- **18 Resource Types** covering all Polymesh functionality
|
|
21
|
+
- **150+ Operations** for complete blockchain interaction
|
|
22
|
+
- **Real-time Triggers** for event-driven workflows
|
|
23
|
+
- **Full TypeScript Support** with proper type definitions
|
|
24
|
+
- **Comprehensive Error Handling** with descriptive messages
|
|
25
|
+
- **Identity Management** with CDD (Customer Due Diligence) support
|
|
26
|
+
- **Compliance Framework** for regulated asset transfers
|
|
27
|
+
- **Settlement Engine** with T+0 atomic settlement
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
### Community Nodes (Recommended)
|
|
32
|
+
|
|
33
|
+
1. Open n8n
|
|
34
|
+
2. Go to **Settings** → **Community Nodes**
|
|
35
|
+
3. Click **Install**
|
|
36
|
+
4. Enter: `n8n-nodes-polymesh`
|
|
37
|
+
5. Click **Install**
|
|
38
|
+
|
|
39
|
+
### Manual Installation
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Navigate to your n8n installation directory
|
|
43
|
+
cd ~/.n8n/custom
|
|
44
|
+
|
|
45
|
+
# Install the package
|
|
46
|
+
npm install n8n-nodes-polymesh
|
|
47
|
+
|
|
48
|
+
# Restart n8n
|
|
49
|
+
n8n start
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Development Installation
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# 1. Extract the zip file
|
|
56
|
+
unzip n8n-nodes-polymesh.zip
|
|
57
|
+
cd n8n-nodes-polymesh
|
|
58
|
+
|
|
59
|
+
# 2. Install dependencies
|
|
60
|
+
npm install
|
|
61
|
+
|
|
62
|
+
# 3. Build the project
|
|
63
|
+
npm run build
|
|
64
|
+
|
|
65
|
+
# 4. Create symlink to n8n custom nodes directory
|
|
66
|
+
# For Linux/macOS:
|
|
67
|
+
mkdir -p ~/.n8n/custom
|
|
68
|
+
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-polymesh
|
|
69
|
+
|
|
70
|
+
# For Windows (run as Administrator):
|
|
71
|
+
# mklink /D %USERPROFILE%\.n8n\custom\n8n-nodes-polymesh %CD%
|
|
72
|
+
|
|
73
|
+
# 5. Restart n8n
|
|
74
|
+
n8n start
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Credentials Setup
|
|
78
|
+
|
|
79
|
+
### Polymesh Network Credentials
|
|
80
|
+
|
|
81
|
+
| Field | Description |
|
|
82
|
+
|-------|-------------|
|
|
83
|
+
| Network | Mainnet, Testnet, Staging, Local, or Custom |
|
|
84
|
+
| WebSocket URL | WSS endpoint (auto-filled for standard networks) |
|
|
85
|
+
| Seed Phrase | 12-word mnemonic for signing transactions |
|
|
86
|
+
| Key Type | sr25519 (default) or ed25519 |
|
|
87
|
+
| Derivation Path | Optional HD derivation path |
|
|
88
|
+
| Middleware URL | Optional SubQuery GraphQL endpoint |
|
|
89
|
+
| Middleware API Key | Optional API key for middleware |
|
|
90
|
+
|
|
91
|
+
### Polymesh Middleware Credentials (Optional)
|
|
92
|
+
|
|
93
|
+
| Field | Description |
|
|
94
|
+
|-------|-------------|
|
|
95
|
+
| Middleware URL | GraphQL endpoint URL |
|
|
96
|
+
| API Key | Authentication key (if required) |
|
|
97
|
+
|
|
98
|
+
### CDD Provider Credentials (Optional)
|
|
99
|
+
|
|
100
|
+
| Field | Description |
|
|
101
|
+
|-------|-------------|
|
|
102
|
+
| Provider ID | CDD provider identifier |
|
|
103
|
+
| API Endpoint | Provider API URL |
|
|
104
|
+
| API Key | Authentication credentials |
|
|
105
|
+
|
|
106
|
+
## Resources & Operations
|
|
107
|
+
|
|
108
|
+
### Identity (CDD)
|
|
109
|
+
Manage Polymesh identities and Customer Due Diligence:
|
|
110
|
+
- Get Identity / Get My Identity
|
|
111
|
+
- Get Identity Claims / Assets / Portfolios / Venues
|
|
112
|
+
- Add/Remove Secondary Keys
|
|
113
|
+
- Freeze/Unfreeze Secondary Keys
|
|
114
|
+
- Rotate Primary Key
|
|
115
|
+
- Get Trusted Claim Issuers
|
|
116
|
+
|
|
117
|
+
### Account
|
|
118
|
+
POLYX balance and account management:
|
|
119
|
+
- Get Account Balance
|
|
120
|
+
- Get Account Identity
|
|
121
|
+
- Transfer POLYX
|
|
122
|
+
- Get Transaction History
|
|
123
|
+
- Accept/Reject Authorizations
|
|
124
|
+
- Validate Address
|
|
125
|
+
|
|
126
|
+
### Asset (Security Tokens)
|
|
127
|
+
Create and manage security tokens:
|
|
128
|
+
- Create Asset
|
|
129
|
+
- Issue/Redeem Tokens
|
|
130
|
+
- Get Asset Details / Documents / Compliance / Holders
|
|
131
|
+
- Freeze/Unfreeze Asset
|
|
132
|
+
- Add/Remove Documents
|
|
133
|
+
- Controller Transfer
|
|
134
|
+
- Manage Metadata & Identifiers
|
|
135
|
+
|
|
136
|
+
### Compliance
|
|
137
|
+
Configure transfer compliance rules:
|
|
138
|
+
- Get/Add/Remove Compliance Requirements
|
|
139
|
+
- Pause/Resume Compliance
|
|
140
|
+
- Manage Trusted Claim Issuers
|
|
141
|
+
- Validate Transfer Compliance
|
|
142
|
+
|
|
143
|
+
### Claims
|
|
144
|
+
Manage identity claims and attestations:
|
|
145
|
+
- Get Claims (by type: CDD, Accredited, Jurisdiction, etc.)
|
|
146
|
+
- Add/Revoke Claims
|
|
147
|
+
- Get Claim Scopes
|
|
148
|
+
- Refresh CDD Claim
|
|
149
|
+
|
|
150
|
+
### Settlement
|
|
151
|
+
Create and execute settlement instructions:
|
|
152
|
+
- Create Venue
|
|
153
|
+
- Add Instruction
|
|
154
|
+
- Affirm/Reject/Execute Instructions
|
|
155
|
+
- Get Pending/Affirmed Instructions
|
|
156
|
+
- Withdraw Affirmation
|
|
157
|
+
|
|
158
|
+
### Portfolio
|
|
159
|
+
Manage asset portfolios:
|
|
160
|
+
- Create/Delete/Rename Portfolio
|
|
161
|
+
- Get Portfolio Assets
|
|
162
|
+
- Move Assets Between Portfolios
|
|
163
|
+
- Manage Custody
|
|
164
|
+
|
|
165
|
+
### Corporate Actions
|
|
166
|
+
Dividends, ballots, and distributions:
|
|
167
|
+
- Create Dividend Distribution
|
|
168
|
+
- Push/Claim/Reclaim Dividends
|
|
169
|
+
- Create Checkpoints
|
|
170
|
+
- Get Distribution Targets
|
|
171
|
+
|
|
172
|
+
### STO (Security Token Offering)
|
|
173
|
+
Manage fundraising:
|
|
174
|
+
- Create Fundraiser
|
|
175
|
+
- Modify Fundraiser Times
|
|
176
|
+
- Freeze/Unfreeze/Close Fundraiser
|
|
177
|
+
- Invest in Fundraiser
|
|
178
|
+
|
|
179
|
+
### Statistics
|
|
180
|
+
Asset statistics and transfer restrictions:
|
|
181
|
+
- Get/Set Transfer Restrictions
|
|
182
|
+
- Get Investor Count
|
|
183
|
+
- Manage Exempted Entities
|
|
184
|
+
|
|
185
|
+
### Confidential Assets
|
|
186
|
+
Privacy-preserving transfers:
|
|
187
|
+
- Create Confidential Asset/Account
|
|
188
|
+
- Get Confidential Balance
|
|
189
|
+
- Create/Affirm Confidential Transaction
|
|
190
|
+
|
|
191
|
+
### Multi-Sig
|
|
192
|
+
Multi-signature accounts:
|
|
193
|
+
- Create Multi-Sig Account
|
|
194
|
+
- Get/Approve/Reject Proposals
|
|
195
|
+
- Manage Signers
|
|
196
|
+
|
|
197
|
+
### Authorizations
|
|
198
|
+
Pending authorization management:
|
|
199
|
+
- Get Pending/Sent Authorizations
|
|
200
|
+
- Accept/Reject Authorization
|
|
201
|
+
|
|
202
|
+
### Governance (PIPs)
|
|
203
|
+
Polymesh Improvement Proposals:
|
|
204
|
+
- Get Active PIPs
|
|
205
|
+
- Get PIP Details
|
|
206
|
+
- Get Committee Members
|
|
207
|
+
|
|
208
|
+
### Checkpoint
|
|
209
|
+
Balance snapshots:
|
|
210
|
+
- Create Checkpoint
|
|
211
|
+
- Create/Remove Schedules
|
|
212
|
+
- Get Holders/Balances at Checkpoint
|
|
213
|
+
|
|
214
|
+
### External Agents
|
|
215
|
+
Delegated asset permissions:
|
|
216
|
+
- Add/Remove External Agents
|
|
217
|
+
- Create Custom Permission Groups
|
|
218
|
+
|
|
219
|
+
### NFT
|
|
220
|
+
Non-fungible security tokens:
|
|
221
|
+
- Create NFT Collection
|
|
222
|
+
- Issue/Redeem NFT
|
|
223
|
+
- Get NFT Details
|
|
224
|
+
|
|
225
|
+
### Utility
|
|
226
|
+
Helper functions:
|
|
227
|
+
- Convert Units (POLYX has 6 decimals)
|
|
228
|
+
- Encode/Decode Address (SS58)
|
|
229
|
+
- Validate DID/Address
|
|
230
|
+
- Get Network Info
|
|
231
|
+
|
|
232
|
+
## Trigger Node
|
|
233
|
+
|
|
234
|
+
The **Polymesh Trigger** node enables real-time event-driven workflows:
|
|
235
|
+
|
|
236
|
+
### Event Categories
|
|
237
|
+
- **Identity Events**: DID created, secondary key added/removed
|
|
238
|
+
- **Asset Events**: Asset created, issued, transferred, frozen
|
|
239
|
+
- **Settlement Events**: Instruction created, affirmed, executed
|
|
240
|
+
- **Compliance Events**: Compliance rules changed
|
|
241
|
+
- **Corporate Action Events**: Dividend distributed, checkpoint created
|
|
242
|
+
|
|
243
|
+
### Configuration
|
|
244
|
+
| Field | Description |
|
|
245
|
+
|-------|-------------|
|
|
246
|
+
| Event Category | Category of events to monitor |
|
|
247
|
+
| Event Type | Specific event type within category |
|
|
248
|
+
| Filter Options | Optional filters (ticker, DID, etc.) |
|
|
249
|
+
|
|
250
|
+
## Usage Examples
|
|
251
|
+
|
|
252
|
+
### Example 1: Get Identity Claims
|
|
253
|
+
|
|
254
|
+
```json
|
|
255
|
+
{
|
|
256
|
+
"nodes": [
|
|
257
|
+
{
|
|
258
|
+
"name": "Polymesh",
|
|
259
|
+
"type": "n8n-nodes-polymesh.polymesh",
|
|
260
|
+
"parameters": {
|
|
261
|
+
"resource": "identity",
|
|
262
|
+
"operation": "getIdentityClaims",
|
|
263
|
+
"did": "0x0600000000000000000000000000000000000000000000000000000000000000"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Example 2: Create Security Token
|
|
271
|
+
|
|
272
|
+
```json
|
|
273
|
+
{
|
|
274
|
+
"nodes": [
|
|
275
|
+
{
|
|
276
|
+
"name": "Polymesh",
|
|
277
|
+
"type": "n8n-nodes-polymesh.polymesh",
|
|
278
|
+
"parameters": {
|
|
279
|
+
"resource": "asset",
|
|
280
|
+
"operation": "createAsset",
|
|
281
|
+
"name": "Acme Corp Stock",
|
|
282
|
+
"ticker": "ACME",
|
|
283
|
+
"assetType": "EquityCommon",
|
|
284
|
+
"isDivisible": true,
|
|
285
|
+
"initialSupply": "1000000"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### Example 3: Transfer POLYX
|
|
293
|
+
|
|
294
|
+
```json
|
|
295
|
+
{
|
|
296
|
+
"nodes": [
|
|
297
|
+
{
|
|
298
|
+
"name": "Polymesh",
|
|
299
|
+
"type": "n8n-nodes-polymesh.polymesh",
|
|
300
|
+
"parameters": {
|
|
301
|
+
"resource": "account",
|
|
302
|
+
"operation": "transferPolyx",
|
|
303
|
+
"recipient": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
|
|
304
|
+
"amount": "100",
|
|
305
|
+
"memo": "Payment for services"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Example 4: Create Settlement Instruction
|
|
313
|
+
|
|
314
|
+
```json
|
|
315
|
+
{
|
|
316
|
+
"nodes": [
|
|
317
|
+
{
|
|
318
|
+
"name": "Polymesh",
|
|
319
|
+
"type": "n8n-nodes-polymesh.polymesh",
|
|
320
|
+
"parameters": {
|
|
321
|
+
"resource": "settlement",
|
|
322
|
+
"operation": "addInstruction",
|
|
323
|
+
"venueId": "1",
|
|
324
|
+
"legs": [
|
|
325
|
+
{
|
|
326
|
+
"from": "0x0600...",
|
|
327
|
+
"to": "0x0700...",
|
|
328
|
+
"asset": "ACME",
|
|
329
|
+
"amount": "1000"
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### Example 5: Real-Time Event Trigger
|
|
339
|
+
|
|
340
|
+
```json
|
|
341
|
+
{
|
|
342
|
+
"nodes": [
|
|
343
|
+
{
|
|
344
|
+
"name": "Polymesh Trigger",
|
|
345
|
+
"type": "n8n-nodes-polymesh.polymeshTrigger",
|
|
346
|
+
"parameters": {
|
|
347
|
+
"eventCategory": "settlement",
|
|
348
|
+
"eventType": "InstructionExecuted",
|
|
349
|
+
"filterOptions": {
|
|
350
|
+
"ticker": "ACME"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
## Polymesh Concepts
|
|
359
|
+
|
|
360
|
+
### DID (Decentralized Identifier)
|
|
361
|
+
Every participant on Polymesh has a unique identity represented by a DID (64 hex characters prefixed with 0x). DIDs are the foundation for compliance and governance.
|
|
362
|
+
|
|
363
|
+
### CDD (Customer Due Diligence)
|
|
364
|
+
All Polymesh participants must complete KYC verification through an approved CDD provider before transacting. CDD claims have expiration dates and must be refreshed.
|
|
365
|
+
|
|
366
|
+
### POLYX
|
|
367
|
+
The native token of Polymesh, used for transaction fees. POLYX has 6 decimal places.
|
|
368
|
+
|
|
369
|
+
### Claims
|
|
370
|
+
Verified attestations about identities. Types include:
|
|
371
|
+
- CustomerDueDiligence (CDD)
|
|
372
|
+
- Accredited
|
|
373
|
+
- Affiliate
|
|
374
|
+
- Jurisdiction
|
|
375
|
+
- KYC
|
|
376
|
+
- Custom claims
|
|
377
|
+
|
|
378
|
+
### Compliance
|
|
379
|
+
Protocol-level transfer rules enforced at settlement. Each asset can have compliance requirements based on claims held by sender and receiver.
|
|
380
|
+
|
|
381
|
+
### Settlement
|
|
382
|
+
Polymesh features atomic T+0 settlement with multi-party affirmation. Instructions are created in venues and must be affirmed by all parties before execution.
|
|
383
|
+
|
|
384
|
+
### Portfolios
|
|
385
|
+
Assets within an identity can be segregated into numbered portfolios. Each identity has a default portfolio and can create additional portfolios.
|
|
386
|
+
|
|
387
|
+
### Checkpoints
|
|
388
|
+
Point-in-time balance snapshots for corporate actions. Checkpoints can be created manually or on a schedule.
|
|
389
|
+
|
|
390
|
+
## Networks
|
|
391
|
+
|
|
392
|
+
| Network | WebSocket URL | Chain ID |
|
|
393
|
+
|---------|---------------|----------|
|
|
394
|
+
| Mainnet | wss://mainnet-rpc.polymesh.network | polymesh_mainnet |
|
|
395
|
+
| Testnet | wss://testnet-rpc.polymesh.live | polymesh_testnet |
|
|
396
|
+
| Staging | wss://staging-rpc.polymesh.live | polymesh_staging |
|
|
397
|
+
|
|
398
|
+
## Error Handling
|
|
399
|
+
|
|
400
|
+
The node provides detailed error messages for common issues:
|
|
401
|
+
|
|
402
|
+
- **Invalid DID**: Check that the DID is 64 hex characters prefixed with 0x
|
|
403
|
+
- **No CDD Claim**: The identity lacks a valid Customer Due Diligence claim
|
|
404
|
+
- **Compliance Failure**: Transfer blocked due to compliance rule violation
|
|
405
|
+
- **Insufficient Balance**: Not enough POLYX or tokens for the operation
|
|
406
|
+
- **Authorization Required**: The operation requires pending authorization acceptance
|
|
407
|
+
|
|
408
|
+
## Security Best Practices
|
|
409
|
+
|
|
410
|
+
1. **Never share seed phrases** - Store securely using n8n credentials
|
|
411
|
+
2. **Use testnet for development** - Avoid mainnet until workflows are tested
|
|
412
|
+
3. **Validate DIDs** - Always verify DID format before operations
|
|
413
|
+
4. **Check CDD claims** - Ensure identities have valid CDD before transfers
|
|
414
|
+
5. **Monitor compliance** - Review compliance rules before asset transfers
|
|
415
|
+
|
|
416
|
+
## Development
|
|
417
|
+
|
|
418
|
+
```bash
|
|
419
|
+
# Install dependencies
|
|
420
|
+
npm install
|
|
421
|
+
|
|
422
|
+
# Build the project
|
|
423
|
+
npm run build
|
|
424
|
+
|
|
425
|
+
# Run in development mode
|
|
426
|
+
npm run dev
|
|
427
|
+
|
|
428
|
+
# Run linting
|
|
429
|
+
npm run lint
|
|
430
|
+
|
|
431
|
+
# Fix linting issues
|
|
432
|
+
npm run lint:fix
|
|
433
|
+
|
|
434
|
+
# Run tests
|
|
435
|
+
npm test
|
|
436
|
+
|
|
437
|
+
# Run tests with coverage
|
|
438
|
+
npm run test:coverage
|
|
439
|
+
|
|
440
|
+
# Format code
|
|
441
|
+
npm run format
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
## Author
|
|
445
|
+
|
|
446
|
+
**Velocity BPA**
|
|
447
|
+
- Website: [velobpa.com](https://velobpa.com)
|
|
448
|
+
- GitHub: [Velocity-BPA](https://github.com/Velocity-BPA)
|
|
449
|
+
|
|
450
|
+
## Licensing
|
|
451
|
+
|
|
452
|
+
This n8n community node is licensed under the **Business Source License 1.1**.
|
|
453
|
+
|
|
454
|
+
### Free Use
|
|
455
|
+
Permitted for personal, educational, research, and internal business use.
|
|
456
|
+
|
|
457
|
+
### Commercial Use
|
|
458
|
+
Use of this node within any SaaS, PaaS, hosted platform, managed service,
|
|
459
|
+
or paid automation offering requires a commercial license.
|
|
460
|
+
|
|
461
|
+
For licensing inquiries:
|
|
462
|
+
**licensing@velobpa.com**
|
|
463
|
+
|
|
464
|
+
See [LICENSE](LICENSE), [COMMERCIAL_LICENSE.md](COMMERCIAL_LICENSE.md), and [LICENSING_FAQ.md](LICENSING_FAQ.md) for details.
|
|
465
|
+
|
|
466
|
+
## Contributing
|
|
467
|
+
|
|
468
|
+
Contributions are welcome! Please submit pull requests to the GitHub repository.
|
|
469
|
+
|
|
470
|
+
1. Fork the repository
|
|
471
|
+
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
|
|
472
|
+
3. Commit your changes (`git commit -m 'Add amazing feature'`)
|
|
473
|
+
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
474
|
+
5. Open a Pull Request
|
|
475
|
+
|
|
476
|
+
## Support
|
|
477
|
+
|
|
478
|
+
- [Polymesh Documentation](https://developers.polymesh.network/)
|
|
479
|
+
- [Polymesh SDK](https://github.com/PolymeshAssociation/polymesh-sdk)
|
|
480
|
+
- [n8n Community](https://community.n8n.io/)
|
|
481
|
+
- [GitHub Issues](https://github.com/Velocity-BPA/n8n-nodes-polymesh/issues)
|
|
482
|
+
|
|
483
|
+
## Acknowledgments
|
|
484
|
+
|
|
485
|
+
- [Polymesh Association](https://polymesh.network/) for the blockchain platform
|
|
486
|
+
- [n8n](https://n8n.io/) for the workflow automation platform
|
|
487
|
+
- The Substrate and Polkadot ecosystem
|
|
488
|
+
|
|
489
|
+
## Changelog
|
|
490
|
+
|
|
491
|
+
### 1.0.0
|
|
492
|
+
- Initial release
|
|
493
|
+
- 18 resource types with 150+ operations
|
|
494
|
+
- Real-time event triggers
|
|
495
|
+
- Full TypeScript support
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class CddProvider implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=CddProvider.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CddProvider.credentials.d.ts","sourceRoot":"","sources":["../../credentials/CddProvider.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,WAAY,YAAW,eAAe;IAClD,IAAI,SAAiB;IACrB,WAAW,SAA2B;IACtC,gBAAgB,SAA6C;IAC7D,UAAU,EAAE,eAAe,EAAE,CAgG3B;CACF"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CddProvider = void 0;
|
|
4
|
+
class CddProvider {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'cddProvider';
|
|
7
|
+
this.displayName = 'Polymesh CDD Provider';
|
|
8
|
+
this.documentationUrl = 'https://developers.polymesh.network/cdd';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Provider Type',
|
|
12
|
+
name: 'providerType',
|
|
13
|
+
type: 'options',
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Polymath CDD',
|
|
17
|
+
value: 'polymath',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'Fractal ID',
|
|
21
|
+
value: 'fractal',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'Netki',
|
|
25
|
+
value: 'netki',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Custom Provider',
|
|
29
|
+
value: 'custom',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
default: 'polymath',
|
|
33
|
+
description: 'The CDD (Customer Due Diligence) provider to use',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Provider DID',
|
|
37
|
+
name: 'providerDid',
|
|
38
|
+
type: 'string',
|
|
39
|
+
default: '',
|
|
40
|
+
placeholder: '0x...',
|
|
41
|
+
description: 'The DID (Decentralized Identifier) of the CDD provider',
|
|
42
|
+
required: true,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'API Endpoint',
|
|
46
|
+
name: 'apiEndpoint',
|
|
47
|
+
type: 'string',
|
|
48
|
+
default: '',
|
|
49
|
+
placeholder: 'https://cdd-provider.example.com/api',
|
|
50
|
+
description: 'The API endpoint for the CDD provider',
|
|
51
|
+
required: true,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
displayName: 'API Key',
|
|
55
|
+
name: 'apiKey',
|
|
56
|
+
type: 'string',
|
|
57
|
+
typeOptions: {
|
|
58
|
+
password: true,
|
|
59
|
+
},
|
|
60
|
+
default: '',
|
|
61
|
+
description: 'API key for authentication with the CDD provider',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
displayName: 'API Secret',
|
|
65
|
+
name: 'apiSecret',
|
|
66
|
+
type: 'string',
|
|
67
|
+
typeOptions: {
|
|
68
|
+
password: true,
|
|
69
|
+
},
|
|
70
|
+
default: '',
|
|
71
|
+
description: 'API secret for authentication with the CDD provider',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Client ID',
|
|
75
|
+
name: 'clientId',
|
|
76
|
+
type: 'string',
|
|
77
|
+
default: '',
|
|
78
|
+
description: 'OAuth client ID (if using OAuth authentication)',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Webhook URL',
|
|
82
|
+
name: 'webhookUrl',
|
|
83
|
+
type: 'string',
|
|
84
|
+
default: '',
|
|
85
|
+
placeholder: 'https://your-app.example.com/webhook/cdd',
|
|
86
|
+
description: 'Webhook URL for receiving CDD verification callbacks',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Environment',
|
|
90
|
+
name: 'environment',
|
|
91
|
+
type: 'options',
|
|
92
|
+
options: [
|
|
93
|
+
{
|
|
94
|
+
name: 'Production',
|
|
95
|
+
value: 'production',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Sandbox',
|
|
99
|
+
value: 'sandbox',
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
default: 'sandbox',
|
|
103
|
+
description: 'CDD provider environment',
|
|
104
|
+
},
|
|
105
|
+
];
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.CddProvider = CddProvider;
|
|
109
|
+
//# sourceMappingURL=CddProvider.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CddProvider.credentials.js","sourceRoot":"","sources":["../../credentials/CddProvider.credentials.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,uBAAuB,CAAC;QACtC,qBAAgB,GAAG,yCAAyC,CAAC;QAC7D,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,cAAc;wBACpB,KAAK,EAAE,UAAU;qBACjB;oBACD;wBACC,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,SAAS;qBAChB;oBACD;wBACC,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;qBACd;oBACD;wBACC,IAAI,EAAE,iBAAiB;wBACvB,KAAK,EAAE,QAAQ;qBACf;iBACD;gBACD,OAAO,EAAE,UAAU;gBACnB,WAAW,EAAE,kDAAkD;aAC/D;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,OAAO;gBACpB,WAAW,EAAE,wDAAwD;gBACrE,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sCAAsC;gBACnD,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kDAAkD;aAC/D;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qDAAqD;aAClE;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iDAAiD;aAC9D;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0CAA0C;gBACvD,WAAW,EAAE,sDAAsD;aACnE;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,YAAY;qBACnB;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;iBACD;gBACD,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,0BAA0B;aACvC;SACD,CAAC;IACH,CAAC;CAAA;AArGD,kCAqGC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class PolymeshMiddleware implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
static getEndpoint(environment: string, customEndpoint?: string): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=PolymeshMiddleware.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PolymeshMiddleware.credentials.d.ts","sourceRoot":"","sources":["../../credentials/PolymeshMiddleware.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,kBAAmB,YAAW,eAAe;IACzD,IAAI,SAAwB;IAC5B,WAAW,SAA6B;IACxC,gBAAgB,SAAoD;IACpE,UAAU,EAAE,eAAe,EAAE,CAwD3B;IAGF,MAAM,CAAC,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM;CAaxE"}
|