Code Monkey home page Code Monkey logo

Comments (3)

jiangying000 avatar jiangying000 commented on August 16, 2024

main 上我用 list_resource 和 get_account_state_set 查了几个地址:0x1,0x8355417c88d969f656935244641256ad,0xA550C18 加上普通用户的地址,typetag 嵌套层数最多是 3,超过12层感觉概率很低。

move-language#549 是等合并以后再 pick 吗 ?

from move.

jiangying000 avatar jiangying000 commented on August 16, 2024

三层的 出现在 0x1 的 state.get_account_state_set 接口返回的 type_ 这个字段

	 	"0x00000000000000000000000000000001::Config::ModifyConfigCapabilityHolder<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>": {
			"abilities": 12,
			"type_": "0x00000000000000000000000000000001::Config::ModifyConfigCapabilityHolder<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>",
			"value": [
				[
					"cap",
					{
						"Struct": {
							"abilities": 7,
							"type_": "0x00000000000000000000000000000001::Option::Option<0x00000000000000000000000000000001::Config::ModifyConfigCapability<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>>",
							"value": [
								[
									"vec",
									{
										"Vector": []
									}
								]
							]
						}
					}
				]
			]
		},

"0x00000000000000000000000000000001::ModifyDaoConfigProposal::DaoConfigModifyCapability<0x00000000000000000000000000000001::STC::STC>": {
			"abilities": 8,
			"type_": "0x00000000000000000000000000000001::ModifyDaoConfigProposal::DaoConfigModifyCapability<0x00000000000000000000000000000001::STC::STC>",
			"value": [
				[
					"cap",
					{
						"Struct": {
							"abilities": 4,
							"type_": "0x00000000000000000000000000000001::Config::ModifyConfigCapability<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>",
							"value": [
								[
									"account_address",
									{
										"Address": "0x00000000000000000000000000000001"
									}
								],
								[
									"events",
									{
										"Struct": {
											"abilities": 4,
											"type_": "0x00000000000000000000000000000001::Event::EventHandle<0x00000000000000000000000000000001::Config::ConfigChangeEvent<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>>",
											"value": [
												[
													"counter",
													{
														"U64": "0"
													}
												],
												[
													"guid",
													{
														"Bytes": "0x140000000000000000000000000000000000000000000001"
													}
												]
											]
										}
									}
								]
							]
						}
					}
				]
			]
		},

from move.

jolestar avatar jolestar commented on August 16, 2024

main 上我用 list_resource 和 get_account_state_set 查了几个地址:0x1,0x8355417c88d969f656935244641256ad,0xA550C18 加上普通用户的地址,typetag 嵌套层数最多是 3,超过12层感觉概率很低。

move-language#549 是等合并以后再 pick 吗 ?

等合并,这个可能还要改一下

from move.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.