Closed17

Astarやっていき

もっくま(Mistletoe)もっくま(Mistletoe)

hardhatのデプロイ先をAstarのネットワークにすればsolidityのエコシステム使いながらスマコンかけるっぽい
そのへんはEVM互換でいい感じにできるっぽいな

その上でRustとかでAstarの枠組みの中で実装するメリットはどこにあんのかな

もっくま(Mistletoe)もっくま(Mistletoe)

Astarで一番良くわかってないのが↓
これがどう実現されている、実際にどんな感じの体験なのかが分からない

開発者へのインセンティブの不足
dApp開発者はブロックチェーン業界で最も重要な人材ですが、dAppsやインフラプロジェクトを開発するために多くのコストを支払っています。 Astarは、開発者がプロダクトを作りながらベーシックインカムを得ることが可能な「#Build2Earn」プロトコルを導入しています。

もっくま(Mistletoe)もっくま(Mistletoe)

swanky contract compileでエラーんなった

======== Found contracts ========
flipper
======== Compiling flipper ========
✔ Contract compiled successfully
⠋ Copying artifacts[Error: ENOENT: no such file or directory, copyfile '/workspaces/study_astar_network/swankyPjs/myPj/artifacts/flipper.contract' -> '/workspaces/study_astar_network/swankyPjs/myPj/artifacts/flipper/1675689044061/flipper.wasm'] {
errno: -2,
code: 'ENOENT',
syscall: 'copyfile',
path: '/workspaces/study_astar_network/swankyPjs/myPj/artifacts/flipper.contract',
dest: '/workspaces/study_astar_network/swankyPjs/myPj/artifacts/flipper/1675689044061/flipper.wasm'
}
✔ Copying artifacts OK
✔ Writing config OK

もっくま(Mistletoe)もっくま(Mistletoe)

Ubuntuだた

cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
もっくま(Mistletoe)もっくま(Mistletoe)
swanky node start
/workspaces/study_astar_network/swankyPjs/myPj/bin/swanky-node: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /workspaces/study_astar_network/swankyPjs/myPj/bin/swanky-node)
/workspaces/study_astar_network/swankyPjs/myPj/bin/swanky-node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /workspaces/study_astar_network/swankyPjs/myPj/bin/swanky-node)
/workspaces/study_astar_network/swankyPjs/myPj/bin/swanky-node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /workspaces/study_astar_network/swankyPjs/myPj/bin/swanky-node)
/workspaces/study_astar_network/swankyPjs/myPj/bin/swanky-node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /workspaces/study_astar_network/swankyPjs/myPj/bin/swanky-node)
    Error: Command failed with exit code 1: /workspaces/study_astar_network/swankyPjs/myPj/bin/swanky-node --rpc-cors 
    http://localhost:*,http://127.0.0.1:*,https://localhost:*,https://127.0.0.1:*,https://polkadot.js.org,https://cont
    racts-ui.substrate.io/

でエラー
色々足りない?

もっくま(Mistletoe)もっくま(Mistletoe)

コマンドがチュートリアルとちがう

swanky contract query flipper get --addr 5Hdv1h4YS1xEVmfh5XTwK3ev4pKqqodwEsNkkPMs3TXH266n
2023-02-12 10:06:06        API/INIT: RPC methods not decorated: transaction_unstable_submitAndWatch, transaction_unstable_unwatch
✔ Initialising OK
✔ Getting metadata OK
Query result: true


swanky contract tx flipper flip --addr 5Hdv1h4YS1xEVmfh5XTwK3ev4pKqqodwEsNkkPMs3TXH266n -a alice
2023-02-12 10:08:05        API/INIT: RPC methods not decorated: transaction_unstable_submitAndWatch, transaction_unstable_unwatch
✔ Initialising OK
✔ Getting metadata OK
Gas required: [object Object]
Tx result:
{
  dispatchError: undefined,
  dispatchInfo: {
    weight: { refTime: '1,877,719,401', proofSize: '18,019' },
    class: 'Normal',
    paysFee: 'Yes'
  },
  events: [
    { phase: [Object], event: [Object], topics: [] },
    { phase: [Object], event: [Object], topics: [Array] },
    { phase: [Object], event: [Object], topics: [] },
    { phase: [Object], event: [Object], topics: [] }
  ],
  internalError: undefined,
  status: {
    Finalized: '0x1720bfed871261222b0a183f146c8f72fd8bffd0c0fefe048a8815a0f88ebaeb'
  }
}


swanky contract query flipper get --addr 5Hdv1h4YS1xEVmfh5XTwK3ev4pKqqodwEsNkkPMs3TXH266n
2023-02-12 10:08:18        API/INIT: RPC methods not decorated: transaction_unstable_submitAndWatch, transaction_unstable_unwatch
✔ Initialising OK
✔ Getting metadata OK
Query result: false
このスクラップは2023/12/03にクローズされました