n8n-nodes-1shot 0.1.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.md +19 -0
- package/README.md +33 -0
- package/dist/credentials/oneShotApi.credentials.d.ts +8 -0
- package/dist/credentials/oneShotApi.credentials.js +57 -0
- package/dist/credentials/oneShotApi.credentials.js.map +1 -0
- package/dist/nodes/OneShot/OneShot.node.d.ts +12 -0
- package/dist/nodes/OneShot/OneShot.node.js +259 -0
- package/dist/nodes/OneShot/OneShot.node.js.map +1 -0
- package/dist/nodes/OneShot/OneShot.node.json +18 -0
- package/dist/nodes/OneShot/descriptions/EscrowWalletDescription.d.ts +3 -0
- package/dist/nodes/OneShot/descriptions/EscrowWalletDescription.js +78 -0
- package/dist/nodes/OneShot/descriptions/EscrowWalletDescription.js.map +1 -0
- package/dist/nodes/OneShot/descriptions/PromptDescription.d.ts +3 -0
- package/dist/nodes/OneShot/descriptions/PromptDescription.js +129 -0
- package/dist/nodes/OneShot/descriptions/PromptDescription.js.map +1 -0
- package/dist/nodes/OneShot/descriptions/TransactionDescription.d.ts +3 -0
- package/dist/nodes/OneShot/descriptions/TransactionDescription.js +133 -0
- package/dist/nodes/OneShot/descriptions/TransactionDescription.js.map +1 -0
- package/dist/nodes/OneShot/executions/options.d.ts +3 -0
- package/dist/nodes/OneShot/executions/options.js +48 -0
- package/dist/nodes/OneShot/executions/options.js.map +1 -0
- package/dist/nodes/OneShot/oneshot.svg +60 -0
- package/dist/package.json +58 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +58 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2022 n8n
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# 1Shot API n8n Node
|
|
4
|
+
|
|
5
|
+
This repo contains the implementation of the [1Shot API](https://1shotapi.com) n8n node. 1Shot API is a powerful managed wallet and transaction service for the EVM ecosystem. It lets you read and write to smart contracts on any public EVM network with simple API calls. It ensures transactions are confirmed (handling retries and gas optimization) and sends webhook callbacks when they are finalized, making it perfect for AI worflow platforms like [n8n](https://n8n.io/).
|
|
6
|
+
|
|
7
|
+
It also allows smart contract functions to be used like tools by agents; 1Shot Prompts provides a contract library with detailed prompts at the contract, function, input and output level so that agents and LLMs can better reason about how to use smart contracts to fullfil a user task. Additionally, 1Shot Prompts lets humans and agents search for smart contracts semantically, so you don't have manually find your target smart contract by parsing through blockscanners.
|
|
8
|
+
|
|
9
|
+
## Running the Node
|
|
10
|
+
|
|
11
|
+
First, clone this repository and copy `example.env` into `docker-compose.env`:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
git clone https://github.com/UXlySoftware/n8n-nodes-1shot.git
|
|
15
|
+
cd n8n-nodes-1shot
|
|
16
|
+
cp example.env docker-compose.env
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Next, make a free account on 1Shot API and create an [API Key and Secret](https://app.1shotapi.com/api-keys), you'll use this to authenticate the 1Shot API node in n8n. You'll also want to grab your 1Shot API business ID from your [organization's detail](https://app.1shotapi.com/organizations) page.
|
|
20
|
+
|
|
21
|
+
Finally, make a free [ngrok](https://ngrok.com/) account, its a tunneling service that will allow you to log into your n8n node from the internet. Create a free [ngrok domain](https://dashboard.ngrok.com/domains) and past the domain into the `NGROK_DOMAIN` variable in `docker-compose.env`. Lastly, grab your [ngrok auth token ](https://dashboard.ngrok.com/get-started/your-authtoken) and paste it into the `NGROK_AUTHTOKEN` variable in `docker-compose.env`.
|
|
22
|
+
|
|
23
|
+
Make sure you have [docker](https://docs.n8n.io/hosting/installation/docker/) installed on the machine you are going to run n8n on and start up the node:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
docker compose --env-file docker-compose.env up -d
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
You should now be able to access the [ngrok inspection dashboard](http://localhost:4040/). It should show a link to your ngrok domain that you can click to take you to the n8n login page for your n8n stack.
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
[MIT](https://github.com/n8n-io/n8n-nodes-starter/blob/master/LICENSE.md)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.oneShotApi = void 0;
|
|
4
|
+
class oneShotApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'oneShotOAuth2Api';
|
|
7
|
+
this.extends = ['oAuth2Api'];
|
|
8
|
+
this.displayName = '1Shot API';
|
|
9
|
+
this.documentationUrl = 'https://docs.1shotapi.com';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Grant Type',
|
|
13
|
+
name: 'grantType',
|
|
14
|
+
type: 'hidden',
|
|
15
|
+
default: 'clientCredentials',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Authorization URL',
|
|
19
|
+
name: 'authUrl',
|
|
20
|
+
type: 'hidden',
|
|
21
|
+
default: '',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Access Token URL',
|
|
25
|
+
name: 'accessTokenUrl',
|
|
26
|
+
type: 'hidden',
|
|
27
|
+
default: 'https://api.1shotapi.com/v0/token',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Scope',
|
|
31
|
+
name: 'scope',
|
|
32
|
+
type: 'hidden',
|
|
33
|
+
default: '',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Auth URI Query Parameters',
|
|
37
|
+
name: 'authQueryParameters',
|
|
38
|
+
type: 'hidden',
|
|
39
|
+
default: '',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Authentication',
|
|
43
|
+
name: 'authentication',
|
|
44
|
+
type: 'hidden',
|
|
45
|
+
default: 'body',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Business ID',
|
|
49
|
+
name: 'businessId',
|
|
50
|
+
type: 'string',
|
|
51
|
+
default: '',
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.oneShotApi = oneShotApi;
|
|
57
|
+
//# sourceMappingURL=oneShotApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oneShotApi.credentials.js","sourceRoot":"","sources":["../../credentials/oneShotApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,kBAAkB,CAAC;QAE1B,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,gBAAW,GAAG,WAAW,CAAC;QAE1B,qBAAgB,GAAG,2BAA2B,CAAC;QAE/C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mBAAmB;aAC5B;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mCAAmC;aAC5C;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;aACf;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAC;IACH,CAAC;CAAA;AArDD,gCAqDC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { INodeType, INodeTypeDescription, IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
import { loadTransactionExecutionOptions, loadTransactionReadOptions } from './executions/options';
|
|
3
|
+
export declare class OneShot implements INodeType {
|
|
4
|
+
description: INodeTypeDescription;
|
|
5
|
+
methods: {
|
|
6
|
+
loadOptions: {
|
|
7
|
+
loadTransactionExecutionOptions: typeof loadTransactionExecutionOptions;
|
|
8
|
+
loadTransactionReadOptions: typeof loadTransactionReadOptions;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
execute(this: IExecuteFunctions): Promise<import("n8n-workflow").INodeExecutionData[][]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OneShot = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const TransactionDescription_1 = require("./descriptions/TransactionDescription");
|
|
6
|
+
const EscrowWalletDescription_1 = require("./descriptions/EscrowWalletDescription");
|
|
7
|
+
const options_1 = require("./executions/options");
|
|
8
|
+
const PromptDescription_1 = require("./descriptions/PromptDescription");
|
|
9
|
+
class OneShot {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.description = {
|
|
12
|
+
displayName: '1Shot',
|
|
13
|
+
name: 'oneShot',
|
|
14
|
+
icon: { light: 'file:oneshot.svg', dark: 'file:oneshot.svg' },
|
|
15
|
+
group: ['transform'],
|
|
16
|
+
version: 1,
|
|
17
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
18
|
+
description: 'Interact with the blockchain and web3 via 1Shot API',
|
|
19
|
+
defaults: {
|
|
20
|
+
name: '1Shot',
|
|
21
|
+
},
|
|
22
|
+
inputs: ["main"],
|
|
23
|
+
outputs: ["main"],
|
|
24
|
+
usableAsTool: true,
|
|
25
|
+
credentials: [
|
|
26
|
+
{
|
|
27
|
+
name: 'oneShotOAuth2Api',
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
requestDefaults: {
|
|
32
|
+
baseURL: 'https://api.1shotapi.com/v0',
|
|
33
|
+
url: '',
|
|
34
|
+
headers: {
|
|
35
|
+
Accept: 'application/json',
|
|
36
|
+
'Content-Type': 'application/json',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
properties: [
|
|
40
|
+
{
|
|
41
|
+
displayName: 'Resource',
|
|
42
|
+
name: 'resource',
|
|
43
|
+
type: 'options',
|
|
44
|
+
noDataExpression: true,
|
|
45
|
+
options: [
|
|
46
|
+
{
|
|
47
|
+
name: 'Transaction',
|
|
48
|
+
value: 'transaction',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Escrow Wallet',
|
|
52
|
+
value: 'escrowWallet',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: '1Shot Prompts',
|
|
56
|
+
value: 'prompt',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
default: 'transaction',
|
|
60
|
+
},
|
|
61
|
+
...TransactionDescription_1.transactionOperationsFields,
|
|
62
|
+
...EscrowWalletDescription_1.escrowWalletOperationsFields,
|
|
63
|
+
...PromptDescription_1.promptOperationsFields,
|
|
64
|
+
],
|
|
65
|
+
};
|
|
66
|
+
this.methods = {
|
|
67
|
+
loadOptions: {
|
|
68
|
+
loadTransactionExecutionOptions: options_1.loadTransactionExecutionOptions,
|
|
69
|
+
loadTransactionReadOptions: options_1.loadTransactionReadOptions,
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
async execute() {
|
|
74
|
+
const items = this.getInputData();
|
|
75
|
+
const returnData = [];
|
|
76
|
+
for (let i = 0; i < items.length; i++) {
|
|
77
|
+
const resource = this.getNodeParameter('resource', i);
|
|
78
|
+
const operation = this.getNodeParameter('operation', i);
|
|
79
|
+
if (resource === 'transaction') {
|
|
80
|
+
const transactionId = this.getNodeParameter('transactionId', i);
|
|
81
|
+
const paramsString = this.getNodeParameter('params', i);
|
|
82
|
+
let url = '';
|
|
83
|
+
let method = 'POST';
|
|
84
|
+
if (operation === 'execute') {
|
|
85
|
+
url = `/transactions/${transactionId}/execute`;
|
|
86
|
+
const parsedParams = JSON.parse(paramsString);
|
|
87
|
+
const body = {
|
|
88
|
+
params: parsedParams,
|
|
89
|
+
};
|
|
90
|
+
this.logger.debug('Request body', { body });
|
|
91
|
+
const options = {
|
|
92
|
+
method,
|
|
93
|
+
url,
|
|
94
|
+
headers: {
|
|
95
|
+
Accept: 'application/json',
|
|
96
|
+
'Content-Type': 'application/json',
|
|
97
|
+
},
|
|
98
|
+
body,
|
|
99
|
+
json: true,
|
|
100
|
+
baseURL: 'https://api.1shotapi.com/v0',
|
|
101
|
+
};
|
|
102
|
+
this.logger.debug('Making request', { url, options });
|
|
103
|
+
const additionalCredentialOptions = {
|
|
104
|
+
oauth2: {
|
|
105
|
+
tokenType: 'Bearer',
|
|
106
|
+
keepBearer: true,
|
|
107
|
+
includeCredentialsOnRefreshOnBody: true,
|
|
108
|
+
property: 'access_token',
|
|
109
|
+
tokenExpiredStatusCode: 403,
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
const response = await this.helpers.requestWithAuthentication.call(this, 'oneShotOAuth2Api', options, additionalCredentialOptions);
|
|
113
|
+
this.logger.debug('Response received', { response });
|
|
114
|
+
returnData.push(response);
|
|
115
|
+
}
|
|
116
|
+
else if (operation === 'read') {
|
|
117
|
+
url = `/transactions/${transactionId}/read`;
|
|
118
|
+
const parsedParams = JSON.parse(paramsString);
|
|
119
|
+
const body = {
|
|
120
|
+
params: parsedParams,
|
|
121
|
+
};
|
|
122
|
+
this.logger.debug('Request body', { body });
|
|
123
|
+
const options = {
|
|
124
|
+
method,
|
|
125
|
+
url,
|
|
126
|
+
headers: {
|
|
127
|
+
Accept: 'application/json',
|
|
128
|
+
'Content-Type': 'application/json',
|
|
129
|
+
},
|
|
130
|
+
body,
|
|
131
|
+
json: true,
|
|
132
|
+
baseURL: 'https://api.1shotapi.com/v0',
|
|
133
|
+
};
|
|
134
|
+
this.logger.debug('Making request', { url, options });
|
|
135
|
+
const additionalCredentialOptions = {
|
|
136
|
+
oauth2: {
|
|
137
|
+
tokenType: 'Bearer',
|
|
138
|
+
keepBearer: true,
|
|
139
|
+
includeCredentialsOnRefreshOnBody: true,
|
|
140
|
+
property: 'access_token',
|
|
141
|
+
tokenExpiredStatusCode: 403,
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
const response = await this.helpers.requestWithAuthentication.call(this, 'oneShotOAuth2Api', options, additionalCredentialOptions);
|
|
145
|
+
this.logger.debug(`Response received: "${response}"`, { response });
|
|
146
|
+
returnData.push(response);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${operation}`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
else if (resource === 'escrowWallet') {
|
|
153
|
+
const chainId = this.getNodeParameter('chainId', i);
|
|
154
|
+
const credentials = await this.getCredentials('oneShotOAuth2Api');
|
|
155
|
+
const businessId = credentials.businessId;
|
|
156
|
+
if (operation === 'list') {
|
|
157
|
+
const options = {
|
|
158
|
+
method: 'GET',
|
|
159
|
+
url: `/business/${businessId}/wallets`,
|
|
160
|
+
headers: {
|
|
161
|
+
Accept: 'application/json',
|
|
162
|
+
'Content-Type': 'application/json',
|
|
163
|
+
},
|
|
164
|
+
qs: { chainId },
|
|
165
|
+
json: true,
|
|
166
|
+
baseURL: 'https://api.1shotapi.com/v0',
|
|
167
|
+
};
|
|
168
|
+
this.logger.debug('Making request for escrow wallets', { options });
|
|
169
|
+
const additionalCredentialOptions = {
|
|
170
|
+
oauth2: {
|
|
171
|
+
tokenType: 'Bearer',
|
|
172
|
+
keepBearer: true,
|
|
173
|
+
includeCredentialsOnRefresh: true,
|
|
174
|
+
property: 'access_token',
|
|
175
|
+
tokenExpiredStatusCode: 403,
|
|
176
|
+
},
|
|
177
|
+
};
|
|
178
|
+
const response = await this.helpers.requestWithAuthentication.call(this, 'oneShotOAuth2Api', options, additionalCredentialOptions);
|
|
179
|
+
this.logger.debug('Response received for escrow wallets', { response });
|
|
180
|
+
returnData.push(response);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
else if (resource === 'prompt') {
|
|
184
|
+
if (operation === 'search') {
|
|
185
|
+
const query = this.getNodeParameter('query', i);
|
|
186
|
+
const chainId = this.getNodeParameter('chainId', i);
|
|
187
|
+
const options = {
|
|
188
|
+
method: 'POST',
|
|
189
|
+
url: `/contracts/descriptions/search`,
|
|
190
|
+
headers: {
|
|
191
|
+
Accept: 'application/json',
|
|
192
|
+
'Content-Type': 'application/json',
|
|
193
|
+
},
|
|
194
|
+
body: {
|
|
195
|
+
query,
|
|
196
|
+
chain: chainId,
|
|
197
|
+
},
|
|
198
|
+
json: true,
|
|
199
|
+
baseURL: 'https://api.1shotapi.com/v0',
|
|
200
|
+
};
|
|
201
|
+
const additionalCredentialOptions = {
|
|
202
|
+
oauth2: {
|
|
203
|
+
tokenType: 'Bearer',
|
|
204
|
+
keepBearer: true,
|
|
205
|
+
includeCredentialsOnRefreshOnBody: true,
|
|
206
|
+
property: 'access_token',
|
|
207
|
+
tokenExpiredStatusCode: 403,
|
|
208
|
+
},
|
|
209
|
+
};
|
|
210
|
+
const response = await this.helpers.requestWithAuthentication.call(this, 'oneShotOAuth2Api', options, additionalCredentialOptions);
|
|
211
|
+
this.logger.debug('Response received for 1Shot Prompts', { response });
|
|
212
|
+
returnData.push(response);
|
|
213
|
+
}
|
|
214
|
+
else if (operation === 'assureTools') {
|
|
215
|
+
const credentials = await this.getCredentials('oneShotOAuth2Api');
|
|
216
|
+
const businessId = credentials.businessId;
|
|
217
|
+
const contractAddress = this.getNodeParameter('contractAddress', i);
|
|
218
|
+
const contractDescriptionId = this.getNodeParameter('contractDescriptionId', i);
|
|
219
|
+
const escrowWalletId = this.getNodeParameter('escrowWalletId', i);
|
|
220
|
+
const chainId = this.getNodeParameter('chainId', i);
|
|
221
|
+
const options = {
|
|
222
|
+
method: 'POST',
|
|
223
|
+
url: `/business/${businessId}/transactions/contract`,
|
|
224
|
+
headers: {
|
|
225
|
+
Accept: 'application/json',
|
|
226
|
+
'Content-Type': 'application/json',
|
|
227
|
+
},
|
|
228
|
+
body: {
|
|
229
|
+
chain: chainId,
|
|
230
|
+
contractAddress,
|
|
231
|
+
escrowWalletId,
|
|
232
|
+
contractDescriptionId,
|
|
233
|
+
},
|
|
234
|
+
json: true,
|
|
235
|
+
baseURL: 'https://api.1shotapi.com/v0',
|
|
236
|
+
};
|
|
237
|
+
const additionalCredentialOptions = {
|
|
238
|
+
oauth2: {
|
|
239
|
+
tokenType: 'Bearer',
|
|
240
|
+
keepBearer: true,
|
|
241
|
+
includeCredentialsOnRefreshOnBody: true,
|
|
242
|
+
property: 'access_token',
|
|
243
|
+
tokenExpiredStatusCode: 403,
|
|
244
|
+
},
|
|
245
|
+
};
|
|
246
|
+
const response = await this.helpers.requestWithAuthentication.call(this, 'oneShotOAuth2Api', options, additionalCredentialOptions);
|
|
247
|
+
this.logger.debug('Response received for 1Shot Prompts', { response });
|
|
248
|
+
returnData.push(response);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported resource: ${resource}`);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return [this.helpers.returnJsonArray(returnData)];
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
exports.OneShot = OneShot;
|
|
259
|
+
//# sourceMappingURL=OneShot.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OneShot.node.js","sourceRoot":"","sources":["../../../nodes/OneShot/OneShot.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AACtB,kFAAoF;AACpF,oFAAsF;AACtF,kDAAmG;AACnG,wEAA0E;AAE1E,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,kBAAkB,EAAE;YAC7D,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,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F,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,qCAAqC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;oBACvE,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC3B,CAAC;YACF,CAAC;iBAAM,CAAC;gBACP,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,yBAAyB,QAAQ,EAAE,CAAC,CAAC;YACnF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC;IACnD,CAAC;CACD;AAlTD,0BAkTC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-1shot.OneShot",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Development", "Developer Tools"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://docs.1shotapi.com"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://docs.1shotapi.com"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.escrowWalletOperationsFields = exports.escrowWalletOperations = void 0;
|
|
4
|
+
exports.escrowWalletOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['escrowWallet'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'List Escrow Wallets',
|
|
18
|
+
value: 'list',
|
|
19
|
+
description: 'List escrow wallets for a given chain',
|
|
20
|
+
action: 'List escrow wallets',
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'POST',
|
|
24
|
+
url: '=/transactions/{{$parameter.transactionId}}/execute',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'list',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
const escrowWalletFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Chain Name or ID',
|
|
35
|
+
name: 'chainId',
|
|
36
|
+
type: 'options',
|
|
37
|
+
options: [
|
|
38
|
+
{
|
|
39
|
+
name: 'Ethereum',
|
|
40
|
+
value: '1',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Sepolia',
|
|
44
|
+
value: '11155111',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Base',
|
|
48
|
+
value: '8453',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Base Sepolia',
|
|
52
|
+
value: '84531',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Avalanche',
|
|
56
|
+
value: '43114',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Avalanche Fuji',
|
|
60
|
+
value: '43113',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
required: true,
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
resource: ['escrowWallet'],
|
|
67
|
+
operation: ['list'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
default: '1',
|
|
71
|
+
description: 'Choose from the list, or specify a Chain ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
exports.escrowWalletOperationsFields = [
|
|
75
|
+
...exports.escrowWalletOperations,
|
|
76
|
+
...escrowWalletFields,
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=EscrowWalletDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EscrowWalletDescription.js","sourceRoot":"","sources":["../../../../nodes/OneShot/descriptions/EscrowWalletDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;aAC1B;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,qBAAqB;gBAC7B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,qDAAqD;qBAC1D;iBACD;aACD;SACD;QACD,OAAO,EAAE,MAAM;KACf;CACD,CAAC;AAEF,MAAM,kBAAkB,GAAsB;IAC7C;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,GAAG;aACV;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,UAAU;aACjB;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aACb;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,OAAO;aACd;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,OAAO;aACd;YACD;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,OAAO;aACd;SACD;QACD,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,MAAM,CAAC;aACnB;SACD;QACD,OAAO,EAAE,GAAG;QACZ,WAAW,EACV,sOAAsO;KACvO;CACD,CAAC;AAEW,QAAA,4BAA4B,GAAsB;IAC9D,GAAG,8BAAsB;IACzB,GAAG,kBAAkB;CACrB,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.promptOperationsFields = exports.promptOperations = void 0;
|
|
4
|
+
exports.promptOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['prompt'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Search Prompts',
|
|
18
|
+
value: 'search',
|
|
19
|
+
description: 'Search for prompts with semantic search',
|
|
20
|
+
action: 'Search prompts',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Assure Tools',
|
|
24
|
+
value: 'assureTools',
|
|
25
|
+
description: 'Make sure you have a set of tools ready to use based on your chosen prompt',
|
|
26
|
+
action: 'Assure tools',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'search',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
const promptFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Query',
|
|
35
|
+
name: 'query',
|
|
36
|
+
type: 'string',
|
|
37
|
+
default: '',
|
|
38
|
+
description: 'Enter a query to search 1Shot Prompts for tools you can use in your dynamic workflow',
|
|
39
|
+
required: true,
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
resource: ['prompt'],
|
|
43
|
+
operation: ['search'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Chain Name or ID',
|
|
49
|
+
name: 'chainId',
|
|
50
|
+
type: 'options',
|
|
51
|
+
options: [
|
|
52
|
+
{
|
|
53
|
+
name: 'Ethereum',
|
|
54
|
+
value: '1',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Sepolia',
|
|
58
|
+
value: '11155111',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Base',
|
|
62
|
+
value: '8453',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Base Sepolia',
|
|
66
|
+
value: '84531',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'Avalanche',
|
|
70
|
+
value: '43114',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'Avalanche Fuji',
|
|
74
|
+
value: '43113',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
required: true,
|
|
78
|
+
displayOptions: {
|
|
79
|
+
show: {
|
|
80
|
+
resource: ['prompt'],
|
|
81
|
+
operation: ['search', 'assureTools'],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
default: '1',
|
|
85
|
+
description: 'Choose from the list, or specify a Chain ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Contract Address',
|
|
89
|
+
name: 'contractAddress',
|
|
90
|
+
type: 'string',
|
|
91
|
+
default: '',
|
|
92
|
+
description: 'Enter the contract address of the contract you want to use',
|
|
93
|
+
required: true,
|
|
94
|
+
displayOptions: {
|
|
95
|
+
show: {
|
|
96
|
+
resource: ['prompt'],
|
|
97
|
+
operation: ['assureTools'],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
displayName: 'Prompt ID',
|
|
103
|
+
name: 'contractDescriptionId',
|
|
104
|
+
type: 'string',
|
|
105
|
+
default: '',
|
|
106
|
+
description: 'Enter the ID of the prompt you want to use. If not provided, the highest-ranked Contract Description for the chain and contract address will be used.',
|
|
107
|
+
displayOptions: {
|
|
108
|
+
show: {
|
|
109
|
+
resource: ['prompt'],
|
|
110
|
+
operation: ['assureTools'],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
displayName: 'Escrow Wallet ID',
|
|
116
|
+
name: 'escrowWalletId',
|
|
117
|
+
type: 'string',
|
|
118
|
+
default: '',
|
|
119
|
+
description: 'Enter the ID of the escrow wallet you want to use for any newly created tools',
|
|
120
|
+
displayOptions: {
|
|
121
|
+
show: {
|
|
122
|
+
resource: ['prompt'],
|
|
123
|
+
operation: ['assureTools'],
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
];
|
|
128
|
+
exports.promptOperationsFields = [...exports.promptOperations, ...promptFields];
|
|
129
|
+
//# sourceMappingURL=PromptDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptDescription.js","sourceRoot":"","sources":["../../../../nodes/OneShot/descriptions/PromptDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,yCAAyC;gBAC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,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4DAA4D;QACzE,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC1B;SACD;KACD;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EACV,uJAAuJ;QACxJ,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC1B;SACD;KACD;IACD;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+EAA+E;QAC5F,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC1B;SACD;KACD;CACD,CAAC;AAEW,QAAA,sBAAsB,GAAsB,CAAC,GAAG,wBAAgB,EAAE,GAAG,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transactionOperationsFields = exports.transactionOperations = void 0;
|
|
4
|
+
exports.transactionOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['transaction'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Execute',
|
|
18
|
+
value: 'execute',
|
|
19
|
+
description: 'Execute a transaction on the blockchain',
|
|
20
|
+
action: 'Execute a transaction',
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'POST',
|
|
24
|
+
url: '=/transactions/{{$parameter.transactionId}}/execute',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Read',
|
|
30
|
+
value: 'read',
|
|
31
|
+
description: 'Read data from a view or pure function',
|
|
32
|
+
action: 'Read data from a function',
|
|
33
|
+
routing: {
|
|
34
|
+
request: {
|
|
35
|
+
method: 'POST',
|
|
36
|
+
url: '=/transactions/{{$parameter.transactionId}}/read',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
default: 'execute',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
const transactionFields = [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Endpoint Name or ID',
|
|
47
|
+
name: 'transactionId',
|
|
48
|
+
type: 'options',
|
|
49
|
+
typeOptions: {
|
|
50
|
+
loadOptionsMethod: 'loadTransactionExecutionOptions',
|
|
51
|
+
},
|
|
52
|
+
required: true,
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['transaction'],
|
|
56
|
+
operation: ['execute'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
default: '',
|
|
60
|
+
description: 'Choose from the list, or specify a Transaction ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Endpoint Name or ID',
|
|
64
|
+
name: 'transactionId',
|
|
65
|
+
type: 'options',
|
|
66
|
+
typeOptions: {
|
|
67
|
+
loadOptionsMethod: 'loadTransactionReadOptions',
|
|
68
|
+
},
|
|
69
|
+
required: true,
|
|
70
|
+
displayOptions: {
|
|
71
|
+
show: {
|
|
72
|
+
resource: ['transaction'],
|
|
73
|
+
operation: ['read'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
default: '',
|
|
77
|
+
description: 'Choose from the list, or specify a Transaction ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Parameters',
|
|
81
|
+
name: 'params',
|
|
82
|
+
type: 'json',
|
|
83
|
+
required: true,
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
resource: ['transaction'],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
default: '{}',
|
|
90
|
+
description: 'The parameters to pass to the transaction function. Enter a JSON object (e.g., {"to": "0x3e6a2f0CBA03d293B54c9fCF354948903007a798", "amount": "10000"}).',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
displayName: 'Additional Fields',
|
|
94
|
+
name: 'additionalFields',
|
|
95
|
+
type: 'collection',
|
|
96
|
+
placeholder: 'Add Field',
|
|
97
|
+
default: {},
|
|
98
|
+
displayOptions: {
|
|
99
|
+
show: {
|
|
100
|
+
resource: ['transaction'],
|
|
101
|
+
operation: ['execute'],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
options: [
|
|
105
|
+
{
|
|
106
|
+
displayName: 'Escrow Wallet ID',
|
|
107
|
+
name: 'escrowWalletId',
|
|
108
|
+
type: 'string',
|
|
109
|
+
default: '',
|
|
110
|
+
description: 'The ID of the escrow wallet to use for this transaction',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Memo',
|
|
114
|
+
name: 'memo',
|
|
115
|
+
type: 'string',
|
|
116
|
+
default: '',
|
|
117
|
+
description: 'Optional text to include with the transaction execution',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'Authorization List',
|
|
121
|
+
name: 'authorizationList',
|
|
122
|
+
type: 'json',
|
|
123
|
+
default: '[]',
|
|
124
|
+
description: 'List of ERC-7702 authorizations for the transaction',
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
];
|
|
129
|
+
exports.transactionOperationsFields = [
|
|
130
|
+
...exports.transactionOperations,
|
|
131
|
+
...transactionFields,
|
|
132
|
+
];
|
|
133
|
+
//# sourceMappingURL=TransactionDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionDescription.js","sourceRoot":"","sources":["../../../../nodes/OneShot/descriptions/TransactionDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,aAAa,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,yCAAyC;gBACtD,MAAM,EAAE,uBAAuB;gBAC/B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,qDAAqD;qBAC1D;iBACD;aACD;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,wCAAwC;gBACrD,MAAM,EAAE,2BAA2B;gBACnC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,kDAAkD;qBACvD;iBACD;aACD;SACD;QACD,OAAO,EAAE,SAAS;KAClB;CACD,CAAC;AAEF,MAAM,iBAAiB,GAAsB;IAC5C;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,iCAAiC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gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yDAAyD;aACtE;YACD;gBACC,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,qDAAqD;aAClE;SACD;KACD;CACD,CAAC;AAEW,QAAA,2BAA2B,GAAsB;IAC7D,GAAG,6BAAqB;IACxB,GAAG,iBAAiB;CACpB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
|
|
2
|
+
export declare function loadTransactionExecutionOptions(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
3
|
+
export declare function loadTransactionReadOptions(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadTransactionExecutionOptions = loadTransactionExecutionOptions;
|
|
4
|
+
exports.loadTransactionReadOptions = loadTransactionReadOptions;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
async function loadTransactionExecutionOptions() {
|
|
7
|
+
return loadTransactionOptions(this, true);
|
|
8
|
+
}
|
|
9
|
+
async function loadTransactionReadOptions() {
|
|
10
|
+
return loadTransactionOptions(this, false);
|
|
11
|
+
}
|
|
12
|
+
async function loadTransactionOptions(loadOptionsFunctions, executable) {
|
|
13
|
+
const options = [];
|
|
14
|
+
try {
|
|
15
|
+
const credentials = await loadOptionsFunctions.getCredentials('oneShotOAuth2Api');
|
|
16
|
+
const businessId = credentials.businessId;
|
|
17
|
+
if (!businessId) {
|
|
18
|
+
throw new n8n_workflow_1.NodeOperationError(loadOptionsFunctions.getNode(), 'Business ID is required in credentials');
|
|
19
|
+
}
|
|
20
|
+
const response = await loadOptionsFunctions.helpers.requestWithAuthentication.call(loadOptionsFunctions, 'oneShotOAuth2Api', {
|
|
21
|
+
method: 'GET',
|
|
22
|
+
url: `/business/${businessId}/transactions?`,
|
|
23
|
+
qs: {
|
|
24
|
+
pageSize: 100,
|
|
25
|
+
page: 1,
|
|
26
|
+
stateMutability: executable ? ['NonPayable', 'Payable'] : ['View', 'Pure'],
|
|
27
|
+
},
|
|
28
|
+
headers: {
|
|
29
|
+
Accept: 'application/json',
|
|
30
|
+
'Content-Type': 'application/json',
|
|
31
|
+
},
|
|
32
|
+
json: true,
|
|
33
|
+
baseURL: 'https://api.1shotapi.com/v0',
|
|
34
|
+
});
|
|
35
|
+
for (const transaction of response.response) {
|
|
36
|
+
options.push({
|
|
37
|
+
name: transaction.name || transaction.id,
|
|
38
|
+
value: transaction.id,
|
|
39
|
+
description: transaction.description || '',
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
loadOptionsFunctions.logger.error(`Error loading transactions ${error.message}`, { error });
|
|
45
|
+
}
|
|
46
|
+
return options;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../nodes/OneShot/executions/options.ts"],"names":[],"mappings":";;AAEA,0EAIC;AAED,gEAIC;AAZD,+CAA+F;AAExF,KAAK,UAAU,+BAA+B;IAGpD,OAAO,sBAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC3C,CAAC;AAEM,KAAK,UAAU,0BAA0B;IAG/C,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,KAAK,UAAU,sBAAsB,CACpC,oBAA2C,EAC3C,UAAmB;IAEnB,MAAM,OAAO,GAA2B,EAAE,CAAC;IAE3C,IAAI,CAAC;QAEJ,MAAM,WAAW,GAAG,MAAM,oBAAoB,CAAC,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
|
|
1
|
+
<svg width="138" height="153" viewBox="0 0 138 153" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M39.9533 109.215C35.326 107.103 32.2076 101.321 27.6306 100.014C26.2726 99.5616 24.1098 100.115 23.5062 101.321C22.1985 104.036 27.1276 110.572 29.1395 112.634C31.0005 114.746 33.3644 115.902 35.2254 118.064C37.4888 120.578 37.187 124.349 34.3704 126.309C31.0005 128.823 26.8761 127.265 23.2547 127.114C17.1185 126.812 10.3284 127.818 4.94662 130.834C3.53831 131.689 2.33118 133.851 3.73949 135.158C4.34306 135.661 5.49989 136.013 6.75731 136.164L37.4905 141.179C38.0472 141.269 38.4274 141.791 38.3437 142.349C38.2601 142.906 37.7444 143.293 37.186 143.217L6.30464 139.03C5.60048 138.929 4.89632 138.829 4.14187 138.627C1.27494 137.924 -0.586049 135.259 0.168406 132.292C0.822267 129.024 4.24246 127.164 7.0088 126.108C12.1894 123.997 17.8227 123.041 23.4559 123.242C25.7696 123.242 28.7371 124.047 30.8496 123.494C34.7225 122.036 31.1011 119.874 29.2401 118.516C24.7133 115.248 18.4765 107.857 18.3759 102.025C18.3256 97.0477 23.6571 93.9305 28.1838 94.7852C31.604 95.3383 34.4207 97.5002 36.8349 99.6622C38.8468 101.522 40.6575 103.232 42.4682 104.087L40.0036 109.114L39.9533 109.215Z" fill="#239AAA"/>
|
|
3
|
+
<path d="M80.6436 14.2902C80.6436 14.2902 81.6495 8.9105 87.1822 5.34078L91.3065 2.52522C91.3065 2.52522 97.5434 -1.89922 100.561 4.78772C103.529 11.4747 103.981 15.4466 101.114 19.8208L98.4487 23.7927" fill="#58BEC6"/>
|
|
4
|
+
<path d="M94.9783 23.4399C94.9783 23.4399 98.65 16.5518 97.7949 11.876C96.9399 7.20018 95.431 4.48518 93.6203 3.73101C91.7593 2.97685 88.3391 6.19463 87.3332 6.79796C86.3272 7.40129 82.907 9.01018 81.6496 11.2224C80.4425 13.4346 80.5431 16.5016 80.5431 16.5016C80.5431 16.5016 93.6203 18.8646 94.9783 23.3896V23.4399Z" fill="#31ADBE"/>
|
|
5
|
+
<path d="M63.2917 145.314C63.2917 145.314 83.6117 145.817 92.816 143.001C92.816 143.001 94.4255 142.75 95.0794 142.9C95.7333 143.051 96.8398 143.353 97.2925 144.258C97.7451 145.163 100.009 147.627 102.372 147.878C104.736 148.129 105.541 149.085 106.245 149.889C106.899 150.693 107.754 151.649 108.559 151.247C109.364 150.844 111.074 150.291 112.885 150.844C114.695 151.397 117.361 151.8 117.663 151.397C117.965 150.995 117.914 150.543 117.914 150.543C117.914 150.543 120.027 150.945 120.077 150.543C120.127 150.14 118.769 148.783 118.769 148.783C118.769 148.783 121.385 149.437 121.586 148.833C121.787 148.23 118.769 147.023 113.89 145.414C109.012 143.805 106.597 142.85 105.441 141.895C104.284 140.94 104.233 140.688 102.825 140.738C102.825 140.738 105.591 138.526 107.704 134.755C109.816 130.985 112.231 124.448 113.035 120.175C113.84 115.901 114.343 111.678 113.035 107.555C111.728 103.432 108.911 96.4437 108.911 96.4437C108.911 96.4437 108.408 89.1535 106.799 83.9748C105.189 78.746 100.059 61.5509 100.059 61.5509C100.059 61.5509 117.914 55.9701 119.775 46.6184C121.636 37.2668 113.538 46.0654 98.399 23.8929C94.3752 18.0104 90.5527 14.1893 77.4754 14.3904C73.0493 14.4407 68.7741 14.7926 65.9071 16.7032C59.4691 20.9768 57.7087 28.4682 56.6525 30.1273C55.0933 32.5407 50.5162 42.5459 50.6671 49.1323C50.8683 56.2215 53.8861 57.6293 52.176 59.9421C50.4659 62.2046 41.3622 80.1035 40.2557 86.1871C39.0988 92.2707 38.1432 111.577 38.1432 111.577C38.1432 111.577 34.8739 132.593 53.6347 145.364C53.6347 145.364 55.1436 145.766 53.0814 146.37C51.0192 146.923 46.6434 146.872 45.6877 147.224C44.7321 147.576 43.3238 148.481 42.2172 149.638C41.1107 150.794 40.6077 151.397 40.6077 151.397L41.8149 151.498C42.7202 151.548 43.6256 151.397 44.38 150.995L47.6996 149.336L45.4865 151.749C45.3357 151.9 45.4865 152.101 45.6374 152.101H48.1523C48.5547 152.152 48.957 151.95 49.2085 151.649L50.9186 149.386L49.8624 152.101H51.4719C52.176 152.051 52.8299 151.8 53.3329 151.397C53.8358 150.995 54.4394 150.593 55.4956 150.291C57.5578 149.638 61.3804 147.978 63.2917 145.364V145.314Z" fill="#8BD1DA"/>
|
|
6
|
+
<path d="M114.041 145.414C109.162 143.805 106.748 142.85 105.591 141.894C104.435 140.939 104.384 140.688 102.976 140.738C102.976 140.738 105.742 138.526 107.855 134.755C109.967 130.984 112.381 124.448 113.186 120.174C113.991 115.901 114.494 111.677 113.186 107.555C111.929 103.432 109.062 96.4432 109.062 96.4432C109.062 96.4432 109.062 96.2421 109.062 95.8398C108.307 96.041 107.553 96.1415 106.799 96.0912C106.145 96.0912 104.787 97.0465 104.233 96.8454C101.668 101.521 99.9078 105.141 97.393 109.867C96.1858 112.18 94.9787 114.543 93.7716 116.906C92.5142 119.32 91.9106 120.526 91.0053 122.387C88.7419 126.962 86.4785 131.587 84.3158 136.213C82.9577 139.079 81.65 141.995 80.292 144.911C84.9696 144.559 89.6975 144.006 92.9668 143C92.9668 143 94.5763 142.749 95.2302 142.9C95.8841 143.051 96.9906 143.352 97.4433 144.257C97.8959 145.112 100.159 147.626 102.523 147.877C104.887 148.129 105.692 149.084 106.346 149.888C107 150.693 107.855 151.648 108.66 151.246C109.464 150.844 111.174 150.291 112.985 150.844C114.796 151.397 117.461 151.799 117.763 151.397C118.115 150.995 118.015 150.542 118.015 150.542C118.015 150.542 120.127 150.944 120.178 150.542C120.228 150.14 118.87 148.782 118.87 148.782C118.87 148.782 121.485 149.436 121.686 148.833C121.888 148.229 118.87 147.023 113.991 145.414H114.041Z" fill="url(#paint0_linear_2903_27634)"/>
|
|
7
|
+
<path d="M42.5188 93.5781C42.5188 93.5781 34.7731 111.628 38.6459 124.901C42.5188 138.175 53.3829 145.465 53.3829 145.465L59.0162 148.984C59.0162 148.984 61.3802 147.677 62.8891 145.817L73.7532 145.012L42.4685 93.5781H42.5188Z" fill="url(#paint1_linear_2903_27634)"/>
|
|
8
|
+
<path d="M118.567 44.1045C124.1 41.0376 130.488 39.4287 136.775 39.3281C130.488 40.0823 124.352 41.6409 118.567 44.1045Z" fill="black"/>
|
|
9
|
+
<path d="M119.138 44.7244C125.393 43.7492 131.91 44.3908 137.9 46.4776C131.753 45.0789 125.436 44.4678 119.138 44.7244Z" fill="black"/>
|
|
10
|
+
<path d="M109.414 46.1672C102.523 45.7649 95.5821 45.8655 88.6914 46.4186C95.5318 45.1616 102.573 45.1113 109.414 46.1672Z" fill="black"/>
|
|
11
|
+
<path d="M109.917 47.625C101.97 50.0383 94.4254 53.6081 87.3838 57.9822C87.7862 57.6806 88.1885 57.3286 88.6412 57.0269C94.9283 52.4014 102.272 49.0328 109.917 47.625Z" fill="black"/>
|
|
12
|
+
<path d="M118.567 46.8711C124.905 47.1728 131.192 49.0833 136.574 52.3514C130.84 49.7369 124.804 47.8766 118.567 46.8711Z" fill="black"/>
|
|
13
|
+
<path d="M118.266 41.4402C117.813 41.1888 113.136 43.1497 113.136 43.1497C113.136 43.1497 111.727 46.2669 114.846 47.1216C117.964 47.9763 120.227 48.278 119.825 46.5686C119.423 44.8591 121.384 43.1497 118.266 41.4402Z" fill="#DB6B7E"/>
|
|
14
|
+
<path d="M94.1099 33.5446C94.1099 33.5446 92.1861 37.1176 87.9749 36.3743C83.3498 35.1912 84.675 32.8784 84.9283 31.4363C85.1816 29.9942 85.4737 30.368 86.0635 30.205C87.7881 29.7714 91.0404 29.1165 94.1099 33.5446Z" fill="black"/>
|
|
15
|
+
<path d="M108.86 58.0815C108.86 58.0815 79.6876 62.8579 66.208 60.4446C68.2528 60.7438 86.398 61.4506 93.7917 75.629C96.9395 89.5186 96.9395 95.5385 96.9395 95.5385C96.9395 95.5385 108.005 92.1699 108.206 87.9465C108.81 74.7738 100.309 61.7015 100.309 61.7015L108.91 58.0312L108.86 58.0815Z" fill="#31ADBE"/>
|
|
16
|
+
<path d="M100.461 62.1043C100.31 61.8529 100.26 61.7523 100.26 61.7523L108.861 58.082C108.861 58.082 83.008 62.3054 68.7236 60.797C71.9929 61.3501 80.5441 63.9485 86.0264 67.116C91.1567 65.0546 92.1117 64.7187 100.461 62.1043Z" fill="#239AAA"/>
|
|
17
|
+
<path d="M44.3291 102.227L69.2261 145.566L84.0637 144.963C84.0637 144.963 104.736 117.712 109.011 95.9922" fill="url(#paint2_linear_2903_27634)"/>
|
|
18
|
+
<path d="M54.6905 33.596C52.3265 35.0037 50.2644 34.7523 50.2644 34.7523C50.2644 34.7523 44.1281 35.3054 36.9357 29.9257C29.7432 24.5459 26.2943 12.8816 33.2856 5.79238C40.2769 -1.29678 56.4509 -0.693508 60.4244 5.79233C64.3978 12.3284 67.4157 15.8479 67.4157 15.8479" fill="#8BD1DA"/>
|
|
19
|
+
<path d="M32.711 7.50281C39.7023 0.413639 54.6908 2.22364 58.6643 8.70947C62.0845 14.3406 64.8508 17.7595 65.5047 18.5639L67.4663 15.8489C67.4663 15.8489 64.4484 12.3295 60.475 5.79336C56.5015 -0.74275 41.5633 -2.55275 34.5217 4.58669C33.3146 5.79336 32.4092 7.15086 31.7554 8.65919C30.4158 8.65919 32.4092 7.85475 32.7613 7.50281H32.711Z" fill="#58BEC6"/>
|
|
20
|
+
<path d="M59.3684 23.0881C59.3684 23.0881 56.9038 16.6023 53.4836 11.7756C50.0634 6.94898 46.7438 3.83176 35.2258 6.64731C35.2258 6.64731 33.5157 6.99926 31.2524 9.71426C28.989 12.4293 29.1902 15.7979 31.9062 22.0826C33.2642 25.1998 36.1815 27.764 37.5898 28.7193C38.9981 29.6745 42.1165 31.7359 47.6995 32.1381C53.2824 32.5404 56.7026 29.2723 56.7026 29.2723L59.3684 23.1384V23.0881Z" fill="#FFD5CF"/>
|
|
21
|
+
<path d="M59.418 23.4909C57.1546 18.3625 54.7907 12.9325 50.7166 8.96057C47.6485 5.94391 43.1218 4.93835 38.9974 5.7428C37.5891 5.94391 36.2311 6.34613 34.873 6.74835C37.4885 5.69252 40.3554 4.98863 43.2726 5.13946C52.477 5.64224 56.7019 15.9492 59.418 23.4406V23.4909Z" fill="#58B3BF"/>
|
|
22
|
+
<path d="M56.8028 29.3232C54.0868 32.1388 49.9121 33.3455 46.0393 32.6918C42.2167 32.1891 38.2432 30.6807 35.6781 27.7144C33.968 25.7535 32.4591 23.6418 31.4531 21.2285C32.6603 23.491 34.2195 25.5524 35.9799 27.4127C38.5953 30.2282 42.4179 31.636 46.1399 32.1891C49.9121 32.893 53.9359 31.8371 56.8028 29.273V29.3232Z" fill="#58B3BF"/>
|
|
23
|
+
<path d="M55.4448 14.8427C55.2939 14.8427 51.6725 13.7366 50.063 16.8035C48.4535 19.8202 49.8618 24.8982 52.8796 26.8591C55.8472 28.8199 56.7525 29.2221 56.7525 29.2221L59.368 23.3899L55.4951 14.8929L55.4448 14.8427Z" fill="#DB6B7E"/>
|
|
24
|
+
<path d="M100.235 93.082L92.0509 89.9382V78.793L75.8505 79.9776C70.0364 80.4027 64.9953 84.158 62.9236 89.607L61.3672 93.7007C61.3672 93.7007 61.8913 91.9882 66.3197 106.989L62.8291 113.447C62.8291 113.447 72.8319 125.063 81.6364 129.49L95.5985 108.916L100.235 93.1341V93.082Z" fill="#ADDFE0"/>
|
|
25
|
+
<path d="M77.8675 87.043C77.8675 87.043 84.8149 98.0302 85.909 99.2281C90.3373 104.176 86.482 107.77 82.9915 113.916C79.5009 120.062 79.0253 119.542 75.9583 119.542C73.6701 119.542 69.6545 118.969 69.0293 115.843L64.7573 102.77C64.7573 102.77 60.9542 94.2279 65.9555 91.8841C70.9569 89.5402 77.8675 87.043 77.8675 87.043Z" fill="#EEF7F7"/>
|
|
26
|
+
<path d="M106.496 90.9126L98.9016 96.1415L95.2802 104.085C95.2802 104.085 93.7713 102.577 92.4636 102.275C91.1559 101.974 89.6973 102.175 89.6973 102.175C89.6973 102.175 96.5377 92.5215 96.4371 89.4043" fill="#239AAA"/>
|
|
27
|
+
<path d="M89.7473 102.176L86.4277 109.567L90.3006 105.193L87.5343 111.176L92.061 105.696L89.3953 111.578C89.3953 111.578 95.7327 104.74 95.28 104.087C93.419 101.472 89.697 102.176 89.697 102.176H89.7473Z" fill="#FFD5CF"/>
|
|
28
|
+
<path d="M90.9549 104.387C89.8483 105.845 88.6412 107.152 87.2832 108.409C88.3897 106.951 89.5969 105.644 90.9549 104.387Z" fill="#B74C41"/>
|
|
29
|
+
<path d="M92.4134 105.395C91.4074 106.903 90.2506 108.311 88.9932 109.618C89.9991 108.11 91.1559 106.702 92.4134 105.395Z" fill="#B74C41"/>
|
|
30
|
+
<path d="M93.7708 106.35C92.7648 107.858 91.608 109.266 90.3506 110.573C91.3565 109.065 92.5134 107.657 93.7708 106.35Z" fill="#B74C41"/>
|
|
31
|
+
<path d="M44.4619 88.2266L52.3585 96.8743L59.7019 111.958L61.5126 109.695L68.2021 114.824L68.1518 111.002L55.9799 94.6621L45.4679 88.4277L44.4619 88.2266Z" fill="url(#paint3_linear_2903_27634)"/>
|
|
32
|
+
<path d="M44.4619 88.1764C44.4619 88.1764 54.3201 94.7125 54.4207 94.9136C56.7847 101.651 60.557 106.075 60.557 106.075L61.412 103.31C62.1665 100.947 65.1843 100.746 65.1843 100.746L62.6191 94.8634C59.8025 86.7184 62.6191 82.1934 62.6191 82.1934" fill="#239AAA"/>
|
|
33
|
+
<path d="M65.1842 100.796C65.1842 100.796 65.9387 106.83 71.7228 109.394C71.7228 109.394 70.4151 110.148 68.202 108.539L70.3648 112.813L66.9446 110.047L68.1014 114.572C68.1014 114.572 66.7937 112.561 64.4298 109.092C62.0658 105.573 61.1102 104.919 61.1102 104.919C61.1102 104.919 60.3557 101.4 65.1842 100.746V100.796Z" fill="#FFD5CF"/>
|
|
34
|
+
<path d="M44.8643 87.6233L61.8144 91.2886C61.8144 91.2886 61.8144 90.0693 61.8144 87.2211C61.8144 80.8861 66.5423 77.1152 66.5423 77.1152L44.8643 87.6233Z" fill="#8BD1DA"/>
|
|
35
|
+
<path d="M66.542 108.941C67.2462 110.601 67.7491 112.36 68.1012 114.12C67.397 112.461 66.8941 110.701 66.542 108.941Z" fill="#B74C41"/>
|
|
36
|
+
<path d="M67.1465 106.779C68.1524 108.288 69.0075 109.897 69.7116 111.556C68.7057 110.047 67.8506 108.438 67.1465 106.779Z" fill="#B74C41"/>
|
|
37
|
+
<path d="M67.0459 105.473C68.253 106.73 69.3093 108.137 70.8685 108.992C69.1584 108.489 68.0015 106.931 67.0459 105.473Z" fill="#B74C41"/>
|
|
38
|
+
<path d="M51.7729 146.621C49.5598 146.923 46.3911 146.923 45.6366 147.224C44.7313 147.576 43.2727 148.481 42.1661 149.638C41.0093 150.794 40.5566 151.397 40.5566 151.397L41.7638 151.498C42.6691 151.548 43.5745 151.397 44.3289 150.995L47.6485 149.336L45.4355 151.749C45.2846 151.9 45.4354 152.101 45.5863 152.101H48.1012C48.5036 152.152 48.9059 151.951 49.1574 151.649L50.8675 149.386L49.8113 152.101H51.4208C52.125 152.051 52.7788 151.8 53.2818 151.397C53.7848 150.995 54.3883 150.593 55.4446 150.291C56.4002 149.99 57.6576 149.487 59.0156 148.783C56.5511 148.23 54.1871 147.526 51.8232 146.621H51.7729Z" fill="#FFD5CF"/>
|
|
39
|
+
<path d="M115.147 145.867C111.627 147.074 107.955 147.878 104.183 148.381C105.189 148.783 105.692 149.387 106.144 149.94C106.798 150.744 107.653 151.699 108.458 151.297C109.263 150.895 110.973 150.342 112.783 150.895C114.594 151.448 117.26 151.85 117.562 151.448C117.914 151.046 117.813 150.593 117.813 150.593C117.813 150.593 119.926 150.996 119.976 150.593C120.026 150.191 118.668 148.834 118.668 148.834C118.668 148.834 121.284 149.487 121.485 148.884C121.686 148.331 119.171 147.275 115.097 145.867H115.147Z" fill="#FFD5CF"/>
|
|
40
|
+
<path d="M81.9142 31.3614C85.4874 29.6351 88.5067 30.3415 89.1867 30.6206C88.1937 31.1753 85.4123 32.9339 85.6021 32.2636C85.8213 31.4898 82.6517 31.2339 81.9142 31.3614Z" fill="black"/>
|
|
41
|
+
<path d="M87.6068 32.8005C88.419 32.7154 89.0406 32.2953 88.9952 31.8623C88.9498 31.4292 88.2545 31.1473 87.4423 31.2325C86.6301 31.3177 86.0085 31.7377 86.0539 32.1708C86.0993 32.6038 86.7946 32.8857 87.6068 32.8005Z" fill="#EDEDED"/>
|
|
42
|
+
<defs>
|
|
43
|
+
<linearGradient id="paint0_linear_2903_27634" x1="117.814" y1="108.409" x2="101.176" y2="146.424" gradientUnits="userSpaceOnUse">
|
|
44
|
+
<stop stop-color="#BDDEE0"/>
|
|
45
|
+
<stop offset="1" stop-color="#239DA6"/>
|
|
46
|
+
</linearGradient>
|
|
47
|
+
<linearGradient id="paint1_linear_2903_27634" x1="45.0336" y1="110.371" x2="60.2137" y2="144.262" gradientUnits="userSpaceOnUse">
|
|
48
|
+
<stop stop-color="#BCDDE0"/>
|
|
49
|
+
<stop offset="1" stop-color="#209CA5"/>
|
|
50
|
+
</linearGradient>
|
|
51
|
+
<linearGradient id="paint2_linear_2903_27634" x1="77.2736" y1="102.83" x2="83.8576" y2="142.751" gradientUnits="userSpaceOnUse">
|
|
52
|
+
<stop stop-color="#BCDDE0"/>
|
|
53
|
+
<stop offset="0.8" stop-color="#79C6CD"/>
|
|
54
|
+
</linearGradient>
|
|
55
|
+
<linearGradient id="paint3_linear_2903_27634" x1="48.1336" y1="109.192" x2="62.7648" y2="95.5113" gradientUnits="userSpaceOnUse">
|
|
56
|
+
<stop offset="0.2" stop-color="#BCDDE0" stop-opacity="0"/>
|
|
57
|
+
<stop offset="0.8" stop-color="#3B7489"/>
|
|
58
|
+
</linearGradient>
|
|
59
|
+
</defs>
|
|
60
|
+
</svg>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-1shot",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "1Shot API node for n8n",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"1shot",
|
|
8
|
+
"1shotapi",
|
|
9
|
+
"blockchain",
|
|
10
|
+
"web3"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"homepage": "",
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Charlie Sibbach",
|
|
16
|
+
"email": "charlie@uxly.software"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/UXlySoftware/n8n-nodes-1shot"
|
|
21
|
+
},
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=20.15"
|
|
24
|
+
},
|
|
25
|
+
"main": "index.js",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "npx rimraf dist && tsc && gulp build:icons",
|
|
28
|
+
"dev": "tsc --watch",
|
|
29
|
+
"format": "prettier nodes credentials --write",
|
|
30
|
+
"lint": "eslint nodes credentials package.json",
|
|
31
|
+
"lintfix": "eslint nodes credentials package.json --fix",
|
|
32
|
+
"prepublishOnly": "npm run build && npm run lint -c .eslintrc.prepublish.js nodes credentials package.json",
|
|
33
|
+
"restart": "npm run build && docker-compose down && docker-compose up -d"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"n8n": {
|
|
39
|
+
"n8nNodesApiVersion": 1,
|
|
40
|
+
"credentials": [
|
|
41
|
+
"dist/credentials/oneShotOAuth2Api.credentials.js"
|
|
42
|
+
],
|
|
43
|
+
"nodes": [
|
|
44
|
+
"dist/nodes/OneShot/OneShot.node.js"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@typescript-eslint/parser": "~8.32.0",
|
|
49
|
+
"eslint": "^8.57.0",
|
|
50
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.3",
|
|
51
|
+
"gulp": "^5.0.0",
|
|
52
|
+
"prettier": "^3.5.3",
|
|
53
|
+
"typescript": "^5.8.2"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"n8n-workflow": "*"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/axios/index.d.ts","../node_modules/form-data/index.d.ts","../node_modules/n8n-workflow/dist/constants.d.ts","../node_modules/n8n-workflow/dist/deferredpromise.d.ts","../node_modules/n8n-workflow/dist/errors/error.types.d.ts","../node_modules/n8n-workflow/dist/errors/base/base.error.d.ts","../node_modules/n8n-workflow/dist/errors/base/operational.error.d.ts","../node_modules/n8n-workflow/dist/errors/base/unexpected.error.d.ts","../node_modules/n8n-workflow/dist/errors/base/user.error.d.ts","../node_modules/n8n-workflow/dist/errors/application.error.d.ts","../node_modules/n8n-workflow/dist/errors/abstract/execution-base.error.d.ts","../node_modules/n8n-workflow/dist/errors/expression.error.d.ts","../node_modules/n8n-workflow/dist/errors/execution-cancelled.error.d.ts","../node_modules/n8n-workflow/dist/errors/abstract/node.error.d.ts","../node_modules/n8n-workflow/dist/errors/node-api.error.d.ts","../node_modules/n8n-workflow/dist/errors/node-operation.error.d.ts","../node_modules/n8n-workflow/dist/errors/node-ssl.error.d.ts","../node_modules/n8n-workflow/dist/errors/workflow-activation.error.d.ts","../node_modules/n8n-workflow/dist/errors/webhook-taken.error.d.ts","../node_modules/n8n-workflow/dist/errors/workflow-deactivation.error.d.ts","../node_modules/n8n-workflow/dist/errors/workflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/errors/subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/errors/cli-subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/errors/trigger-close.error.d.ts","../node_modules/n8n-workflow/dist/errors/expression-extension.error.d.ts","../node_modules/n8n-workflow/dist/errors/db-connection-timeout-error.d.ts","../node_modules/n8n-workflow/dist/errors/ensure-error.d.ts","../node_modules/n8n-workflow/dist/errors/index.d.ts","../node_modules/n8n-workflow/dist/executionstatus.d.ts","../node_modules/n8n-workflow/dist/result.d.ts","../node_modules/n8n-workflow/dist/expression.d.ts","../node_modules/n8n-workflow/dist/workflow.d.ts","../node_modules/n8n-workflow/dist/workflowdataproxyenvprovider.d.ts","../node_modules/n8n-workflow/dist/interfaces.d.ts","../node_modules/n8n-workflow/dist/loggerproxy.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/types.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/gen/namedtypes.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/gen/kinds.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/gen/builders.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/types.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/path.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/scope.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/node-path.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/path-visitor.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/gen/visitor.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/main.d.ts","../node_modules/@n8n/tournament/node_modules/recast/lib/options.d.ts","../node_modules/@n8n/tournament/node_modules/recast/lib/parser.d.ts","../node_modules/@n8n/tournament/node_modules/recast/lib/printer.d.ts","../node_modules/@n8n/tournament/node_modules/recast/main.d.ts","../node_modules/@n8n/tournament/dist/expressionsplitter.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/gen/namedtypes.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/gen/kinds.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/gen/builders.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/types.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/path.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/scope.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/node-path.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/path-visitor.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/gen/visitor.d.ts","../node_modules/@n8n/tournament/node_modules/ast-types/lib/main.d.ts","../node_modules/@n8n/tournament/dist/ast.d.ts","../node_modules/@n8n/tournament/dist/expressionbuilder.d.ts","../node_modules/@n8n/tournament/dist/evaluator.d.ts","../node_modules/@n8n/tournament/dist/analysis.d.ts","../node_modules/@n8n/tournament/dist/index.d.ts","../node_modules/n8n-workflow/dist/expressionevaluatorproxy.d.ts","../node_modules/n8n-workflow/dist/nodehelpers.d.ts","../node_modules/n8n-workflow/dist/observableobject.d.ts","../node_modules/n8n-workflow/dist/telemetryhelpers.d.ts","../node_modules/n8n-workflow/dist/cron.d.ts","../node_modules/n8n-workflow/dist/globalstate.d.ts","../node_modules/n8n-workflow/dist/messageeventbus.d.ts","../node_modules/zod/lib/helpers/typealiases.d.ts","../node_modules/zod/lib/helpers/util.d.ts","../node_modules/zod/lib/zoderror.d.ts","../node_modules/zod/lib/locales/en.d.ts","../node_modules/zod/lib/errors.d.ts","../node_modules/zod/lib/helpers/parseutil.d.ts","../node_modules/zod/lib/helpers/enumutil.d.ts","../node_modules/zod/lib/helpers/errorutil.d.ts","../node_modules/zod/lib/helpers/partialutil.d.ts","../node_modules/zod/lib/standard-schema.d.ts","../node_modules/zod/lib/types.d.ts","../node_modules/zod/lib/external.d.ts","../node_modules/zod/lib/index.d.ts","../node_modules/zod/index.d.ts","../node_modules/n8n-workflow/dist/fromaiparseutils.d.ts","../node_modules/n8n-workflow/dist/metadatautils.d.ts","../node_modules/n8n-workflow/dist/workflowdataproxy.d.ts","../node_modules/n8n-workflow/dist/versionednodetype.d.ts","../node_modules/n8n-workflow/dist/typevalidation.d.ts","../node_modules/n8n-workflow/dist/utils.d.ts","../node_modules/n8n-workflow/dist/type-guards.d.ts","../node_modules/n8n-workflow/dist/extensions/extensions.d.ts","../node_modules/n8n-workflow/dist/extensions/expressionextension.d.ts","../node_modules/n8n-workflow/dist/extensions/index.d.ts","../node_modules/n8n-workflow/dist/extensions/expressionparser.d.ts","../node_modules/n8n-workflow/dist/nativemethods/index.d.ts","../node_modules/n8n-workflow/dist/nodeparameters/filterparameter.d.ts","../node_modules/n8n-workflow/dist/index.d.ts","../credentials/oneshotapi.credentials.ts","../nodes/oneshot/descriptions/transactiondescription.ts","../nodes/oneshot/descriptions/escrowwalletdescription.ts","../nodes/oneshot/executions/options.ts","../nodes/oneshot/descriptions/promptdescription.ts","../nodes/oneshot/oneshot.node.ts","../nodes/oneshot/oneshot.node.json","../package.json","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/semver/classes/semver.d.ts","../node_modules/@types/semver/functions/parse.d.ts","../node_modules/@types/semver/functions/valid.d.ts","../node_modules/@types/semver/functions/clean.d.ts","../node_modules/@types/semver/functions/inc.d.ts","../node_modules/@types/semver/functions/diff.d.ts","../node_modules/@types/semver/functions/major.d.ts","../node_modules/@types/semver/functions/minor.d.ts","../node_modules/@types/semver/functions/patch.d.ts","../node_modules/@types/semver/functions/prerelease.d.ts","../node_modules/@types/semver/functions/compare.d.ts","../node_modules/@types/semver/functions/rcompare.d.ts","../node_modules/@types/semver/functions/compare-loose.d.ts","../node_modules/@types/semver/functions/compare-build.d.ts","../node_modules/@types/semver/functions/sort.d.ts","../node_modules/@types/semver/functions/rsort.d.ts","../node_modules/@types/semver/functions/gt.d.ts","../node_modules/@types/semver/functions/lt.d.ts","../node_modules/@types/semver/functions/eq.d.ts","../node_modules/@types/semver/functions/neq.d.ts","../node_modules/@types/semver/functions/gte.d.ts","../node_modules/@types/semver/functions/lte.d.ts","../node_modules/@types/semver/functions/cmp.d.ts","../node_modules/@types/semver/functions/coerce.d.ts","../node_modules/@types/semver/classes/comparator.d.ts","../node_modules/@types/semver/classes/range.d.ts","../node_modules/@types/semver/functions/satisfies.d.ts","../node_modules/@types/semver/ranges/max-satisfying.d.ts","../node_modules/@types/semver/ranges/min-satisfying.d.ts","../node_modules/@types/semver/ranges/to-comparators.d.ts","../node_modules/@types/semver/ranges/min-version.d.ts","../node_modules/@types/semver/ranges/valid.d.ts","../node_modules/@types/semver/ranges/outside.d.ts","../node_modules/@types/semver/ranges/gtr.d.ts","../node_modules/@types/semver/ranges/ltr.d.ts","../node_modules/@types/semver/ranges/intersects.d.ts","../node_modules/@types/semver/ranges/simplify.d.ts","../node_modules/@types/semver/ranges/subset.d.ts","../node_modules/@types/semver/internals/identifiers.d.ts","../node_modules/@types/semver/index.d.ts"],"fileIdsList":[[148],[110],[97,108],[113],[97,98,109],[109,110,111,112],[99,100],[99],[100,102],[99,105,106],[99,101,102,103,105,106,107],[102,103,104],[102,105,107],[102],[102,105],[99,101],[83],[94],[93,94,95,96],[84,85],[84],[83,85,87],[84,90,91],[83,87,88,89],[83,87,90,92],[83,87],[83,90],[83,84,86],[83,84,86,87,88,90,91,92],[158,197],[158,182,197],[197],[158],[158,183,197],[158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[183,197],[81],[52,57,81],[58,81],[52],[53],[69],[57],[58],[59],[52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],[52,61,81],[61,62,81],[68],[65],[57,58,81],[79,81],[81,113],[142],[142,143],[134],[50,51,75,76,77,78,79,80,81,82,114,115,116,117,118,119,120,135,136,137,138,139,140,141,144,145,146,147],[48,49,50,51,59,62,63,65,68,75,76,77,79,80],[57,81],[78,81],[79,80,81],[133],[123,124],[121,122,123,125,126,131],[122,123],[132],[123],[121,122,123,126,127,128,129,130],[121,122,133],[148,150,151,152,153]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc602ef9638db2163c461ec64133fe76f890f6e03b69b1c96f5c5e59592025e8","impliedFormat":99},{"version":"736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","impliedFormat":1},{"version":"8093df4b6de7728cd3327b33ce2846cb808e3b738b55f380578ab47fb1a0a82f","impliedFormat":1},{"version":"a0981ee0c7ac06bdb575558bd09bac190e1c0c7888ddcb63d8bf648f23a30e8c","impliedFormat":1},{"version":"b047c5f4612ebd6f142d2eda135939c6808ac082b2251a36e9e002b96f04ca18","impliedFormat":1},{"version":"816c068d57010d183fa4dce821e6552a912cb654cf9f0e840f49f0a0fb3d2157","impliedFormat":1},{"version":"5ca59af607163e4c0b2350019394132c6fd5d643ecc13d5d2692084c23eb74fc","impliedFormat":1},{"version":"ebc356c4f81035935ebddc0e1c7818038b78043d349d58e1042aa1c0579b5600","impliedFormat":1},{"version":"fc73b467be17d21f268b1dae8e63c269e8eba711d6d3faf3c5e525383ac5b461","impliedFormat":1},{"version":"4ba081d644e7e33dc2fa68f4bf7b963cbf9838092a10f0f7d5dcc98095012bfb","impliedFormat":1},{"version":"7c1d9666b46748a09c7c290f2cad37d32d0a395c4fc49357f0f7b32cd2dc7d97","impliedFormat":1},{"version":"054eafa956d5592e6a91c2553e5657ee3032ed50121a65da1079c96d82631459","impliedFormat":1},{"version":"01d56fcd8d2968c9545f42ab80c1e6a43be249dadeb2d38262b888370ebbdf32","impliedFormat":1},{"version":"cf53b1ef37bdf9eacfe04a5c0977793a87fbdd8d6893aa513075fa656c2f7638","impliedFormat":1},{"version":"bfccff2a7a1a17431408d48ec6ef5f54c42d1a1650b97e291c63de8b07333ccb","impliedFormat":1},{"version":"ab8790af6d4be130bd0faaba17d6a1d6394b21a643af03be4827fd7f8664caac","impliedFormat":1},{"version":"37020cf15e16fa6e1c6e2485cd51d6cbe74adee3b860ab49fb7528ca7e8e518e","impliedFormat":1},{"version":"2f83df884805baffce941efa67d2e459f09d82ae5f03b35771eea7bb9875346b","impliedFormat":1},{"version":"1950d2a49c05c7aa6decfe409b552c4ea5fb156894cf0541b34999819bd778ea","impliedFormat":1},{"version":"32fe829960ff7120843f6dd20197e863aee3e81ecded415641a7500654d1bda7","impliedFormat":1},{"version":"0b8d5b22b236fff7e23f3a5d1ddeb80bee6630bd35b1bf1c3efae226f08a1c3d","impliedFormat":1},{"version":"393b1ed0dca4f0aac333e65f2e40dfedfa8b37ac60571e02b152d32d8c84d340","impliedFormat":1},{"version":"f46d50c283425bcc59d68ccf067b3672fb727f802652dc7d60d2e470fb956370","impliedFormat":1},{"version":"38e7ca4f87ae169831eee751ad1b043b672bc9f328c0d44ec5a1bed98756a0b4","impliedFormat":1},{"version":"0b4b6ca509cdb152e18ceeed526d17bb416e7e518508d859a0174977195f9a35","impliedFormat":1},{"version":"124e0f6c51420174212b8d23f9a53d5d781d4777995164f1fb64957eac658ce7","impliedFormat":1},{"version":"c7da212302d6bfa21317461599d24e8077b34664b4ed409c4c02a3d5fe31efaf","impliedFormat":1},{"version":"bf070df468371021e0dd0ad9ab7918b3f94254044136bf711c7e0e855f75309e","impliedFormat":1},{"version":"3226c2a2af36d14aa551babd4154ad18042c0deb1509a61058c6b066cfddc30a","impliedFormat":1},{"version":"191d027b3924d5046fbf118bae0987969b9e03eba478ad34d2572244720ddb3c","impliedFormat":1},{"version":"14f2edd0618d9adaf83d22b55155ec41faddac678b4d158c8380e4325c8b36b6","impliedFormat":1},{"version":"72c9243dfd255afefe50d511f215053083a79db363d12e7e394ba78462be9e1b","impliedFormat":1},{"version":"2fbcb6bb6ffd69437452ca3029458f3c81a92b72aa71922df931cc4d373fffc1","impliedFormat":1},{"version":"8515d09f98ff2e7251cc970e74af5a0790caa52abc02d412ae87cbc6e47239ca","impliedFormat":1},{"version":"6d5438d567004aa049a2cdcad7aa2c3d671c9e74a0209297935b12bc16c3cf38","impliedFormat":1},{"version":"e78705f977ecfcc36de9ab57841ad7a617ef649b07a995577fd857f1d175f730","impliedFormat":1},{"version":"5083850590c7890ffb680f0c9838f48b07eb8b2f7dbe02874858fcac0691705d","impliedFormat":1},{"version":"02a4a2284d423d8ccc3a77aa9257c34fdac28cddfb46f73178e60f6a1b1b31e9","impliedFormat":1},{"version":"3ee8e014aab37dbd755401967fbb9602221550038f6b8da6cedd5291a918ae0a","impliedFormat":1},{"version":"826f3c6a6d737e0d330522094a21cde94a202c5373448240ba483709cb829aec","impliedFormat":1},{"version":"7e4a23f6f3763da4a06900935d22acfd463c375cada5ab325e3980bd6c95d5b3","impliedFormat":1},{"version":"f3e045e81b47113fa02aaf9637b9ef84347610aaceda60a0d8316aabc3f03638","impliedFormat":1},{"version":"1bfe6db4f3dffacd1da82748cb8f0acec04e8a4d7bd36c09573d5d80a7dec28b","impliedFormat":1},{"version":"6a8d6deca8ec4250630fea4e5f23bd9bf0face98739ccd22e08a17173117155b","impliedFormat":1},{"version":"226dbfe4506447111bd898161d47850f8c57f04cbb6a3a6d487b7939dbf89b1b","impliedFormat":1},{"version":"13f846a45f738733c8a63a06eaa9f580e9c07eb7aed5d8a2c674114846a42175","impliedFormat":1},{"version":"9d14fcf0b69094271127c7b6acb36987be5d1bffa4eb948359549f040fb50349","impliedFormat":1},{"version":"e3a5287471fb08f053c06fd998632792aa5f022e45278f1e6dd55fb2fa9e7362","impliedFormat":1},{"version":"28a6c8eeb48e165920067b9193555649fc43c2a28c450f23f622e5eb043d9463","impliedFormat":1},{"version":"1147c3efa5a256bcd6a3d2cfaf764185b7120bf985f8412d9bae596a0348f77b","impliedFormat":1},{"version":"0494f89b64c5e8906ce5284194e09bad42b56837757d79cb9e62ce16aae88ab4","impliedFormat":1},{"version":"0295c7a5d5d956391ab9bf0410e73a89e25fe26810f9a1d823cc794d682cdafc","impliedFormat":1},{"version":"19826a846db870c2261a3c4cf0695df889d9fe3eebe7775f3f5bc76fe7ad07a7","impliedFormat":1},{"version":"e04cafd03370139cdb0c846273cb19eb4264be0073c7baf78e9b2c16ffb74813","impliedFormat":1},{"version":"7c01c77fb7d8664daa64819245d785e106e0a3cb6e43da64346e4400d7fa9401","impliedFormat":1},{"version":"8c2ca98f4713d989d610fbd38a44316bc43c50aa26983e62dc31002f32ce63fa","impliedFormat":1},{"version":"ee931610d1cf7a6e666fad138187751392fc88bee931b94ac8c4571208dc7370","impliedFormat":1},{"version":"53543b3b64e624a81fc5876da6d72c94dd87655e7afc10988cf82ce7cbc74180","impliedFormat":1},{"version":"967e68e99b8a80551837321442a0e2f12ef50aa1ce567ec991ac6bf062a0c7cf","impliedFormat":1},{"version":"144ab2f3ef7404caf39c6acc88d248d7e55ab3dd1c4c0d89367ad12169aec113","impliedFormat":1},{"version":"759002d4454b851c51b3585e0837c77d159c59957fc519c876449ee5d80a6643","impliedFormat":1},{"version":"1ff2be5eb8b9b508603019df9f851240e57360a9417e672bf4de9d3495833f81","impliedFormat":1},{"version":"8263aed8d77f5b9a10de995c8efd14ea0e5bc54e2b4525178b643f5b24f90f1d","impliedFormat":1},{"version":"a7e7df52af8795560306e4b354e6670d978c59a87dd78b81e58656890c5ed451","impliedFormat":1},{"version":"d6220bee7bd245bc2a377f1a8ef31c496132cc9c7e7e3937e7dd4cbbcec0b38d","impliedFormat":1},{"version":"7686d52e8cbd036b9ca265490c31e36945a52ef3a9e726523d36b02befec7331","impliedFormat":1},{"version":"0f55c8c4605355ddea9fdd104ea0cb089e6ce7f41165fdc72d08247665dba0d4","impliedFormat":1},{"version":"9cc46a5cf6e8b232bb86abfd0c0ed4e0fd25d95aa3d2930e4705b078d29e51ec","impliedFormat":1},{"version":"edd5e20e9eb8cb2eaf941d431af3ab69a9b94e7f5d8699b4c938fee1be8d53c4","impliedFormat":1},{"version":"edcb8d46132756662651f6a42656aaeced2e221d0929411fb0a62c906f9873dd","impliedFormat":1},{"version":"382d2239e60b72282adfeb672e22e6df4de3737ce7e5df2151823dab489496ba","impliedFormat":1},{"version":"304b0d21771513c0a36ed7179a9d1069bfa776e95f50b789ce898f3ef2b71514","impliedFormat":1},{"version":"a42e1c2eec0e747163afa705044664a39065215a8d66c930f8d43f118a9bc044","impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"b542939a35357458e62f8229c2d7578ae888d63d3ab837395d7bb8a3064c205e","impliedFormat":1},{"version":"3a5af4fba7b27b815bb40f52715aedebaa4b371da3e5a664e7e0798c9b638825","impliedFormat":1},{"version":"8485b6da53ec35637d072e516631d25dae53984500de70a6989058f24354666f","impliedFormat":1},{"version":"ebe80346928736532e4a822154eb77f57ef3389dbe2b3ba4e571366a15448ef2","impliedFormat":1},{"version":"49c632082dc8a916353288d3d8b2dc82b3471794249a381d090d960c8ceac908","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"71addb585c2db7b8e53dc1b0bcfa58c6c67c6e4fa2b968942046749d66f82e7e","impliedFormat":1},{"version":"c76b0c5727302341d0bdfa2cc2cee4b19ff185b554edb6e8543f0661d8487116","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"0320c5b275beb43649be5a818dfa83a2586ae110ac5bbb2c5eb7184e1fe3ca60","impliedFormat":1},{"version":"f5ef066942e4f0bd98200aa6a6694b831e73200c9b3ade77ad0aa2409e8fe1b1","impliedFormat":1},{"version":"b9e99cd94f4166a245f5158f7286c05406e2a4c694619bceb7a4f3519d1d768e","impliedFormat":1},{"version":"5568d7c32e5cf5f35e092649f4e5e168c3114c800b1d7545b7ae5e0415704802","impliedFormat":1},{"version":"378e26daa6ec402b81f5aea1ab47262d4f8ad8966037c26be75e8185366d09a1","impliedFormat":1},{"version":"4788f58342a67af140858e23a24cdf62457ec1ff79af68ac71b9d3c0c89bb53b","impliedFormat":1},{"version":"efb8488e3acac79cac5927eaa8069fffc1d37cc3b2c3213d0256e9e1be8276bc","impliedFormat":1},{"version":"951baa882e6e3e5026cb8a16f80a8bebec1caa35c3fa016c9a3ce6a338bd3123","impliedFormat":1},{"version":"361547594eb0fdbb5316523e4668c26ec483de464f53c4a0f65bbca573abae3e","impliedFormat":1},{"version":"afcef07b51d43cdd4e1bc0b92a3d84734cded5f12d764af090666afefb5a3676","impliedFormat":1},{"version":"3f6f70c077ed8d600aa24d8c0e83ba0dd5d2c5300d524cd2181efd30c0a62c72","impliedFormat":1},{"version":"b773bcdaeda86c0f58910cecd6c77a0bd60be763127c42cad5a64fe66799b1f6","impliedFormat":1},{"version":"0ca63470234437191f454f7f66b5815d79b59ebc636faa1de1194d282563e431","impliedFormat":1},{"version":"6d3b514475ee51ab5e99e4fc82ffcd6191d40c19dd197a1743111e0757c6f9c6","impliedFormat":1},{"version":"0494f89b64c5e8906ce5284194e09bad42b56837757d79cb9e62ce16aae88ab4","impliedFormat":1},{"version":"716c6fce977a188f23ee5165e4179944a63e8620784a7054fc0dd81f6c348bb4","impliedFormat":1},{"version":"cf2324583854e9b5dd489e537e2d46375ffb66169fbd947dea112898210ed9ff","impliedFormat":1},{"version":"b4b08a04e1861c2494437fad74c5c71f38a2f3d3cdd51fba70fcb072f3337b58","impliedFormat":1},{"version":"e90045605eba99e90c0a90603f2dbf28a797804d8b97ba6fb4b1f09edac1a986","signature":"d919384cd21062c0b7f02eb990904283792516c50e692fb1d6c57a3b607f02e0"},{"version":"9a0a1a67afd322cc5510a1c55abdb2149e4422618dd93bd52d0d2a962c024c8c","signature":"133e2df0a42cb0cf95bfb8f20f34b63c0085f43d9b69801137641652a8bda564"},{"version":"0024a49536a268f26d7d964cb944f8acbae6362357b185b0988207bb23a49177","signature":"967ab3bc3b3227963c9c7bbf9930059f81c1fc4bfe02159a9d9d6a0da498504a"},{"version":"bbd9bbddd7351f24147aabc07b1b168337d5626181bdc789a607a6a1f098fb9d","signature":"bf0e6ca92513bf4f4e41b6339a4e424fcd3538e33e4a2100a82bde8b827d8d74"},{"version":"04774d9fb5531ec2cc0cf7fda517e59a9ede8686cb87afcaf79c3fe9f7c1cc26","signature":"4328b0c96466c1ee35600ad0c03b6db066feeaf9e14c4a706623715d39075380"},{"version":"a44211f2baebf15bdc605ef5d6585890f06cdacbf61da297ee6c25aef62b62ef","signature":"a70940b20690e51dfb086bcee9c56f4b189c509313d9641fdf0704104204155b"},"51bd7753bf7e73dbe15e2db6f74fdb54a3891d09d67842e3f08642a4172762f7","71f7d5f8b763fba4bbfbd24cbb14718f671f921726f120c27bd3af1d4386714f",{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},{"version":"cf3d384d082b933d987c4e2fe7bfb8710adfd9dc8155190056ed6695a25a559e","impliedFormat":1},{"version":"9871b7ee672bc16c78833bdab3052615834b08375cb144e4d2cba74473f4a589","impliedFormat":1},{"version":"c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","impliedFormat":1},{"version":"8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","impliedFormat":1},{"version":"86c73f2ee1752bac8eeeece234fd05dfcf0637a4fbd8032e4f5f43102faa8eec","impliedFormat":1},{"version":"42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","impliedFormat":1},{"version":"ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","impliedFormat":1},{"version":"83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","impliedFormat":1},{"version":"1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","impliedFormat":1},{"version":"0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","impliedFormat":1},{"version":"cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","impliedFormat":1},{"version":"c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","impliedFormat":1},{"version":"f4e9bf9103191ef3b3612d3ec0044ca4044ca5be27711fe648ada06fad4bcc85","impliedFormat":1},{"version":"0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","impliedFormat":1},{"version":"7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","impliedFormat":1},{"version":"bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","impliedFormat":1},{"version":"52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","impliedFormat":1},{"version":"770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","impliedFormat":1},{"version":"d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","impliedFormat":1},{"version":"799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","impliedFormat":1},{"version":"2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","impliedFormat":1},{"version":"9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","impliedFormat":1},{"version":"397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","impliedFormat":1},{"version":"a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","impliedFormat":1},{"version":"a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","impliedFormat":1},{"version":"c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","impliedFormat":1},{"version":"4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","impliedFormat":1},{"version":"f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","impliedFormat":1},{"version":"cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","impliedFormat":1},{"version":"b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","impliedFormat":1},{"version":"c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","impliedFormat":1},{"version":"14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","impliedFormat":1},{"version":"a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","impliedFormat":1},{"version":"f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","impliedFormat":1},{"version":"3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","impliedFormat":1},{"version":"662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","impliedFormat":1},{"version":"c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","impliedFormat":1},{"version":"2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","impliedFormat":1},{"version":"34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","impliedFormat":1},{"version":"844ab83672160ca57a2a2ea46da4c64200d8c18d4ebb2087819649cad099ff0e","impliedFormat":1}],"root":[[149,156]],"options":{"declaration":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedLocals":true,"outDir":"./","preserveConstEnums":true,"removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"target":6,"useUnknownInCatchVariables":false},"referencedMap":[[149,1],[112,2],[109,3],[111,4],[110,5],[113,6],[101,7],[100,8],[99,9],[107,10],[108,11],[105,12],[106,13],[103,14],[104,15],[102,16],[94,17],[95,18],[97,19],[86,20],[85,21],[84,22],[92,23],[90,24],[91,25],[88,26],[89,27],[87,28],[93,29],[182,30],[183,31],[158,32],[161,32],[180,30],[181,30],[171,30],[170,33],[168,30],[163,30],[176,30],[174,30],[178,30],[162,30],[175,30],[179,30],[164,30],[165,30],[177,30],[159,30],[166,30],[167,30],[169,30],[173,30],[184,34],[172,30],[160,30],[197,35],[191,34],[193,36],[192,34],[185,34],[186,34],[188,34],[190,34],[194,36],[195,36],[187,36],[189,36],[118,37],[58,38],[61,39],[53,40],[54,41],[55,41],[56,41],[70,42],[73,43],[60,44],[72,45],[59,44],[75,46],[62,47],[63,48],[64,44],[69,49],[71,38],[66,50],[65,51],[67,50],[68,39],[78,52],[114,53],[143,54],[144,55],[135,56],[148,57],[81,58],[82,37],[120,37],[136,1],[146,54],[115,52],[147,59],[116,37],[117,37],[141,37],[139,37],[140,37],[138,37],[79,60],[137,61],[134,62],[125,63],[132,64],[126,65],[129,62],[133,66],[124,67],[131,68],[123,69],[151,1],[153,1],[150,1],[152,1],[154,70]],"version":"5.8.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-1shot",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "1Shot API node for n8n",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"1shot",
|
|
8
|
+
"1shotapi",
|
|
9
|
+
"blockchain",
|
|
10
|
+
"web3"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"homepage": "",
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Charlie Sibbach",
|
|
16
|
+
"email": "charlie@uxly.software"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/UXlySoftware/n8n-nodes-1shot"
|
|
21
|
+
},
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=20.15"
|
|
24
|
+
},
|
|
25
|
+
"main": "index.js",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "npx rimraf dist && tsc && gulp build:icons",
|
|
28
|
+
"dev": "tsc --watch",
|
|
29
|
+
"format": "prettier nodes credentials --write",
|
|
30
|
+
"lint": "eslint nodes credentials package.json",
|
|
31
|
+
"lintfix": "eslint nodes credentials package.json --fix",
|
|
32
|
+
"temp-prepublishOnly": "npm run build && npm run lint -c .eslintrc.prepublish.js nodes credentials package.json",
|
|
33
|
+
"restart": "npm run build && docker-compose down && docker-compose up -d"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"n8n": {
|
|
39
|
+
"n8nNodesApiVersion": 1,
|
|
40
|
+
"credentials": [
|
|
41
|
+
"dist/credentials/oneShotOAuth2Api.credentials.js"
|
|
42
|
+
],
|
|
43
|
+
"nodes": [
|
|
44
|
+
"dist/nodes/OneShot/OneShot.node.js"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@typescript-eslint/parser": "~8.32.0",
|
|
49
|
+
"eslint": "^8.57.0",
|
|
50
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.3",
|
|
51
|
+
"gulp": "^5.0.0",
|
|
52
|
+
"prettier": "^3.5.3",
|
|
53
|
+
"typescript": "^5.8.2"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"n8n-workflow": "*"
|
|
57
|
+
}
|
|
58
|
+
}
|