@chainlink/cre-sdk 1.5.0-alpha.2 → 1.5.0-alpha.4
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 +18 -1
- package/bin/cre-compile.ts +39 -17
- package/dist/generated/capabilities/blockchain/evm/v1alpha/client_pb.js +1 -1
- package/dist/generated/chain-selectors/mainnet/evm/ab-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/ab-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/adi-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/adi-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/edge-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/edge-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/everclear-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/everclear-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/gate-chain-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/gate-chain-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/gate-layer-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/gate-layer-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/jovay-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/jovay-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/megaeth-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/megaeth-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/pharos-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/pharos-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/stable-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/stable-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/tempo-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/tempo-mainnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/0g-testnet-galileo-1.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/0g-testnet-galileo-1.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/ab-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/ab-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/adi-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/adi-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/arc-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/arc-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/celo-sepolia.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/celo-sepolia.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/dogeos-testnet-chikyu.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/dogeos-testnet-chikyu.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/edge-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/edge-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-hoodi-morph.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-hoodi-morph.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-hoodi-taiko-1.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-hoodi-taiko-1.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-hoodi-taiko.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-hoodi-taiko.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-hoodi.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-hoodi.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-sepolia-ronin-1.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/ethereum-testnet-sepolia-ronin-1.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/everclear-testnet-sepolia.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/everclear-testnet-sepolia.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/gate-chain-testnet-meteora.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/gate-chain-testnet-meteora.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/gate-layer-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/gate-layer-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/megaeth-testnet-2.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/megaeth-testnet-2.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/pharos-atlantic-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/pharos-atlantic-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/robinhood-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/robinhood-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/sonic-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/sonic-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/stable-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/stable-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/tempo-testnet-moderato.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/tempo-testnet-moderato.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/tempo-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/tempo-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/xlayer-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/xlayer-testnet.js +12 -0
- package/dist/generated/networks.d.ts +2 -2
- package/dist/generated/networks.js +238 -0
- package/dist/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.d.ts +24 -0
- package/dist/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.js +24 -0
- package/dist/index.d.ts +3 -0
- package/dist/sdk/types/global.d.ts +146 -2
- package/dist/sdk/types/restricted-apis.d.ts +18 -23
- package/dist/sdk/types/restricted-node-modules.d.ts +462 -0
- package/dist/sdk/utils/capabilities/blockchain/blockchain-helpers.d.ts +40 -3
- package/dist/sdk/utils/capabilities/blockchain/blockchain-helpers.js +80 -6
- package/dist/sdk/utils/prepare-runtime.d.ts +1 -1
- package/dist/sdk/utils/prepare-runtime.js +9 -2
- package/dist/sdk/wasm/host-bindings.d.ts +4 -4
- package/package.json +5 -5
- package/scripts/run.ts +11 -1
- package/scripts/src/build-types.ts +31 -1
- package/scripts/src/compile-cli-args.test.ts +32 -0
- package/scripts/src/compile-cli-args.ts +35 -0
- package/scripts/src/compile-to-js.test.ts +90 -0
- package/scripts/src/compile-to-js.ts +51 -13
- package/scripts/src/compile-to-wasm.ts +35 -34
- package/scripts/src/compile-workflow.ts +55 -27
- package/scripts/src/generate-chain-selectors.ts +9 -27
- package/scripts/src/typecheck-workflow.test.ts +77 -0
- package/scripts/src/typecheck-workflow.ts +96 -0
- package/scripts/src/validate-workflow-runtime-compat.test.ts +433 -0
- package/scripts/src/validate-workflow-runtime-compat.ts +631 -0
|
@@ -38,26 +38,50 @@ export declare class ClientCapability {
|
|
|
38
38
|
readonly 'avalanche-testnet-fuji': 14767482510784806043n;
|
|
39
39
|
readonly 'binance_smart_chain-mainnet': 11344663589394136015n;
|
|
40
40
|
readonly 'binance_smart_chain-testnet': 13264668187771770619n;
|
|
41
|
+
readonly 'celo-mainnet': 1346049177634351622n;
|
|
42
|
+
readonly 'cronos-testnet': 2995292832068775165n;
|
|
43
|
+
readonly 'dtcc-testnet-andesite': 15513093881969820114n;
|
|
41
44
|
readonly 'ethereum-mainnet': 5009297550715157269n;
|
|
42
45
|
readonly 'ethereum-mainnet-arbitrum-1': 4949039107694359620n;
|
|
43
46
|
readonly 'ethereum-mainnet-base-1': 15971525489660198786n;
|
|
47
|
+
readonly 'ethereum-mainnet-ink-1': 3461204551265785888n;
|
|
48
|
+
readonly 'ethereum-mainnet-linea-1': 4627098889531055414n;
|
|
49
|
+
readonly 'ethereum-mainnet-mantle-1': 1556008542357238666n;
|
|
44
50
|
readonly 'ethereum-mainnet-optimism-1': 3734403246176062136n;
|
|
51
|
+
readonly 'ethereum-mainnet-scroll-1': 13204309965629103672n;
|
|
45
52
|
readonly 'ethereum-mainnet-worldchain-1': 2049429975587534727n;
|
|
53
|
+
readonly 'ethereum-mainnet-xlayer-1': 3016212468291539606n;
|
|
46
54
|
readonly 'ethereum-mainnet-zksync-1': 1562403441176082196n;
|
|
47
55
|
readonly 'ethereum-testnet-sepolia': 16015286601757825753n;
|
|
48
56
|
readonly 'ethereum-testnet-sepolia-arbitrum-1': 3478487238524512106n;
|
|
49
57
|
readonly 'ethereum-testnet-sepolia-base-1': 10344971235874465080n;
|
|
50
58
|
readonly 'ethereum-testnet-sepolia-linea-1': 5719461335882077547n;
|
|
59
|
+
readonly 'ethereum-testnet-sepolia-mantle-1': 8236463271206331221n;
|
|
51
60
|
readonly 'ethereum-testnet-sepolia-optimism-1': 5224473277236331295n;
|
|
61
|
+
readonly 'ethereum-testnet-sepolia-scroll-1': 2279865765895943307n;
|
|
62
|
+
readonly 'ethereum-testnet-sepolia-unichain-1': 14135854469784514356n;
|
|
52
63
|
readonly 'ethereum-testnet-sepolia-worldchain-1': 5299555114858065850n;
|
|
53
64
|
readonly 'ethereum-testnet-sepolia-zksync-1': 6898391096552792247n;
|
|
65
|
+
readonly 'gnosis_chain-mainnet': 465200170687744372n;
|
|
66
|
+
readonly 'gnosis_chain-testnet-chiado': 8871595565390010547n;
|
|
67
|
+
readonly 'hyperliquid-mainnet': 2442541497099098535n;
|
|
54
68
|
readonly 'hyperliquid-testnet': 4286062357653186312n;
|
|
55
69
|
readonly 'ink-testnet-sepolia': 9763904284804119144n;
|
|
70
|
+
readonly 'jovay-mainnet': 1523760397290643893n;
|
|
56
71
|
readonly 'jovay-testnet': 945045181441419236n;
|
|
72
|
+
readonly 'megaeth-mainnet': 6093540873831549674n;
|
|
73
|
+
readonly 'megaeth-testnet-2': 18241817625092392675n;
|
|
74
|
+
readonly 'pharos-atlantic-testnet': 16098325658947243212n;
|
|
75
|
+
readonly 'pharos-mainnet': 7801139999541420232n;
|
|
76
|
+
readonly 'plasma-mainnet': 9335212494177455608n;
|
|
57
77
|
readonly 'plasma-testnet': 3967220077692964309n;
|
|
58
78
|
readonly 'polygon-mainnet': 4051577828743386545n;
|
|
59
79
|
readonly 'polygon-testnet-amoy': 16281711391670634445n;
|
|
60
80
|
readonly 'private-testnet-andesite': 6915682381028791124n;
|
|
81
|
+
readonly 'sonic-mainnet': 1673871237479749969n;
|
|
82
|
+
readonly 'sonic-testnet': 1763698235108410440n;
|
|
83
|
+
readonly 'tac-testnet': 9488606126177218005n;
|
|
84
|
+
readonly 'xlayer-testnet': 10212741611335999305n;
|
|
61
85
|
};
|
|
62
86
|
constructor(ChainSelector: bigint);
|
|
63
87
|
callContract(runtime: Runtime<unknown>, input: CallContractRequest | CallContractRequestJson): {
|
|
@@ -48,26 +48,50 @@ export class ClientCapability {
|
|
|
48
48
|
'avalanche-testnet-fuji': 14767482510784806043n,
|
|
49
49
|
'binance_smart_chain-mainnet': 11344663589394136015n,
|
|
50
50
|
'binance_smart_chain-testnet': 13264668187771770619n,
|
|
51
|
+
'celo-mainnet': 1346049177634351622n,
|
|
52
|
+
'cronos-testnet': 2995292832068775165n,
|
|
53
|
+
'dtcc-testnet-andesite': 15513093881969820114n,
|
|
51
54
|
'ethereum-mainnet': 5009297550715157269n,
|
|
52
55
|
'ethereum-mainnet-arbitrum-1': 4949039107694359620n,
|
|
53
56
|
'ethereum-mainnet-base-1': 15971525489660198786n,
|
|
57
|
+
'ethereum-mainnet-ink-1': 3461204551265785888n,
|
|
58
|
+
'ethereum-mainnet-linea-1': 4627098889531055414n,
|
|
59
|
+
'ethereum-mainnet-mantle-1': 1556008542357238666n,
|
|
54
60
|
'ethereum-mainnet-optimism-1': 3734403246176062136n,
|
|
61
|
+
'ethereum-mainnet-scroll-1': 13204309965629103672n,
|
|
55
62
|
'ethereum-mainnet-worldchain-1': 2049429975587534727n,
|
|
63
|
+
'ethereum-mainnet-xlayer-1': 3016212468291539606n,
|
|
56
64
|
'ethereum-mainnet-zksync-1': 1562403441176082196n,
|
|
57
65
|
'ethereum-testnet-sepolia': 16015286601757825753n,
|
|
58
66
|
'ethereum-testnet-sepolia-arbitrum-1': 3478487238524512106n,
|
|
59
67
|
'ethereum-testnet-sepolia-base-1': 10344971235874465080n,
|
|
60
68
|
'ethereum-testnet-sepolia-linea-1': 5719461335882077547n,
|
|
69
|
+
'ethereum-testnet-sepolia-mantle-1': 8236463271206331221n,
|
|
61
70
|
'ethereum-testnet-sepolia-optimism-1': 5224473277236331295n,
|
|
71
|
+
'ethereum-testnet-sepolia-scroll-1': 2279865765895943307n,
|
|
72
|
+
'ethereum-testnet-sepolia-unichain-1': 14135854469784514356n,
|
|
62
73
|
'ethereum-testnet-sepolia-worldchain-1': 5299555114858065850n,
|
|
63
74
|
'ethereum-testnet-sepolia-zksync-1': 6898391096552792247n,
|
|
75
|
+
'gnosis_chain-mainnet': 465200170687744372n,
|
|
76
|
+
'gnosis_chain-testnet-chiado': 8871595565390010547n,
|
|
77
|
+
'hyperliquid-mainnet': 2442541497099098535n,
|
|
64
78
|
'hyperliquid-testnet': 4286062357653186312n,
|
|
65
79
|
'ink-testnet-sepolia': 9763904284804119144n,
|
|
80
|
+
'jovay-mainnet': 1523760397290643893n,
|
|
66
81
|
'jovay-testnet': 945045181441419236n,
|
|
82
|
+
'megaeth-mainnet': 6093540873831549674n,
|
|
83
|
+
'megaeth-testnet-2': 18241817625092392675n,
|
|
84
|
+
'pharos-atlantic-testnet': 16098325658947243212n,
|
|
85
|
+
'pharos-mainnet': 7801139999541420232n,
|
|
86
|
+
'plasma-mainnet': 9335212494177455608n,
|
|
67
87
|
'plasma-testnet': 3967220077692964309n,
|
|
68
88
|
'polygon-mainnet': 4051577828743386545n,
|
|
69
89
|
'polygon-testnet-amoy': 16281711391670634445n,
|
|
70
90
|
'private-testnet-andesite': 6915682381028791124n,
|
|
91
|
+
'sonic-mainnet': 1673871237479749969n,
|
|
92
|
+
'sonic-testnet': 1763698235108410440n,
|
|
93
|
+
'tac-testnet': 9488606126177218005n,
|
|
94
|
+
'xlayer-testnet': 10212741611335999305n,
|
|
71
95
|
};
|
|
72
96
|
constructor(ChainSelector) {
|
|
73
97
|
this.ChainSelector = ChainSelector;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
// Global type declarations for the CRE SDK runtime
|
|
2
|
-
//
|
|
1
|
+
// Global type declarations for the CRE SDK runtime.
|
|
2
|
+
// These are the methods and globals exposed by the Host to the Guest.
|
|
3
|
+
|
|
4
|
+
type ExistingGlobal<K extends PropertyKey, Fallback> =
|
|
5
|
+
typeof globalThis extends Record<K, infer T> ? T : Fallback
|
|
3
6
|
|
|
4
7
|
/**
|
|
5
8
|
* Host functions exposed by the CRE runtime to WASM guests
|
|
@@ -78,6 +81,147 @@ declare global {
|
|
|
78
81
|
* @returns Unix timestamp in milliseconds
|
|
79
82
|
*/
|
|
80
83
|
function now(): number
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Console API available in the QuickJS runtime
|
|
87
|
+
*/
|
|
88
|
+
type CreConsole = {
|
|
89
|
+
log(...args: unknown[]): void
|
|
90
|
+
warn(...args: unknown[]): void
|
|
91
|
+
error(...args: unknown[]): void
|
|
92
|
+
info(...args: unknown[]): void
|
|
93
|
+
debug(...args: unknown[]): void
|
|
94
|
+
}
|
|
95
|
+
var console: ExistingGlobal<'console', CreConsole>
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* TextEncoder/TextDecoder APIs available via Javy's text_encoding support
|
|
99
|
+
*/
|
|
100
|
+
interface CreTextEncoderEncodeIntoResult {
|
|
101
|
+
read: number
|
|
102
|
+
written: number
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface CreTextEncoder {
|
|
106
|
+
readonly encoding: string
|
|
107
|
+
encode(input?: string): Uint8Array
|
|
108
|
+
encodeInto(input: string, dest: Uint8Array): CreTextEncoderEncodeIntoResult
|
|
109
|
+
}
|
|
110
|
+
var TextEncoder: ExistingGlobal<
|
|
111
|
+
'TextEncoder',
|
|
112
|
+
{ prototype: CreTextEncoder; new (): CreTextEncoder }
|
|
113
|
+
>
|
|
114
|
+
|
|
115
|
+
interface CreTextDecoder {
|
|
116
|
+
readonly encoding: string
|
|
117
|
+
readonly fatal: boolean
|
|
118
|
+
readonly ignoreBOM: boolean
|
|
119
|
+
decode(input?: ArrayBuffer | ArrayBufferView, options?: { stream?: boolean }): string
|
|
120
|
+
}
|
|
121
|
+
var TextDecoder: ExistingGlobal<
|
|
122
|
+
'TextDecoder',
|
|
123
|
+
{
|
|
124
|
+
prototype: CreTextDecoder
|
|
125
|
+
new (label?: string, options?: { fatal?: boolean; ignoreBOM?: boolean }): CreTextDecoder
|
|
126
|
+
}
|
|
127
|
+
>
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Buffer and Base64 APIs exposed via prepareRuntime() from node:buffer.
|
|
131
|
+
* Declared structurally so they work even when consumers opt out of @types/node.
|
|
132
|
+
*/
|
|
133
|
+
type CreBufferEncoding =
|
|
134
|
+
| 'ascii'
|
|
135
|
+
| 'base64'
|
|
136
|
+
| 'base64url'
|
|
137
|
+
| 'binary'
|
|
138
|
+
| 'hex'
|
|
139
|
+
| 'latin1'
|
|
140
|
+
| 'ucs-2'
|
|
141
|
+
| 'ucs2'
|
|
142
|
+
| 'utf-8'
|
|
143
|
+
| 'utf-16le'
|
|
144
|
+
| 'utf8'
|
|
145
|
+
| 'utf16le'
|
|
146
|
+
|
|
147
|
+
interface CreBuffer extends Uint8Array {
|
|
148
|
+
toString(encoding?: CreBufferEncoding, start?: number, end?: number): string
|
|
149
|
+
slice(start?: number, end?: number): CreBuffer
|
|
150
|
+
subarray(begin?: number, end?: number): CreBuffer
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
var Buffer: ExistingGlobal<
|
|
154
|
+
'Buffer',
|
|
155
|
+
{
|
|
156
|
+
prototype: CreBuffer
|
|
157
|
+
alloc(
|
|
158
|
+
size: number,
|
|
159
|
+
fill?: string | number | Uint8Array | ArrayBuffer | ArrayBufferView,
|
|
160
|
+
encoding?: CreBufferEncoding,
|
|
161
|
+
): CreBuffer
|
|
162
|
+
byteLength(
|
|
163
|
+
value: string | Uint8Array | ArrayBuffer | ArrayBufferView,
|
|
164
|
+
encoding?: CreBufferEncoding,
|
|
165
|
+
): number
|
|
166
|
+
concat(list: readonly Uint8Array[], totalLength?: number): CreBuffer
|
|
167
|
+
from(value: string, encoding?: CreBufferEncoding): CreBuffer
|
|
168
|
+
from(value: Uint8Array | ArrayBuffer | ArrayBufferView | ArrayLike<number>): CreBuffer
|
|
169
|
+
isBuffer(value: unknown): value is CreBuffer
|
|
170
|
+
}
|
|
171
|
+
>
|
|
172
|
+
|
|
173
|
+
function atob(encodedData: string): string
|
|
174
|
+
function btoa(stringToEncode: string): string
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* URL and URLSearchParams — exposed via prepareRuntime() from node:url
|
|
178
|
+
*/
|
|
179
|
+
interface CreURLSearchParams {
|
|
180
|
+
append(name: string, value: string): void
|
|
181
|
+
delete(name: string): void
|
|
182
|
+
get(name: string): string | null
|
|
183
|
+
getAll(name: string): string[]
|
|
184
|
+
has(name: string): boolean
|
|
185
|
+
set(name: string, value: string): void
|
|
186
|
+
sort(): void
|
|
187
|
+
toString(): string
|
|
188
|
+
forEach(callback: (value: string, key: string, parent: CreURLSearchParams) => void): void
|
|
189
|
+
entries(): IterableIterator<[string, string]>
|
|
190
|
+
keys(): IterableIterator<string>
|
|
191
|
+
values(): IterableIterator<string>
|
|
192
|
+
[Symbol.iterator](): IterableIterator<[string, string]>
|
|
193
|
+
readonly size: number
|
|
194
|
+
}
|
|
195
|
+
var URLSearchParams: ExistingGlobal<
|
|
196
|
+
'URLSearchParams',
|
|
197
|
+
{
|
|
198
|
+
prototype: CreURLSearchParams
|
|
199
|
+
new (
|
|
200
|
+
init?: string | Record<string, string> | [string, string][] | CreURLSearchParams,
|
|
201
|
+
): CreURLSearchParams
|
|
202
|
+
}
|
|
203
|
+
>
|
|
204
|
+
|
|
205
|
+
interface CreURL {
|
|
206
|
+
hash: string
|
|
207
|
+
host: string
|
|
208
|
+
hostname: string
|
|
209
|
+
href: string
|
|
210
|
+
readonly origin: string
|
|
211
|
+
password: string
|
|
212
|
+
pathname: string
|
|
213
|
+
port: string
|
|
214
|
+
protocol: string
|
|
215
|
+
search: string
|
|
216
|
+
readonly searchParams: CreURLSearchParams
|
|
217
|
+
username: string
|
|
218
|
+
toString(): string
|
|
219
|
+
toJSON(): string
|
|
220
|
+
}
|
|
221
|
+
var URL: ExistingGlobal<
|
|
222
|
+
'URL',
|
|
223
|
+
{ prototype: CreURL; new (url: string, base?: string | CreURL): CreURL }
|
|
224
|
+
>
|
|
81
225
|
}
|
|
82
226
|
|
|
83
227
|
export {}
|
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
declare global {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/** @deprecated setTimeout is not available in CRE WASM workflows. Use cre.capabilities.CronCapability for scheduling. */
|
|
21
|
-
const setTimeout: never
|
|
22
|
-
|
|
23
|
-
/** @deprecated setInterval is not available in CRE WASM workflows. Use cre.capabilities.CronCapability for scheduling. */
|
|
24
|
-
const setInterval: never
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated fetch is not available in CRE WASM workflows.
|
|
4
|
+
* Use cre.capabilities.HTTPClient instead.
|
|
5
|
+
* @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
|
|
6
|
+
*/
|
|
7
|
+
function fetch(_notAvailable: never): never
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated setTimeout is not available in CRE WASM workflows. Use cre.capabilities.CronCapability for scheduling.
|
|
11
|
+
* @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
|
|
12
|
+
*/
|
|
13
|
+
function setTimeout(_notAvailable: never, ..._args: never[]): never
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated setInterval is not available in CRE WASM workflows. Use cre.capabilities.CronCapability for scheduling.
|
|
17
|
+
* @see https://docs.chain.link/cre/concepts/typescript-wasm-runtime
|
|
18
|
+
*/
|
|
19
|
+
function setInterval(_notAvailable: never, ..._args: never[]): never
|
|
25
20
|
}
|
|
26
21
|
|
|
27
22
|
export {}
|