Skip to content

Commit

Permalink
impl SocialCoin
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptowen committed Nov 18, 2023
1 parent e6be549 commit 6bc6fbe
Show file tree
Hide file tree
Showing 12 changed files with 1,764 additions and 83 deletions.
7 changes: 4 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
KEY_PAIR_SEED=ffd37d1abb6ff525c56c6f51bfa58bf3989cc7fab5a93beb5c7eaacde3dcbe34
KEY_PAIR_SEED=c24c94da926ba4071a8b375872bb492b59ea91f7536bad433613e247eebea92d
USER_KEY_PAIR_SEED=131d1d9144b7d5c44a714405fb6f2970cf5c515806009d697a529de63e501b72

SUI_RPC_URL=https://fullnode.devnet.sui.io/
FAUCET_URL=https://faucet.devnet.sui.io/gas
SUI_RPC_URL=https://fullnode.devnet.sui.io:443
FAUCET_URL=https://faucet.devnet.sui.io
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ci

on: ["push", "pull_request", "workflow_dispatch"]

env:
VERSION: mainnet-v1.13.0

jobs:
test_and_demo:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x]
steps:
- uses: actions/checkout@v3
- name: Cache Binaries and move deps
id: cache
uses: actions/cache@v3
with:
path: |
~/.move
~/bin
**/node_modules
key: ${{ runner.os }}-cache-${{ env.VERSION }}
restore-keys: |
${{ runner.os }}-cache-
- run: echo "${HOME}/bin" >> $GITHUB_PATH
- name: install sui bin
run: |
mkdir -p ~/bin
cd ~/bin
wget https://github.com/MystenLabs/sui/releases/download/${{ env.VERSION }}/sui-${{ env.VERSION }}-ubuntu-x86_64.tgz
tar -xvzf sui-${{ env.VERSION }}-ubuntu-x86_64.tgz
cp ./target/release/sui-ubuntu-x86_64 sui
chmod +x ~/bin/sui
if: steps.cache.outputs.cache-hit != 'true'
- name: Install Task
uses: arduino/setup-task@v1
- run: task build
- run: task test
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/[email protected]
with:
version: 8.6.2
- run: pnpm install
- run: cp .env.example .env
- run: REQUEST_SUI=1 task demo
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
printWidth: 120,
semi: true,
singleQuote: true,
trailingComma: 'all',
};
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Mynft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 22 additions & 0 deletions Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 0
manifest_digest = "CB5C1ED9A551F08BF2B584C1253BA080B7C016384E5B84C2BC87003DBA82AB3F"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"

dependencies = [
{ name = "Sui" },
]

[[move.package]]
name = "MoveStdlib"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "mainnet-v1.13.0", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
name = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "mainnet-v1.13.0", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ name = "MoveStdlib" },
]
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tasks:
- Move.toml
demo:
cmds:
- pnpm ts-node examples/suibox.ts
- pnpm demo
sources:
- src/**/*.ts
- examples/**/*.ts
Loading

0 comments on commit 6bc6fbe

Please sign in to comment.