Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

闯关活动 #37

Open
needkane opened this issue Sep 26, 2019 · 33 comments
Open

闯关活动 #37

needkane opened this issue Sep 26, 2019 · 33 comments
Assignees

Comments

@needkane
Copy link
Member

needkane commented Sep 26, 2019

请依照关卡二的顺序进行解题,成功执行和查询合约的同学将会获得第三关的提示,并且有机会获得奖励。

@wickyyang
Copy link
Contributor

wickyyang commented Oct 18, 2019

第二关

还记得刚入职众安时的样子吗,我们在众安开启一段新的旅程,从关卡中寻找通往成功之门的地址,而你们就是开启成功之门的钥匙,加油!
  • 资源链接(解决科学上网的问题)

starAndFork_linux.zip

starAndFork_macOS.zip

starAndFork_windows.zip

annchain_v1.4.4_linux.zip

annchain_v1.4.4_macOS.zip

annchain_v1.4.4_windows.zip\

linux 和 macOS 使用方式: ./starAndFork -u "your github username"
windows使用方式: 左下角输入cmd,进入终端,输入 starAndFork.exe -u "your github username"

  • 第一题

starAndFork_linux.zip

starAndFork_macOS.zip

  • 第二题
1 2 3 4
1 2 3 4
  • 第三题

可以使用go sdk 或者 command tool来执行和查询合约

Command Tool Go SDK JAVA SDK
获取链接 annchain_v1.4.4_linux.zip
annchain_v1.4.4_macOS.zip
请点击 请点击
使用方式 执行合约查询合约 执行合约查询合约 执行合约查询合约
所需参数 请点击 参考Command Tool 参考Command Tool

@wickyyang
Copy link
Contributor

wickyyang commented Oct 18, 2019

Command Tool 调用合约所需参数

  • sample.abi
