Documentation ¶
Index ¶
- type BscAccount
- type BscKeyManager
- type BucketVisibilityType
- type CreateBucketSynPackage
- type Deployment
- type Environment
- type ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) Build() *ExecutorMessages
- func (e *ExecutorBatchedMessage) CancelMigrateBucket(msg *storagetypes.MsgCancelMigrateBucket) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) CopyObject(msg *storagetypes.MsgCopyObject) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) CreatePaymentAccount(msg *types.MsgCreatePaymentAccount) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) Deposit(msg *types.MsgDeposit) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) DisableRefund(msg *types.MsgDisableRefund) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) MigrateBucket(msg *storagetypes.MsgMigrateBucket) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) SetBucketFlowRateLimit(msg *storagetypes.MsgSetBucketFlowRateLimit) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) SetTag(msg *storagetypes.MsgSetTag) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) ToggleSPAsDelegatedAgent(msg *storagetypes.MsgToggleSPAsDelegatedAgent) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) UpdateBucketInfo(msg *storagetypes.MsgUpdateBucketInfo) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) UpdateGroupExtra(msg *storagetypes.MsgUpdateGroupExtra) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) UpdateObjectInfo(msg *storagetypes.MsgUpdateObjectInfo) *ExecutorBatchedMessage
- func (e *ExecutorBatchedMessage) Withdraw(msg *types.MsgWithdraw) *ExecutorBatchedMessage
- type ExecutorMessageUnit
- type ExecutorMessages
- type ExtraData
- type FailureHandleStrategy
- type IExecutorBatchedMessage
- type IMessages
- type KeyManager
- type Message
- type Messages
- func (m *Messages) Build() *MultiMessage
- func (m *Messages) CreateBucket(sender *common.Address, synPkg *CreateBucketSynPackage) *Messages
- func (m *Messages) CreateBucketCallBack(sender *common.Address, synPkg *CreateBucketSynPackage, ...) *Messages
- func (m *Messages) CreateGroup(sender *common.Address, owner *common.Address, name string) *Messages
- func (m *Messages) CreateGroupCallBack(sender *common.Address, owner *common.Address, name string, ...) *Messages
- func (m *Messages) CreatePolicy(sender *common.Address, policy *permissiontype.Policy) *Messages
- func (m *Messages) CreatePolicyCallBack(sender *common.Address, policy *permissiontype.Policy, extraData *ExtraData, ...) *Messages
- func (m *Messages) DeleteBucket(sender *common.Address, id *big.Int) *Messages
- func (m *Messages) DeleteBucketCallBack(sender *common.Address, id *big.Int, callbackGasLimit *big.Int, ...) *Messages
- func (m *Messages) DeleteGroup(sender *common.Address, id *big.Int) *Messages
- func (m *Messages) DeleteGroupCallBack(sender *common.Address, id *big.Int, callbackGasLimit *big.Int, ...) *Messages
- func (m *Messages) DeleteObject(sender *common.Address, id *big.Int) *Messages
- func (m *Messages) DeleteObjectCallBack(sender *common.Address, id *big.Int, callbackGasLimit *big.Int, ...) *Messages
- func (m *Messages) DeletePolicy(sender *common.Address, id *big.Int) *Messages
- func (m *Messages) DeletePolicyCallBack(sender *common.Address, id *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages
- func (m *Messages) TransferOut(sender *common.Address, recipient *common.Address, amount *big.Int) *Messages
- func (m *Messages) UpdateGroup(sender *common.Address, synPkg *UpdateGroupMemberSynPackage) *Messages
- func (m *Messages) UpdateGroupCallBack(sender *common.Address, synPkg *UpdateGroupMemberSynPackage, ...) *Messages
- type MultiMessage
- type RelayFeeOption
- type UpdateGroupMemberSynPackage
- type UpdateGroupOpType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BscAccount ¶
type BscAccount struct {
// contains filtered or unexported fields
}
BscAccount indicates the user's identity information used for interaction with BSC.
func NewBscAccountFromPrivateKey ¶
func NewBscAccountFromPrivateKey(name, privKey string) (*BscAccount, error)
func (*BscAccount) GetAddress ¶
func (a *BscAccount) GetAddress() *common.Address
GetAddress - Get the address of the account.
func (*BscAccount) GetKeyManager ¶
func (a *BscAccount) GetKeyManager() KeyManager
GetKeyManager - Get the key manager of the account.
type BscKeyManager ¶
type BscKeyManager struct {
// contains filtered or unexported fields
}
func (*BscKeyManager) GetAddr ¶
func (k *BscKeyManager) GetAddr() *common.Address
func (*BscKeyManager) GetPrivateKey ¶
func (k *BscKeyManager) GetPrivateKey() *ecdsa.PrivateKey
type BucketVisibilityType ¶
type BucketVisibilityType uint8
const ( Unspecified BucketVisibilityType = iota PublicRead Private Inherit )
type CreateBucketSynPackage ¶
type CreateBucketSynPackage struct { Creator *common.Address `json:"creator"` Name string `json:"name"` Visibility BucketVisibilityType `json:"visibility"` PaymentAddress *common.Address `json:"paymentAddress"` PrimarySpAddress *common.Address `json:"primarySpAddress"` PrimarySpApprovalExpiredHeight uint64 `json:"primarySpApprovalExpiredHeight"` GlobalVirtualGroupFamilyId uint32 `json:"globalVirtualGroupFamilyId"` PrimarySpSignature []byte `json:"primarySpSignature"` ChargedReadQuota uint64 `json:"chargedReadQuota"` ExtraData []byte `json:"extraData"` }
type Deployment ¶
type Deployment struct { DeployCommitId string `json:"DeployCommitId"` BlockNumber int `json:"BlockNumber"` EmergencyOperator string `json:"EmergencyOperator"` EmergencyUpgradeOperator string `json:"EmergencyUpgradeOperator"` Deployer string `json:"Deployer"` ProxyAdmin string `json:"ProxyAdmin"` GovHub string `json:"GovHub"` CrossChain string `json:"CrossChain"` MultiMessage string `json:"MultiMessage"` GreenfieldExecutor string `json:"GreenfieldExecutor"` TokenHub string `json:"TokenHub"` LightClient string `json:"LightClient"` RelayerHub string `json:"RelayerHub"` BucketHub string `json:"BucketHub"` ObjectHub string `json:"ObjectHub"` GroupHub string `json:"GroupHub"` AdditionalBucketHub string `json:"AdditionalBucketHub"` AdditionalObjectHub string `json:"AdditionalObjectHub"` AdditionalGroupHub string `json:"AdditionalGroupHub"` BucketERC721Token string `json:"BucketERC721Token"` ObjectERC721Token string `json:"ObjectERC721Token"` GroupERC721Token string `json:"GroupERC721Token"` MemberERC1155Token string `json:"MemberERC1155Token"` InitConsensusState struct { ChainID string `json:"chainID"` Height int `json:"height"` NextValidatorSetHash string `json:"nextValidatorSetHash"` Validators []struct { PubKey string `json:"pubKey"` VotingPower int `json:"votingPower"` RelayerAddress string `json:"relayerAddress"` RelayerBlsKey string `json:"relayerBlsKey"` } `json:"validators"` ConsensusStateBytes string `json:"consensusStateBytes"` } `json:"initConsensusState"` GnfdChainId int `json:"gnfdChainId"` PermissionDeployer string `json:"PermissionDeployer"` PermissionHub string `json:"PermissionHub"` AdditionalPermissionHub string `json:"AdditionalPermissionHub"` PermissionToken string `json:"PermissionToken"` }
type Environment ¶ added in v1.7.1
type Environment uint8
const ( BscDevnet Environment = iota BscQanet BscTestnet BscMainnet OpBNBDevnet OpBNBQanet OpBNBTestnet OpBNBMainnet )
type ExecutorBatchedMessage ¶
type ExecutorBatchedMessage struct { Message []*ExecutorMessageUnit Deployment *Deployment RelayFee *big.Int MinAckRelayFee *big.Int }
func NewExecutorBatchedMessage ¶
func NewExecutorBatchedMessage(deployment *Deployment, relayFee *big.Int, minAckRelayFee *big.Int) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) Build ¶
func (e *ExecutorBatchedMessage) Build() *ExecutorMessages
func (*ExecutorBatchedMessage) CancelMigrateBucket ¶
func (e *ExecutorBatchedMessage) CancelMigrateBucket(msg *storagetypes.MsgCancelMigrateBucket) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) CopyObject ¶
func (e *ExecutorBatchedMessage) CopyObject(msg *storagetypes.MsgCopyObject) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) CreatePaymentAccount ¶
func (e *ExecutorBatchedMessage) CreatePaymentAccount(msg *types.MsgCreatePaymentAccount) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) Deposit ¶
func (e *ExecutorBatchedMessage) Deposit(msg *types.MsgDeposit) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) DisableRefund ¶
func (e *ExecutorBatchedMessage) DisableRefund(msg *types.MsgDisableRefund) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) MigrateBucket ¶
func (e *ExecutorBatchedMessage) MigrateBucket(msg *storagetypes.MsgMigrateBucket) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) SetBucketFlowRateLimit ¶
func (e *ExecutorBatchedMessage) SetBucketFlowRateLimit(msg *storagetypes.MsgSetBucketFlowRateLimit) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) SetTag ¶
func (e *ExecutorBatchedMessage) SetTag(msg *storagetypes.MsgSetTag) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) ToggleSPAsDelegatedAgent ¶
func (e *ExecutorBatchedMessage) ToggleSPAsDelegatedAgent(msg *storagetypes.MsgToggleSPAsDelegatedAgent) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) UpdateBucketInfo ¶
func (e *ExecutorBatchedMessage) UpdateBucketInfo(msg *storagetypes.MsgUpdateBucketInfo) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) UpdateGroupExtra ¶
func (e *ExecutorBatchedMessage) UpdateGroupExtra(msg *storagetypes.MsgUpdateGroupExtra) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) UpdateObjectInfo ¶
func (e *ExecutorBatchedMessage) UpdateObjectInfo(msg *storagetypes.MsgUpdateObjectInfo) *ExecutorBatchedMessage
func (*ExecutorBatchedMessage) Withdraw ¶
func (e *ExecutorBatchedMessage) Withdraw(msg *types.MsgWithdraw) *ExecutorBatchedMessage
type ExecutorMessageUnit ¶
type ExecutorMessages ¶
ExecutorMessages * * Supported message types and its corresponding number * 1: CreatePaymentAccount * 2: Deposit * 3: DisableRefund * 4: Withdraw * 5: MigrateBucket * 6: CancelMigrateBucket * 7: UpdateBucketInfo * 8: ToggleSPAsDelegatedAgent * 9: SetBucketFlowRateLimit * 10: CopyObject * 11: UpdateObjectInfo * 12: UpdateGroupExtra * 13: SetTag
type FailureHandleStrategy ¶
type FailureHandleStrategy uint8
const ( BlockOnFail FailureHandleStrategy = iota CacheOnFail SkipOnFail )
type IExecutorBatchedMessage ¶
type IExecutorBatchedMessage interface { CreatePaymentAccount(msg *types.MsgCreatePaymentAccount) *ExecutorBatchedMessage Deposit(msg *types.MsgDeposit) *ExecutorBatchedMessage DisableRefund(msg *types.MsgDisableRefund) *ExecutorBatchedMessage Withdraw(msg *types.MsgWithdraw) *ExecutorBatchedMessage MigrateBucket(msg *storagetypes.MsgMigrateBucket) *ExecutorBatchedMessage CancelMigrateBucket(msg *storagetypes.MsgCancelMigrateBucket) *ExecutorBatchedMessage UpdateBucketInfo(msg *storagetypes.MsgUpdateBucketInfo) *ExecutorBatchedMessage ToggleSPAsDelegatedAgent(msg *storagetypes.MsgToggleSPAsDelegatedAgent) *ExecutorBatchedMessage SetBucketFlowRateLimit(msg *storagetypes.MsgSetBucketFlowRateLimit) *ExecutorBatchedMessage CopyObject(msg *storagetypes.MsgCopyObject) *ExecutorBatchedMessage UpdateObjectInfo(msg *storagetypes.MsgUpdateObjectInfo) *ExecutorBatchedMessage UpdateGroupExtra(msg *storagetypes.MsgUpdateGroupExtra) *ExecutorBatchedMessage SetTag(msg *storagetypes.MsgSetTag) *ExecutorBatchedMessage }
type IMessages ¶
type IMessages interface { CreateBucket(sender *common.Address, synPkg *CreateBucketSynPackage) *Messages CreateBucketCallBack(sender *common.Address, synPkg *CreateBucketSynPackage, callbackGasLimit *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages DeleteBucket(sender *common.Address, id *big.Int) *Messages DeleteBucketCallBack(sender *common.Address, id *big.Int, callbackGasLimit *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages DeleteObject(sender *common.Address, id *big.Int) *Messages DeleteObjectCallBack(sender *common.Address, id *big.Int, callbackGasLimit *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages CreateGroup(sender *common.Address, owner *common.Address, name string) *Messages CreateGroupCallBack(sender *common.Address, owner *common.Address, name string, callbackGasLimit *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages DeleteGroup(sender *common.Address, id *big.Int) *Messages DeleteGroupCallBack(sender *common.Address, id *big.Int, callbackGasLimit *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages UpdateGroup(sender *common.Address, synPkg *UpdateGroupMemberSynPackage) *Messages UpdateGroupCallBack(sender *common.Address, synPkg *UpdateGroupMemberSynPackage, callbackGasLimit *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages CreatePolicy(sender *common.Address, policy *permissiontype.Policy) *Messages CreatePolicyCallBack(sender *common.Address, policy *permissiontype.Policy, extraData *ExtraData, opt *RelayFeeOption) *Messages DeletePolicy(sender *common.Address, id *big.Int) *Messages DeletePolicyCallBack(sender *common.Address, id *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages TransferOut(sender *common.Address, recipient *common.Address, amount *big.Int) *Messages }
type KeyManager ¶
type KeyManager interface { GetPrivateKey() *ecdsa.PrivateKey GetAddr() *common.Address }
func NewBscKeyManager ¶
func NewBscKeyManager(privateKeyHex string) (KeyManager, error)
type Messages ¶
type Messages struct { Message []*Message Deployment *Deployment RelayFee *big.Int MinAckRelayFee *big.Int CallbackGasPrice *big.Int }
func NewMessages ¶
func (*Messages) Build ¶
func (m *Messages) Build() *MultiMessage
func (*Messages) CreateBucket ¶
func (m *Messages) CreateBucket(sender *common.Address, synPkg *CreateBucketSynPackage) *Messages
func (*Messages) CreateBucketCallBack ¶
func (m *Messages) CreateBucketCallBack(sender *common.Address, synPkg *CreateBucketSynPackage, callbackGasLimit *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages
func (*Messages) CreateGroup ¶
func (*Messages) CreateGroupCallBack ¶
func (*Messages) CreatePolicy ¶
func (*Messages) CreatePolicyCallBack ¶
func (m *Messages) CreatePolicyCallBack(sender *common.Address, policy *permissiontype.Policy, extraData *ExtraData, opt *RelayFeeOption) *Messages
func (*Messages) DeleteBucket ¶
func (*Messages) DeleteBucketCallBack ¶
func (*Messages) DeleteGroup ¶
func (*Messages) DeleteGroupCallBack ¶
func (*Messages) DeleteObject ¶
func (*Messages) DeleteObjectCallBack ¶
func (*Messages) DeletePolicy ¶
func (*Messages) DeletePolicyCallBack ¶
func (*Messages) TransferOut ¶
func (*Messages) UpdateGroup ¶
func (m *Messages) UpdateGroup(sender *common.Address, synPkg *UpdateGroupMemberSynPackage) *Messages
func (*Messages) UpdateGroupCallBack ¶
func (m *Messages) UpdateGroupCallBack(sender *common.Address, synPkg *UpdateGroupMemberSynPackage, callbackGasLimit *big.Int, extraData *ExtraData, opt *RelayFeeOption) *Messages
type MultiMessage ¶
type RelayFeeOption ¶
type UpdateGroupOpType ¶
type UpdateGroupOpType uint8
const ( AddMembers UpdateGroupOpType = iota RemoveMembers RenewMembers )
Click to show internal directories.
Click to hide internal directories.