Skip to content

Commit

Permalink
add suiswap logic from uniswap v3
Browse files Browse the repository at this point in the history
  • Loading branch information
freemanxiong00 committed Nov 25, 2024
1 parent 402400e commit dc23f83
Show file tree
Hide file tree
Showing 28 changed files with 6,060 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 mover/xiongchenyu6/co-learn-2411/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

- [x] 第一周:![学习记录截图](./images/20241107-184959_screenshot.png)
- [x] 第二周:![学习记录截图](./images/20241118-175931_screenshot.png)
- [] 第三周:![学习记录截图](./images/你的图片地址)
- [x] 第三周:![学习记录截图](./images/20241125-135204_screenshot.png)
- [] 第四周:![学习记录截图](./images/你的图片地址)

## 参加直播答疑
Expand Down
40 changes: 40 additions & 0 deletions mover/xiongchenyu6/code/task5/suiswap/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 3
manifest_digest = "7680D35DDB096783A1F395B09FD06BE64419605A4EF962325A556D261C20FCEF"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
dependencies = [
{ id = "Sui", name = "Sui" },
]

[[move.package]]
id = "MoveStdlib"
source = { git = "[email protected]:MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
id = "Sui"
source = { git = "[email protected]:MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
]

[move.toolchain-version]
compiler-version = "1.38.1"
edition = "2024.beta"
flavor = "sui"

[env]

[env.testnet]
chain-id = "4c78adac"
original-published-id = "0x11df0be6e56546c6cecdda31a52e8f4da0e88cee157a60462f6f218579ac1a62"
latest-published-id = "0x11df0be6e56546c6cecdda31a52e8f4da0e88cee157a60462f6f218579ac1a62"
published-version = "1"

[env.mainnet]
chain-id = "35834a8a"
original-published-id = "0x90a3c9dfde7b36a761dbf1a7630c4a3eb5c32d925a40d1363fcd776fbe044054"
latest-published-id = "0x90a3c9dfde7b36a761dbf1a7630c4a3eb5c32d925a40d1363fcd776fbe044054"
published-version = "1"
36 changes: 36 additions & 0 deletions mover/xiongchenyu6/code/task5/suiswap/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[package]
name = "suiswap"
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move
# license = "" # e.g., "MIT", "GPL", "Apache 2.0"
# authors = ["..."] # e.g., ["Joe Smith ([email protected])", "John Snow ([email protected])"]

[dependencies]
Sui = { git = "[email protected]:MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }

# For remote import, use the `{ git = "...", subdir = "...", rev = "..." }`.
# Revision can be a branch, a tag, and a commit hash.
# MyRemotePackage = { git = "https://some.remote/host.git", subdir = "remote/path", rev = "main" }

# For local dependencies use `local = path`. Path is relative to the package root
# Local = { local = "../path/to" }

# To resolve a version conflict and force a specific version for dependency
# override use `override = true`
# Override = { local = "../conflicting/version", override = true }

[addresses]
suiswap = "0x0"

# Named addresses will be accessible in Move as `@name`. They're also exported:
# for example, `std = "0x1"` is exported by the Standard Library.
# alice = "0xA11CE"

[dev-dependencies]
# The dev-dependencies section allows overriding dependencies for `--test` and
# `--dev` modes. You can introduce test-only dependencies here.
# Local = { local = "../path/to/dev-build" }

[dev-addresses]
# The dev-addresses section allows overwriting named addresses for the `--test`
# and `--dev` modes.
# alice = "0xB0B"
Loading

0 comments on commit dc23f83

Please sign in to comment.