WAX Unity Web3 Suite
EosSharp
EosSharp
  • Getting Started
  • Installation
  • Examples
    • Configuration
    • Create Transaction
    • CustomSignProvider
    • CombinedSignersProvider
  • API Docs
    • API Read Methods
      • GetInfo
      • GetAccount
      • GetBlock
      • GetTableRows
      • GetTableByScope
    • Eos
    • HttpHandler
    • Core
      • Api.v1
        • Abi
        • AbiAction
        • AbiBinToJsonRequest
        • AbiBinToJsonResponse
        • AbiField
        • AbiJsonToBinRequest
        • AbiJsonToBinResponse
        • AbiRicardianClause
        • AbiStruct
        • AbiTable
        • AbiType
        • Action
        • ActionTrace
        • ActivedProtocolFeatures
        • Authority
        • AuthorityAccount
        • AuthorityKey
        • AuthorityWait
        • BlockHeader
        • CurrencyStat
        • DetailedTransaction
        • EosApi
        • ExtendedAsset
        • Extension
        • GetAbiRequest
        • GetAbiResponse
        • GetAccountRequest
        • GetAccountResponse
        • GetActionsRequest
        • GetActionsResponse
        • GetBlockHeaderStateRequest
        • GetBlockHeaderStateResponse
        • GetBlockRequest
        • GetBlockResponse
        • GetCodeRequest
        • GetCodeResponse
        • GetControlledAccountsRequest
        • GetControlledAccountsResponse
        • GetCurrencyBalanceRequest
        • GetCurrencyBalanceResponse
        • GetCurrencyStatsRequest
        • GetCurrencyStatsResponse
        • GetInfoResponse
        • GetKeyAccountsRequest
        • GetKeyAccountsResponse
        • GetProducerScheduleResponse
        • GetProducersRequest
        • GetProducersResponse
        • GetRawAbiRequest
        • GetRawAbiResponse
        • GetRawCodeAndAbiRequest
        • GetRawCodeAndAbiResponse
        • GetRequiredKeysRequest
        • GetRequiredKeysResponse
        • GetScheduledTransactionsRequest
        • GetScheduledTransactionsResponse
        • GetTableByScopeRequest
        • GetTableByScopeResponse
        • GetTableRowsRequest
        • GetTableRowsResponse
        • GetTransactionRequest
        • GetTransactionResponse
        • GlobalAction
        • Merkle
        • PackedTransaction
        • Permission
        • PermissionLevel
        • ProcessedTransaction
        • Producer
        • PushTransactionRequest
        • PushTransactionResponse
        • Receipt
        • RefundRequest
        • Resource
        • Schedule
        • ScheduleProducers
        • ScheduledTransaction
        • SelfDelegatedBandwidth
        • SignedBlockHeader
        • Symbol
        • TableByScopeResultRow
        • TotalResources
        • Transaction
        • TransactionReceipt
        • Variant
        • VoterInfo
      • DataAttributes
        • AbiFieldTypeAttribute
      • EosBase
      • EosConfigurator
      • Exceptions
        • ApiError
        • ApiErrorDetail
        • ApiErrorException
        • ApiException
      • Helpers
        • CryptoHelper
          • KeyPair
        • SerializationHelper
      • Interfaces
        • IHttpHandler
        • ISignProvider
      • EosSharp
        • AbiSerializationProvider
        • CombinedSignersProvider
        • DefaultSignProvider
        • IAbiSerializationProvider
      • SignedTransaction
Powered by GitBook
On this page
  • Summary
  • Members
Edit on GitHub
  1. API Docs
  2. Core
  3. EosSharp

AbiSerializationProvider

PreviousEosSharpNextCombinedSignersProvider

Last updated 2 years ago

class EosSharp::Core::Providers::AbiSerializationProvider
  : public IAbiSerializationProvider

Serialize / deserialize transaction and fields using a Abi schema .

Summary

Members
Descriptions

Construct abi serialization provided using EOS api.

Construct abi serialization provided using EOS api.

Serialize transaction to packed asynchronously.

Serialize transaction to packed asynchronously.

Deserialize packed transaction asynchronously.

Deserialize packed abi.

Serialize action to packed action data.

Deserialize structure data as "Dictionary<string, object>".

Deserialize structure data with generic TStructData type.

Deserialize structure data with generic TStructData type.

Deserialize structure data with generic TStructData type.

Get abi schemas used in transaction.

Get abi schema by contract account name.

Deserialize type by encoded string data.

Deserialize type by binary data.

Deserialize type by binary data, ref readIndex.

#### Parameters

#### Parameters

Members

Construct abi serialization provided using EOS api.

Parameters

  • api

Construct abi serialization provided using EOS api.

Parameters

  • api

Serialize transaction to packed asynchronously.

Parameters

  • trx transaction to pack

Returns

Serialize transaction to packed asynchronously.

Parameters

  • trx transaction to pack

Returns

Deserialize packed transaction asynchronously.

Parameters

  • packtrx hex encoded strinh with packed transaction

Returns

Deserialize packed abi.

Parameters

  • packabi string encoded abi

Returns

Serialize action to packed action data.

Parameters

  • action action to pack

  • abi abi schema to look action structure

Returns

Deserialize structure data as "Dictionary<string, object>".

Parameters

  • structType struct type in abi

  • dataHex data to deserialize

  • abi abi schema to look for struct type

Returns

Deserialize structure data with generic TStructData type.

Parameters

  • TStructData deserialization struct data type

Parameters

  • structType struct type in abi

  • dataHex data to deserialize

  • abi abi schema to look for struct type

Returns

Deserialize structure data with generic TStructData type.

Parameters

  • TStructData deserialization struct data type

Parameters

  • structType struct type in abi

  • dataHex data to deserialize

  • abi abi schema to look for struct type

  • readIndex

Returns

Deserialize structure data with generic TStructData type.

Parameters

  • TStructData deserialization struct data type

Parameters

  • structType struct type in abi

  • data data to deserialize

  • abi abi schema to look for struct type

  • readIndex

Returns

Get abi schemas used in transaction.

Parameters

  • trx

Returns

Get abi schema by contract account name.

Parameters

  • accountName account name

Returns

Deserialize type by encoded string data.

Parameters

  • T

Parameters

  • dataHex

Returns

Deserialize type by binary data.

Parameters

  • T

Parameters

  • data

Returns

Deserialize type by binary data, ref readIndex.

Parameters

  • T

Parameters

  • data

  • readIndex

Returns

Parameters

  • value object to pack

  • type abi-type (base-type) used for serialization

Returns

Parameters

  • value bytes to unpack

  • type abi-type (base-type) used for deserialization

Returns

public

private Dictionary< string, < MemoryStream, object > >

private Dictionary< string, >

public ( api)

public ()

public async Task< byte[]> ( trx)

public byte[] ( trx, Dictionary< string, > abiMap)

public async Task< > (string packtrx)

public (string packabi)

public byte[] ( action, abi)

public Dictionary< string, object > (string structType, string dataHex, abi)

public TStructData (string structType, string dataHex, abi)

public TStructData (string structType, string dataHex, abi, ref int readIndex)

public TStructData (string structType, byte[] data, abi, ref int readIndex)

public Task< ( trx)

public async Task< > (string accountName)

public T (string dataHex)

public T (byte[] data)

public T (byte[] data, ref int readIndex)

public byte[] (string typeName, object value, abi)

public byte[] (object value, abiType, abi)

public byte[] (object value, abiStruct, abi)

public byte[] (object value, string type)

public T (byte[] value, string type)

private delegate object (byte[] data, ref int readIndex)

private void (MemoryStream ms, action, abi)

private void (MemoryStream ms, object value, string type, abi, bool isBinaryExtensionAllowed)

private void (MemoryStream ms, object value, abiStruct, abi)

private void (MemoryStream ms, object value, abiVariant, abi, bool isBinaryExtensionAllowed)

private string ( abi, string type)

private TSerializer (string type, Dictionary< string, TSerializer > typeSerializers, abi)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, action, abi, ref int readIndex)

private List< > (byte[] data, ref int readIndex)

private List< > (byte[] data, ref int readIndex)

private object (byte[] data, string type, abi, ref int readIndex, bool isBinaryExtensionAllowed)

private object (byte[] data, abiStruct, abi, ref int readIndex)

private T (byte[] data, abiStruct, abi, ref int readIndex)

private object (byte[] data, abiVariant, abi, ref int readIndex, bool isBinaryExtensionAllowed)

private T (byte[] data, ref int readIndex)

private object (byte[] data, Type objectType, ref int readIndex)

private IList (byte[] data, Type objectType, ref int readIndex)

private string (string name, System.Collections.IDictionary value)

private string (string name, Type objectType)

private string (string name, Type objectType)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, extension)

private static void (MemoryStream ms, perm)

private static bool (Type type)

private static bool (Type type)

private static Type (Type type)

private static bool (Type type)

private static string (Type type, IEnumerable< Attribute > customAttributes)

public

private Dictionary< string, < MemoryStream, object > >

private Dictionary< string, >

public ( api)

public ()

public async Task< byte[]> ( trx)

public byte[] ( trx, Dictionary< string, > abiMap)

public async Task< > (string packtrx)

public (string packabi)

public byte[] ( action, abi)

public Dictionary< string, object > (string structType, string dataHex, abi)

public TStructData (string structType, string dataHex, abi)

public TStructData (string structType, string dataHex, abi, ref int readIndex)

public TStructData (string structType, byte[] data, abi, ref int readIndex)

public Task< ( trx)

public async Task< > (string accountName)

public T (string dataHex)

public T (byte[] data)

public T (byte[] data, ref int readIndex)

public byte[] (string typeName, object value, abi)

public byte[] (object value, abiType, abi)

public byte[] (object value, abiStruct, abi)

public byte[] (object value, string type)

public T (byte[] value, string type)

private delegate object (byte[] data, ref int readIndex)

private void (MemoryStream ms, action, abi)

private void (MemoryStream ms, object value, string type, abi, bool isBinaryExtensionAllowed)

private void (MemoryStream ms, object value, abiStruct, abi)

private void (MemoryStream ms, object value, abiVariant, abi, bool isBinaryExtensionAllowed)

private string ( abi, string type)

private TSerializer (string type, Dictionary< string, TSerializer > typeSerializers, abi)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, ref int readIndex)

private object (byte[] data, action, abi, ref int readIndex)

private List< > (byte[] data, ref int readIndex)

private List< > (byte[] data, ref int readIndex)

private object (byte[] data, string type, abi, ref int readIndex, bool isBinaryExtensionAllowed)

private object (byte[] data, abiStruct, abi, ref int readIndex)

private T (byte[] data, abiStruct, abi, ref int readIndex)

private object (byte[] data, abiVariant, abi, ref int readIndex, bool isBinaryExtensionAllowed)

private T (byte[] data, ref int readIndex)

private object (byte[] data, Type objectType, ref int readIndex)

private IList (byte[] data, Type objectType, ref int readIndex)

private string (string name, System.Collections.IDictionary value)

private string (string name, Type objectType)

private string (string name, Type objectType)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, object value)

private static void (MemoryStream ms, extension)

private static void (MemoryStream ms, perm)

private static bool (Type type)

private static bool (Type type)

private static Type (Type type)

private static bool (Type type)

private static string (Type type, IEnumerable< Attribute > customAttributes)

https://developers.eos.io/eosio-home/docs/the-abi
EosApi
Api
Action
TypeWriters
ReaderDelegate
TypeReaders
EosApi
AbiSerializationProvider
AbiSerializationProvider
Transaction
SerializePackedTransaction
Transaction
Abi
SerializePackedTransaction
Transaction
DeserializePackedTransaction
Abi
DeserializePackedAbi
Core.Api.v1.Action
Abi
SerializeActionData
Abi
DeserializeStructData
Abi
DeserializeStructData< TStructData >
Abi
DeserializeStructData< TStructData >
Abi
DeserializeStructData< TStructData >
Abi
Transaction
GetTransactionAbis
Abi
GetAbi
DeserializeType< T >
DeserializeType< T >
DeserializeType< T >
Abi
SerializeTypeData
AbiType
Abi
SerializeTypeData
AbiStruct
Abi
SerializeStructData
Serialize
Deserialize< T >
ReaderDelegate
Core.Api.v1.Action
Abi
WriteAction
Abi
WriteAbiType
AbiStruct
Abi
WriteAbiStruct
Variant
Abi
WriteAbiVariant
Abi
UnwrapTypeDef
Abi
GetTypeSerializerAndCache< TSerializer >
ReadByte
ReadInt16
ReadUint16
ReadInt32
ReadUint32
ReadInt64
ReadUint64
ReadInt128
ReadUInt128
ReadVarUint32
ReadVarInt32
ReadFloat32
ReadFloat64
ReadFloat128
ReadBytes
ReadBool
ReadString
ReadName
ReadAsset
ReadTimePoint
ReadTimePointSec
ReadBlockTimestampType
ReadSymbolString
ReadSymbolCode
ReadChecksum160
ReadChecksum256
ReadChecksum512
ReadPublicKey
ReadPrivateKey
ReadSignature
ReadExtendedAsset
ReadSymbol
ReadPermissionLevel
ReadActionHeader
Core.Api.v1.Action
Abi
ReadAction
AbiAction
ReadAbiActionList
AbiTable
ReadAbiTableList
Abi
ReadAbiType
AbiStruct
Abi
ReadAbiStruct
AbiStruct
Abi
ReadAbiStruct< T >
Variant
Abi
ReadAbiVariant
ReadType< T >
ReadType
ReadCollectionType
FindObjectFieldName
FindObjectFieldName
FindObjectPropertyName
WriteByte
WriteInt16
WriteUint16
WriteUint32
WriteInt32
WriteInt64
WriteUint64
WriteInt128
WriteUInt128
WriteVarUint32
WriteVarInt32
WriteFloat32
WriteFloat64
WriteFloat128
WriteBytes
WriteBool
WriteString
WriteName
WriteAsset
WriteTimePoint
WriteTimePointSec
WriteBlockTimestampType
WriteSymbolString
WriteSymbolCode
WriteChecksum160
WriteChecksum256
WriteChecksum512
WritePublicKey
WritePrivateKey
WriteSignature
WriteExtendedAsset
WriteSymbol
Core.Api.v1.Extension
WriteExtension
PermissionLevel
WritePermissionLevel
IsCollection
IsOptional
GetFirstGenericType
IsPrimitive
GetNormalizedReaderName
EosApi
Api
Action
TypeWriters
ReaderDelegate
TypeReaders
EosApi
AbiSerializationProvider
AbiSerializationProvider
Transaction
SerializePackedTransaction
Transaction
Abi
SerializePackedTransaction
Transaction
DeserializePackedTransaction
Abi
DeserializePackedAbi
Core.Api.v1.Action
Abi
SerializeActionData
Abi
DeserializeStructData
Abi
DeserializeStructData< TStructData >
Abi
DeserializeStructData< TStructData >
Abi
DeserializeStructData< TStructData >
Abi
Transaction
GetTransactionAbis
Abi
GetAbi
DeserializeType< T >
DeserializeType< T >
DeserializeType< T >
Abi
SerializeTypeData
AbiType
Abi
SerializeTypeData
AbiStruct
Abi
SerializeStructData
Serialize
Deserialize< T >
ReaderDelegate
Core.Api.v1.Action
Abi
WriteAction
Abi
WriteAbiType
AbiStruct
Abi
WriteAbiStruct
Variant
Abi
WriteAbiVariant
Abi
UnwrapTypeDef
Abi
GetTypeSerializerAndCache< TSerializer >
ReadByte
ReadInt16
ReadUint16
ReadInt32
ReadUint32
ReadInt64
ReadUint64
ReadInt128
ReadUInt128
ReadVarUint32
ReadVarInt32
ReadFloat32
ReadFloat64
ReadFloat128
ReadBytes
ReadBool
ReadString
ReadName
ReadAsset
ReadTimePoint
ReadTimePointSec
ReadBlockTimestampType
ReadSymbolString
ReadSymbolCode
ReadChecksum160
ReadChecksum256
ReadChecksum512
ReadPublicKey
ReadPrivateKey
ReadSignature
ReadExtendedAsset
ReadSymbol
ReadPermissionLevel
ReadActionHeader
Core.Api.v1.Action
Abi
ReadAction
AbiAction
ReadAbiActionList
AbiTable
ReadAbiTableList
Abi
ReadAbiType
AbiStruct
Abi
ReadAbiStruct
AbiStruct
Abi
ReadAbiStruct< T >
Variant
Abi
ReadAbiVariant
ReadType< T >
ReadType
ReadCollectionType
FindObjectFieldName
FindObjectFieldName
FindObjectPropertyName
WriteByte
WriteInt16
WriteUint16
WriteUint32
WriteInt32
WriteInt64
WriteUint64
WriteInt128
WriteUInt128
WriteVarUint32
WriteVarInt32
WriteFloat32
WriteFloat64
WriteFloat128
WriteBytes
WriteBool
WriteString
WriteName
WriteAsset
WriteTimePoint
WriteTimePointSec
WriteBlockTimestampType
WriteSymbolString
WriteSymbolCode
WriteChecksum160
WriteChecksum256
WriteChecksum512
WritePublicKey
WritePrivateKey
WriteSignature
WriteExtendedAsset
WriteSymbol
Core.Api.v1.Extension
WriteExtension
PermissionLevel
WritePermissionLevel
IsCollection
IsOptional
GetFirstGenericType
IsPrimitive
GetNormalizedReaderName