Jump to content
FIBOS社区
Sign in to follow this  
huntformm

增加eosio.token权限

Recommended Posts

提案名称

updateauth

提案发起人

londonbpfib5

提案说明

eosio.token 增加 权限类型 esoio.code

提案所在区块

https://explorer.fibos.rocks/transactions/d803823b274461dc13a5d21f41468c0723800ab745be51a627fd16d034d7e633

提案参数:

00a6823403ea305500000000a8ed32320000000080ab26a70100000000020000000000ea305500000000a8ed3232010000a6823403ea305500804a1401ea3055010000


{
	'account': 'eosio',
	'name': 'updateauth',
	'authorization': [{
		"actor": "eosio.token",
		"permission": "active"
	}],
	'data': {
		"account": "eosio.token",
		"permission": "active",
		"parent": 'owner',
		"auth": {
			"threshold": 1,
			"keys": [],
			"accounts": [{
				"permission": {
					"actor": 'eosio',
					"permission": 'active'
				},
				"weight": 1,
			}, {
				"permission": {
					"actor": "eosio.token",
					"permission": "eosio.code"
				},
				"weight": 1
			}],
			"waits": []
		}
	}
}

如何操作

网站查询入口

https://explorer.fibos.rocks/tools/multisig

操作工具及查询

https://github.com/FIBOS-Community/ProposeTool

参数解码方法

const FIBOS = require("fibos.js");
const fibos = FIBOS();

const hex_data = "00a6823403ea305500000000a8ed32320000000080ab26a70100000000020000000000ea305500000000a8ed3232010000a6823403ea305500804a1401ea3055010000"
let rawdata = FIBOS.modules.Fcbuffer.fromBuffer(fibos.fc.structs.updateauth, Buffer.from(hex_data, 'hex'));
console.log(rawdata);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×