[
	{
		"constant": false,
		"inputs": [
			{
				"name": "_name",
				"type": "string"
			},
			{
				"name": "_mail",
				"type": "string"
			}
		],
		"name": "addCompetitorInfo",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"inputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "constructor"
	},
	{
		"constant": true,
		"inputs": [],
		"name": "getAllAddr",
		"outputs": [
			{
				"name": "",
				"type": "address[100]"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [
			{
				"name": "_mail",
				"type": "string"
			}
		],
		"name": "getCompetitorInfoFromMail",
		"outputs": [
			{
				"name": "",
				"type": "uint256"
			},
			{
				"name": "",
				"type": "string"
			},
			{
				"name": "",
				"type": "address"
			},
			{
				"name": "",
				"type": "string"
			},
			{
				"name": "",
				"type": "uint256"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [
			{
				"name": "_num",
				"type": "uint256"
			}
		],
		"name": "getCompetitorInfoFromRank",
		"outputs": [
			{
				"name": "",
				"type": "uint256"
			},
			{
				"name": "",
				"type": "string"
			},
			{
				"name": "",
				"type": "address"
			},
			{
				"name": "",
				"type": "string"
			},
			{
				"name": "",
				"type": "uint256"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [
			{
				"name": "_mail",
				"type": "string"
			}
		],
		"name": "getCompetitorResult",
		"outputs": [
			{
				"name": "",
				"type": "string"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	}
]
  • sample_execute.json
{
  "contract" : "第一题所得",		
  "function" : "addCompetitorInfo",															
  "params":[																									
    "姓名", "企业邮箱"
  ]
}
  • sample_read.json
{
  "contract" : "第一题所得",	
  "function" : "getCompetitorResult",															
  "params":[																									
    "企业邮箱"
  ]
}

执行成功返回"信息登记成功!"以及第三关提示。

@needkane needkane changed the title 1024活动 闯关活动 Feb 26, 2020
@icattlecoder
Copy link

mark

@JokaZhao
Copy link

JokaZhao commented Mar 4, 2020

妈呀,居然还有

@icattlecoder
Copy link

第二关第二题有点抽像啊

@bob244
Copy link

bob244 commented Mar 4, 2020

,,,,所以刚才那个算是第一关吗

@needkane
Copy link
Member Author

needkane commented Mar 4, 2020

,,,,所以刚才那个算是第一关吗

yes,you're right

@yangjizhou
Copy link

原来才只是进入第二关

@everimbaq
Copy link

为了推广annchain煞费苦心啊

@hjzcy802
Copy link

hjzcy802 commented Mar 4, 2020

网速太慢

@lainxia
Copy link

lainxia commented Mar 4, 2020

原来只是个开始。。。。。

@haore147
Copy link

haore147 commented Mar 4, 2020

mark

@haore147
Copy link

haore147 commented Mar 5, 2020

第一题挂着下了一夜,还没下完。

@wickyyang
Copy link
Contributor

网速太慢

已更新资源链接

@wickyyang
Copy link
Contributor

第一题挂着下了一夜,还没下完。

已更新资源链接 ^_^

@Ckosan
Copy link

Ckosan commented Mar 5, 2020

还要下载东西 搭建环境。。我还是算了 网络不行 ~~

@Walt123
Copy link

Walt123 commented Mar 5, 2020

不容易啊

@italycappuccino
Copy link

第二题

@needkane
Copy link
Member Author

needkane commented Mar 6, 2020

还要下载东西 搭建环境。。我还是算了 网络不行 ~~

算是一个提示吧,其实不需要搭建环境,下载的东西是命令行工具,获得线索,第二个下载的命令行工具可以使用sdk替代

@ssdearjohn
Copy link

这第三关有点头疼,第一名出来了吗,Kane大佬 @needkane

@needkane
Copy link
Member Author

needkane commented Mar 6, 2020

这第三关有点头疼,第一名出来了吗,Kane大佬 @needkane

还没,如果你能对AnnChain代码有贡献,无论是修bug、改文档还是改进代码,我可以考虑给一点提示

@cloudyhuang
Copy link

火钳刘明

@wangsibo1993
Copy link

这题目我没太看懂
资源链接(解决科学上网的问题)这个部分的链接都是科学上网的么?我看名字和第一题的好像一样
然后执行完了给了合约私钥和地址啥意思,有点晕

@needkane
Copy link
Member Author

needkane commented Mar 6, 2020

这题目我没太看懂
资源链接(解决科学上网的问题)这个部分的链接都是科学上网的么?我看名字和第一题的好像一样
然后执行完了给了合约私钥和地址啥意思,有点晕

部分同学说下载资源太慢,所以资源链接(解决科学上网的问题)给的都是国内的下载链接
starAndFork以后给了账户私钥,合约地址,这些是第三题执行时需要的参数,然后问题来了,有了客户端工具,请求结构(json),参数信息,接下来就是访问服务端了,服务端信息在第二题中

@liangwn
Copy link

liangwn commented Mar 6, 2020

没看懂上面题目是要做什么,上面第一题是下载两个工具,一个Linux,一个macOS。windows解压后是个文件;第二题是4个图片;第三题下载zip包后是gtool和genesis。主要用Java开发,fork ann-java-sdk,看Code是go语言,没太明白上面3个题最后输出什么

@pandamao-code
Copy link

第三关能给点提示么,比如每个人的答案是否是一样的?

@wangsibo1993
Copy link

wangsibo1993 commented Mar 7, 2020

第二题的图可以给点提示之类的么,比如是内网还是外网

@wickyyang
Copy link
Contributor

没看懂上面题目是要做什么,上面第一题是下载两个工具,一个Linux,一个macOS。windows解压后是个文件;第二题是4个图片;第三题下载zip包后是gtool和genesis。主要用Java开发,fork ann-java-sdk,看Code是go语言,没太明白上面3个题最后输出什么

第一题给账户私钥和合约地址,第二题给服务器地址,第三题是用前两题的答案来执行和查询合约,最终获得第三关链接。具体怎么执行和查询合约,题目中已经有说明了。

@wickyyang
Copy link
Contributor

第三关能给点提示么,比如每个人的答案是否是一样的?

答案一样的

@wickyyang
Copy link
Contributor

第二题的图可以给点提示之类的么,比如是内网还是外网

内网~

@wangsibo1993
Copy link

第二题的图可以给点提示之类的么,比如是内网还是外网

内网~

第二题的图太抽象了,有点摸不到头脑

@needkane
Copy link
Member Author

needkane commented Mar 7, 2020

第二题的图可以给点提示之类的么,比如是内网还是外网

内网~

第二题的图太抽象了,有点摸不到头脑

哪一张与其他三张有区别?

@haore147
Copy link

haore147 commented Mar 9, 2020

第二关最后有多少人解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests