dialect_web3
library
Functions
-
accountDiscriminator(String name)
→ Uint8List
-
-
createDialect({required RpcClient client, required ProgramAccount program, required KeypairWallet owner, required List<Member> members, bool encrypted = false, EncryptionProps? encryptionProps})
→ Future<DialectAccount>
-
-
createDialectProgram(RpcClient client, Ed25519HDPublicKey dialectProgramAddress)
→ Future<ProgramAccount>
-
-
deleteDialect(RpcClient client, ProgramAccount program, DialectAccount dialectAccount, KeypairWallet owner)
→ Future
-
-
fetchAccount<T>(RpcClient client, Ed25519HDPublicKey publicKey, T convert(Uint8List), {int skip = 8, Encoding encoding = Encoding.base64})
→ Future<T>
-
-
findDialects(RpcClient client, ProgramAccount program, FindDialectQuery query)
→ Future<List<DialectAccount>>
-
-
findProgramAddressWithNonce({required Iterable<Iterable<int>> seeds, required Ed25519HDPublicKey programId})
→ Future<ProgramAddressResult>
-
-
generateRandomNonceWithPrefix(int memberId)
→ Uint8List
-
-
getDialect(RpcClient client, ProgramAccount program, Ed25519HDPublicKey publicKey, EncryptionProps? encryptionProps)
→ Future<DialectAccount>
-
-
getDialectForMembers(RpcClient client, ProgramAccount program, List<Ed25519HDPublicKey> members, {EncryptionProps? encryptionProps})
→ Future<DialectAccount>
-
-
getDialectProgramAddress(ProgramAccount program, List<Ed25519HDPublicKey> members)
→ Future<ProgramAddressResult>
-
-
isDialectAdmin(DialectAccount dialect, Ed25519HDPublicKey user)
→ bool
-
-
parseBytesFromAccount<T>(Account account, T convert(Uint8List), {int skip = 8})
→ T
-
-
parseMessages(RawDialect rawDialect, {EncryptionProps? encryptionProps})
→ List<Message>
-
-
parseRawDialect(RawDialect rawDialect, {EncryptionProps? encryptionProps})
→ Dialect
-
-
sendMessage(RpcClient client, ProgramAccount program, DialectAccount dialectAccount, KeypairWallet sender, String text, {EncryptionProps? encryptionProps})
→ Future<Message?>
-
-
waitForFinality({required RpcClient client, required String transactionStr, Commitment commitment = Commitment.finalized, int maxRetries = 20, int sleepDuration = 1000})
→ Future<TransactionDetails>
-
-
waitForFinalityInner({required RpcClient client, required String transactionStr, Commitment commitment = Commitment.finalized, int maxRetries = 10, int sleepDuration = 500})
→ Future<TransactionDetails>
-