otomato-sdk 1.5.25 → 1.5.26
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.
|
@@ -802,7 +802,7 @@ export const ACTIONS = {
|
|
|
802
802
|
"description": "Set of functions to delay the executions of the following blocks.",
|
|
803
803
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/discord.png",
|
|
804
804
|
"WAIT_FOR": {
|
|
805
|
-
"name": "
|
|
805
|
+
"name": "Wait for",
|
|
806
806
|
"type": 2,
|
|
807
807
|
"description": "Wait before executing the following blocks",
|
|
808
808
|
"output": {
|
|
@@ -833,7 +833,7 @@ export const ACTIONS = {
|
|
|
833
833
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/discord.png"
|
|
834
834
|
},
|
|
835
835
|
"WAIT_UNTIL": {
|
|
836
|
-
"name": "
|
|
836
|
+
"name": "Wait until",
|
|
837
837
|
"type": 2,
|
|
838
838
|
"description": "Wait before executing the following blocks",
|
|
839
839
|
"output": {
|
|
@@ -873,7 +873,6 @@ export const ACTIONS = {
|
|
|
873
873
|
"name": "Send message",
|
|
874
874
|
"type": 0,
|
|
875
875
|
"description": "Notifies you by sending a Slack message to the channel of your choice",
|
|
876
|
-
"after": "(data) => { return {message: '{{parameters.message}}'}}",
|
|
877
876
|
"output": {
|
|
878
877
|
"message": "string"
|
|
879
878
|
},
|
|
@@ -1001,7 +1000,7 @@ export const ACTIONS = {
|
|
|
1001
1000
|
"name": "Transfer token",
|
|
1002
1001
|
"description": "Transfers an ERC20 token",
|
|
1003
1002
|
"type": 1,
|
|
1004
|
-
"method": "function transfer(address
|
|
1003
|
+
"method": "function transfer(address to, uint256 value)",
|
|
1005
1004
|
"output": {
|
|
1006
1005
|
"transactionHash": "string"
|
|
1007
1006
|
},
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import axios from 'axios';
|
|
11
11
|
const API_CONFIG = {
|
|
12
|
-
BASE_URL: 'https://
|
|
12
|
+
BASE_URL: 'https://api.otomato.xyz/api',
|
|
13
13
|
HEADERS: {
|
|
14
14
|
'Content-Type': 'application/json',
|
|
15
15
|
}
|
|
@@ -25,6 +25,9 @@ class ApiServices {
|
|
|
25
25
|
setAuth(auth) {
|
|
26
26
|
this.auth = auth;
|
|
27
27
|
}
|
|
28
|
+
setUrl(baseUrl) {
|
|
29
|
+
axiosInstance.defaults.baseURL = baseUrl;
|
|
30
|
+
}
|
|
28
31
|
post(url, data) {
|
|
29
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
33
|
const headers = this.auth ? { 'Authorization': this.auth } : {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare class ApiServices {
|
|
2
2
|
private auth;
|
|
3
3
|
setAuth(auth: string): void;
|
|
4
|
+
setUrl(baseUrl: string): void;
|
|
4
5
|
post(url: string, data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
6
|
patch(url: string, data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
7
|
get(url: string): Promise<any>;
|