-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface_slice.sol
More file actions
23 lines (21 loc) · 1.06 KB
/
interface_slice.sol
File metadata and controls
23 lines (21 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
interface interface_slice {
function SetTrc100Addr(address addr,address proaddr)external returns(address);
//查询动态分片数量
function QuerySliceSize()external returns(uint256);
//申请动态分片
function applyslice(address submit)external returns (uint256);
//申请静态分片
function applyStaticSlice(address submit)external returns (uint256);
//分片有效检测
function checkslice(uint256 slicetype,uint256 no)view external returns (bool,address);
//配置分片矿池权重
function setSliceWeight(uint256 no,uint256 weight)external returns (uint256);
//增加RWA平台
function addRwaMiner(address miner)external returns (uint256);
//删除RWA平台
function removeRwaMiner(address miner)external returns (uint256);
//查询动态分片
function QuerySliceInfo(uint256 begin ,uint256 _len)view external returns(bool success, address[] memory,uint256[] memory,uint256[] memory);
}