package
0.0.0-20250117074236-2ff0d9ba57f2
Repository: https://github.com/latticebclab/go-lattice.git
Documentation: pkg.go.dev

# Constants

20 byte.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
32 byte.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SubchainStatusRUNNING 子链(通道)运行中.
SubchainStatusSTOP 子链(通道)已停止运行.
TBlockState 账户区块状态 - TBlockStateEMPTY 空 - TBlockStateNONEXISTENT 不存在 - TBlockStatePENDING 在交易池中 - TBlockStateWITNESSING 见证中 - TBlockStateONCHAIN 已上链 - TBlockStateDAEMONIZED 已被守护(执行、部署).
TBlockState 账户区块状态 - TBlockStateEMPTY 空 - TBlockStateNONEXISTENT 不存在 - TBlockStatePENDING 在交易池中 - TBlockStateWITNESSING 见证中 - TBlockStateONCHAIN 已上链 - TBlockStateDAEMONIZED 已被守护(执行、部署).
TBlockState 账户区块状态 - TBlockStateEMPTY 空 - TBlockStateNONEXISTENT 不存在 - TBlockStatePENDING 在交易池中 - TBlockStateWITNESSING 见证中 - TBlockStateONCHAIN 已上链 - TBlockStateDAEMONIZED 已被守护(执行、部署).
TBlockState 账户区块状态 - TBlockStateEMPTY 空 - TBlockStateNONEXISTENT 不存在 - TBlockStatePENDING 在交易池中 - TBlockStateWITNESSING 见证中 - TBlockStateONCHAIN 已上链 - TBlockStateDAEMONIZED 已被守护(执行、部署).
TBlockState 账户区块状态 - TBlockStateEMPTY 空 - TBlockStateNONEXISTENT 不存在 - TBlockStatePENDING 在交易池中 - TBlockStateWITNESSING 见证中 - TBlockStateONCHAIN 已上链 - TBlockStateDAEMONIZED 已被守护(执行、部署).
TBlockState 账户区块状态 - TBlockStateEMPTY 空 - TBlockStateNONEXISTENT 不存在 - TBlockStatePENDING 在交易池中 - TBlockStateWITNESSING 见证中 - TBlockStateONCHAIN 已上链 - TBlockStateDAEMONIZED 已被守护(执行、部署).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
CallMultilingualContractCode 调用多语言智能合约的代码 - Method 调用的合约方法名,示例:`double` - Arguments 调用的合约方法参数,示例:`{"number":[56,50,55]}`.
No description provided by the author
No description provided by the author
ConsensusNodeStatus 共识节点的状态 - Address 节点地址 - WitnessedBlockCount 见证区块数量 - FailureWitnessedBlockCount 见证失败的区块数量 - ShouldWitnessedBlockCount 应当见证的区块数量.
ContractInformation 合约信息 - ContractAddress 合约地址 - Owner 合约的部署者地址 - State 合约的状态 - Version 合约的版本 - ProposalId 合约的提案ID,包括 部署、升级、吊销 - CreatedAt 合约的部署时间戳(s) - UpdatedAt 合约的修改时间戳(s).
ContractLifecycleProposal 合约生命周期提案 State ProposalState IsRevoke 0-吊销、1-冻结、2-解冻 Period 0-部署、1-升级、2-吊销、3-冻结、4-解冻 CreatedAt 提案创建时间戳 ModifiedAt 提案修改时间戳 DBHeight 提案结束时的守护区块高度,.
ContractManagement 合约管理信息 - Mode 合约管理模式,白名单 or 黑名单 - Threshold 投票通过的阈值,大于10则按照权重加和,小于等于10则按照百分比 - Whitelist 合约白名单 - Blacklist 合约黑名单 - Administrators 合约管理员:`{"zltc_Z1pnS94bP4hQSYLs4aP4UwBP9pH8bEvhi": 10}`.
DaemonBlock 守护区块 - Hash 守护区块哈希 - ParentHash - LedgerHash - ReceiptsHash 回执哈希 - Coinbase - Signer - Contracts - Difficulty - Height 守护区块高度 - Extra - Reward - Pow - Timestamp - Size - TD - TTD - Version - TxHashes - Receipts - Anchors.
No description provided by the author
No description provided by the author
DeployMultilingualContractCode 部署多语言智能合约的代码 - FileName 上传到链上的合约文件名.
No description provided by the author
No description provided by the author
Evidences 留痕信息.
区块压缩间隔.
区块压缩节省的空间.
No description provided by the author
No description provided by the author
ModifyChainConfigProposal 修改链配置提案 State ProposalState.
NodeConfig 节点配置信息.
NodeConfiguration 节点配置信息.
NodeConfirmedConfiguration 节点确认的配置信息 - LatcId - LatcGod - LatcSaints - Consensus - Epoch - Tokenless - Period - EnableNoTxDelayedMining 是否不允许无交易时快速出空块,无交易时延迟出块 - NoTxDelayedMiningPeriodMultiple 无交易时的延迟出块间隔倍数 - IsGM 是否使用了Sm2p256v1曲线 - RootPublicKey - EnableContractLifecycle 是否开启合约生命周期 - EnableVotingDictatorship 是否开启投票(合约生命周期)时盟主一票制度 - ContractDeploymentVotingRule 合约部署的投票规则 - EnableContractManagement 是否开启合约管理 - ChainVote.
NodeInfo 节点 - ID 示例:16Uiu2HAmQ7Da6iuScYSYs8XGJs95hiKdS6tgmbqUUuKC62Xh3s4V - Name 示例:ZLTC2_1 - Version - INode 节点连接信息,示例:/ip4/192.168.1.185/tcp/13801/p2p/16Uiu2HAmQ7Da6iuScYSYs8XGJs95hiKdS6tgmbqUUuKC62Xh3s4V - Inr - IP - Ports - ListenAddress.
NodePeer peer.
No description provided by the author
No description provided by the author
NodeProtocol 节点的网络协议信息.
NodeProtocolConfig - LatcID 链ID - Name 名称 - Desc 描述 - LatcGodAddr 守护链的地址 - LatcSaints 共识节点列表 - Consensus 共识 - Epoch 重置投票和检查点的纪元长度 - Tokenless false:有通证 true:无通证 - Period 出块间隔 - EnableNoTxDelayedMining 是否不允许无交易时快速出空块,无交易时延迟出块 - NoTxDelayedMiningPeriodMultiple 无交易时的延迟出块间隔倍数 - IsGM 是否使用了Sm2p256v1曲线 - RootPublicKey 中心化CA根证书公钥 - EnableContractLifecycle 是否开启合约生命周期 - EnableVotingDictatorship 是否开启投票(合约生命周期)时盟主一票制度 - ContractDeploymentVotingRule 合约部署的投票规则 - EnableContractManagement 是否开启合约管理 - ChainByChainVotingRule 以链建链投票规则 - ProposalExpirationDays 提案的过期天数,默认7天 - ConfigurationModifyVotingRule 配置修改的投票规则.
NodeVersion 节点的版本信息 - IncentiveInfo example: 无激励 - ConsortiumInfo example: 联盟链 - BuildDateTime 2024-05-28 07:47:18 - Version v2.0.0.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Subchain 子链信息 - ID 链ID - Name 名称 - Desc 描述 - LatcGodAddr 守护链的地址 - LatcSaints 共识节点列表 - Consensus 共识 - Epoch 重置投票和检查点的纪元长度 - Tokenless false:有通证 true:无通证 - Period 出块间隔 - EnableNoTxDelayedMining 是否不允许无交易时快速出空块,无交易时延迟出块 - NoTxDelayedMiningPeriodMultiple 无交易时的延迟出块间隔倍数 - IsGM 是否使用了Sm2p256v1曲线 - RootPublicKey 中心化CA根证书公钥 - EnableContractLifecycle 是否开启合约生命周期 - EnableVotingDictatorship 是否开启投票(合约生命周期)时盟主一票制度 - ContractDeploymentVotingRule 合约部署的投票规则 - EnableContractManagement 是否开启合约管理 - ChainByChainVotingRule 以链建链投票规则 - ProposalExpirationDays 提案的过期天数,默认7天 - ConfigurationModifyVotingRule 配置修改的投票规则.
SubchainBriefInfo 子链的简要信息.
SubchainPeer 子链(通道)的节点对等节点信息 - Id - Saint - ChainId - DaemonBlockHeight - DaemonBlockHash - GinHttpPort 文件传输服务的端口 - DFS 是否使用文件传输服务 - INode 节点的INode信息.
SubchainProposal 以链建链的提案内容 State ProposalState.
SubchainRunningStatus 子链的运行状态 - Status SubchainStatusRUNNING or SubchainStatusSTOP - Running 是否在运行中,false:已停止 true:运行中.
No description provided by the author
TransactionBlock 交易区块.
TransactionsPagination 查询交易区块的分页结果 - NextStartingHeight 下一次查询的起始高度 - Count 查询到的交易数量 - Transactions 查询到的交易集合.
UpgradeMultilingualContractCode 升级多语言智能合约的代码 - FileName 上传到链上的合约文件名.
UploadFileResponse 文件上传到链上的返回结果 - CID 文件唯一标识,示例:GPK3PveRaWoK6S2b53D3ZeJTm4nBvv2vSVjRStRLQcyX - FilePath 文件存储地址,示例:JG-DFS/tempFileDir/20240816/1723793768943848748_avatar.svg" - Message 返回信息,示例:success - OccupiedStorageByte 文件占用的存储字节数,单位为byte,示例:255686 - StorageAddress 需要冗余存储文件的节点地址,示例:DFS_beforeSign||zltc_Z1pnS94bP4hQSYLs4aP4UwBP9pH8bEvhi;zltc_nBGgKoo1rzd4thjfauEN6ULj7jp1zXhxE;.
VoteDetails 投票详情 - VoteId - ProposalId - VoteSuggestion - Address - ProposalType - Nonce - CreatedAt.
No description provided by the author

# Type aliases

Consensus 共识类型 - ConsensusPOA poa共识 - ConsensusPBFT pbft共识 - ConsensusRAFT raft共识.
ContractLang 合约语言 - ContractLangGo Go - ContractLangJava Java.
ContractLifecyclePeriod 合约生命周期阶段 - ContractLifecyclePeriodDEPLOYMENT 部署 - ContractLifecyclePeriodUPGRADE 升级 - ContractLifecyclePeriodREVOKE 吊销 - ContractLifecyclePeriodFREEZE 冻结 - ContractLifecyclePeriodUNFREEZE 解冻.
ContractManagementMode 合约管理模式 - ContractManagementModeWHITELIST 白名单模式 - ContractManagementModeBLACKLIST 黑名单模式.
ContractState 合约状态 - ContractStatePROHIBITED 禁止执行合约 - ContractStateALLOWABLE 允许执行合约 - ContractStateUNAVAILABLE 合约不可调用,处于冻结状态.
Curve Elliptic curve - Secp256k1 NIST - Sm2p256v1 GM.
EvidenceLevel 留痕级别 - EvidenceLevelEMPTY 不填则默认为执行日志 - EvidenceLevelNONE 执行日志 - EvidenceLevelERROR error级别的错误日志 - EvidenceLevelCRITICAL crit级别的错误日志.
EvidenceType 留痕类型 - EvidenceTypeVOTING 投票 - EvidenceTypeTBLOCK 账户交易 - EvidenceTypeDBLOCK 守护区块 - EvidenceTypeSIGN 签名 - EvidenceTypePRECALL 预执行合约 - EvidenceTypeONCHAIN 发布合约交易 - EvidenceTypeEXECUTE 执行合约交易 - EvidenceTypeUPDATE 合约升级 - EvidenceTypeUPGRADE 升级合约的账户交易 - EvidenceTypeDEPLOY 合约部署 - EvidenceTypeCALL 合约调用 - EvidenceTypeREVOKE 合约吊销 - EvidenceTypeFREEZE 合约冻结 - EvidenceTypeUNFREEZE 合约解冻 - EvidenceTypeERROR error错误 - EvidenceTypeCRITICAL crit错误 - EvidenceTypeADDED 增加账户 - EvidenceTypeDELETED 删除账户 - EvidenceTypeLOCKED 锁定账户 - EvidenceTypeUNLOCKED 解锁账户 - EvidenceTypeORACLE 预言机 - EvidenceTypeMODIFY_CONFIG 链配置修改 - EvidenceTypeCHAIN_BY_CHAIN 子链 - EvidenceTypeHANDSHAKE 握手.
Fee 费用 最小单位为 wei 1eth = 1e18wei 1eth = 1e9gwei.
ModifyChainConfigurationType 修改链配置类型 - ModifyChainConfigurationTypeUpdatePeriod 更新出块时间 - ModifyChainConfigurationTypeISEnableContractLifecycleVotingDictatorship 是否开启合约生命周期投票的盟主独裁机制,否则为共识投票 - ModifyChainConfigurationTypeAddConsensusNodes 添加共识节点 - ModifyChainConfigurationTypeDeleteConsensusNodes 删除共识节点 - ModifyChainConfigurationTypeUpdateConsensus 更换共识 - ModifyChainConfigurationTypeUpdateContractDeploymentVotingRule 更新合约部署的投票规则 - ModifyChainConfigurationTypeEnableNoTxDelayedMining 无交易时是否延迟出块 - ModifyChainConfigurationTypeEnableContractLifecycle 是否开启合约生命周期 - ModifyChainConfigurationTypeEnableContractManagement 是否启用合约内部权限管理 - ModifyChainConfigurationTypeReplaceConsensusNodes 替换共识节点 - ModifyChainConfigurationTypeUpdateNoTxDelayedMiningPeriodMultiple 更新无交易时延迟出块的阶段倍数 - ModifyChainConfigurationTypeUpdateProposalExpirationDays 更新提案的过期天数 - ModifyChainConfigurationTypeUpdateChainByChainVotingRule 更新以链建链的投票规则(修改通道管理规则).
NodeType 节点类型 - NodeTypeGENESIS 创世节点 - NodeTypeCONSENSUS 共识节点 - NodeTypeWITNESS 见证节点 - NodeTypeUNKNOWN 未知节点.
No description provided by the author
ProposalState 提案状态 - ProposalStateNONE 空值 - ProposalStateINITIAL 提案正在进行投票 - ProposalStateSUCCESS 提案投票通过 - ProposalStateFAILED 提案投票未通过 - ProposalStateEXPIRED 提案已过期 - ProposalStateERROR 提案执行错误 - ProposalStateCANCEL 提案已取消 - ProposalStateNOTSTART 提案未开始.
ProposalType 提案类型 - ProposalTypeNone None - ProposalTypeContractManagement 合约内部管理 - ProposalTypeContractLifecycle 合约生命周期 - ProposalTypeModifyChainConfiguration 修改链配置 - ProposalTypeChainByChain 以链建链.
No description provided by the author
No description provided by the author
VoteSuggestion 投票建议 - VoteSuggestionDISAPPROVE 反对 - VoteSuggestionAPPROVE 同意.
VotingRule 投票规则类型 - VotingRuleNO 不需要投票 - VotingRuleLEADER 盟主一票制 - VotingRuleCONSENSUS 共识投票.