Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make repo decentralized #140

Open
wants to merge 29 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
aabcd3b
feat: add arfs-js to handle read write ops
kranthicodes Aug 1, 2024
aaee3a1
fix: remove rehype anchor plugin from repo readme
kranthicodes Aug 2, 2024
372f142
fix: use fs map to access forked repo fs
kranthicodes Aug 5, 2024
09f5ae9
feat: allow user to turn repo decentralized and disable flows
kranthicodes Aug 6, 2024
ff7cc6e
fix: remove rehype anchor on click plugin
kranthicodes Aug 7, 2024
4b9a831
refactor: position decent. toggle to right section of header
kranthicodes Aug 7, 2024
3047bb6
feat: add token to decent repos
kranthicodes Aug 12, 2024
e311a6c
fix: only owner can turn repo decent.
kranthicodes Aug 12, 2024
8ea56a4
refactor: add additional validation to token settings
kranthicodes Aug 12, 2024
768a0ba
fix: disabled link state
kranthicodes Aug 12, 2024
8accac7
fix: properly load decentralized state when switching to fork
kranthicodes Aug 12, 2024
016c333
fix: set correct token name
kranthicodes Aug 12, 2024
0a955f5
feat: display forks with graphs
kranthicodes Aug 16, 2024
8cc5fed
refactor: rename forks tab
kranthicodes Aug 16, 2024
7b0ee74
refactor: improvements
kranthicodes Aug 19, 2024
f60b325
fix: improve Custom node card
kranthicodes Aug 19, 2024
29e7869
feat: create liquidity pools
kranthicodes Oct 11, 2024
3c49454
fix: build errors
kranthicodes Oct 15, 2024
806adef
refactor: update Decentralize to Tokenize
kranthicodes Oct 29, 2024
bdce654
feat: add trade button to RepoHeader
kranthicodes Oct 29, 2024
b963cf7
feat: bonding curve
kranthicodes Nov 1, 2024
a488928
refactor: charts checkpoint
kranthicodes Nov 4, 2024
6350444
feat: improvements
kranthicodes Nov 8, 2024
39451f2
feat: add curve bonded token contract
kranthicodes Nov 8, 2024
3db07c4
refactor: update bonding curve to ceil price
kranthicodes Nov 14, 2024
35fcb35
refactor: use correct price labels
kranthicodes Nov 14, 2024
38f6ee6
refactor: enable QAR
kranthicodes Nov 14, 2024
67a10ec
Merge pull request #149 from labscommunity/kranthi/pools
kranthicodes Nov 14, 2024
933e577
Merge pull request #141 from labscommunity/kranthi/repo-ranking
kranthicodes Nov 14, 2024
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

./ao-contracts/curve-bonded-token/process-dist
1 change: 1 addition & 0 deletions ao-contracts/curve-bonded-token/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
36 changes: 36 additions & 0 deletions ao-contracts/curve-bonded-token/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# pl-bonded-token

AO contract created using [create-ao-contract](https://github.com/pawanpaudel93/create-ao-contract) featuring [Busted](https://luarocks.org/modules/lunarmodules/busted) for testing and seamless deployment via [ao-deploy](https://github.com/pawanpaudel93/ao-deploy).

## Prerequisites

1. Make sure you have [Lua](https://www.lua.org/start.html#installing) and [LuaRocks](https://github.com/luarocks/luarocks/wiki/Download) installed.

2. Install [arweave](https://luarocks.org/modules/crookse/arweave) using LuaRocks for testing purposes.

```bash
luarocks install arweave
```

3. **[Recommended]** Install [Lua Language Server](https://luals.github.io/#install) to make development easier, safer, and faster!. On VSCode, install extension: [sumneko.lua](https://marketplace.visualstudio.com/items?itemName=sumneko.lua)
- Install AO & Busted addon using Lua Addon Manager. On VSCode, goto `View > Command Palette > Lua: Open Addon Manager`

## Usage

To install dependencies:

```bash
npm install
```

To run tests:

```bash
pnpm test
```

To deploy contract:

```bash
pnpm deploy
```
15 changes: 15 additions & 0 deletions ao-contracts/curve-bonded-token/aod.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from 'ao-deploy'

export default defineConfig({
'curve-bonded-token': {
name: 'curve-bonded-token',
contractPath: 'src/contracts/curve_bonded_token.lua',
luaPath: './src/?.lua'
},
'curve-bonded-token-manager': {
name: 'curve-bonded-token-manager',
contractPath: 'src/contracts/curve_bonded_token_manager.lua',
luaPath: './src/?.lua',
outDir: '../../public/contracts'
}
})
18 changes: 18 additions & 0 deletions ao-contracts/curve-bonded-token/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "pl-bonded-token",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"build": "ao-deploy aod.config.js --build-only",
"deploy": "ao-deploy aod.config.js",
"test": "arweave test . --lpath='./src/?.lua;./src/?/?.lua;./src/?/init.lua;/Users/dexter/Library/Application Support/create-ao-contract-nodejs/aos-process/?.lua'"
},
"type": "module",
"dependencies": {
"ao-deploy": "^0.5.0"
},
"cacMetadata": {
"initVersion": "1.0.3"
},
"packageManager": "[email protected]"
}
219 changes: 219 additions & 0 deletions ao-contracts/curve-bonded-token/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading