@gala-chain/chaincode ∙ API
API > PublicKeyContract
Class: PublicKeyContract
Contents
- Extends
- Constructors
- new PublicKeyContract()
- Methods
- DryRun()
- GetChaincodeVersion()
- GetContractAPI()
- GetContractVersion()
- GetMyProfile()
- GetObjectByKey()
- GetObjectHistory()
- GetPublicKey()
- RegisterEthUser()
- RegisterUser()
- UpdatePublicKey()
- VerifySignature()
- afterTransaction()
- aroundTransaction()
- beforeTransaction()
- createContext()
- getName()
- getVersion()
- registerUser()
- unknownTransaction()
- updatePublicKey()
- _isContract()
Extends
Constructors
new PublicKeyContract()
new PublicKeyContract():
PublicKeyContract
Overrides
Source
chaincode/src/contracts/PublicKeyContract.ts:57
Methods
DryRun()
DryRun(
ctx
,dto
):Promise
\<DryRunResultDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: DryRunDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:143
GetChaincodeVersion()
GetChaincodeVersion(
ctx
):Promise
\<string
>
Parameters
▪ ctx: GalaChainContext
Inherited from
GalaContract
.GetChaincodeVersion
Source
chaincode/src/contracts/GalaContract.ts:105
GetContractAPI()
GetContractAPI(
ctx
):Promise
\<ContractAPI
>
Parameters
▪ ctx: GalaChainContext
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:114
GetContractVersion()
GetContractVersion(
ctx
):Promise
\<string
>
Parameters
▪ ctx: GalaChainContext
Inherited from
GalaContract
.GetContractVersion
Source
chaincode/src/contracts/GalaContract.ts:94
GetMyProfile()
GetMyProfile(
ctx
,dto
):Promise
\<GalaChainResponse
\<UserProfile
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetMyProfileDto
Source
chaincode/src/contracts/PublicKeyContract.ts:129
GetObjectByKey()
GetObjectByKey(
ctx
,dto
):Promise
\<Record
\<string
,unknown
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetObjectDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:125
GetObjectHistory()
GetObjectHistory(
ctx
,dto
):Promise
\<Record
\<string
,unknown
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetObjectHistoryDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:134
GetPublicKey()
GetPublicKey(
ctx
,dto
):Promise
\<GalaChainResponse
\<PublicKey
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPublicKeyDto
Source
chaincode/src/contracts/PublicKeyContract.ts:215
RegisterEthUser()
RegisterEthUser(
ctx
,dto
):Promise
\<GalaChainResponse
\<string
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: RegisterEthUserDto
Source
chaincode/src/contracts/PublicKeyContract.ts:180
RegisterUser()
RegisterUser(
ctx
,dto
):Promise
\<GalaChainResponse
\<string
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: RegisterUserDto
Source
chaincode/src/contracts/PublicKeyContract.ts:159
UpdatePublicKey()
UpdatePublicKey(
ctx
,dto
):Promise
\<GalaChainResponse
\<void
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: UpdatePublicKeyDto
Source
chaincode/src/contracts/PublicKeyContract.ts:197
VerifySignature()
VerifySignature(
ctx
,dto
):Promise
\<GalaChainResponse
\<void
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: ChainCallDTO
Source
chaincode/src/contracts/PublicKeyContract.ts:236
afterTransaction()
afterTransaction(
ctx
,result
):Promise
\<void
>
Parameters
▪ ctx: GalaChainContext
▪ result: unknown
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:68
aroundTransaction()
aroundTransaction(
ctx
,fn
,parameters
):Promise
\<void
>
Parameters
▪ ctx: GalaChainContext
▪ fn: Function
▪ parameters: unknown
Inherited from
GalaContract
.aroundTransaction
Source
chaincode/src/contracts/GalaContract.ts:63
beforeTransaction()
beforeTransaction(
ctx
):Promise
\<void
>
Parameters
▪ ctx: GalaChainContext
Inherited from
GalaContract
.beforeTransaction
Source
chaincode/src/contracts/GalaContract.ts:58
createContext()
createContext():
GalaChainContext
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:54
getName()
getName():
string
Inherited from
Source
node_modules/fabric-contract-api/types/index.d.ts:33
getVersion()
getVersion():
string
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:50
registerUser()
private
registerUser(ctx
,providedPkHex
,ethAddress
,userAlias
):Promise
\<GalaChainResponse
\<string
>>
Parameters
▪ ctx: GalaChainContext
▪ providedPkHex: string
▪ ethAddress: string
▪ userAlias: string
Source
chaincode/src/contracts/PublicKeyContract.ts:61
unknownTransaction()
unknownTransaction(
ctx
):Promise
\<void
>
Parameters
▪ ctx: Context
Inherited from
GalaContract
.unknownTransaction
Source
node_modules/fabric-contract-api/types/index.d.ts:30
updatePublicKey()
private
updatePublicKey(ctx
,newPkHex
,newEthAddress
):Promise
\<void
>
Parameters
▪ ctx: GalaChainContext
▪ newPkHex: string
▪ newEthAddress: string
Source
chaincode/src/contracts/PublicKeyContract.ts:92
_isContract()
static
_isContract():boolean
Inherited from
Source
node_modules/fabric-contract-api/types/index.d.ts:24