NameServiceProgram class

Instructions supported by the generic Name Registry program

Inheritance

Constructors

NameServiceProgram({required List<AccountMeta> keys, required SolAddress programId, required ProgramLayout layout})
NameServiceProgram.create({required NameServiceCreateLayout layout, required SolAddress nameKey, required SolAddress nameOwnerKey, required SolAddress payerKey, SolAddress nameProgramId = NameServiceProgramConst.programId, SolAddress systemProgramId = SystemProgramConst.programId, SolAddress? nameClassKey, SolAddress? nameParent, SolAddress? nameParentOwner})
Create an empty name record
factory
NameServiceProgram.delete({SolAddress nameProgramId = NameServiceProgramConst.programId, required SolAddress nameAccountKey, required SolAddress nameOwnerKey, required SolAddress refundTargetKey})
Delete a name record.
factory
NameServiceProgram.fromBytes({required List<AccountMeta> keys, required List<int> instructionBytes, SolAddress programId = NameServiceProgramConst.programId})
factory
NameServiceProgram.realloc({required SolAddress payerKey, required SolAddress nameAccountKey, required SolAddress nameOwnerKey, required NameServiceReallocLayout layout, SolAddress nameProgramId = NameServiceProgramConst.programId, SolAddress systemProgramId = SystemProgramConst.programId})
Realloc the data of a name record.
factory
NameServiceProgram.transfer({required NameServiceTransferLayout layout, required SolAddress nameAccountKey, required SolAddress currentNameOwnerKey, SolAddress nameProgramId = NameServiceProgramConst.programId, SolAddress? nameClassKey, SolAddress? nameParent})
Transfer ownership of a name record.
factory
NameServiceProgram.update({required NameServiceUpdateLayout layout, required SolAddress nameAccountKey, required SolAddress nameUpdateSigner, SolAddress nameProgramId = NameServiceProgramConst.programId, SolAddress? parentNameKey})
Update the data in a name record.
factory

Properties

data List<int>
Program input.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
keys List<AccountMeta>
Public keys to include in this transaction Boolean represents whether this pubkey needs to sign the transaction
finalinherited
layout ProgramLayout
Program layout.
finalinherited
programId SolAddress
Program Id to execute.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited