@avalabs/vm-module-types 3.14.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.d.cts +8 -0
- package/dist/module.d.ts +8 -0
- package/package.json +1 -1
package/dist/module.d.cts
CHANGED
|
@@ -28,6 +28,14 @@ type ConstructorParams = {
|
|
|
28
28
|
type RuntimeParams = {
|
|
29
29
|
fetch?: typeof fetch;
|
|
30
30
|
httpAgent?: Agent;
|
|
31
|
+
/**
|
|
32
|
+
* Resolves auth headers (e.g. a Firebase AppCheck token) attached to requests
|
|
33
|
+
* against Core's authenticated proxies, such as Glacier via core-proxy-api.
|
|
34
|
+
* Invoked per request, so short-lived tokens are re-read on every call.
|
|
35
|
+
* Optional here; the EVM and Avalanche modules require it in their
|
|
36
|
+
* constructor params since their Glacier calls cannot succeed without it.
|
|
37
|
+
*/
|
|
38
|
+
getAuthHeaders?: () => Promise<Record<string, string>>;
|
|
31
39
|
};
|
|
32
40
|
type NetworkFeeParam = Network & {
|
|
33
41
|
caipId?: string;
|
package/dist/module.d.ts
CHANGED
|
@@ -28,6 +28,14 @@ type ConstructorParams = {
|
|
|
28
28
|
type RuntimeParams = {
|
|
29
29
|
fetch?: typeof fetch;
|
|
30
30
|
httpAgent?: Agent;
|
|
31
|
+
/**
|
|
32
|
+
* Resolves auth headers (e.g. a Firebase AppCheck token) attached to requests
|
|
33
|
+
* against Core's authenticated proxies, such as Glacier via core-proxy-api.
|
|
34
|
+
* Invoked per request, so short-lived tokens are re-read on every call.
|
|
35
|
+
* Optional here; the EVM and Avalanche modules require it in their
|
|
36
|
+
* constructor params since their Glacier calls cannot succeed without it.
|
|
37
|
+
*/
|
|
38
|
+
getAuthHeaders?: () => Promise<Record<string, string>>;
|
|
31
39
|
};
|
|
32
40
|
type NetworkFeeParam = Network & {
|
|
33
41
|
caipId?: string;
|