@stellar-agent/policy 0.4.0 → 0.4.1
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/index.d.ts +12 -12
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -124,14 +124,14 @@ export declare const policySchema: z.ZodObject<{
|
|
|
124
124
|
enabled: boolean;
|
|
125
125
|
allowedPools: string[];
|
|
126
126
|
allowedAssets: string[];
|
|
127
|
-
allowedActions: ("
|
|
127
|
+
allowedActions: ("withdraw" | "deposit")[];
|
|
128
128
|
maxPoolExposureValue: string;
|
|
129
129
|
requirePriceBounds: boolean;
|
|
130
130
|
}, {
|
|
131
131
|
enabled?: boolean | undefined;
|
|
132
132
|
allowedPools?: string[] | undefined;
|
|
133
133
|
allowedAssets?: string[] | undefined;
|
|
134
|
-
allowedActions?: ("
|
|
134
|
+
allowedActions?: ("withdraw" | "deposit")[] | undefined;
|
|
135
135
|
maxPoolExposureValue?: string | undefined;
|
|
136
136
|
requirePriceBounds?: boolean | undefined;
|
|
137
137
|
}>>;
|
|
@@ -140,7 +140,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
140
140
|
enabled: boolean;
|
|
141
141
|
allowedPools: string[];
|
|
142
142
|
allowedAssets: string[];
|
|
143
|
-
allowedActions: ("
|
|
143
|
+
allowedActions: ("withdraw" | "deposit")[];
|
|
144
144
|
maxPoolExposureValue: string;
|
|
145
145
|
requirePriceBounds: boolean;
|
|
146
146
|
};
|
|
@@ -149,7 +149,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
149
149
|
enabled?: boolean | undefined;
|
|
150
150
|
allowedPools?: string[] | undefined;
|
|
151
151
|
allowedAssets?: string[] | undefined;
|
|
152
|
-
allowedActions?: ("
|
|
152
|
+
allowedActions?: ("withdraw" | "deposit")[] | undefined;
|
|
153
153
|
maxPoolExposureValue?: string | undefined;
|
|
154
154
|
requirePriceBounds?: boolean | undefined;
|
|
155
155
|
} | undefined;
|
|
@@ -166,7 +166,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
167
|
enabled: boolean;
|
|
168
168
|
allowedPools: string[];
|
|
169
|
-
allowedRequestTypes: ("
|
|
169
|
+
allowedRequestTypes: ("supply" | "withdraw" | "supply_collateral" | "withdraw_collateral" | "borrow" | "repay")[];
|
|
170
170
|
maxBorrowValue: string;
|
|
171
171
|
maxProtocolExposureValue: string;
|
|
172
172
|
minimumHealthFactor: number;
|
|
@@ -174,7 +174,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
174
174
|
}, {
|
|
175
175
|
enabled?: boolean | undefined;
|
|
176
176
|
allowedPools?: string[] | undefined;
|
|
177
|
-
allowedRequestTypes?: ("
|
|
177
|
+
allowedRequestTypes?: ("supply" | "withdraw" | "supply_collateral" | "withdraw_collateral" | "borrow" | "repay")[] | undefined;
|
|
178
178
|
maxBorrowValue?: string | undefined;
|
|
179
179
|
maxProtocolExposureValue?: string | undefined;
|
|
180
180
|
minimumHealthFactor?: number | undefined;
|
|
@@ -184,7 +184,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
184
184
|
blend: {
|
|
185
185
|
enabled: boolean;
|
|
186
186
|
allowedPools: string[];
|
|
187
|
-
allowedRequestTypes: ("
|
|
187
|
+
allowedRequestTypes: ("supply" | "withdraw" | "supply_collateral" | "withdraw_collateral" | "borrow" | "repay")[];
|
|
188
188
|
maxBorrowValue: string;
|
|
189
189
|
maxProtocolExposureValue: string;
|
|
190
190
|
minimumHealthFactor: number;
|
|
@@ -194,7 +194,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
194
194
|
blend?: {
|
|
195
195
|
enabled?: boolean | undefined;
|
|
196
196
|
allowedPools?: string[] | undefined;
|
|
197
|
-
allowedRequestTypes?: ("
|
|
197
|
+
allowedRequestTypes?: ("supply" | "withdraw" | "supply_collateral" | "withdraw_collateral" | "borrow" | "repay")[] | undefined;
|
|
198
198
|
maxBorrowValue?: string | undefined;
|
|
199
199
|
maxProtocolExposureValue?: string | undefined;
|
|
200
200
|
minimumHealthFactor?: number | undefined;
|
|
@@ -254,7 +254,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
254
254
|
enabled: boolean;
|
|
255
255
|
allowedPools: string[];
|
|
256
256
|
allowedAssets: string[];
|
|
257
|
-
allowedActions: ("
|
|
257
|
+
allowedActions: ("withdraw" | "deposit")[];
|
|
258
258
|
maxPoolExposureValue: string;
|
|
259
259
|
requirePriceBounds: boolean;
|
|
260
260
|
};
|
|
@@ -263,7 +263,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
263
263
|
blend: {
|
|
264
264
|
enabled: boolean;
|
|
265
265
|
allowedPools: string[];
|
|
266
|
-
allowedRequestTypes: ("
|
|
266
|
+
allowedRequestTypes: ("supply" | "withdraw" | "supply_collateral" | "withdraw_collateral" | "borrow" | "repay")[];
|
|
267
267
|
maxBorrowValue: string;
|
|
268
268
|
maxProtocolExposureValue: string;
|
|
269
269
|
minimumHealthFactor: number;
|
|
@@ -330,7 +330,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
330
330
|
enabled?: boolean | undefined;
|
|
331
331
|
allowedPools?: string[] | undefined;
|
|
332
332
|
allowedAssets?: string[] | undefined;
|
|
333
|
-
allowedActions?: ("
|
|
333
|
+
allowedActions?: ("withdraw" | "deposit")[] | undefined;
|
|
334
334
|
maxPoolExposureValue?: string | undefined;
|
|
335
335
|
requirePriceBounds?: boolean | undefined;
|
|
336
336
|
} | undefined;
|
|
@@ -339,7 +339,7 @@ export declare const policySchema: z.ZodObject<{
|
|
|
339
339
|
blend?: {
|
|
340
340
|
enabled?: boolean | undefined;
|
|
341
341
|
allowedPools?: string[] | undefined;
|
|
342
|
-
allowedRequestTypes?: ("
|
|
342
|
+
allowedRequestTypes?: ("supply" | "withdraw" | "supply_collateral" | "withdraw_collateral" | "borrow" | "repay")[] | undefined;
|
|
343
343
|
maxBorrowValue?: string | undefined;
|
|
344
344
|
maxProtocolExposureValue?: string | undefined;
|
|
345
345
|
minimumHealthFactor?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stellar-agent/policy",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Deterministic policy parsing and payment decision logic for Stellar Agent Bridge.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"test": "vitest run"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@stellar-agent/core": "0.4.
|
|
35
|
+
"@stellar-agent/core": "0.4.1",
|
|
36
36
|
"yaml": "^2.7.1",
|
|
37
37
|
"zod": "^3.25.46"
|
|
38
38
|
}
|