@odatano/core 2.0.0-rc.5 → 2.0.0-rc.50
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/@cds-models/CardanoAgentService/index.d.ts +99 -51
- package/@cds-models/CardanoAgentService/index.js +15 -0
- package/@cds-models/CardanoBackendService/index.d.ts +347 -0
- package/@cds-models/CardanoBackendService/index.js +40 -0
- package/@cds-models/CardanoIndexerService/index.d.ts +496 -11
- package/@cds-models/CardanoIndexerService/index.js +64 -0
- package/@cds-models/CardanoODataService/index.d.ts +414 -57
- package/@cds-models/CardanoODataService/index.js +42 -0
- package/@cds-models/CardanoSignService/index.d.ts +32 -19
- package/@cds-models/CardanoSignService/index.js +3 -0
- package/@cds-models/CardanoTransactionService/index.d.ts +58 -44
- package/@cds-models/CardanoTransactionService/index.js +4 -0
- package/@cds-models/CardanoWorkerService/index.d.ts +7 -22
- package/@cds-models/index.d.ts +101 -1
- package/@cds-models/index.js +16 -1
- package/@cds-models/odatano/cardano/index.d.ts +437 -32
- package/@cds-models/odatano/cardano/index.js +48 -0
- package/README.md +207 -167
- package/db/schema.cds +2402 -1705
- package/db/types.cds +446 -295
- package/package.json +41 -16
- package/scripts/migrate-schema.mjs +334 -0
- package/scripts/migrate-slot-leader.mjs +96 -0
- package/src/index.d.ts +20 -21
- package/src/index.js +45 -31
- package/src/plugin.js +17 -35
- package/srv/blockchain/asset-decimals.d.ts +7 -0
- package/srv/blockchain/asset-decimals.js +91 -0
- package/srv/blockchain/backends/blockfrost-backend.d.ts +25 -135
- package/srv/blockchain/backends/blockfrost-backend.js +66 -172
- package/srv/blockchain/backends/cardano-backend.d.ts +94 -186
- package/srv/blockchain/backends/cardano-backend.js +29 -5
- package/srv/blockchain/backends/koios-backend.d.ts +103 -168
- package/srv/blockchain/backends/koios-backend.js +428 -360
- package/srv/blockchain/backends/odatano-backend.d.ts +54 -0
- package/srv/blockchain/backends/odatano-backend.js +169 -0
- package/srv/blockchain/backends/ogmios-backend.d.ts +123 -190
- package/srv/blockchain/backends/ogmios-backend.js +637 -315
- package/srv/blockchain/backends/ogmios-frame-guard.d.ts +14 -0
- package/srv/blockchain/backends/ogmios-frame-guard.js +89 -0
- package/srv/blockchain/cardano-client.d.ts +61 -241
- package/srv/blockchain/cardano-client.js +253 -293
- package/srv/blockchain/cardano-indexer.d.ts +282 -281
- package/srv/blockchain/cardano-indexer.js +1551 -484
- package/srv/blockchain/cardano-tx-builder.d.ts +25 -89
- package/srv/blockchain/cardano-tx-builder.js +164 -140
- package/srv/blockchain/circuit-breaker.d.ts +1 -13
- package/srv/blockchain/circuit-breaker.js +5 -15
- package/srv/blockchain/crawler/account-snapshots.d.ts +29 -0
- package/srv/blockchain/crawler/account-snapshots.js +153 -0
- package/srv/blockchain/crawler/asset-decimals-backfill.d.ts +15 -0
- package/srv/blockchain/crawler/asset-decimals-backfill.js +56 -0
- package/srv/blockchain/crawler/asset-registry-backfill.d.ts +43 -0
- package/srv/blockchain/crawler/asset-registry-backfill.js +153 -0
- package/srv/blockchain/crawler/certificate-backfill.d.ts +52 -0
- package/srv/blockchain/crawler/certificate-backfill.js +162 -0
- package/srv/blockchain/crawler/crawler.d.ts +104 -81
- package/srv/blockchain/crawler/crawler.js +532 -160
- package/srv/blockchain/crawler/credential-backfill.d.ts +28 -0
- package/srv/blockchain/crawler/credential-backfill.js +124 -0
- package/srv/blockchain/crawler/hooks.d.ts +2 -17
- package/srv/blockchain/crawler/index.d.ts +1 -8
- package/srv/blockchain/crawler/index.js +31 -17
- package/srv/blockchain/crawler/input-asset-copies.d.ts +34 -0
- package/srv/blockchain/crawler/input-asset-copies.js +171 -0
- package/srv/blockchain/crawler/metadata-position-backfill.d.ts +16 -0
- package/srv/blockchain/crawler/metadata-position-backfill.js +55 -0
- package/srv/blockchain/crawler/output-datum-backfill.d.ts +39 -0
- package/srv/blockchain/crawler/output-datum-backfill.js +110 -0
- package/srv/blockchain/crawler/sync-state.d.ts +27 -47
- package/srv/blockchain/crawler/sync-state.js +113 -63
- package/srv/blockchain/crawler/transaction-backfill.d.ts +44 -0
- package/srv/blockchain/crawler/transaction-backfill.js +278 -0
- package/srv/blockchain/crawler/utxo-set-import.d.ts +66 -0
- package/srv/blockchain/crawler/utxo-set-import.js +399 -0
- package/srv/blockchain/ledger-state.d.ts +62 -0
- package/srv/blockchain/ledger-state.js +419 -0
- package/srv/blockchain/pending-spends.d.ts +16 -0
- package/srv/blockchain/pending-spends.js +81 -0
- package/srv/blockchain/pool-metadata.d.ts +15 -0
- package/srv/blockchain/pool-metadata.js +132 -0
- package/srv/blockchain/request-coalescer.d.ts +2 -16
- package/srv/blockchain/request-coalescer.js +2 -16
- package/srv/blockchain/signing/cose-verifier.d.ts +3 -17
- package/srv/blockchain/signing/cose-verifier.js +146 -70
- package/srv/blockchain/signing/external-signer.d.ts +15 -115
- package/srv/blockchain/signing/external-signer.js +17 -126
- package/srv/blockchain/signing/hsm-signer.d.ts +10 -54
- package/srv/blockchain/signing/hsm-signer.js +28 -79
- package/srv/blockchain/signing/signature-verifier.d.ts +9 -47
- package/srv/blockchain/signing/signature-verifier.js +70 -83
- package/srv/blockchain/signing/submission-finalizer.d.ts +23 -45
- package/srv/blockchain/signing/submission-finalizer.js +219 -86
- package/srv/blockchain/stored-chain.d.ts +20 -0
- package/srv/blockchain/stored-chain.js +237 -0
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +31 -229
- package/srv/blockchain/transaction-building/buildooor-tx.js +652 -416
- package/srv/blockchain/transaction-building/cardano-tx.d.ts +9 -37
- package/srv/blockchain/transaction-presence.d.ts +5 -0
- package/srv/blockchain/transaction-presence.js +29 -0
- package/srv/blockchain/transaction-rows.d.ts +12 -0
- package/srv/blockchain/transaction-rows.js +44 -0
- package/srv/blockchain/wallet-worker/build-request.d.ts +5 -20
- package/srv/blockchain/wallet-worker/build-request.js +47 -30
- package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +5 -46
- package/srv/blockchain/wallet-worker/confirmation-tracker.js +25 -45
- package/srv/blockchain/wallet-worker/index.d.ts +1 -1
- package/srv/blockchain/wallet-worker/index.js +3 -11
- package/srv/blockchain/wallet-worker/job-store.d.ts +30 -148
- package/srv/blockchain/wallet-worker/job-store.js +101 -201
- package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +2 -26
- package/srv/blockchain/wallet-worker/lease-heartbeat.js +6 -28
- package/srv/blockchain/wallet-worker/signers.d.ts +5 -24
- package/srv/blockchain/wallet-worker/signers.js +4 -12
- package/srv/blockchain/wallet-worker/wallet-worker.d.ts +8 -80
- package/srv/blockchain/wallet-worker/wallet-worker.js +107 -155
- package/srv/cardano-agent-service.cds +122 -84
- package/srv/cardano-agent-service.js +4 -9
- package/srv/cardano-backend-service.cds +78 -0
- package/srv/cardano-backend-service.d.ts +2 -0
- package/srv/cardano-backend-service.js +242 -0
- package/srv/cardano-indexer-service.cds +387 -73
- package/srv/cardano-indexer-service.d.ts +5 -1
- package/srv/cardano-indexer-service.js +532 -16
- package/srv/cardano-service.cds +424 -269
- package/srv/cardano-service.js +289 -201
- package/srv/cardano-sign-service.cds +201 -180
- package/srv/cardano-sign-service.js +71 -201
- package/srv/cardano-tx-service.cds +451 -370
- package/srv/cardano-tx-service.js +271 -289
- package/srv/cardano-ui.cds +16 -16
- package/srv/cardano-worker-service.cds +118 -125
- package/srv/cardano-worker-service.js +52 -61
- package/srv/cbor/cip68.d.ts +13 -0
- package/srv/cbor/cip68.js +56 -0
- package/srv/cbor/index.d.ts +3 -1
- package/srv/cbor/index.js +9 -1
- package/srv/cbor/parse.d.ts +30 -18
- package/srv/cbor/parse.js +44 -9
- package/srv/cbor/plutus-data-json.d.ts +20 -0
- package/srv/cbor/plutus-data-json.js +32 -0
- package/srv/config.d.ts +113 -0
- package/srv/config.js +409 -0
- package/srv/server.d.ts +15 -110
- package/srv/server.js +84 -404
- package/srv/utils/agent-access.d.ts +9 -0
- package/srv/utils/agent-access.js +67 -0
- package/srv/utils/agent-grants-config.d.ts +0 -46
- package/srv/utils/agent-grants-config.js +17 -85
- package/srv/utils/agent-grants.d.ts +106 -122
- package/srv/utils/agent-grants.js +538 -236
- package/srv/utils/agent-token-auth.d.ts +4 -99
- package/srv/utils/agent-token-auth.js +18 -182
- package/srv/utils/backend-request-handler.d.ts +3 -17
- package/srv/utils/backend-request-handler.js +3 -18
- package/srv/utils/collections.d.ts +3 -10
- package/srv/utils/collections.js +3 -10
- package/srv/utils/const.d.ts +23 -74
- package/srv/utils/const.js +32 -79
- package/srv/utils/crypto.d.ts +3 -12
- package/srv/utils/crypto.js +6 -21
- package/srv/utils/db-indexes.d.ts +27 -0
- package/srv/utils/db-indexes.js +120 -0
- package/srv/utils/db-sanitize.d.ts +20 -0
- package/srv/utils/db-sanitize.js +80 -0
- package/srv/utils/deep-json.d.ts +6 -0
- package/srv/utils/deep-json.js +240 -0
- package/srv/utils/epoch-slots.d.ts +13 -0
- package/srv/utils/epoch-slots.js +38 -0
- package/srv/utils/error-codes.d.ts +22 -75
- package/srv/utils/error-codes.js +23 -72
- package/srv/utils/errors.d.ts +46 -187
- package/srv/utils/errors.js +114 -230
- package/srv/utils/liveness.d.ts +12 -0
- package/srv/utils/liveness.js +35 -0
- package/srv/utils/mappers.d.ts +102 -223
- package/srv/utils/mappers.js +387 -316
- package/srv/utils/network-context.js +2 -13
- package/srv/utils/paging.d.ts +31 -0
- package/srv/utils/paging.js +43 -0
- package/srv/utils/pg-inline-json.d.ts +8 -0
- package/srv/utils/pg-inline-json.js +58 -0
- package/srv/utils/pg-order-nulls.d.ts +14 -0
- package/srv/utils/pg-order-nulls.js +54 -0
- package/srv/utils/plutus-placeholders.d.ts +16 -22
- package/srv/utils/plutus-placeholders.js +62 -33
- package/srv/utils/rate-limiter.d.ts +2 -21
- package/srv/utils/rate-limiter.js +5 -17
- package/srv/utils/readiness.d.ts +12 -0
- package/srv/utils/readiness.js +29 -0
- package/srv/utils/reference-script.d.ts +19 -0
- package/srv/utils/reference-script.js +84 -0
- package/srv/utils/result-numbers.d.ts +15 -0
- package/srv/utils/result-numbers.js +61 -0
- package/srv/utils/service-events.d.ts +0 -24
- package/srv/utils/service-events.js +3 -25
- package/srv/utils/signing-helper.d.ts +3 -20
- package/srv/utils/signing-helper.js +35 -64
- package/srv/utils/tx-build-helper.d.ts +10 -105
- package/srv/utils/tx-build-helper.js +81 -144
- package/srv/utils/tx-request-parsers.d.ts +82 -33
- package/srv/utils/tx-request-parsers.js +401 -49
- package/srv/utils/tx-utils.d.ts +3 -27
- package/srv/utils/tx-utils.js +32 -50
- package/srv/utils/types.d.ts +261 -191
- package/srv/utils/types.js +2 -6
- package/srv/utils/validators.d.ts +22 -92
- package/srv/utils/validators.js +50 -149
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
2
|
import * as __ from './../_';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Cardano Agent Service (v2.0)
|
|
6
|
-
*
|
|
7
|
-
* Agent grants: scoped, budgeted bearer capabilities an Admin hands to an agent
|
|
8
|
-
* instead of a full user (see AGENT_GRANTS_DESIGN.md).
|
|
9
|
-
*
|
|
10
|
-
* - CreateAgentGrant / RevokeAgentGrant: Admin-only administration. The token is
|
|
11
|
-
* returned ONCE from CreateAgentGrant and stored as SHA-256 only.
|
|
12
|
-
* - AgentGrants: Admin-only projection (no token hash). A request carrying a token
|
|
13
|
-
* runs as the principal `agent:<grantId>` with the role `agent-grant` and sees
|
|
14
|
-
* exactly its own row through the row-level restriction below.
|
|
15
|
-
* - GetGrantStatus: token self-service — what am I allowed to do, how much budget
|
|
16
|
-
* is left, when do I expire. What an MCP tool needs to describe itself honestly.
|
|
17
|
-
*
|
|
18
|
-
* A token request never inherits the operator's roles: `@requires: 'Admin'` on the
|
|
19
|
-
* two actions, on PauseWorker / ResumeWorker / pauseCrawler / resumeCrawler and on
|
|
20
|
-
* every other Admin surface therefore refuses it by construction. The allow list,
|
|
21
|
-
* wallet pinning and daily budget are enforced by a before('*') hook on all six
|
|
22
|
-
* ODATANO services (srv/utils/agent-grants.ts). The `x-agent-token` header only
|
|
23
|
-
* reaches the services when cds.requires.odatano-core.agentGrants.enabled is set
|
|
24
|
-
* (srv/utils/agent-token-auth.ts).
|
|
25
|
-
*/
|
|
26
4
|
export default class {
|
|
27
5
|
static readonly GetGrantStatus: typeof GetGrantStatus;
|
|
28
6
|
static readonly CreateAgentGrant: typeof CreateAgentGrant;
|
|
29
7
|
static readonly RevokeAgentGrant: typeof RevokeAgentGrant;
|
|
8
|
+
static readonly RotateAgentGrantToken: typeof RotateAgentGrantToken;
|
|
9
|
+
static readonly UpdateAgentGrant: typeof UpdateAgentGrant;
|
|
10
|
+
static readonly GetGrantUsage: typeof GetGrantUsage;
|
|
30
11
|
}
|
|
31
12
|
|
|
32
13
|
// entity 'AgentGrant'
|
|
@@ -36,8 +17,6 @@ export declare function _AgentGrantAspect<TBase extends new (...args: any[]) =>
|
|
|
36
17
|
userId?: string
|
|
37
18
|
agentLabel?: string | null
|
|
38
19
|
allowedActions?: string
|
|
39
|
-
walletId?: string | null
|
|
40
|
-
allowedJobKinds?: string | null
|
|
41
20
|
maxJobsPerDay?: number | null
|
|
42
21
|
jobsUsedToday?: number | null
|
|
43
22
|
budgetWindow?: string | null
|
|
@@ -52,28 +31,8 @@ export declare function _AgentGrantAspect<TBase extends new (...args: any[]) =>
|
|
|
52
31
|
readonly elements: __.ElementsOf<AgentGrant>;
|
|
53
32
|
readonly actions: globalThis.Record<never, never>;
|
|
54
33
|
};
|
|
55
|
-
/**
|
|
56
|
-
* Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
|
|
57
|
-
* instead of a full user. The token is a capability, not an identity — it is
|
|
58
|
-
* stored as SHA-256 only, and a request carrying it runs as the principal
|
|
59
|
-
* `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
|
|
60
|
-
* (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
|
|
61
|
-
* the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
|
|
62
|
-
* Admin-only table: creation and revocation happen through CardanoAgentService
|
|
63
|
-
* actions, a token request may read its own row only.
|
|
64
|
-
*/
|
|
65
34
|
export class AgentGrant extends _AgentGrantAspect(__.Entity) {
|
|
66
35
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
|
|
69
|
-
* instead of a full user. The token is a capability, not an identity — it is
|
|
70
|
-
* stored as SHA-256 only, and a request carrying it runs as the principal
|
|
71
|
-
* `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
|
|
72
|
-
* (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
|
|
73
|
-
* the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
|
|
74
|
-
* Admin-only table: creation and revocation happen through CardanoAgentService
|
|
75
|
-
* actions, a token request may read its own row only.
|
|
76
|
-
*/
|
|
77
36
|
export class AgentGrants extends Array<AgentGrant> {
|
|
78
37
|
$count?: number
|
|
79
38
|
}
|
|
@@ -84,8 +43,6 @@ export declare function _GrantStatusAspect<TBase extends new (...args: any[]) =>
|
|
|
84
43
|
grantId?: string | null
|
|
85
44
|
agentLabel?: string | null
|
|
86
45
|
allowedActions?: Array<string>
|
|
87
|
-
walletId?: string | null
|
|
88
|
-
allowedJobKinds?: Array<string>
|
|
89
46
|
maxJobsPerDay?: number | null
|
|
90
47
|
jobsUsedToday?: number | null
|
|
91
48
|
budgetWindow?: string | null
|
|
@@ -106,8 +63,6 @@ export declare function _IssuedGrantAspect<TBase extends new (...args: any[]) =>
|
|
|
106
63
|
grantId?: string | null
|
|
107
64
|
token?: string | null
|
|
108
65
|
allowedActions?: Array<string>
|
|
109
|
-
walletId?: string | null
|
|
110
|
-
allowedJobKinds?: Array<string>
|
|
111
66
|
maxJobsPerDay?: number | null
|
|
112
67
|
validUntil?: __.CdsTimestamp | null
|
|
113
68
|
} & InstanceType<TBase>
|
|
@@ -119,6 +74,69 @@ export declare function _IssuedGrantAspect<TBase extends new (...args: any[]) =>
|
|
|
119
74
|
export class IssuedGrant extends _IssuedGrantAspect(__.Entity) {
|
|
120
75
|
}
|
|
121
76
|
|
|
77
|
+
// entity 'RotatedGrant'
|
|
78
|
+
export declare function _RotatedGrantAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
79
|
+
new (...args: any[]): {
|
|
80
|
+
grantId?: string | null
|
|
81
|
+
token?: string | null
|
|
82
|
+
} & InstanceType<TBase>
|
|
83
|
+
readonly kind: 'type';
|
|
84
|
+
readonly keys: __.KeysOf<RotatedGrant>;
|
|
85
|
+
readonly elements: __.ElementsOf<RotatedGrant>;
|
|
86
|
+
readonly actions: globalThis.Record<never, never>;
|
|
87
|
+
};
|
|
88
|
+
export class RotatedGrant extends _RotatedGrantAspect(__.Entity) {
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// entity 'UpdatedGrant'
|
|
92
|
+
export declare function _UpdatedGrantAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
93
|
+
new (...args: any[]): {
|
|
94
|
+
grantId?: string | null
|
|
95
|
+
updated?: Array<string>
|
|
96
|
+
} & InstanceType<TBase>
|
|
97
|
+
readonly kind: 'type';
|
|
98
|
+
readonly keys: __.KeysOf<UpdatedGrant>;
|
|
99
|
+
readonly elements: __.ElementsOf<UpdatedGrant>;
|
|
100
|
+
readonly actions: globalThis.Record<never, never>;
|
|
101
|
+
};
|
|
102
|
+
export class UpdatedGrant extends _UpdatedGrantAspect(__.Entity) {
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// entity 'GrantUsageCall'
|
|
106
|
+
export declare function _GrantUsageCallAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
107
|
+
new (...args: any[]): {
|
|
108
|
+
service?: string | null
|
|
109
|
+
action?: string | null
|
|
110
|
+
count?: number | null
|
|
111
|
+
refunded?: number | null
|
|
112
|
+
} & InstanceType<TBase>
|
|
113
|
+
readonly kind: 'type';
|
|
114
|
+
readonly keys: __.KeysOf<GrantUsageCall>;
|
|
115
|
+
readonly elements: __.ElementsOf<GrantUsageCall>;
|
|
116
|
+
readonly actions: globalThis.Record<never, never>;
|
|
117
|
+
};
|
|
118
|
+
export class GrantUsageCall extends _GrantUsageCallAspect(__.Entity) {
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// entity 'GrantUsage'
|
|
122
|
+
export declare function _GrantUsageAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
123
|
+
new (...args: any[]): {
|
|
124
|
+
grantId?: string | null
|
|
125
|
+
since?: __.CdsTimestamp | null
|
|
126
|
+
until?: __.CdsTimestamp | null
|
|
127
|
+
calls?: Array<GrantUsageCall>
|
|
128
|
+
total?: number | null
|
|
129
|
+
jobsUsedToday?: number | null
|
|
130
|
+
maxJobsPerDay?: number | null
|
|
131
|
+
} & InstanceType<TBase>
|
|
132
|
+
readonly kind: 'type';
|
|
133
|
+
readonly keys: __.KeysOf<GrantUsage>;
|
|
134
|
+
readonly elements: __.ElementsOf<GrantUsage>;
|
|
135
|
+
readonly actions: globalThis.Record<never, never>;
|
|
136
|
+
};
|
|
137
|
+
export class GrantUsage extends _GrantUsageAspect(__.Entity) {
|
|
138
|
+
}
|
|
139
|
+
|
|
122
140
|
|
|
123
141
|
export declare const GetGrantStatus: {
|
|
124
142
|
// positional
|
|
@@ -132,11 +150,11 @@ export declare const GetGrantStatus: {
|
|
|
132
150
|
|
|
133
151
|
export declare const CreateAgentGrant: {
|
|
134
152
|
// positional
|
|
135
|
-
(allowedActions: Array<string>,
|
|
153
|
+
(allowedActions: Array<string>, maxJobsPerDay: number | null, validUntil: __.CdsTimestamp | null, agentLabel: string | null): globalThis.Promise<IssuedGrant | null> | IssuedGrant | null
|
|
136
154
|
// named
|
|
137
|
-
({allowedActions,
|
|
155
|
+
({allowedActions, maxJobsPerDay, validUntil, agentLabel}: {allowedActions?: Array<string>, maxJobsPerDay?: number | null, validUntil?: __.CdsTimestamp | null, agentLabel?: string | null}): globalThis.Promise<IssuedGrant | null> | IssuedGrant | null
|
|
138
156
|
// metadata (do not use)
|
|
139
|
-
__parameters: {allowedActions?: Array<string>,
|
|
157
|
+
__parameters: {allowedActions?: Array<string>, maxJobsPerDay?: number | null, validUntil?: __.CdsTimestamp | null, agentLabel?: string | null}, __returns: globalThis.Promise<IssuedGrant | null> | IssuedGrant | null, __self: never
|
|
140
158
|
kind: 'action'
|
|
141
159
|
}
|
|
142
160
|
|
|
@@ -148,4 +166,34 @@ export declare const RevokeAgentGrant: {
|
|
|
148
166
|
// metadata (do not use)
|
|
149
167
|
__parameters: {grantId?: string | null}, __returns: globalThis.Promise<boolean | null> | boolean | null, __self: never
|
|
150
168
|
kind: 'action'
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export declare const RotateAgentGrantToken: {
|
|
172
|
+
// positional
|
|
173
|
+
(grantId: string | null): globalThis.Promise<RotatedGrant | null> | RotatedGrant | null
|
|
174
|
+
// named
|
|
175
|
+
({grantId}: {grantId?: string | null}): globalThis.Promise<RotatedGrant | null> | RotatedGrant | null
|
|
176
|
+
// metadata (do not use)
|
|
177
|
+
__parameters: {grantId?: string | null}, __returns: globalThis.Promise<RotatedGrant | null> | RotatedGrant | null, __self: never
|
|
178
|
+
kind: 'action'
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export declare const UpdateAgentGrant: {
|
|
182
|
+
// positional
|
|
183
|
+
(grantId: string | null, agentLabel: string | null, allowedActions: Array<string>, maxJobsPerDay: number | null, validUntil: __.CdsTimestamp | null): globalThis.Promise<UpdatedGrant | null> | UpdatedGrant | null
|
|
184
|
+
// named
|
|
185
|
+
({grantId, agentLabel, allowedActions, maxJobsPerDay, validUntil}: {grantId?: string | null, agentLabel?: string | null, allowedActions?: Array<string>, maxJobsPerDay?: number | null, validUntil?: __.CdsTimestamp | null}): globalThis.Promise<UpdatedGrant | null> | UpdatedGrant | null
|
|
186
|
+
// metadata (do not use)
|
|
187
|
+
__parameters: {grantId?: string | null, agentLabel?: string | null, allowedActions?: Array<string>, maxJobsPerDay?: number | null, validUntil?: __.CdsTimestamp | null}, __returns: globalThis.Promise<UpdatedGrant | null> | UpdatedGrant | null, __self: never
|
|
188
|
+
kind: 'action'
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export declare const GetGrantUsage: {
|
|
192
|
+
// positional
|
|
193
|
+
(grantId: string | null, since: __.CdsTimestamp | null, until: __.CdsTimestamp | null): globalThis.Promise<GrantUsage | null> | GrantUsage | null
|
|
194
|
+
// named
|
|
195
|
+
({grantId, since, until}: {grantId?: string | null, since?: __.CdsTimestamp | null, until?: __.CdsTimestamp | null}): globalThis.Promise<GrantUsage | null> | GrantUsage | null
|
|
196
|
+
// metadata (do not use)
|
|
197
|
+
__parameters: {grantId?: string | null, since?: __.CdsTimestamp | null, until?: __.CdsTimestamp | null}, __returns: globalThis.Promise<GrantUsage | null> | GrantUsage | null, __self: never
|
|
198
|
+
kind: 'function'
|
|
151
199
|
}
|
|
@@ -13,9 +13,24 @@ module.exports.__Array_GrantStatus_ = createEntityProxy(['CardanoAgentService',
|
|
|
13
13
|
// IssuedGrant
|
|
14
14
|
module.exports.IssuedGrant = createEntityProxy(['CardanoAgentService', 'IssuedGrant'], { target: { is_singular: true } })
|
|
15
15
|
module.exports.__Array_IssuedGrant_ = createEntityProxy(['CardanoAgentService', 'IssuedGrant'], { target: { is_singular: false }})
|
|
16
|
+
// RotatedGrant
|
|
17
|
+
module.exports.RotatedGrant = createEntityProxy(['CardanoAgentService', 'RotatedGrant'], { target: { is_singular: true } })
|
|
18
|
+
module.exports.__Array_RotatedGrant_ = createEntityProxy(['CardanoAgentService', 'RotatedGrant'], { target: { is_singular: false }})
|
|
19
|
+
// UpdatedGrant
|
|
20
|
+
module.exports.UpdatedGrant = createEntityProxy(['CardanoAgentService', 'UpdatedGrant'], { target: { is_singular: true } })
|
|
21
|
+
module.exports.__Array_UpdatedGrant_ = createEntityProxy(['CardanoAgentService', 'UpdatedGrant'], { target: { is_singular: false }})
|
|
22
|
+
// GrantUsageCall
|
|
23
|
+
module.exports.GrantUsageCall = createEntityProxy(['CardanoAgentService', 'GrantUsageCall'], { target: { is_singular: true } })
|
|
24
|
+
module.exports.__Array_GrantUsageCall_ = createEntityProxy(['CardanoAgentService', 'GrantUsageCall'], { target: { is_singular: false }})
|
|
25
|
+
// GrantUsage
|
|
26
|
+
module.exports.GrantUsage = createEntityProxy(['CardanoAgentService', 'GrantUsage'], { target: { is_singular: true } })
|
|
27
|
+
module.exports.__Array_GrantUsage_ = createEntityProxy(['CardanoAgentService', 'GrantUsage'], { target: { is_singular: false }})
|
|
16
28
|
// events
|
|
17
29
|
// actions
|
|
18
30
|
module.exports.GetGrantStatus = 'GetGrantStatus'
|
|
19
31
|
module.exports.CreateAgentGrant = 'CreateAgentGrant'
|
|
20
32
|
module.exports.RevokeAgentGrant = 'RevokeAgentGrant'
|
|
33
|
+
module.exports.RotateAgentGrantToken = 'RotateAgentGrantToken'
|
|
34
|
+
module.exports.UpdateAgentGrant = 'UpdateAgentGrant'
|
|
35
|
+
module.exports.GetGrantUsage = 'GetGrantUsage'
|
|
21
36
|
// enums
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
|
+
import * as __ from './../_';
|
|
3
|
+
|
|
4
|
+
export default class {
|
|
5
|
+
static readonly GetTransaction: typeof GetTransaction;
|
|
6
|
+
static readonly GetTransactionsBatch: typeof GetTransactionsBatch;
|
|
7
|
+
static readonly GetTransactionMetadata: typeof GetTransactionMetadata;
|
|
8
|
+
static readonly GetBlock: typeof GetBlock;
|
|
9
|
+
static readonly GetBlockByHeight: typeof GetBlockByHeight;
|
|
10
|
+
static readonly GetNextBlocks: typeof GetNextBlocks;
|
|
11
|
+
static readonly GetBlockTransactions: typeof GetBlockTransactions;
|
|
12
|
+
static readonly GetLatestBlock: typeof GetLatestBlock;
|
|
13
|
+
static readonly GetCurrentSlot: typeof GetCurrentSlot;
|
|
14
|
+
static readonly GetEpoch: typeof GetEpoch;
|
|
15
|
+
static readonly GetLatestEpoch: typeof GetLatestEpoch;
|
|
16
|
+
static readonly GetAddress: typeof GetAddress;
|
|
17
|
+
static readonly GetAddressUtxos: typeof GetAddressUtxos;
|
|
18
|
+
static readonly GetAddressTransactions: typeof GetAddressTransactions;
|
|
19
|
+
static readonly GetAddressTransactionHashes: typeof GetAddressTransactionHashes;
|
|
20
|
+
static readonly GetCredentialUtxos: typeof GetCredentialUtxos;
|
|
21
|
+
static readonly IsUtxoUnspent: typeof IsUtxoUnspent;
|
|
22
|
+
static readonly GetUnspentOutputs: typeof GetUnspentOutputs;
|
|
23
|
+
static readonly GetAccount: typeof GetAccount;
|
|
24
|
+
static readonly GetPool: typeof GetPool;
|
|
25
|
+
static readonly GetPoolIds: typeof GetPoolIds;
|
|
26
|
+
static readonly GetPools: typeof GetPools;
|
|
27
|
+
static readonly GetDrep: typeof GetDrep;
|
|
28
|
+
static readonly GetDrepIds: typeof GetDrepIds;
|
|
29
|
+
static readonly GetDreps: typeof GetDreps;
|
|
30
|
+
static readonly GetAssetInfo: typeof GetAssetInfo;
|
|
31
|
+
static readonly GetAssetHistory: typeof GetAssetHistory;
|
|
32
|
+
static readonly GetNetworkInformation: typeof GetNetworkInformation;
|
|
33
|
+
static readonly GetProtocolParameters: typeof GetProtocolParameters;
|
|
34
|
+
static readonly EvaluateTransaction: typeof EvaluateTransaction;
|
|
35
|
+
static readonly SubmitTransaction: typeof SubmitTransaction;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export declare const GetTransaction: {
|
|
40
|
+
// positional
|
|
41
|
+
(hash: string | null): globalThis.Promise<string | null> | string | null
|
|
42
|
+
// named
|
|
43
|
+
({hash}: {hash?: string | null}): globalThis.Promise<string | null> | string | null
|
|
44
|
+
// metadata (do not use)
|
|
45
|
+
__parameters: {hash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
46
|
+
kind: 'action'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare const GetTransactionsBatch: {
|
|
50
|
+
// positional
|
|
51
|
+
(hashes: string | null): globalThis.Promise<string | null> | string | null
|
|
52
|
+
// named
|
|
53
|
+
({hashes}: {hashes?: string | null}): globalThis.Promise<string | null> | string | null
|
|
54
|
+
// metadata (do not use)
|
|
55
|
+
__parameters: {hashes?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
56
|
+
kind: 'action'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export declare const GetTransactionMetadata: {
|
|
60
|
+
// positional
|
|
61
|
+
(hash: string | null): globalThis.Promise<string | null> | string | null
|
|
62
|
+
// named
|
|
63
|
+
({hash}: {hash?: string | null}): globalThis.Promise<string | null> | string | null
|
|
64
|
+
// metadata (do not use)
|
|
65
|
+
__parameters: {hash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
66
|
+
kind: 'action'
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare const GetBlock: {
|
|
70
|
+
// positional
|
|
71
|
+
(hash: string | null): globalThis.Promise<string | null> | string | null
|
|
72
|
+
// named
|
|
73
|
+
({hash}: {hash?: string | null}): globalThis.Promise<string | null> | string | null
|
|
74
|
+
// metadata (do not use)
|
|
75
|
+
__parameters: {hash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
76
|
+
kind: 'action'
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export declare const GetBlockByHeight: {
|
|
80
|
+
// positional
|
|
81
|
+
(height: number | null): globalThis.Promise<string | null> | string | null
|
|
82
|
+
// named
|
|
83
|
+
({height}: {height?: number | null}): globalThis.Promise<string | null> | string | null
|
|
84
|
+
// metadata (do not use)
|
|
85
|
+
__parameters: {height?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
86
|
+
kind: 'action'
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export declare const GetNextBlocks: {
|
|
90
|
+
// positional
|
|
91
|
+
(afterHash: string | null, count: number | null, afterHeight: number | null): globalThis.Promise<string | null> | string | null
|
|
92
|
+
// named
|
|
93
|
+
({afterHash, count, afterHeight}: {afterHash?: string | null, count?: number | null, afterHeight?: number | null}): globalThis.Promise<string | null> | string | null
|
|
94
|
+
// metadata (do not use)
|
|
95
|
+
__parameters: {afterHash?: string | null, count?: number | null, afterHeight?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
96
|
+
kind: 'action'
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export declare const GetBlockTransactions: {
|
|
100
|
+
// positional
|
|
101
|
+
(blockHash: string | null): globalThis.Promise<string | null> | string | null
|
|
102
|
+
// named
|
|
103
|
+
({blockHash}: {blockHash?: string | null}): globalThis.Promise<string | null> | string | null
|
|
104
|
+
// metadata (do not use)
|
|
105
|
+
__parameters: {blockHash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
106
|
+
kind: 'action'
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare const GetLatestBlock: {
|
|
110
|
+
// positional
|
|
111
|
+
(): globalThis.Promise<string | null> | string | null
|
|
112
|
+
// named
|
|
113
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
114
|
+
// metadata (do not use)
|
|
115
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
116
|
+
kind: 'action'
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export declare const GetCurrentSlot: {
|
|
120
|
+
// positional
|
|
121
|
+
(): globalThis.Promise<string | null> | string | null
|
|
122
|
+
// named
|
|
123
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
124
|
+
// metadata (do not use)
|
|
125
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
126
|
+
kind: 'action'
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export declare const GetEpoch: {
|
|
130
|
+
// positional
|
|
131
|
+
(epoch: number | null): globalThis.Promise<string | null> | string | null
|
|
132
|
+
// named
|
|
133
|
+
({epoch}: {epoch?: number | null}): globalThis.Promise<string | null> | string | null
|
|
134
|
+
// metadata (do not use)
|
|
135
|
+
__parameters: {epoch?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
136
|
+
kind: 'action'
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare const GetLatestEpoch: {
|
|
140
|
+
// positional
|
|
141
|
+
(): globalThis.Promise<string | null> | string | null
|
|
142
|
+
// named
|
|
143
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
144
|
+
// metadata (do not use)
|
|
145
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
146
|
+
kind: 'action'
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export declare const GetAddress: {
|
|
150
|
+
// positional
|
|
151
|
+
(address: string | null): globalThis.Promise<string | null> | string | null
|
|
152
|
+
// named
|
|
153
|
+
({address}: {address?: string | null}): globalThis.Promise<string | null> | string | null
|
|
154
|
+
// metadata (do not use)
|
|
155
|
+
__parameters: {address?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
156
|
+
kind: 'action'
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export declare const GetAddressUtxos: {
|
|
160
|
+
// positional
|
|
161
|
+
(address: string | null): globalThis.Promise<string | null> | string | null
|
|
162
|
+
// named
|
|
163
|
+
({address}: {address?: string | null}): globalThis.Promise<string | null> | string | null
|
|
164
|
+
// metadata (do not use)
|
|
165
|
+
__parameters: {address?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
166
|
+
kind: 'action'
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export declare const GetAddressTransactions: {
|
|
170
|
+
// positional
|
|
171
|
+
(address: string | null, limit: number | null): globalThis.Promise<string | null> | string | null
|
|
172
|
+
// named
|
|
173
|
+
({address, limit}: {address?: string | null, limit?: number | null}): globalThis.Promise<string | null> | string | null
|
|
174
|
+
// metadata (do not use)
|
|
175
|
+
__parameters: {address?: string | null, limit?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
176
|
+
kind: 'action'
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export declare const GetAddressTransactionHashes: {
|
|
180
|
+
// positional
|
|
181
|
+
(address: string | null, limit: number | null): globalThis.Promise<string | null> | string | null
|
|
182
|
+
// named
|
|
183
|
+
({address, limit}: {address?: string | null, limit?: number | null}): globalThis.Promise<string | null> | string | null
|
|
184
|
+
// metadata (do not use)
|
|
185
|
+
__parameters: {address?: string | null, limit?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
186
|
+
kind: 'action'
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export declare const GetCredentialUtxos: {
|
|
190
|
+
// positional
|
|
191
|
+
(credential: string | null): globalThis.Promise<string | null> | string | null
|
|
192
|
+
// named
|
|
193
|
+
({credential}: {credential?: string | null}): globalThis.Promise<string | null> | string | null
|
|
194
|
+
// metadata (do not use)
|
|
195
|
+
__parameters: {credential?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
196
|
+
kind: 'action'
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export declare const IsUtxoUnspent: {
|
|
200
|
+
// positional
|
|
201
|
+
(txHash: string | null, outputIndex: number | null): globalThis.Promise<string | null> | string | null
|
|
202
|
+
// named
|
|
203
|
+
({txHash, outputIndex}: {txHash?: string | null, outputIndex?: number | null}): globalThis.Promise<string | null> | string | null
|
|
204
|
+
// metadata (do not use)
|
|
205
|
+
__parameters: {txHash?: string | null, outputIndex?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
206
|
+
kind: 'action'
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export declare const GetUnspentOutputs: {
|
|
210
|
+
// positional
|
|
211
|
+
(refs: string | null): globalThis.Promise<string | null> | string | null
|
|
212
|
+
// named
|
|
213
|
+
({refs}: {refs?: string | null}): globalThis.Promise<string | null> | string | null
|
|
214
|
+
// metadata (do not use)
|
|
215
|
+
__parameters: {refs?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
216
|
+
kind: 'action'
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export declare const GetAccount: {
|
|
220
|
+
// positional
|
|
221
|
+
(stakeAddress: string | null): globalThis.Promise<string | null> | string | null
|
|
222
|
+
// named
|
|
223
|
+
({stakeAddress}: {stakeAddress?: string | null}): globalThis.Promise<string | null> | string | null
|
|
224
|
+
// metadata (do not use)
|
|
225
|
+
__parameters: {stakeAddress?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
226
|
+
kind: 'action'
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export declare const GetPool: {
|
|
230
|
+
// positional
|
|
231
|
+
(poolId: string | null): globalThis.Promise<string | null> | string | null
|
|
232
|
+
// named
|
|
233
|
+
({poolId}: {poolId?: string | null}): globalThis.Promise<string | null> | string | null
|
|
234
|
+
// metadata (do not use)
|
|
235
|
+
__parameters: {poolId?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
236
|
+
kind: 'action'
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export declare const GetPoolIds: {
|
|
240
|
+
// positional
|
|
241
|
+
(): globalThis.Promise<string | null> | string | null
|
|
242
|
+
// named
|
|
243
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
244
|
+
// metadata (do not use)
|
|
245
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
246
|
+
kind: 'action'
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export declare const GetPools: {
|
|
250
|
+
// positional
|
|
251
|
+
(ids: string | null): globalThis.Promise<string | null> | string | null
|
|
252
|
+
// named
|
|
253
|
+
({ids}: {ids?: string | null}): globalThis.Promise<string | null> | string | null
|
|
254
|
+
// metadata (do not use)
|
|
255
|
+
__parameters: {ids?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
256
|
+
kind: 'action'
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export declare const GetDrep: {
|
|
260
|
+
// positional
|
|
261
|
+
(drepId: string | null): globalThis.Promise<string | null> | string | null
|
|
262
|
+
// named
|
|
263
|
+
({drepId}: {drepId?: string | null}): globalThis.Promise<string | null> | string | null
|
|
264
|
+
// metadata (do not use)
|
|
265
|
+
__parameters: {drepId?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
266
|
+
kind: 'action'
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export declare const GetDrepIds: {
|
|
270
|
+
// positional
|
|
271
|
+
(): globalThis.Promise<string | null> | string | null
|
|
272
|
+
// named
|
|
273
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
274
|
+
// metadata (do not use)
|
|
275
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
276
|
+
kind: 'action'
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export declare const GetDreps: {
|
|
280
|
+
// positional
|
|
281
|
+
(ids: string | null): globalThis.Promise<string | null> | string | null
|
|
282
|
+
// named
|
|
283
|
+
({ids}: {ids?: string | null}): globalThis.Promise<string | null> | string | null
|
|
284
|
+
// metadata (do not use)
|
|
285
|
+
__parameters: {ids?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
286
|
+
kind: 'action'
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export declare const GetAssetInfo: {
|
|
290
|
+
// positional
|
|
291
|
+
(unit: string | null): globalThis.Promise<string | null> | string | null
|
|
292
|
+
// named
|
|
293
|
+
({unit}: {unit?: string | null}): globalThis.Promise<string | null> | string | null
|
|
294
|
+
// metadata (do not use)
|
|
295
|
+
__parameters: {unit?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
296
|
+
kind: 'action'
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export declare const GetAssetHistory: {
|
|
300
|
+
// positional
|
|
301
|
+
(unit: string | null, limit: number | null): globalThis.Promise<string | null> | string | null
|
|
302
|
+
// named
|
|
303
|
+
({unit, limit}: {unit?: string | null, limit?: number | null}): globalThis.Promise<string | null> | string | null
|
|
304
|
+
// metadata (do not use)
|
|
305
|
+
__parameters: {unit?: string | null, limit?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
306
|
+
kind: 'action'
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export declare const GetNetworkInformation: {
|
|
310
|
+
// positional
|
|
311
|
+
(): globalThis.Promise<string | null> | string | null
|
|
312
|
+
// named
|
|
313
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
314
|
+
// metadata (do not use)
|
|
315
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
316
|
+
kind: 'action'
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export declare const GetProtocolParameters: {
|
|
320
|
+
// positional
|
|
321
|
+
(): globalThis.Promise<string | null> | string | null
|
|
322
|
+
// named
|
|
323
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
324
|
+
// metadata (do not use)
|
|
325
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
326
|
+
kind: 'action'
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export declare const EvaluateTransaction: {
|
|
330
|
+
// positional
|
|
331
|
+
(cbor: string | null): globalThis.Promise<string | null> | string | null
|
|
332
|
+
// named
|
|
333
|
+
({cbor}: {cbor?: string | null}): globalThis.Promise<string | null> | string | null
|
|
334
|
+
// metadata (do not use)
|
|
335
|
+
__parameters: {cbor?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
336
|
+
kind: 'action'
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export declare const SubmitTransaction: {
|
|
340
|
+
// positional
|
|
341
|
+
(cbor: string | null): globalThis.Promise<string | null> | string | null
|
|
342
|
+
// named
|
|
343
|
+
({cbor}: {cbor?: string | null}): globalThis.Promise<string | null> | string | null
|
|
344
|
+
// metadata (do not use)
|
|
345
|
+
__parameters: {cbor?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
346
|
+
kind: 'action'
|
|
347
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
|
+
const { createEntityProxy } = require('./../_')
|
|
3
|
+
// service
|
|
4
|
+
const CardanoBackendService = { name: 'CardanoBackendService' }
|
|
5
|
+
module.exports = CardanoBackendService
|
|
6
|
+
module.exports.CardanoBackendService = CardanoBackendService
|
|
7
|
+
// events
|
|
8
|
+
// actions
|
|
9
|
+
module.exports.GetTransaction = 'GetTransaction'
|
|
10
|
+
module.exports.GetTransactionsBatch = 'GetTransactionsBatch'
|
|
11
|
+
module.exports.GetTransactionMetadata = 'GetTransactionMetadata'
|
|
12
|
+
module.exports.GetBlock = 'GetBlock'
|
|
13
|
+
module.exports.GetBlockByHeight = 'GetBlockByHeight'
|
|
14
|
+
module.exports.GetNextBlocks = 'GetNextBlocks'
|
|
15
|
+
module.exports.GetBlockTransactions = 'GetBlockTransactions'
|
|
16
|
+
module.exports.GetLatestBlock = 'GetLatestBlock'
|
|
17
|
+
module.exports.GetCurrentSlot = 'GetCurrentSlot'
|
|
18
|
+
module.exports.GetEpoch = 'GetEpoch'
|
|
19
|
+
module.exports.GetLatestEpoch = 'GetLatestEpoch'
|
|
20
|
+
module.exports.GetAddress = 'GetAddress'
|
|
21
|
+
module.exports.GetAddressUtxos = 'GetAddressUtxos'
|
|
22
|
+
module.exports.GetAddressTransactions = 'GetAddressTransactions'
|
|
23
|
+
module.exports.GetAddressTransactionHashes = 'GetAddressTransactionHashes'
|
|
24
|
+
module.exports.GetCredentialUtxos = 'GetCredentialUtxos'
|
|
25
|
+
module.exports.IsUtxoUnspent = 'IsUtxoUnspent'
|
|
26
|
+
module.exports.GetUnspentOutputs = 'GetUnspentOutputs'
|
|
27
|
+
module.exports.GetAccount = 'GetAccount'
|
|
28
|
+
module.exports.GetPool = 'GetPool'
|
|
29
|
+
module.exports.GetPoolIds = 'GetPoolIds'
|
|
30
|
+
module.exports.GetPools = 'GetPools'
|
|
31
|
+
module.exports.GetDrep = 'GetDrep'
|
|
32
|
+
module.exports.GetDrepIds = 'GetDrepIds'
|
|
33
|
+
module.exports.GetDreps = 'GetDreps'
|
|
34
|
+
module.exports.GetAssetInfo = 'GetAssetInfo'
|
|
35
|
+
module.exports.GetAssetHistory = 'GetAssetHistory'
|
|
36
|
+
module.exports.GetNetworkInformation = 'GetNetworkInformation'
|
|
37
|
+
module.exports.GetProtocolParameters = 'GetProtocolParameters'
|
|
38
|
+
module.exports.EvaluateTransaction = 'EvaluateTransaction'
|
|
39
|
+
module.exports.SubmitTransaction = 'SubmitTransaction'
|
|
40
|
+
// enums
|