cs-codex-dist-tests/ProjectPlugins/CodexContractsPlugin/Marketplace/Marketplace.cs

608 lines
56 KiB
C#
Raw Normal View History

2024-08-30 09:17:36 +00:00
using Nethereum.ABI.FunctionEncoding.Attributes;
2023-12-19 14:43:26 +00:00
using Nethereum.Contracts;
using System.Numerics;
// Generated code, do not modify.
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
namespace CodexContractsPlugin.Marketplace
{
public partial class MarketplaceDeployment : MarketplaceDeploymentBase
{
public MarketplaceDeployment() : base(BYTECODE) { }
public MarketplaceDeployment(string byteCode) : base(byteCode) { }
}
public class MarketplaceDeploymentBase : ContractDeploymentMessage
{
2024-10-31 07:52:07 +00:00
public static string BYTECODE = "0x60c06040523480156200001157600080fd5b506040516200454b3803806200454b833981016040819052620000349162000571565b602083015180516040850151516001805460ff191660ff909216919091179055608052816101004311620000af5760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420626c6f636b206865696768740000000000000060448201526064015b60405180910390fd5b81516002908155602083015160035560408301516004805460ff191660ff9092169190911790556060830151839190600590620000ed908262000724565b50608091909101516004909101805460ff191660ff928316179055600780546001600160a01b0319166001600160a01b0393841617905590841660a0528451516064911611159050620001835760405162461bcd60e51b815260206004820152601560248201527f4d757374206265206c657373207468616e2031303000000000000000000000006044820152606401620000a6565b606483600001516060015160ff161115620001e15760405162461bcd60e51b815260206004820152601560248201527f4d757374206265206c657373207468616e2031303000000000000000000000006044820152606401620000a6565b82516060810151602090910151606491620001fc91620007f0565b60ff1611156200024f5760405162461bcd60e51b815260206004820152601d60248201527f4d6178696d756d20736c617368696e67206578636565647320313030250000006044820152606401620000a6565b82518051600f805460208085015160408087015160609788015160ff9081166401000000000260ff60201b1961ffff90931662010000029290921664ffffff0000199482166101000261ffff199097169882169890981795909517929092169590951717835580880151805160109081559181015160115593840151601280549190931660ff19919091161790915592820151869391929190601390620002f7908262000724565b50608091909101516004909101805460ff1990811660ff938416179091556040939093015151600692909201805490931691161790555062000822915050565b634e487b7160e01b600052604160045260246000fd5b60405160a081016001600160401b038111828210171562000372576200037262000337565b60405290565b604051606081016001600160401b038111828210171562000372576200037262000337565b604051608081016001600160401b038111828210171562000372576200037262000337565b604051601f8201601f191681016001600160401b0381118282101715620003ed57620003ed62000337565b604052919050565b805160ff811681146200040757600080fd5b919050565b600060a082840312156200041f57600080fd5b620004296200034d565b905081518152602080830151818301526200044760408401620003f5565b604083015260608301516001600160401b03808211156200046757600080fd5b818501915085601f8301126200047c57600080fd5b81518181111562000491576200049162000337565b620004a5601f8201601f19168501620003c2565b91508082528684828501011115620004bc57600080fd5b60005b81811015620004dc578381018501518382018601528401620004bf565b50600084828401015250806060850152505050620004fd60808301620003f5565b608082015292915050565b6000602082840312156200051b57600080fd5b604051602081016001600160401b038111828210171562000540576200054062000337565b6040529050806200055183620003f5565b905292915050565b80516001600160a01b03811681146200040757600080fd5b6000806000606084860312156200058757600080fd5b83516001600160401b03808211156200059f57600080fd5b9085019081870360c0811215620005b557600080fd5b620005bf62000378565b6080821215620005ce57600080fd5b620005d86200039d565b9150620005e584620003f5565b8252620005f560208501620003f5565b6020830152604084015161ffff811681146200061057600080fd5b60408301526200062360608501620003f5565b6060830152908152608083015190828211156200063f57600080fd5b6200064d898386016200040c565b6020820152620006618960a0860162000508565b604082015295506200067a925050506020850162000559565b91506200068a6040850162000559565b90509250925092565b600181811c90821680620006a857607f821691505b602082108103620006c957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200071f576000816000526020600020601f850160051c81016020861015620006fa5750805b601f850160051c820191505b818110156200071b5782815560010162000706565b5050505b505050565b81516001600160401b0381111562000740576200074062000337565b620007588162000751845462000693565b84620006cf565b602080601f831160018114620007905760008415620007775750858301515b600019600386901b1c1916600185901b1785556200071b565b600085815260208120601f198616915b82811015620007c157888601518255948401946001909101908401620007a0565b5085821015620007e05787850151600019600388901b60f8161c191681555b505050505060019081
public MarketplaceDeploymentBase() : base(BYTECODE) { }
public MarketplaceDeploymentBase(string byteCode) : base(byteCode) { }
[Parameter("tuple", "configuration", 1)]
public virtual MarketplaceConfig Configuration { get; set; }
[Parameter("address", "token_", 2)]
public virtual string Token { get; set; }
[Parameter("address", "verifier", 3)]
public virtual string Verifier { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class ProofSubmittedEventDTO : ProofSubmittedEventDTOBase { }
[Event("ProofSubmitted")]
public class ProofSubmittedEventDTOBase : IEventDTO
{
[Parameter("bytes32", "id", 1, false )]
public virtual byte[] Id { get; set; }
}
public partial class RequestCancelledEventDTO : RequestCancelledEventDTOBase { }
[Event("RequestCancelled")]
public class RequestCancelledEventDTOBase : IEventDTO
{
[Parameter("bytes32", "requestId", 1, true )]
public virtual byte[] RequestId { get; set; }
}
public partial class RequestFailedEventDTO : RequestFailedEventDTOBase { }
[Event("RequestFailed")]
public class RequestFailedEventDTOBase : IEventDTO
{
[Parameter("bytes32", "requestId", 1, true )]
public virtual byte[] RequestId { get; set; }
}
public partial class RequestFulfilledEventDTO : RequestFulfilledEventDTOBase { }
[Event("RequestFulfilled")]
public class RequestFulfilledEventDTOBase : IEventDTO
{
[Parameter("bytes32", "requestId", 1, true )]
public virtual byte[] RequestId { get; set; }
}
public partial class SlotFilledEventDTO : SlotFilledEventDTOBase { }
[Event("SlotFilled")]
public class SlotFilledEventDTOBase : IEventDTO
{
[Parameter("bytes32", "requestId", 1, true )]
public virtual byte[] RequestId { get; set; }
[Parameter("uint256", "slotIndex", 2, false )]
public virtual BigInteger SlotIndex { get; set; }
}
public partial class SlotFreedEventDTO : SlotFreedEventDTOBase { }
[Event("SlotFreed")]
public class SlotFreedEventDTOBase : IEventDTO
{
[Parameter("bytes32", "requestId", 1, true )]
public virtual byte[] RequestId { get; set; }
[Parameter("uint256", "slotIndex", 2, false )]
public virtual BigInteger SlotIndex { get; set; }
}
2024-10-07 13:59:05 +00:00
public partial class SlotReservationsFullEventDTO : SlotReservationsFullEventDTOBase { }
[Event("SlotReservationsFull")]
public class SlotReservationsFullEventDTOBase : IEventDTO
{
[Parameter("bytes32", "requestId", 1, true )]
public virtual byte[] RequestId { get; set; }
[Parameter("uint256", "slotIndex", 2, false )]
public virtual BigInteger SlotIndex { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class StorageRequestedEventDTO : StorageRequestedEventDTOBase { }
[Event("StorageRequested")]
public class StorageRequestedEventDTOBase : IEventDTO
{
[Parameter("bytes32", "requestId", 1, false )]
public virtual byte[] RequestId { get; set; }
[Parameter("tuple", "ask", 2, false )]
public virtual Ask Ask { get; set; }
[Parameter("uint256", "expiry", 3, false )]
public virtual BigInteger Expiry { get; set; }
}
2024-10-07 13:59:05 +00:00
public partial class CanReserveSlotOutputDTO : CanReserveSlotOutputDTOBase { }
[FunctionOutput]
public class CanReserveSlotOutputDTOBase : IFunctionOutputDTO
{
[Parameter("bool", "", 1)]
public virtual bool ReturnValue1 { get; set; }
}
public partial class CanReserveSlotFunction : CanReserveSlotFunctionBase { }
[Function("canReserveSlot", "bool")]
public class CanReserveSlotFunctionBase : FunctionMessage
{
[Parameter("bytes32", "requestId", 1)]
public virtual byte[] RequestId { get; set; }
[Parameter("uint256", "slotIndex", 2)]
public virtual BigInteger SlotIndex { get; set; }
}
2024-10-31 07:52:07 +00:00
public partial class ConfigurationOutputDTO : ConfigurationOutputDTOBase { }
2024-08-30 09:17:36 +00:00
[FunctionOutput]
2024-10-31 07:52:07 +00:00
public class ConfigurationOutputDTOBase : IFunctionOutputDTO
2024-08-30 09:17:36 +00:00
{
[Parameter("tuple", "", 1)]
public virtual MarketplaceConfig ReturnValue1 { get; set; }
}
2024-10-31 07:52:07 +00:00
public partial class ConfigurationFunction : ConfigurationFunctionBase { }
2023-12-19 14:43:26 +00:00
2024-10-31 07:52:07 +00:00
[Function("configuration", typeof(ConfigurationOutputDTO))]
public class ConfigurationFunctionBase : FunctionMessage
2023-12-19 14:43:26 +00:00
{
}
public partial class FillSlotFunction : FillSlotFunctionBase { }
[Function("fillSlot")]
public class FillSlotFunctionBase : FunctionMessage
{
[Parameter("bytes32", "requestId", 1)]
public virtual byte[] RequestId { get; set; }
[Parameter("uint256", "slotIndex", 2)]
public virtual BigInteger SlotIndex { get; set; }
[Parameter("tuple", "proof", 3)]
public virtual Groth16Proof Proof { get; set; }
2023-12-19 14:43:26 +00:00
}
2024-08-20 13:26:19 +00:00
public partial class FreeSlot1Function : FreeSlot1FunctionBase { }
[Function("freeSlot")]
public class FreeSlot1FunctionBase : FunctionMessage
{
[Parameter("bytes32", "slotId", 1)]
public virtual byte[] SlotId { get; set; }
[Parameter("address", "rewardRecipient", 2)]
public virtual string RewardRecipient { get; set; }
[Parameter("address", "collateralRecipient", 3)]
public virtual string CollateralRecipient { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class FreeSlotFunction : FreeSlotFunctionBase { }
[Function("freeSlot")]
public class FreeSlotFunctionBase : FunctionMessage
{
[Parameter("bytes32", "slotId", 1)]
public virtual byte[] SlotId { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class GetActiveSlotOutputDTO : GetActiveSlotOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class GetActiveSlotOutputDTOBase : IFunctionOutputDTO
{
[Parameter("tuple", "", 1)]
public virtual ActiveSlot ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class GetActiveSlotFunction : GetActiveSlotFunctionBase { }
[Function("getActiveSlot", typeof(GetActiveSlotOutputDTO))]
public class GetActiveSlotFunctionBase : FunctionMessage
{
[Parameter("bytes32", "slotId", 1)]
public virtual byte[] SlotId { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class GetChallengeOutputDTO : GetChallengeOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class GetChallengeOutputDTOBase : IFunctionOutputDTO
{
[Parameter("bytes32", "", 1)]
public virtual byte[] ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class GetChallengeFunction : GetChallengeFunctionBase { }
[Function("getChallenge", "bytes32")]
public class GetChallengeFunctionBase : FunctionMessage
{
[Parameter("bytes32", "id", 1)]
public virtual byte[] Id { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class GetHostOutputDTO : GetHostOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class GetHostOutputDTOBase : IFunctionOutputDTO
{
[Parameter("address", "", 1)]
public virtual string ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class GetHostFunction : GetHostFunctionBase { }
[Function("getHost", "address")]
public class GetHostFunctionBase : FunctionMessage
{
[Parameter("bytes32", "slotId", 1)]
public virtual byte[] SlotId { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class GetPointerOutputDTO : GetPointerOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class GetPointerOutputDTOBase : IFunctionOutputDTO
{
[Parameter("uint8", "", 1)]
public virtual byte ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class GetPointerFunction : GetPointerFunctionBase { }
[Function("getPointer", "uint8")]
public class GetPointerFunctionBase : FunctionMessage
{
[Parameter("bytes32", "id", 1)]
public virtual byte[] Id { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class GetRequestOutputDTO : GetRequestOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class GetRequestOutputDTOBase : IFunctionOutputDTO
{
[Parameter("tuple", "", 1)]
public virtual Request ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class GetRequestFunction : GetRequestFunctionBase { }
[Function("getRequest", typeof(GetRequestOutputDTO))]
public class GetRequestFunctionBase : FunctionMessage
{
[Parameter("bytes32", "requestId", 1)]
public virtual byte[] RequestId { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class IsProofRequiredOutputDTO : IsProofRequiredOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class IsProofRequiredOutputDTOBase : IFunctionOutputDTO
{
[Parameter("bool", "", 1)]
public virtual bool ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class IsProofRequiredFunction : IsProofRequiredFunctionBase { }
[Function("isProofRequired", "bool")]
public class IsProofRequiredFunctionBase : FunctionMessage
{
[Parameter("bytes32", "id", 1)]
public virtual byte[] Id { get; set; }
}
public partial class MarkProofAsMissingFunction : MarkProofAsMissingFunctionBase { }
[Function("markProofAsMissing")]
public class MarkProofAsMissingFunctionBase : FunctionMessage
{
[Parameter("bytes32", "slotId", 1)]
public virtual byte[] SlotId { get; set; }
[Parameter("uint256", "period", 2)]
public virtual BigInteger Period { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class MissingProofsOutputDTO : MissingProofsOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class MissingProofsOutputDTOBase : IFunctionOutputDTO
{
[Parameter("uint256", "", 1)]
public virtual BigInteger ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class MissingProofsFunction : MissingProofsFunctionBase { }
[Function("missingProofs", "uint256")]
public class MissingProofsFunctionBase : FunctionMessage
{
[Parameter("bytes32", "slotId", 1)]
public virtual byte[] SlotId { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class MyRequestsOutputDTO : MyRequestsOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class MyRequestsOutputDTOBase : IFunctionOutputDTO
{
[Parameter("bytes32[]", "", 1)]
public virtual List<byte[]> ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class MyRequestsFunction : MyRequestsFunctionBase { }
[Function("myRequests", "bytes32[]")]
public class MyRequestsFunctionBase : FunctionMessage
{
}
2024-08-30 09:17:36 +00:00
public partial class MySlotsOutputDTO : MySlotsOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class MySlotsOutputDTOBase : IFunctionOutputDTO
{
[Parameter("bytes32[]", "", 1)]
public virtual List<byte[]> ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class MySlotsFunction : MySlotsFunctionBase { }
[Function("mySlots", "bytes32[]")]
public class MySlotsFunctionBase : FunctionMessage
{
}
2024-08-30 09:17:36 +00:00
public partial class RequestEndOutputDTO : RequestEndOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class RequestEndOutputDTOBase : IFunctionOutputDTO
{
[Parameter("uint256", "", 1)]
public virtual BigInteger ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class RequestEndFunction : RequestEndFunctionBase { }
[Function("requestEnd", "uint256")]
public class RequestEndFunctionBase : FunctionMessage
{
[Parameter("bytes32", "requestId", 1)]
public virtual byte[] RequestId { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class RequestExpiryOutputDTO : RequestExpiryOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class RequestExpiryOutputDTOBase : IFunctionOutputDTO
{
[Parameter("uint256", "", 1)]
public virtual BigInteger ReturnValue1 { get; set; }
}
public partial class RequestExpiryFunction : RequestExpiryFunctionBase { }
[Function("requestExpiry", "uint256")]
public class RequestExpiryFunctionBase : FunctionMessage
{
[Parameter("bytes32", "requestId", 1)]
public virtual byte[] RequestId { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class RequestStateOutputDTO : RequestStateOutputDTOBase { }
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class RequestStateOutputDTOBase : IFunctionOutputDTO
{
[Parameter("uint8", "", 1)]
public virtual byte ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class RequestStateFunction : RequestStateFunctionBase { }
[Function("requestState", "uint8")]
public class RequestStateFunctionBase : FunctionMessage
{
[Parameter("bytes32", "requestId", 1)]
public virtual byte[] RequestId { get; set; }
}
public partial class RequestStorageFunction : RequestStorageFunctionBase { }
[Function("requestStorage")]
public class RequestStorageFunctionBase : FunctionMessage
{
[Parameter("tuple", "request", 1)]
public virtual Request Request { get; set; }
}
2024-10-07 13:59:05 +00:00
public partial class ReserveSlotFunction : ReserveSlotFunctionBase { }
[Function("reserveSlot")]
public class ReserveSlotFunctionBase : FunctionMessage
{
[Parameter("bytes32", "requestId", 1)]
public virtual byte[] RequestId { get; set; }
[Parameter("uint256", "slotIndex", 2)]
public virtual BigInteger SlotIndex { get; set; }
}
2024-08-30 09:17:36 +00:00
public partial class SlotStateOutputDTO : SlotStateOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class SlotStateOutputDTOBase : IFunctionOutputDTO
{
[Parameter("uint8", "", 1)]
public virtual byte ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class SlotStateFunction : SlotStateFunctionBase { }
[Function("slotState", "uint8")]
public class SlotStateFunctionBase : FunctionMessage
{
[Parameter("bytes32", "slotId", 1)]
public virtual byte[] SlotId { get; set; }
}
public partial class SubmitProofFunction : SubmitProofFunctionBase { }
[Function("submitProof")]
public class SubmitProofFunctionBase : FunctionMessage
{
[Parameter("bytes32", "id", 1)]
public virtual byte[] Id { get; set; }
[Parameter("tuple", "proof", 2)]
public virtual Groth16Proof Proof { get; set; }
2023-12-19 14:43:26 +00:00
}
2024-08-30 09:17:36 +00:00
public partial class TokenOutputDTO : TokenOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class TokenOutputDTOBase : IFunctionOutputDTO
{
[Parameter("address", "", 1)]
public virtual string ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class TokenFunction : TokenFunctionBase { }
[Function("token", "address")]
public class TokenFunctionBase : FunctionMessage
{
}
2024-08-30 09:17:36 +00:00
public partial class WillProofBeRequiredOutputDTO : WillProofBeRequiredOutputDTOBase { }
2023-12-19 14:43:26 +00:00
2024-08-30 09:17:36 +00:00
[FunctionOutput]
public class WillProofBeRequiredOutputDTOBase : IFunctionOutputDTO
{
[Parameter("bool", "", 1)]
public virtual bool ReturnValue1 { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class WillProofBeRequiredFunction : WillProofBeRequiredFunctionBase { }
[Function("willProofBeRequired", "bool")]
public class WillProofBeRequiredFunctionBase : FunctionMessage
{
[Parameter("bytes32", "id", 1)]
public virtual byte[] Id { get; set; }
}
public partial class WithdrawFundsFunction : WithdrawFundsFunctionBase { }
[Function("withdrawFunds")]
public class WithdrawFundsFunctionBase : FunctionMessage
{
[Parameter("bytes32", "requestId", 1)]
public virtual byte[] RequestId { get; set; }
}
2024-08-20 13:26:19 +00:00
public partial class WithdrawFunds1Function : WithdrawFunds1FunctionBase { }
[Function("withdrawFunds")]
public class WithdrawFunds1FunctionBase : FunctionMessage
{
[Parameter("bytes32", "requestId", 1)]
public virtual byte[] RequestId { get; set; }
[Parameter("address", "withdrawRecipient", 2)]
public virtual string WithdrawRecipient { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class CollateralConfig : CollateralConfigBase { }
2024-08-30 09:17:36 +00:00
public class CollateralConfigBase
2023-12-19 14:43:26 +00:00
{
[Parameter("uint8", "repairRewardPercentage", 1)]
public virtual byte RepairRewardPercentage { get; set; }
[Parameter("uint8", "maxNumberOfSlashes", 2)]
public virtual byte MaxNumberOfSlashes { get; set; }
[Parameter("uint16", "slashCriterion", 3)]
public virtual ushort SlashCriterion { get; set; }
[Parameter("uint8", "slashPercentage", 4)]
public virtual byte SlashPercentage { get; set; }
}
public partial class ProofConfig : ProofConfigBase { }
2024-08-30 09:17:36 +00:00
public class ProofConfigBase
2023-12-19 14:43:26 +00:00
{
[Parameter("uint256", "period", 1)]
public virtual BigInteger Period { get; set; }
[Parameter("uint256", "timeout", 2)]
public virtual BigInteger Timeout { get; set; }
[Parameter("uint8", "downtime", 3)]
public virtual byte Downtime { get; set; }
[Parameter("string", "zkeyHash", 4)]
public virtual string ZkeyHash { get; set; }
2024-08-20 13:26:19 +00:00
[Parameter("uint8", "downtimeProduct", 5)]
public virtual byte DowntimeProduct { get; set; }
2023-12-19 14:43:26 +00:00
}
2024-10-07 13:59:05 +00:00
public partial class SlotReservationsConfig : SlotReservationsConfigBase { }
public class SlotReservationsConfigBase
{
[Parameter("uint8", "maxReservations", 1)]
public virtual byte MaxReservations { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class MarketplaceConfig : MarketplaceConfigBase { }
2024-08-30 09:17:36 +00:00
public class MarketplaceConfigBase
2023-12-19 14:43:26 +00:00
{
[Parameter("tuple", "collateral", 1)]
public virtual CollateralConfig Collateral { get; set; }
[Parameter("tuple", "proofs", 2)]
public virtual ProofConfig Proofs { get; set; }
2024-10-07 13:59:05 +00:00
[Parameter("tuple", "reservations", 3)]
public virtual SlotReservationsConfig Reservations { get; set; }
2023-12-19 14:43:26 +00:00
}
public partial class Ask : AskBase { }
2024-08-30 09:17:36 +00:00
public class AskBase
2023-12-19 14:43:26 +00:00
{
[Parameter("uint64", "slots", 1)]
public virtual ulong Slots { get; set; }
[Parameter("uint256", "slotSize", 2)]
public virtual BigInteger SlotSize { get; set; }
[Parameter("uint256", "duration", 3)]
public virtual BigInteger Duration { get; set; }
[Parameter("uint256", "proofProbability", 4)]
public virtual BigInteger ProofProbability { get; set; }
[Parameter("uint256", "reward", 5)]
public virtual BigInteger Reward { get; set; }
[Parameter("uint256", "collateral", 6)]
public virtual BigInteger Collateral { get; set; }
[Parameter("uint64", "maxSlotLoss", 7)]
public virtual ulong MaxSlotLoss { get; set; }
}
public partial class G1Point : G1PointBase { }
2024-08-30 09:17:36 +00:00
public class G1PointBase
{
[Parameter("uint256", "x", 1)]
public virtual BigInteger X { get; set; }
[Parameter("uint256", "y", 2)]
public virtual BigInteger Y { get; set; }
}
public partial class Fp2Element : Fp2ElementBase { }
2024-08-30 09:17:36 +00:00
public class Fp2ElementBase
{
[Parameter("uint256", "real", 1)]
public virtual BigInteger Real { get; set; }
[Parameter("uint256", "imag", 2)]
public virtual BigInteger Imag { get; set; }
}
public partial class G2Point : G2PointBase { }
2024-08-30 09:17:36 +00:00
public class G2PointBase
{
[Parameter("tuple", "x", 1)]
public virtual Fp2Element X { get; set; }
[Parameter("tuple", "y", 2)]
public virtual Fp2Element Y { get; set; }
}
public partial class Groth16Proof : Groth16ProofBase { }
2024-08-30 09:17:36 +00:00
public class Groth16ProofBase
{
[Parameter("tuple", "a", 1)]
public virtual G1Point A { get; set; }
[Parameter("tuple", "b", 2)]
public virtual G2Point B { get; set; }
[Parameter("tuple", "c", 3)]
public virtual G1Point C { get; set; }
}
2023-12-19 14:43:26 +00:00
public partial class Content : ContentBase { }
2024-08-30 09:17:36 +00:00
public class ContentBase
2023-12-19 14:43:26 +00:00
{
[Parameter("string", "cid", 1)]
public virtual string Cid { get; set; }
[Parameter("bytes32", "merkleRoot", 2)]
public virtual byte[] MerkleRoot { get; set; }
}
public partial class Request : RequestBase { }
2024-08-30 09:17:36 +00:00
public class RequestBase
2023-12-19 14:43:26 +00:00
{
[Parameter("address", "client", 1)]
public virtual string Client { get; set; }
[Parameter("tuple", "ask", 2)]
public virtual Ask Ask { get; set; }
[Parameter("tuple", "content", 3)]
public virtual Content Content { get; set; }
[Parameter("uint256", "expiry", 4)]
public virtual BigInteger Expiry { get; set; }
[Parameter("bytes32", "nonce", 5)]
public virtual byte[] Nonce { get; set; }
}
public partial class ActiveSlot : ActiveSlotBase { }
2024-08-30 09:17:36 +00:00
public class ActiveSlotBase
2023-12-19 14:43:26 +00:00
{
[Parameter("tuple", "request", 1)]
public virtual Request Request { get; set; }
[Parameter("uint256", "slotIndex", 2)]
public virtual BigInteger SlotIndex { get; set; }
}
2024-08-30 09:17:36 +00:00
}
2023-12-19 14:43:26 +00:00
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.