
The Dilemmas of Constructing Onchain Digit Worlds
In the realm of building large-scale decentralized applications, there exist a multitude of ideological narratives and visions of the future. Certainly, crafting and debating these narratives is important. However, these romantic words will not automatically transform into smart contracts on the blockchain, nor will they attract thousands of participants to emerge from nowhere and engage actively. When developing large-scale onchain applications, we inevitably encounter a variety of dilemmas....
ddy的sandbox浅度观察 #001
最近更新: 2021-11-30 初次发表: 2021-11-30 这次的内容主要来自于视频平台当中up主介绍内容的整合。 实际上如果有时间可以直接看: https://sandboxgame.gitbook.io/the-sandbox/特别强调所有的内容均不构成任何的投资建议 内容当中可能存在没有及时更新的信息 内容没有经过严格的校对和检查,可能存在错误的信息初步介绍沙盒类游戏 (minecraft, roblox等) 合作伙伴: 游戏制作公司ATARI,麦兜团队,小羊肖恩团队,the walking dead, Ultra ,CryptoKitties, 韩国SBS游戏学院 , 游戏公司Square Enix等等 由于我的孤陋寡闻,实际上知道的不多 :-c UGC: user generated Content 发展基本面: 玩家,游戏创作方,平台方 VoxEdit: 可以用来制作各种模型 GameMaker: 有模型后可以搭建各种游戏场景,设计经济模型,有土地之后可以发布游戏 【marketplace交易市场】sand代币经济和功能访问游戏 市场交易以及交易手续费 (5%...

ddy在web3的随机游走
最近更新: 2021-12-02 初次发表: 2021-12-02 在2021-12-01 9pm(utc+8:00) ,我在unknownDAO分享了我近半年来在web3的一些经历。分享主题主要围绕 区块链黑客松,NFT,dark forest小蓝鸟@ddy_mainland特别强调陈述内容不构成投资建议 所涉及内容可能存在一定的滞后性为什么推荐大家参加黑客松的理由可以结识区块链行业的小伙伴,了解和接触行业当中新鲜的技术,收获荣誉和奖金NFT相关推荐稍微接触过编程的朋友使用processing 个人的NFT作品主要聚集地: https://foundation.app/@byeddy https://opensea.io/ddy 我现在有foundation的邀请码,如果有朋友有成熟的作品风格,同时会在foundation上长期mint作品,可以联系我,我会和朋友进行一个简单的讨论,决定是否分享邀请码。忧郁向的作品end of slience 90 on listings just for 0.1 tez (熟悉的网络化缘环节,懂的都懂) https://objkt.com/a...

The Dilemmas of Constructing Onchain Digit Worlds
In the realm of building large-scale decentralized applications, there exist a multitude of ideological narratives and visions of the future. Certainly, crafting and debating these narratives is important. However, these romantic words will not automatically transform into smart contracts on the blockchain, nor will they attract thousands of participants to emerge from nowhere and engage actively. When developing large-scale onchain applications, we inevitably encounter a variety of dilemmas....
ddy的sandbox浅度观察 #001
最近更新: 2021-11-30 初次发表: 2021-11-30 这次的内容主要来自于视频平台当中up主介绍内容的整合。 实际上如果有时间可以直接看: https://sandboxgame.gitbook.io/the-sandbox/特别强调所有的内容均不构成任何的投资建议 内容当中可能存在没有及时更新的信息 内容没有经过严格的校对和检查,可能存在错误的信息初步介绍沙盒类游戏 (minecraft, roblox等) 合作伙伴: 游戏制作公司ATARI,麦兜团队,小羊肖恩团队,the walking dead, Ultra ,CryptoKitties, 韩国SBS游戏学院 , 游戏公司Square Enix等等 由于我的孤陋寡闻,实际上知道的不多 :-c UGC: user generated Content 发展基本面: 玩家,游戏创作方,平台方 VoxEdit: 可以用来制作各种模型 GameMaker: 有模型后可以搭建各种游戏场景,设计经济模型,有土地之后可以发布游戏 【marketplace交易市场】sand代币经济和功能访问游戏 市场交易以及交易手续费 (5%...

