pyre-world-kit 3.0.5 → 3.0.8
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/providers/action.provider.js +1 -3
- package/dist/types.d.ts +1 -1
- package/dist/util.js +7 -0
- package/package.json +1 -1
- package/src/providers/action.provider.ts +1 -3
- package/src/types.ts +1 -1
- package/src/util.ts +7 -0
|
@@ -276,9 +276,7 @@ class ActionProvider {
|
|
|
276
276
|
amount_sol: MICRO_BUY_LAMPORTS,
|
|
277
277
|
message: params.message,
|
|
278
278
|
vault: params.stronghold,
|
|
279
|
-
vote: params.
|
|
280
|
-
? this.mapper.vote(Math.random() > 0.5 ? 'fortify' : 'scorched_earth')
|
|
281
|
-
: undefined,
|
|
279
|
+
vote: params.strategy ? this.mapper.vote(params.strategy) : undefined,
|
|
282
280
|
});
|
|
283
281
|
return this.mapper.buyResult(result);
|
|
284
282
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ export interface MessageFactionParams {
|
|
|
183
183
|
message: string;
|
|
184
184
|
stronghold: string;
|
|
185
185
|
ascended?: boolean;
|
|
186
|
-
|
|
186
|
+
strategy?: Strategy;
|
|
187
187
|
}
|
|
188
188
|
/** "Argued in" — micro sell + negative message (sells 100 tokens) */
|
|
189
189
|
export interface FudFactionParams {
|
package/dist/util.js
CHANGED
|
@@ -97,6 +97,13 @@ const DEFAULT_BLACKLIST = [
|
|
|
97
97
|
'ZkprRY78cmfSmjMvDmgb4rWRxnxNrQYpF8chejRt3py',
|
|
98
98
|
'4BFfCqG4L6bsS2tEZTpgQPJjsSqqLPQaxuaWMJcaRjpy',
|
|
99
99
|
'5xRA2q9oHjoxN1XgqMTZW3aRBgGppcLCCbLBURepXApy',
|
|
100
|
+
// wave 5 (devnet cleanup — v3.0 refactor)
|
|
101
|
+
'3HmSa1VjnHgybLwp54ekaroCCbJcHywoJHfHS6BDLBpy',
|
|
102
|
+
'4HKqRw3Gm6FCnPeWM5tTwMfm4kpuZ5KZD2mpAWRMmNpy',
|
|
103
|
+
'EGt84WUBAVCbczNrggGiQNSFC1PRTc4BvYHCqALxNtpy',
|
|
104
|
+
'DkxahcwFnpSTSDpTSzaP8e8fhURXw8wYHes1GqEh9qpy',
|
|
105
|
+
'7P6yWvgX1BdXnMvutt4FJbfhA8gtzwEFaYjfw1fV2zpy',
|
|
106
|
+
'2iSsxTATxv1gu6P85fzMcnqidpiVhCokgUea4vkARFpy',
|
|
100
107
|
];
|
|
101
108
|
const BLACKLISTED_MINTS = new Set(DEFAULT_BLACKLIST);
|
|
102
109
|
/** Add mints to the blacklist (call at startup with old mints) */
|
package/package.json
CHANGED
|
@@ -386,9 +386,7 @@ export class ActionProvider implements Action {
|
|
|
386
386
|
amount_sol: MICRO_BUY_LAMPORTS,
|
|
387
387
|
message: params.message,
|
|
388
388
|
vault: params.stronghold,
|
|
389
|
-
vote: params.
|
|
390
|
-
? this.mapper.vote(Math.random() > 0.5 ? 'fortify' : ('scorched_earth' as Strategy))
|
|
391
|
-
: undefined,
|
|
389
|
+
vote: params.strategy ? this.mapper.vote(params.strategy) : undefined,
|
|
392
390
|
})
|
|
393
391
|
return this.mapper.buyResult(result)
|
|
394
392
|
}
|
package/src/types.ts
CHANGED
package/src/util.ts
CHANGED
|
@@ -93,6 +93,13 @@ const DEFAULT_BLACKLIST = [
|
|
|
93
93
|
'ZkprRY78cmfSmjMvDmgb4rWRxnxNrQYpF8chejRt3py',
|
|
94
94
|
'4BFfCqG4L6bsS2tEZTpgQPJjsSqqLPQaxuaWMJcaRjpy',
|
|
95
95
|
'5xRA2q9oHjoxN1XgqMTZW3aRBgGppcLCCbLBURepXApy',
|
|
96
|
+
// wave 5 (devnet cleanup — v3.0 refactor)
|
|
97
|
+
'3HmSa1VjnHgybLwp54ekaroCCbJcHywoJHfHS6BDLBpy',
|
|
98
|
+
'4HKqRw3Gm6FCnPeWM5tTwMfm4kpuZ5KZD2mpAWRMmNpy',
|
|
99
|
+
'EGt84WUBAVCbczNrggGiQNSFC1PRTc4BvYHCqALxNtpy',
|
|
100
|
+
'DkxahcwFnpSTSDpTSzaP8e8fhURXw8wYHes1GqEh9qpy',
|
|
101
|
+
'7P6yWvgX1BdXnMvutt4FJbfhA8gtzwEFaYjfw1fV2zpy',
|
|
102
|
+
'2iSsxTATxv1gu6P85fzMcnqidpiVhCokgUea4vkARFpy',
|
|
96
103
|
]
|
|
97
104
|
|
|
98
105
|
const BLACKLISTED_MINTS = new Set<string>(DEFAULT_BLACKLIST)
|