Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/strategy.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: New strategy
name: 📜 New strategy
about: Initial issue for new strategy development by conveyor.
title: "📜 %STRATEGY_SHORT_ID% | %STRATEGY_ID%: strategy architecture"
title: "📜 %STRATEGY_SHORT_ID% | %STRATEGY_ID%: Prepare"
labels: builder:STRATEGY
assignees: ''

---

# %STRATEGY_SHORT_ID%
# %STRATEGY_SHORT_ID% | %STRATEGY_ID%

## Tasks

Expand All @@ -18,4 +18,4 @@ assignees: ''

## Artifacts

* [ ] Library tag
* [ ] Library tag: `v0.X.Y`
31 changes: 12 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,15 @@ yarn prettier . --write

### Commit/PR prefix

| Changes | Prefix |
| ------------------ | ------ |
| API types | 📡 |
| AI, Agents | 🤖 |
| Strategies | 📜 |
| Deployments | #️⃣ |
| Chains | ⛓️ |
| Integrations | 🌐 |
| Assets, tokenlist | 🪙 |
| Sync state, etc | ♻️️ |
| Content generators | 🎇 |
| Bridges | 🌉 |
| Risk | 🚦 |
| Prettier | #️⃣ |
| Docs | 📙 |
| Adapters | 🔌 |
| Contests | 🏆 |
| Lending | 🏦 |
| Collector | 📦 |
- 🤖 Agents
- 📡 API
- 📜 Strategies
- 🪙 Assets
- ⛓️ Chains
- 🏦 Lending
- 🌐 DeFi, integrations
- ♻️ Sync
- 🎇 Content generator
- 📦 Library
- #️⃣ Lint, format
- 📙 Docs
Binary file modified chains.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integrations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stabilitydao/stability",
"version": "0.46.3",
"version": "0.47.0",
"description": "Stability Integration Library",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ export const agents: Agent[] = [
builder,
{
id: AgentId.YIELD_TRACKER,
status: AgentStatus.INITIAL_FUNDING,
status: AgentStatus.PROPOSAL,
name: "Yield Tracker",
...emptyRuntime,
chainIDs: ["146"],
},
{
id: AgentId.TRADER,
status: AgentStatus.INITIAL_FUNDING,
status: AgentStatus.PROPOSAL,
name: "ETH trader",
...emptyRuntime,
asset: ["ETH"],
Expand Down
99 changes: 70 additions & 29 deletions src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ export interface IBuilderAgent extends IAgentBase, IAgentRuntime {

export interface IConveyor {
name: string;
symbol: string;
type: string;
label: ILabel;
description: string;
issueTitleTemplate: string;
taskIdIs: string;
steps: IConveyorStep[];
}

Expand Down Expand Up @@ -65,10 +68,9 @@ export interface IConveyorStep {
name: string;
issues: {
repo: string;
title: string;
taskList?: string[];
issueTemplate?: string;
body?: string;
taskList?: string[];
generator?: string;
}[];
artifacts?: IArtifact[];
Expand Down Expand Up @@ -158,22 +160,23 @@ export const pools: IPool[] = [
export const conveyors: IConveyor[] = [
{
name: "Strategies",
symbol: "📜",
type: "Task",
label: {
name: "builder:STRATEGY",
description:
"Developing and deploying a new strategy on the **Strategies** conveyor belt.",
color: "#00d0ff",
},
description: "Implement and integrate new strategy contract",
issueTitleTemplate: "📜 %STRATEGY_SHORT_ID% | %STRATEGY_ID%: %STEP_NAME%",
taskIdIs: "%STRATEGY_SHORT_ID%",
description: "Implement and integrate new strategy smart contract",
steps: [
{
name: "Prepare library",
name: "Prepare",
issues: [
{
repo: "stabilitydao/stability",
title:
"📜 %STRATEGY_SHORT_ID% | %STRATEGY_ID%: strategy architecture",
issueTemplate: "strategy.md",
},
],
Expand All @@ -185,49 +188,82 @@ export const conveyors: IConveyor[] = [
],
},
{
name: "Implement deploy and strategy smart contract",
name: "Contract",
issues: [
{
repo: "stabilitydao/stability-contracts",
title: "📜 [%SHORT_NAME%] | %ID%: implement strategy",
generator: "yarn issue",
},
],
/*artifacts: [
artifacts: [
{
type: ArtifactType.CONTRACT_ADDRESS,
name: "Strategy implementation",
name: "Strategy implementations in chains",
},
],*/
],
},
{
name: "Integrate strategy",
// todo
issues: [],
name: "Integrate",
issues: [
{
repo: "stabilitydao/stability",
taskList: [
"Setup platform in chains",
"Add farms / strategy init params",
"Deploy vaults",
"Do post setup (toggleDistributorOperator, etc)",
"Add all necessary tokens to `src/stability.tokenlist.json`, `src/assets.ts`",
"Set status READY to strategy in `src/strategies.ts`",
],
},
],
artifacts: [
{
type: ArtifactType.LIBRARY_RELEASE_TAG,
name: "Library where strategy is READY to use and live with all necessary tokens",
},
],
},
{
name: "Backend",
issues: [
{
repo: "stabilitydao/stability-node-pro",
taskList: ["Update library"],
},
],
},
{
name: "Frontend",
issues: [
{
repo: "stabilitydao/stability-ui",
taskList: [
"Update library",
"Generate and fill new vault OG images",
],
},
],
},
],
},
{
name: "Chains",
symbol: "⛓️",
type: "Task",
label: {
name: "builder:CHAIN",
description: "",
description: "Chain integration by Chains conveyor",
color: "#30da71",
},
issueTitleTemplate: "⛓️ %CHAIN_NAME% [%CHAIN_ID%]: %STEP_NAME%",
taskIdIs: "%CHAIN_NAME%",
description: "Add chain support",
steps: [
{
name: "Prepare and release library",
name: "Prepare",
issues: [
{
repo: "stabilitydao/stability",
title: "⛓️ %CHAIN_NAME% [%CHAIN_ID%]: prepare chain",
taskList: [
"Add chain image to static repo",
"add new chain to `src/chains.ts` with status `ChainStatus.DEVELOPMENT`",
Expand All @@ -245,54 +281,55 @@ export const conveyors: IConveyor[] = [
],
},
{
name: "Prepare and deploy platform contracts",
name: "Contracts",
issues: [
{
repo: "stabilitydao/stability-contracts",
title: "⛓️ %CHAIN_NAME% [%CHAIN_ID%] deployment",
generator:
"🎇 Run `yarn issue` in library repo, fill issue id to `src/chains.ts`.",
},
],
result: "deployed and verified core and periphery contract addresses",
},
{
name: "Deploy subgraph",
name: "Subgraph",
issues: [
{
repo: "stabilitydao/stability-subgraph",
title: "⛓️ %CHAIN_NAME% [%CHAIN_ID%]: deploy subgraph",
taskList: ["add chain support", "deploy subgraph"],
},
],
result: "subgraph endpoint url",
},
{
name: "Release library with deployment",
name: "Deployment",
issues: [
{
repo: "stabilitydao/stability",
title: "⛓️ %CHAIN_NAME% [%CHAIN_ID%]: add deployment",
taskList: ["Add chain to `src/deployments.ts`"],
},
],
result: "library release tag",
},
{
name: "Backend support",
name: "Backend",
issues: [
{
repo: "stabilitydao/stability-node-pro",
title: "⛓️ %CHAIN_NAME% [%CHAIN_ID%]: add chain support",
taskList: ["Show chain in API", "Setup TxSender"],
},
],
result: "API reply has chain data",
},
{
name: "Frontend support",
name: "Frontend",
issues: [
{
repo: "stabilitydao/stability-ui",
title: "⛓️ %CHAIN_NAME% [%CHAIN_ID%]: add chain support",
taskList: [
"add chain support to dapp",
"show chain in vaults filter",
],
},
],
result: "beta UI show chain",
Expand All @@ -305,7 +342,7 @@ export const builder: Agent = {
id: AgentId.BUILDER,
status: AgentStatus.UNDER_CONSTRUCTION,
name: "Stability Builder",
tokenization: "2026",
tokenization: "Q1 2026",
image: "BUILDER.png",
...emptyRuntime,
repo: [
Expand All @@ -322,6 +359,10 @@ export const builder: Agent = {
period: "Sep, 2025",
usdAmount: 32200,
},
{
period: "Oct, 2025",
usdAmount: 31100,
},
],
workers: [],
conveyors,
Expand Down
2 changes: 1 addition & 1 deletion src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export const chains: { [chainId: string]: Chain } = {
"9745": {
name: ChainName.PLASMA,
chainId: 9745,
status: ChainStatus.DEVELOPMENT,
status: ChainStatus.SUPPORTED,
img: "plasma.webp",
multisig: "0xE929438B5B53984FdBABf8562046e141e90E8099",
chainLibGithubId: 397,
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import { IlDetails, getIL } from "./risk";
import { Severity, status } from "./status";
import { AgentId, Agent, agents, getAgent } from "./agents";
import { ILendingMarket, IReserve, lendingMarkets } from "./lending";
import { IBuilderAgent } from "./builder";

export {
deployments,
Expand Down Expand Up @@ -137,4 +138,5 @@ export {
lendingMarkets,
ILendingMarket,
IReserve,
IBuilderAgent,
};
9 changes: 7 additions & 2 deletions tools/draw-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,13 @@ async function main() {
ctx.fillText(`Chain ID: ${chainId}`, 100, 900);

// image
const image = await loadImage(`${tmpDir}/${chain.img}`);
ctx.drawImage(image, 250, 170, 500, 500);
const imgPath = `${tmpDir}/${chain.img}`;
try {
const image = await loadImage(imgPath);
ctx.drawImage(image, 250, 170, 500, 500);
} catch (e) {
console.log(`Error while processing ${imgPath}`);
}

// Write the image to file
const buffer = canvas.toBuffer("image/png");
Expand Down
2 changes: 1 addition & 1 deletion tools/issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ for (const shortId of Object.keys(strategies)) {
`------ Need to create issue for strategy ${strategy.shortId}
------ https://github.com/stabilitydao/stability-contracts/issues/new`,
);
console.log(`Title: 📜 [${strategy.state}] ${strategy.id}`);
console.log(`Title: 📜 ${strategy.shortId} | ${strategy.id}: Contract`);
console.log(`# ${strategy.shortId} | ${strategy.id}`);
console.log("");
console.log("<div>");
Expand Down
Loading