-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add discord module + tests * Address PR comments * remove nw member fn, non needed * Add test only * Integrate with coupons system * we want coupons in (0,100] range * keep track of how many updates have happened on addresses to invalidate old sigs * Address audit comments * add tst only * Fix revision for dep * migrate to move2024 * Some more cleanups / simplification * Minimize logic, remove table * nit * Fix discord mapping * Nits * Make payloads even more strict with a custom separator * Adds e2e testing properly * final minor adjustments (tie address setting to sender), add some PTBs + test them on testnet * Minor changes + testing * Remove non-needed readme * Publish coupons on mainnet with burner * Mainnet publish (correct), sanity check on signature, constants * minor fixes
- Loading branch information
1 parent
413db20
commit 964e224
Showing
15 changed files
with
999 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ tx-data.txt* | |
published.json | ||
constants.sdk.json | ||
dist | ||
migration.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# @generated by Move, please check-in and do not edit manually. | ||
|
||
[move] | ||
version = 0 | ||
|
||
dependencies = [ | ||
{ name = "Sui" }, | ||
{ name = "coupons" }, | ||
{ name = "suins" }, | ||
] | ||
manifest_digest = "C488D0BD18C8290C46485B8528126369EF13493F2C62ECAC18F402AB22973B8F" | ||
deps_digest = "060AD7E57DFB13104F21BE5F5C3759D03F0553FC3229247D9A7A6B45F50D03A3" | ||
|
||
[[move.package]] | ||
name = "MoveStdlib" | ||
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/mainnet", subdir = "crates/sui-framework/packages/move-stdlib" } | ||
|
||
[[move.package]] | ||
name = "Sui" | ||
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/mainnet", subdir = "crates/sui-framework/packages/sui-framework" } | ||
|
||
dependencies = [ | ||
{ name = "MoveStdlib" }, | ||
] | ||
|
||
[[move.package]] | ||
name = "coupons" | ||
source = { git = "https://github.com/mystenlabs/suins-contracts/", rev = "releases/mainnet/coupons/v1", subdir = "packages/coupons" } | ||
|
||
dependencies = [ | ||
{ name = "Sui" }, | ||
{ name = "suins" }, | ||
] | ||
|
||
[[move.package]] | ||
name = "suins" | ||
source = { git = "https://github.com/mystenlabs/suins-contracts/", rev = "releases/mainnet/core/v3", subdir = "packages/suins" } | ||
|
||
dependencies = [ | ||
{ name = "Sui" }, | ||
] | ||
|
||
[move.toolchain-version] | ||
compiler-version = "1.27.0" | ||
edition = "2024.beta" | ||
flavor = "sui" | ||
|
||
[env] | ||
|
||
[env.testnet] | ||
chain-id = "4c78adac" | ||
original-published-id = "0x8f01eb1378d53e62239f8cf4ca495c703eb346f35902cf5d7b7727cd6c0b39fc" | ||
latest-published-id = "0x8f01eb1378d53e62239f8cf4ca495c703eb346f35902cf5d7b7727cd6c0b39fc" | ||
published-version = "1" | ||
|
||
[env.mainnet] | ||
chain-id = "35834a8a" | ||
original-published-id = "0x408d22066775f20e0c13617c1f157a110d9a5b0873b878692b78aba92b1a46e1" | ||
latest-published-id = "0x408d22066775f20e0c13617c1f157a110d9a5b0873b878692b78aba92b1a46e1" | ||
published-version = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "discord" | ||
version = "0.0.1" | ||
edition = "2024.beta" | ||
published-at="0x408d22066775f20e0c13617c1f157a110d9a5b0873b878692b78aba92b1a46e1" | ||
|
||
[dependencies] | ||
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/mainnet", override=true } | ||
# coupons = { local = "../coupons" } | ||
# suins = { local = "../suins" } | ||
suins = { git = "https://github.com/mystenlabs/suins-contracts/", subdir = "packages/suins", rev = "releases/mainnet/core/v3" } | ||
coupons = { git = "https://github.com/mystenlabs/suins-contracts/", subdir = "packages/coupons", rev = "releases/mainnet/coupons/v1" } | ||
|
||
[addresses] | ||
discord = "0x408d22066775f20e0c13617c1f157a110d9a5b0873b878692b78aba92b1a46e1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Discord package | ||
|
||
A package that allows discord member loyalty for SuiNS | ||
|
||
|
||
## Testnet | ||
|
||
|
||
V1: `0x2351c4b276766b38dfffdece41e7e72e538ba6ce999a0acf582e93c21d7b880f` |
Oops, something went wrong.