@n8n-dev/n8n-nodes-0x-cross-chain 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/README.md +95 -0
- package/dist/credentials/N0xCrossChainApi.credentials.d.ts +10 -0
- package/dist/credentials/N0xCrossChainApi.credentials.js +56 -0
- package/dist/credentials/N0xCrossChainApi.credentials.js.map +1 -0
- package/dist/icons/0x-cross-chain.dark.svg +4 -0
- package/dist/icons/0x-cross-chain.svg +4 -0
- package/dist/nodes/N0xCrossChain/0x-cross-chain.dark.svg +4 -0
- package/dist/nodes/N0xCrossChain/0x-cross-chain.svg +4 -0
- package/dist/nodes/N0xCrossChain/N0xCrossChain.node.d.ts +4 -0
- package/dist/nodes/N0xCrossChain/N0xCrossChain.node.js +54 -0
- package/dist/nodes/N0xCrossChain/N0xCrossChain.node.js.map +1 -0
- package/dist/nodes/N0xCrossChain/N0xCrossChain.node.json +20 -0
- package/dist/nodes/N0xCrossChain/resources/cross-chain/index.d.ts +2 -0
- package/dist/nodes/N0xCrossChain/resources/cross-chain/index.js +1302 -0
- package/dist/nodes/N0xCrossChain/resources/cross-chain/index.js.map +1 -0
- package/dist/nodes/N0xCrossChain/resources/index.d.ts +1 -0
- package/dist/nodes/N0xCrossChain/resources/index.js +6 -0
- package/dist/nodes/N0xCrossChain/resources/index.js.map +1 -0
- package/dist/package.json +62 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +62 -0
package/README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# @n8n-dev/n8n-nodes-0x-cross-chain
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@n8n-dev/n8n-nodes-0x-cross-chain)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
**Stop writing 0x-cross-chain API integrations by hand.**
|
|
9
|
+
|
|
10
|
+
Every time you connect n8n to 0x-cross-chain, you waste hours mapping endpoints, defining parameters, and debugging schemas. You copy-paste from docs, fix edge cases, and pray nothing breaks.
|
|
11
|
+
|
|
12
|
+
**What if connecting n8n to 0x-cross-chain took 5 minutes, not half a day?**
|
|
13
|
+
|
|
14
|
+
This node gives you **1+ resources** out of the box: **Cross Chain**: with full CRUD operations, typed parameters, and zero manual configuration.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## What You Get
|
|
19
|
+
|
|
20
|
+
- **Zero boilerplate**: Resources, operations, and fields are pre-configured and ready to use
|
|
21
|
+
- **Full CRUD**: Create, read, update, and delete support where the API allows it
|
|
22
|
+
- **Typed parameters**: No more guessing field types
|
|
23
|
+
- **Built-in auth**: API key authentication, ready to go
|
|
24
|
+
- **Declarative**: Native n8n performance, no custom execute() overhead
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npm install @n8n-dev/n8n-nodes-0x-cross-chain
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Or in n8n:**
|
|
35
|
+
1. **Settings → Community Nodes → Install**
|
|
36
|
+
2. Search: `@n8n-dev/n8n-nodes-0x-cross-chain`
|
|
37
|
+
3. Click **Install**
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Quick Start
|
|
42
|
+
|
|
43
|
+
1. Install the node (above)
|
|
44
|
+
2. Add credentials: **0x-cross-chain API** → paste your API key
|
|
45
|
+
3. Drag the **0x-cross-chain** node into your workflow
|
|
46
|
+
4. Pick a resource → pick an operation → done.
|
|
47
|
+
|
|
48
|
+
That's it. No configuration files. No code. It just works.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Resources
|
|
53
|
+
|
|
54
|
+
| Resource | Operations |
|
|
55
|
+
|----------|------------|
|
|
56
|
+
| Cross Chain | GET getQuotes, GET getStatus, GET listSources, GET getTxHistory, GET streamQuotes |
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Why This Node?
|
|
61
|
+
|
|
62
|
+
**Without this node:**
|
|
63
|
+
- Hours of manual API integration
|
|
64
|
+
- Copy-pasting from 0x-cross-chain docs
|
|
65
|
+
- Debugging auth, pagination, error handling
|
|
66
|
+
- Maintaining your own client code
|
|
67
|
+
|
|
68
|
+
**With this node:**
|
|
69
|
+
- Install → configure → use. 5 minutes.
|
|
70
|
+
- Auto-generated from the official 0x-cross-chain OpenAPI spec
|
|
71
|
+
- Always up to date when the API changes
|
|
72
|
+
- Native n8n performance
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Auto-Generated
|
|
77
|
+
This node was auto-generated from the official **0x-cross-chain** OpenAPI specification using
|
|
78
|
+
[@n8n-dev/n8n-openapi-node-ultimate](https://github.com/kelvinzer0/n8n-openapi-node-ultimate),
|
|
79
|
+
then validated against the live API so you get accurate types and real parameters, not guesswork.
|
|
80
|
+
|
|
81
|
+
When the 0x-cross-chain API updates, this node updates too.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Support This Project
|
|
86
|
+
|
|
87
|
+
If this node saved you hours of work, consider supporting continued development, new APIs, better error handling, and faster updates.
|
|
88
|
+
|
|
89
|
+
[](https://n8n-code.github.io/membership/#/eyJ0aXRsZSI6IktlZXAgSXQgTW92aW5nIiwiZGVzYyI6Ik9uZSBkZXZlbG9wZXIgYnVpbHQgYSB0b29sIHRoYXQgYXV0by1nZW5lcmF0ZXNcbm44biBub2RlcyBmcm9tIGFueSBPcGVuQVBJIHNwZWMuXG5cbllvdXIgZG9uYXRpb24gZnVuZHMgbmV3IGZlYXR1cmVzLCBtb3JlIEFQSSBzdXBwb3J0LFxuYW5kIGJldHRlciB0b29saW5nIGZvciBldmVyeSBkZXZlbG9wZXIgYWZ0ZXIgeW91LiIsInRhcmdldCI6NTAwMCwiYWRkcmVzc2VzIjp7ImV0aGVyZXVtIjoiMHhmMDU1NWQ0MGRiRkI0ZTNCZjA3MDQ0MjgyQjc4RjJmRTFmNTFFZjcyIiwic29sYW5hIjoiNlpEVk5BYmpZZExEcXo4cGt3VUNHYllaNVV3QlFranB0QzU1Wk5vTFcybVUifSwiZGlzY29yZCI6Imh0dHBzOi8vZGlzY29yZC5nZy9wdERaOGU0aDkzIn0)
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## License
|
|
94
|
+
|
|
95
|
+
MIT © [kelvinzer0](https://github.com/n8n-code)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class N0xCrossChainApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.N0xCrossChainApi = void 0;
|
|
4
|
+
class N0xCrossChainApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'N8nDevN0xCrossChainApi';
|
|
7
|
+
this.displayName = '0x-cross-chain API';
|
|
8
|
+
this.icon = { light: 'file:../nodes/N0xCrossChain/0x-cross-chain.svg', dark: 'file:../nodes/N0xCrossChain/0x-cross-chain.dark.svg' };
|
|
9
|
+
this.documentationUrl = '';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Base URL',
|
|
13
|
+
name: 'url',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: 'https://api.0x.org',
|
|
16
|
+
required: true,
|
|
17
|
+
placeholder: 'https://api.0x.org',
|
|
18
|
+
description: 'The base URL of your 0x-cross-chain API server',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'API Key',
|
|
22
|
+
name: 'apiKey',
|
|
23
|
+
type: 'string',
|
|
24
|
+
typeOptions: { password: true },
|
|
25
|
+
default: '',
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"displayName": "❤️ Keep It Moving: One developer built a tool that auto-generates n8n nodes from any OpenAPI spec. Your donation funds new features, more API support, and better tooling for every developer after you. <a href=\"https://n8n-code.github.io/membership/#/eyJ0aXRsZSI6IktlZXAgSXQgTW92aW5nIiwiZGVzYyI6Ik9uZSBkZXZlbG9wZXIgYnVpbHQgYSB0b29sIHRoYXQgYXV0by1nZW5lcmF0ZXNcbm44biBub2RlcyBmcm9tIGFueSBPcGVuQVBJIHNwZWMuXG5cbllvdXIgZG9uYXRpb24gZnVuZHMgbmV3IGZlYXR1cmVzLCBtb3JlIEFQSSBzdXBwb3J0LFxuYW5kIGJldHRlciB0b29saW5nIGZvciBldmVyeSBkZXZlbG9wZXIgYWZ0ZXIgeW91LiIsInRhcmdldCI6NTAwMCwiYWRkcmVzc2VzIjp7ImV0aGVyZXVtIjoiMHhmMDU1NWQ0MGRiRkI0ZTNCZjA3MDQ0MjgyQjc4RjJmRTFmNTFFZjcyIiwic29sYW5hIjoiNlpEVk5BYmpZZExEcXo4cGt3VUNHYllaNVV3QlFranB0QzU1Wk5vTFcybVUifSwiZGlzY29yZCI6Imh0dHBzOi8vZGlzY29yZC5nZy9wdERaOGU0aDkzIn0\" target=\"_blank\">☕ Buy me a coffee</a>",
|
|
30
|
+
"name": "n8nCodeNotice",
|
|
31
|
+
"type": "notice",
|
|
32
|
+
"default": "",
|
|
33
|
+
"displayOptions": {
|
|
34
|
+
"show": {}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
this.authenticate = {
|
|
39
|
+
type: 'generic',
|
|
40
|
+
properties: {
|
|
41
|
+
headers: {
|
|
42
|
+
'0x-api-key': '={{$credentials.apiKey}}',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
this.test = {
|
|
47
|
+
request: {
|
|
48
|
+
baseURL: '={{$credentials.url}}',
|
|
49
|
+
url: '/',
|
|
50
|
+
method: 'GET',
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.N0xCrossChainApi = N0xCrossChainApi;
|
|
56
|
+
//# sourceMappingURL=N0xCrossChainApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"N0xCrossChainApi.credentials.js","sourceRoot":"","sources":["../../credentials/N0xCrossChainApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,gBAAgB;IAA7B;QACC,SAAI,GAAG,wBAAwB,CAAC;QAEhC,gBAAW,GAAG,oBAAoB,CAAC;QAEnC,SAAI,GAAS,EAAE,KAAK,EAAE,gDAAgD,EAAE,IAAI,EAAE,qDAAqD,EAAE,CAAC;QAEtI,qBAAgB,GAAG,EAAE,CAAC;QAEtB,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,oBAAoB;gBACjC,WAAW,EAAE,gDAAgD;aAC7D;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,aAAa,EAAE,k0BAAk0B;gBACj1B,MAAM,EAAE,eAAe;gBACvB,MAAM,EAAE,QAAQ;gBAChB,SAAS,EAAE,EAAE;gBACb,gBAAgB,EAAE;oBACjB,MAAM,EAAE,EAAE;iBACV;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,YAAY,EAAE,0BAA0B;iBACxC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,uBAAuB;gBAChC,GAAG,EAAE,GAAG;gBACR,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAtDD,4CAsDC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.N0xCrossChain = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const cross_chain_1 = require("./resources/cross-chain");
|
|
6
|
+
class N0xCrossChain {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.description = {
|
|
9
|
+
displayName: '0x-cross-chain',
|
|
10
|
+
name: 'N8nDevN0xCrossChain',
|
|
11
|
+
icon: { light: 'file:./0x-cross-chain.svg', dark: 'file:./0x-cross-chain.dark.svg' },
|
|
12
|
+
group: ['input'],
|
|
13
|
+
version: 1,
|
|
14
|
+
subtitle: '={{\$parameter["operation"] + ": " + \$parameter["resource"]}}',
|
|
15
|
+
description: '0x Cross-Chain API for bridging assets across EVM Solana Tron and HyperCore networks with real-time quotes and status tracking',
|
|
16
|
+
defaults: { name: '0x-cross-chain' },
|
|
17
|
+
usableAsTool: true,
|
|
18
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
19
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
+
credentials: [
|
|
21
|
+
{
|
|
22
|
+
name: 'N8nDevN0xCrossChainApi',
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
requestDefaults: {
|
|
27
|
+
baseURL: '={{\$credentials.url}}',
|
|
28
|
+
headers: {
|
|
29
|
+
Accept: 'application/json',
|
|
30
|
+
'Content-Type': 'application/json',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
"displayName": "Resource",
|
|
36
|
+
"name": "resource",
|
|
37
|
+
"type": "options",
|
|
38
|
+
"noDataExpression": true,
|
|
39
|
+
"options": [
|
|
40
|
+
{
|
|
41
|
+
"name": "Cross Chain",
|
|
42
|
+
"value": "Cross Chain",
|
|
43
|
+
"description": "Cross-Chain API endpoints"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"default": ""
|
|
47
|
+
},
|
|
48
|
+
...cross_chain_1.crossChainDescription
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.N0xCrossChain = N0xCrossChain;
|
|
54
|
+
//# sourceMappingURL=N0xCrossChain.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"N0xCrossChain.node.js","sourceRoot":"","sources":["../../../nodes/N0xCrossChain/N0xCrossChain.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,yDAAgE;AAEhE,MAAa,aAAa;IAA1B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,EAAE,KAAK,EAAE,2BAA2B,EAAE,IAAI,EAAE,gCAAgC,EAAE;YACpF,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,gEAAgE;YAC1E,WAAW,EAAE,gIAAgI;YAC7I,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,wBAAwB;oBAC9B,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,wBAAwB;gBACjC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACZ;oBACC,aAAa,EAAE,UAAU;oBACzB,MAAM,EAAE,UAAU;oBAClB,MAAM,EAAE,SAAS;oBACjB,kBAAkB,EAAE,IAAI;oBACxB,SAAS,EAAE;wBACV;4BACC,MAAM,EAAE,aAAa;4BACrB,OAAO,EAAE,aAAa;4BACtB,aAAa,EAAE,2BAA2B;yBAC1C;qBACD;oBACD,SAAS,EAAE,EAAE;iBACb;gBACD,GAAG,mCAAqB;aACvB;SACD,CAAC;IACH,CAAC;CAAA;AA5CD,sCA4CC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "N8nDevN0xCrossChain",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": [
|
|
6
|
+
"Development"
|
|
7
|
+
],
|
|
8
|
+
"resources": {
|
|
9
|
+
"primaryDocumentation": [
|
|
10
|
+
{
|
|
11
|
+
"url": "https://github.com/n8n-code/n8n-nodes-0x-cross-chain"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"credentialDocumentation": [
|
|
15
|
+
{
|
|
16
|
+
"url": "https://github.com/n8n-code/n8n-nodes-0x-cross-chain?tab=readme-ov-file#credentials"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|