diff --git a/core/transaction/entity.go b/core/transaction/entity.go index d438d9fa6..16d5a8835 100644 --- a/core/transaction/entity.go +++ b/core/transaction/entity.go @@ -168,6 +168,8 @@ const ( ZCNSC_AUTHORIZER_HEALTH_CHECK = "authorizer-health-check" ZCNSC_DELETE_AUTHORIZER = "delete-authorizer" ZCNSC_COLLECT_REWARD = "collect-rewards" + ZCNSC_LOCK = "add-to-delegate-pool" + ZCNSC_UNLOCK = "delete-from-delegate-pool" ESTIMATE_TRANSACTION_COST = `/v1/estimate_txn_fee` FEES_TABLE = `/v1/fees_table` diff --git a/zboxcore/sdk/sdk.go b/zboxcore/sdk/sdk.go index 2fc200919..f8a4a87fc 100644 --- a/zboxcore/sdk/sdk.go +++ b/zboxcore/sdk/sdk.go @@ -392,6 +392,9 @@ func StakePoolLock(providerType ProviderType, providerID string, value, fee uint case ProviderMiner, ProviderSharder: scAddress = MINERSC_SCADDRESS sn.Name = transaction.MINERSC_LOCK + case ProviderAuthorizer: + scAddress = ZCNSC_SCADDRESS + sn.Name = transaction.ZCNSC_LOCK default: return "", 0, errors.Newf("stake_pool_lock", "unsupported provider type: %v", providerType) } @@ -445,6 +448,9 @@ func StakePoolUnlock(providerType ProviderType, providerID string, fee uint64) ( case ProviderMiner, ProviderSharder: scAddress = MINERSC_SCADDRESS sn.Name = transaction.MINERSC_UNLOCK + case ProviderAuthorizer: + scAddress = ZCNSC_SCADDRESS + sn.Name = transaction.ZCNSC_UNLOCK default: return 0, 0, errors.Newf("stake_pool_unlock", "unsupported provider type: %v", providerType) }