@truebit/cli 1.120.0-beta.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -0
- package/build/definitions/registration.d.mts +18 -0
- package/build/definitions/registration.d.mts.map +1 -0
- package/build/handlers/apiAuth.d.mts +3 -0
- package/build/handlers/apiAuth.d.mts.map +1 -0
- package/build/handlers/apiKeyRegistration.d.mts +8 -0
- package/build/handlers/apiKeyRegistration.d.mts.map +1 -0
- package/build/handlers/authorizationGrant.d.mts +4 -0
- package/build/handlers/authorizationGrant.d.mts.map +1 -0
- package/build/handlers/buildCommand/api.d.mts +5 -0
- package/build/handlers/buildCommand/api.d.mts.map +1 -0
- package/build/handlers/buildCommand/baseBuild.d.mts +5 -0
- package/build/handlers/buildCommand/baseBuild.d.mts.map +1 -0
- package/build/handlers/buildCommand/c.d.mts +5 -0
- package/build/handlers/buildCommand/c.d.mts.map +1 -0
- package/build/handlers/buildCommand/factory.d.mts +6 -0
- package/build/handlers/buildCommand/factory.d.mts.map +1 -0
- package/build/handlers/buildCommand/handler.d.mts +3 -0
- package/build/handlers/buildCommand/handler.d.mts.map +1 -0
- package/build/handlers/buildCommand/handlerAPI.d.mts +3 -0
- package/build/handlers/buildCommand/handlerAPI.d.mts.map +1 -0
- package/build/handlers/buildCommand/index.d.mts +9 -0
- package/build/handlers/buildCommand/index.d.mts.map +1 -0
- package/build/handlers/buildCommand/js.d.mts +5 -0
- package/build/handlers/buildCommand/js.d.mts.map +1 -0
- package/build/handlers/buildCommand/py.d.mts +5 -0
- package/build/handlers/buildCommand/py.d.mts.map +1 -0
- package/build/handlers/buildCommand/rs.d.mts +5 -0
- package/build/handlers/buildCommand/rs.d.mts.map +1 -0
- package/build/handlers/cli.init.d.mts +2 -0
- package/build/handlers/cli.init.d.mts.map +1 -0
- package/build/handlers/deploy.d.mts +3 -0
- package/build/handlers/deploy.d.mts.map +1 -0
- package/build/handlers/executeTask.d.mts +3 -0
- package/build/handlers/executeTask.d.mts.map +1 -0
- package/build/handlers/index.d.mts +7 -0
- package/build/handlers/index.d.mts.map +1 -0
- package/build/handlers/instrument.d.mts +2 -0
- package/build/handlers/instrument.d.mts.map +1 -0
- package/build/handlers/introduction.d.mts +5 -0
- package/build/handlers/introduction.d.mts.map +1 -0
- package/build/handlers/push.d.mts +6 -0
- package/build/handlers/push.d.mts.map +1 -0
- package/build/handlers/registration.d.mts +5 -0
- package/build/handlers/registration.d.mts.map +1 -0
- package/build/handlers/setup.d.mts +5 -0
- package/build/handlers/setup.d.mts.map +1 -0
- package/build/handlers/status.d.mts +2 -0
- package/build/handlers/status.d.mts.map +1 -0
- package/build/handlers/taskRegistry.d.mts +5 -0
- package/build/handlers/taskRegistry.d.mts.map +1 -0
- package/build/index.d.mts +3 -0
- package/build/index.d.mts.map +1 -0
- package/build/index.mjs +12 -0
- package/build/index.mjs.map +1 -0
- package/build/ledgerConfigurations.d.mts +6 -0
- package/build/ledgerConfigurations.d.mts.map +1 -0
- package/build/services/user.relayer.service.d.mts +6 -0
- package/build/services/user.relayer.service.d.mts.map +1 -0
- package/build/utils/axios.d.mts +4 -0
- package/build/utils/axios.d.mts.map +1 -0
- package/build/utils/cli.messages.d.mts +19 -0
- package/build/utils/cli.messages.d.mts.map +1 -0
- package/build/utils/crypto.d.mts +5 -0
- package/build/utils/crypto.d.mts.map +1 -0
- package/build/utils/deploy.d.mts +6 -0
- package/build/utils/deploy.d.mts.map +1 -0
- package/build/utils/hook.preactions.d.mts +2 -0
- package/build/utils/hook.preactions.d.mts.map +1 -0
- package/build/utils/registration.d.mts +13 -0
- package/build/utils/registration.d.mts.map +1 -0
- package/build/utils/secret.d.mts +43 -0
- package/build/utils/secret.d.mts.map +1 -0
- package/build/utils/sign.message.d.mts +6 -0
- package/build/utils/sign.message.d.mts.map +1 -0
- package/build/utils/util.d.mts +8 -0
- package/build/utils/util.d.mts.map +1 -0
- package/build/utils/validations.d.mts +5 -0
- package/build/utils/validations.d.mts.map +1 -0
- package/package.json +66 -0
package/README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Truebit CLI
|
|
2
|
+
|
|
3
|
+
`truebit-cli` is a command line that allows interaction between users and the Truebit NextGen Node.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- Rust 1.78
|
|
8
|
+
- wasm32-wasip1 compile target
|
|
9
|
+
- environment variables setted
|
|
10
|
+
|
|
11
|
+
## Set Environment variables
|
|
12
|
+
|
|
13
|
+
To set environment variables you should first create a new env file with the following command:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
cp truebit.verify.env.example truebit.verify.env
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
and fill in the values.
|
|
20
|
+
|
|
21
|
+
## To build:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
npm run build
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## To run:
|
|
28
|
+
|
|
29
|
+
`npx truebit`
|
|
30
|
+
|
|
31
|
+
## To install it globally:
|
|
32
|
+
|
|
33
|
+
## Rollup for publish:
|
|
34
|
+
|
|
35
|
+
**npm run build:production**
|
|
36
|
+
|
|
37
|
+
## check generate pack
|
|
38
|
+
|
|
39
|
+
npm pack --dry-run --no-workspaces
|
|
40
|
+
|
|
41
|
+
## build
|
|
42
|
+
|
|
43
|
+
node index.mjs build ../../../../examples/rs/fibonacci/
|
|
44
|
+
|
|
45
|
+
## deploy
|
|
46
|
+
|
|
47
|
+
node index.mjs deploy rs_7205f893cf4bc86a70694a8622fda88ce01088b3fbec68695a3771472d77a312/1.0.0
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
[JIRA CARD](https://fortegroup.atlassian.net/browse/TRUEB-3960)
|
|
52
|
+
-On task registration and namespace registration we add a security layer through the Relayer User Service. Since now, the ledger-adapter it will be called by the Relayer User Service with the signature sent from the Truebit-CLI. Before the registration, it will check the address (with the checkAddress() method), that verifies that the wallet address exist. If not, the registration won't occur.
|
|
53
|
+
Flow diagram: https://drive.google.com/file/d/13-fV4MMukW6ElX1ypi5MS9Kg_2VIfQZY/view?usp=sharing
|
|
54
|
+
|
|
55
|
+
[JIRA CARD](https://fortegroup.atlassian.net/browse/TRUEB-3967)
|
|
56
|
+
-On deploying a task, we merge the functionality with the task registration command, to ensure that every task deployed is automatically registered with a proper taskName in a specific namespace. Also appoints to minimize the effort of two operations in one execution being more user friendly.
|
|
57
|
+
Refinement template: https://fortegroup.atlassian.net/wiki/spaces/T/pages/4669603842/TRUEB-3967+Refactor+the+deploy+process+for+a+smoother+and+faster+task+deployment
|
|
58
|
+
|
|
59
|
+
[JIRA CARD](https://fortegroup.atlassian.net/browse/TRUEB-3977)
|
|
60
|
+
-On the setup command we add validations to the information that is asked to the user to ensure a smooth onboarding experience. The scenarios that are being covered are: empty full name, empty email address, invalid email address, email address already registered, random default namespace already registered, not enough funds to pay on behalf of the user. The expected behavior remains without changes for the proper registration of the user if the validations are correctly accomplished.
|
|
61
|
+
Refinement template: https://fortegroup.atlassian.net/wiki/spaces/T/pages/4603379713/TRUEB-3977+New+Truebit+user+-+Implement+unhappy+scenarios+for+the+Setup+command
|
|
62
|
+
|
|
63
|
+
[JIRA CARD](https://fortegroup.atlassian.net/browse/TRUEB-4157)
|
|
64
|
+
-The setup command ask for confirmation after the user enter the information required. "Are you sure the previous information is correct? [Y|N] ". If the user enter "Y", the registration continues as normal. If the user enter "N", the CLI will ask for reenter the setup information again.
|
|
65
|
+
|
|
66
|
+
[JIRA CARD](https://fortegroup.atlassian.net/browse/TRUEB-4174)
|
|
67
|
+
-On the deploy and start command, we added a signing process to adding to the message built for the hosted node the wallet address and a valid signature, to be evaluated by the node and verify the user's registration and its permissions to execute the commands. The current functionality of the commands were not modified.
|
|
68
|
+
Flow diagram: https://miro.com/app/board/uXjVOhQWO1w=/?moveToWidget=3458764608418938794&cot=14
|
|
69
|
+
|
|
70
|
+
[JIRA CARD](https://fortegroup.atlassian.net/browse/TRUEB-4354)
|
|
71
|
+
-On the CLI we add a once time validation in the first execution of a command for the mandatory EULA acceptance to use Truebit Verify; also we change the EULA's terms acceptance information saved in the registration process, in which now we save as acceptation the IP, date and a valid signature.
|
|
72
|
+
Refinement template: https://fortegroup.atlassian.net/wiki/spaces/T/pages/4673241089/TRUEB-4354+Add+missing+messages+behaviours+within+the+CLI
|
|
73
|
+
|
|
74
|
+
[JIRA CARD](https://fortegroup.atlassian.net/browse/TRUEB-4369)
|
|
75
|
+
-On the CLI we update the onboarding text with new wording discussed and approved; this made tailored to align with the user that will be addressing from the public beta.
|
|
76
|
+
New wording definitions: https://docs.google.com/spreadsheets/d/1ICwAnnkpPsjQ8BtGb32A-xRP6uNZetS-BYalyultxU8/edit?gid=0#gid=0
|
|
77
|
+
|
|
78
|
+
[JIRA CARD](https://fortegroup.atlassian.net/browse/TRUEB-4444)
|
|
79
|
+
-On the CLI we added a new step in the setup process as a introduction of the protocol in the onboarding process. This will help the user to have a preview of the application and setting up the account to start.
|
|
80
|
+
|
|
81
|
+
[JIRA CARD](https://fortegroup.atlassian.net/browse/TRUEB-4501)
|
|
82
|
+
-As a consequence of the new functionality implemented with the feature "TRUEB-3967", the register subcommand from the task command is considered deprecated and it was removed from the CLI to ensure that every task will be registered and deployed with the expected command (truebit deploy).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IUser {
|
|
2
|
+
name: string;
|
|
3
|
+
email: string;
|
|
4
|
+
walletAddress: string;
|
|
5
|
+
company: string;
|
|
6
|
+
jobDescription: string;
|
|
7
|
+
defaultNamespace: string;
|
|
8
|
+
defaultApiKey: string;
|
|
9
|
+
}
|
|
10
|
+
export type Registration = {
|
|
11
|
+
fullNameAnswer: string;
|
|
12
|
+
emailAddressAnswer: string;
|
|
13
|
+
companyNameAnswer: string;
|
|
14
|
+
jobPositionAnswer: string;
|
|
15
|
+
eulaAnswer: string;
|
|
16
|
+
confirmRegistration: string;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=registration.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.d.mts","sourceRoot":"","sources":["../../src/definitions/registration.mts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiAuth.d.mts","sourceRoot":"","sources":["../../src/handlers/apiAuth.mts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAuB,MAAM,kCAAkC,CAAC;AAQtF,wBAAsB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4B7I"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LedgerEnv } from '@truebit/ledger-adapter';
|
|
2
|
+
/**
|
|
3
|
+
* 'truebit auth register <apiKey>' command handler
|
|
4
|
+
*/
|
|
5
|
+
export declare function handlerAPIKeyRegistration(apiKey: string, ledgerEnv?: LedgerEnv): Promise<string>;
|
|
6
|
+
export declare function handlerAPIKeyRegistrationRelay(apiKey: string, fromSetup: boolean, ledgerEnv?: LedgerEnv, userAddress?: string): Promise<string | null>;
|
|
7
|
+
export declare function handlerAPIKeyDeRegistrationRelay(hashedApiKey: string, ledgerEnv?: LedgerEnv, userAddress?: string): Promise<boolean>;
|
|
8
|
+
//# sourceMappingURL=apiKeyRegistration.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKeyRegistration.d.mts","sourceRoot":"","sources":["../../src/handlers/apiKeyRegistration.mts"],"names":[],"mappings":"AAIA,OAAO,EAAU,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAG5D;;GAEG;AAEH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,MAAM,EACd,SAAS,GAAE,SAA2D,GACrE,OAAO,CAAC,MAAM,CAAC,CAOjB;AACD,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,SAAS,GAAE,SAA2D,EACtE,WAAW,GAAE,MAA+C,GAC3D,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA8BxB;AAED,wBAAsB,gCAAgC,CACpD,YAAY,EAAE,MAAM,EACpB,SAAS,GAAE,SAA2D,EACtE,WAAW,GAAE,MAA+C,GAC3D,OAAO,CAAC,OAAO,CAAC,CA8BlB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LedgerEnv } from '@truebit/ledger-adapter';
|
|
2
|
+
export declare function handlerAuthorizationGrantRelay(namespace: string, grantee: string, ledgerEnv?: LedgerEnv, userAddress?: string): Promise<boolean>;
|
|
3
|
+
export declare function handlerAuthorizationRevokeRelay(namespace: string, grantee: string, ledgerEnv?: LedgerEnv, userAddress?: string): Promise<boolean>;
|
|
4
|
+
//# sourceMappingURL=authorizationGrant.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorizationGrant.d.mts","sourceRoot":"","sources":["../../src/handlers/authorizationGrant.mts"],"names":[],"mappings":"AAEA,OAAO,EAAU,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAG5D,wBAAsB,8BAA8B,CAClD,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,SAAS,GAAE,SAA2D,EACtE,WAAW,GAAE,MAA+C,GAC3D,OAAO,CAAC,OAAO,CAAC,CA+BlB;AACD,wBAAsB,+BAA+B,CACnD,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,SAAS,GAAE,SAA2D,EACtE,WAAW,GAAE,MAA+C,GAC3D,OAAO,CAAC,OAAO,CAAC,CA+BlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/api.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,qBAAa,QAAS,SAAQ,SAAS;IAC/B,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAyBhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseBuild.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/baseBuild.mts"],"names":[],"mappings":"AAAA,8BAAsB,SAAS;;IAE7B,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CACnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/c.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,qBAAa,MAAO,SAAQ,SAAS;IAC7B,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAmBhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/factory.mts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAO5E,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,8BAAsB,YAAY;IAChC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS;CAgBnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/handler.mts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAiB,MAAM,iBAAiB,CAAC;AAG7D,eAAO,MAAM,WAAW,GAAU,QAAQ,WAAW,EAAE,YAAY,MAAM,KAAG,OAAO,CAAC,MAAM,CAiEzF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handlerAPI.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/handlerAPI.mts"],"names":[],"mappings":"AAWA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,eAAO,MAAM,SAAS,GAAU,YAAY,MAAM,EAAE,WAAW,MAAM,EAAE,YAAY,aAAa,GAAG,IAAI,EAAE,YAAY,MAAM,GAAG,EAAE,KAAG,OAAO,CAAC,IAAI,CAsD9I,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './factory.mjs';
|
|
2
|
+
export * from './rs.mjs';
|
|
3
|
+
export * from './c.mjs';
|
|
4
|
+
export * from './js.mjs';
|
|
5
|
+
export * from './handler.mjs';
|
|
6
|
+
export * from './api.mjs';
|
|
7
|
+
export * from './handlerAPI.mjs';
|
|
8
|
+
export * from './py.mjs';
|
|
9
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/index.mts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"js.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/js.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,qBAAa,OAAQ,SAAQ,SAAS;IAC9B,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"py.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/py.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,qBAAa,OAAQ,SAAQ,SAAS;IAC9B,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rs.d.mts","sourceRoot":"","sources":["../../../src/handlers/buildCommand/rs.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,qBAAa,SAAU,SAAQ,SAAS;IAChC,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAsChE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.init.d.mts","sourceRoot":"","sources":["../../src/handlers/cli.init.mts"],"names":[],"mappings":"AAMA,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CA8CzD"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function handleDeployTaskRegistration(namespace: string, taskName: string, taskId: string, meta: string, norelay: string | null): Promise<number | null>;
|
|
2
|
+
export declare function handleTaskLabel(namespace: string, taskName: string, label: string): Promise<boolean>;
|
|
3
|
+
//# sourceMappingURL=deploy.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.mts","sourceRoot":"","sources":["../../src/handlers/deploy.mts"],"names":[],"mappings":"AAUA,wBAAsB,4BAA4B,CAChD,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,IAAI,GACrB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAiCxB;AAED,wBAAsB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAM1G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeTask.d.mts","sourceRoot":"","sources":["../../src/handlers/executeTask.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAMzC,eAAO,MAAM,kBAAkB,GAAU,SAAS,YAAY,EAAE,QAAQ,MAAM,EAAE,OAAO,MAAM,KAAG,OAAO,CAAC,IAAI,CAwC3G,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/handlers/index.mts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrument.d.mts","sourceRoot":"","sources":["../../src/handlers/instrument.mts"],"names":[],"mappings":"AAIA,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAkCpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introduction.d.mts","sourceRoot":"","sources":["../../src/handlers/introduction.mts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAyBxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push.d.mts","sourceRoot":"","sources":["../../src/handlers/push.mts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAK9C,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAuCzF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.d.mts","sourceRoot":"","sources":["../../src/handlers/registration.mts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CA2JxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.mts","sourceRoot":"","sources":["../../src/handlers/setup.mts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAwEjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.mts","sourceRoot":"","sources":["../../src/handlers/status.mts"],"names":[],"mappings":"AAMA,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAa9E"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ledger, LedgerEnv, TaskRegistryStructure } from '@truebit/ledger-adapter';
|
|
2
|
+
export declare function handleRegisterTaskNamespace(namespace: string, fromSetup: boolean, norelay?: unknown, ledgerEnv?: LedgerEnv): Promise<boolean>;
|
|
3
|
+
export declare function handleRegisterTaskNamespaceRelay(userAddress: string, namespace: string, ledger: Ledger, fromSetup: boolean): Promise<boolean>;
|
|
4
|
+
export declare function handleRegisterTaskRelay(userAddress: string, namespace: string, taskName: string, task: TaskRegistryStructure, ledger: Ledger): Promise<boolean>;
|
|
5
|
+
//# sourceMappingURL=taskRegistry.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskRegistry.d.mts","sourceRoot":"","sources":["../../src/handlers/taskRegistry.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAMnF,wBAAsB,2BAA2B,CAC/C,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,EAClB,OAAO,GAAE,OAAc,EACvB,SAAS,GAAE,SAA2D,GACrE,OAAO,CAAC,OAAO,CAAC,CAelB;AACD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAmCnJ;AAED,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,qBAAqB,EAC3B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,OAAO,CAAC,CA8ClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":""}
|