ddy在web3的随机游走
最近更新: 2021-12-02 初次发表: 2021-12-02 在2021-12-01 9pm(utc+8:00) ,我在unknownDAO分享了我近半年来在web3的一些经历。分享主题主要围绕 区块链黑客松,NFT,dark forest小蓝鸟@ddy_mainland特别强调陈述内容不构成投资建议 所涉及内容可能存在一定的滞后性为什么推荐大家参加黑客松的理由可以结识区块链行业的小伙伴,了解和接触行业当中新鲜的技术,收获荣誉和奖金NFT相关推荐稍微接触过编程的朋友使用processing 个人的NFT作品主要聚集地: https://foundation.app/@byeddy https://opensea.io/ddy 我现在有foundation的邀请码,如果有朋友有成熟的作品风格,同时会在foundation上长期mint作品,可以联系我,我会和朋友进行一个简单的讨论,决定是否分享邀请码。忧郁向的作品end of slience 90 on listings just for 0.1 tez (熟悉的网络化缘环节,懂的都懂) https://objkt.com/a...
Subscribe to byeddy.eth
Subscribe to byeddy.eth
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
first release date:2022-07-05
latest revision date:2022-07-05
The Graph is a decentralized protocol for indexing and querying data from blockchains.
Dark Forest v0.6.5 is on gnosis chain (xdai) now.
Actually, we have subgraph for dark forest office test round v0.6.5.
So how to deploy a subgraph for lobby round?
Please notice: I don't think this is a elegant way to deploy, however it can work :-)
my computer OS is windows 10, and the CLI is PowerShell
1.download subgraph code
git clone https://github.com/darkforest-eth/eth.gitNOTICE: please make sure this code is only used for deploying subgraph, we will make lots of changes.
2.open file folder and download package dependencies.
cd eth
npm installYou may meet some error like
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the \"Desktop development with C++\" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
....Don't worry, you can just ignore them.
3.find the contract address and start block.
For example, the lobby address is : zkga.me/play/0xadc6d5ffda27525a725b01eb2199a546686c72b9
the contract address is : 0xadc6d5ffda27525a725b01eb2199a546686c72b9
the start block can find in gnosis chain's explorer
https://blockscout.com/xdai/mainnet/address/0xadc6d5fFDA27525a725b01eb2199A546686c72B9
in the line of Creator 0x5da117–1a7145 at 0xce3501–c006f1
just click the right 0xce3501-c006f1 and go to
you will get the start block in the right of Block, which is 22977361
So the start block is: 22977361
4.open eth/node_modules/@darkforest_eth/contracts/
change the contract address and start block in index.d.ts, index.js, index.js.map, index.ts.
The contract address and start block in those file before are for v0.6.5,
you just need to change them to your lobby.
5.find eth/hardhat.config.ts
and change the 37 line
//const { DEPLOYER_MNEMONIC, ADMIN_PUBLIC_ADDRESS } = process.env;
const DEPLOYER_MNEMONIC = 'change typical hire slam amateur loan grid fix drama electric seed label';
const ADMIN_PUBLIC_ADDRESS ='';This is just to make yarn hardhat --xdai can be used.
6.open file folder eth and input those command into CLI.
yarn subgraph:template:prodThis command will generate something into subgraph/subgraph.yaml
and you will see
Error: Command failed: npx graph codegen subgraph/subgraph.yaml
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
killed: false,
code: 1,
signal: null,
cmd: 'npx graph codegen subgraph/subgraph.yaml',
stdout: "\x1B[31mENOENT: no such file or directory, open 'C:\\Users\\robot\\Desktop\\subgraph\\eth\\subgraph\\subgraph\\subgraph.yaml'\x1B[39m\n",
stderr: ''
}don't worry, and you input the command into CLI
npx graph codegen subgraph/subgraph.yamland you will see
...
√ Load GraphQL schema from subgraph\schema.graphql
Write types to generated\schema.ts
√ Generate types for GraphQL schema
Types generated successfully You will see generated/ in eth/, just move generated/ into eth/subgraph/
7.follow the graph's docs to store the access token And Add Subgraph
for example , your github name is goodboy, and the subgraph name is Play Dark Forest
then input below command int CLI
yarn subgraph:deploy:prod GoodBoy/play-dark-forestif deploy successfully, you will see
Deployed to https://thegraph.com/explorer/subgraph/goodboy/play-dark-forest
Subgraph endpoints:
Queries (HTTP): https://api.thegraph.com/subgraphs/name/goodboy/play-dark-forest
Subscriptions (WS): wss://api.thegraph.com/subgraphs/name/goodboy/play-dark-forestthen you may need wait some time to wait for subgraph to snyc.
You can check the state in
https://thegraph.com/explorer/subgraph/goodboy/play-dark-forestThat's all, thanks for reading .
If you have any question, please feel free to connect with me :-)
my twitter @ddy_mainland.
first release date:2022-07-05
latest revision date:2022-07-05
The Graph is a decentralized protocol for indexing and querying data from blockchains.
Dark Forest v0.6.5 is on gnosis chain (xdai) now.
Actually, we have subgraph for dark forest office test round v0.6.5.
So how to deploy a subgraph for lobby round?
Please notice: I don't think this is a elegant way to deploy, however it can work :-)
my computer OS is windows 10, and the CLI is PowerShell
1.download subgraph code
git clone https://github.com/darkforest-eth/eth.gitNOTICE: please make sure this code is only used for deploying subgraph, we will make lots of changes.
2.open file folder and download package dependencies.
cd eth
npm installYou may meet some error like
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the \"Desktop development with C++\" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
....Don't worry, you can just ignore them.
3.find the contract address and start block.
For example, the lobby address is : zkga.me/play/0xadc6d5ffda27525a725b01eb2199a546686c72b9
the contract address is : 0xadc6d5ffda27525a725b01eb2199a546686c72b9
the start block can find in gnosis chain's explorer
https://blockscout.com/xdai/mainnet/address/0xadc6d5fFDA27525a725b01eb2199A546686c72B9
in the line of Creator 0x5da117–1a7145 at 0xce3501–c006f1
just click the right 0xce3501-c006f1 and go to
you will get the start block in the right of Block, which is 22977361
So the start block is: 22977361
4.open eth/node_modules/@darkforest_eth/contracts/
change the contract address and start block in index.d.ts, index.js, index.js.map, index.ts.
The contract address and start block in those file before are for v0.6.5,
you just need to change them to your lobby.
5.find eth/hardhat.config.ts
and change the 37 line
//const { DEPLOYER_MNEMONIC, ADMIN_PUBLIC_ADDRESS } = process.env;
const DEPLOYER_MNEMONIC = 'change typical hire slam amateur loan grid fix drama electric seed label';
const ADMIN_PUBLIC_ADDRESS ='';This is just to make yarn hardhat --xdai can be used.
6.open file folder eth and input those command into CLI.
yarn subgraph:template:prodThis command will generate something into subgraph/subgraph.yaml
and you will see
Error: Command failed: npx graph codegen subgraph/subgraph.yaml
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
killed: false,
code: 1,
signal: null,
cmd: 'npx graph codegen subgraph/subgraph.yaml',
stdout: "\x1B[31mENOENT: no such file or directory, open 'C:\\Users\\robot\\Desktop\\subgraph\\eth\\subgraph\\subgraph\\subgraph.yaml'\x1B[39m\n",
stderr: ''
}don't worry, and you input the command into CLI
npx graph codegen subgraph/subgraph.yamland you will see
...
√ Load GraphQL schema from subgraph\schema.graphql
Write types to generated\schema.ts
√ Generate types for GraphQL schema
Types generated successfully You will see generated/ in eth/, just move generated/ into eth/subgraph/
7.follow the graph's docs to store the access token And Add Subgraph
for example , your github name is goodboy, and the subgraph name is Play Dark Forest
then input below command int CLI
yarn subgraph:deploy:prod GoodBoy/play-dark-forestif deploy successfully, you will see
Deployed to https://thegraph.com/explorer/subgraph/goodboy/play-dark-forest
Subgraph endpoints:
Queries (HTTP): https://api.thegraph.com/subgraphs/name/goodboy/play-dark-forest
Subscriptions (WS): wss://api.thegraph.com/subgraphs/name/goodboy/play-dark-forestthen you may need wait some time to wait for subgraph to snyc.
You can check the state in
https://thegraph.com/explorer/subgraph/goodboy/play-dark-forestThat's all, thanks for reading .
If you have any question, please feel free to connect with me :-)
my twitter @ddy_mainland.
No activity yet