//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using Ajuna.NetApi;
using Ajuna.NetApi.Model.Extrinsics;
using Ajuna.NetApi.Model.Meta;
using Ajuna.NetApi.Model.Types;
using Ajuna.NetApi.Model.Types.Base;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;


namespace Bajun.Network.NET.NetApiExt.Generated.Storage
{
    
    
    public sealed class ParachainInfoStorage
    {
        
        // Substrate client for the storage calls.
        private SubstrateClientExt _client;
        
        public ParachainInfoStorage(SubstrateClientExt client)
        {
            this._client = client;
            _client.StorageKeyDict.Add(new System.Tuple<string, string>("ParachainInfo", "ParachainId"), new System.Tuple<Ajuna.NetApi.Model.Meta.Storage.Hasher[], System.Type, System.Type>(null, null, typeof(Bajun.Network.NET.NetApiExt.Generated.Model.polkadot_parachain.primitives.Id)));
        }
        
        /// <summary>
        /// >> ParachainIdParams
        /// </summary>
        public static string ParachainIdParams()
        {
            return RequestGenerator.GetStorage("ParachainInfo", "ParachainId", Ajuna.NetApi.Model.Meta.Storage.Type.Plain);
        }
        
        /// <summary>
        /// >> ParachainIdDefault
        /// Default value as hex string
        /// </summary>
        public static string ParachainIdDefault()
        {
            return "0x64000000";
        }
        
        /// <summary>
        /// >> ParachainId
        /// </summary>
        public async Task<Bajun.Network.NET.NetApiExt.Generated.Model.polkadot_parachain.primitives.Id> ParachainId(CancellationToken token)
        {
            string parameters = ParachainInfoStorage.ParachainIdParams();
            var result = await _client.GetStorageAsync<Bajun.Network.NET.NetApiExt.Generated.Model.polkadot_parachain.primitives.Id>(parameters, token);
            return result;
        }
    }
    
    public sealed class ParachainInfoCalls
    {
    }
    
    public sealed class ParachainInfoConstants
    {
    }
}
