Skip to content

Commit 1976269

Browse files
committed
feat: update immutable zkEVM API package
1 parent 0cb28ac commit 1976269

13 files changed

+842
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Immutable.Api.ZkEvm.Model.SessionActivityContract
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Id** | **int** | The unique identifier of the session activity contract | [optional]
8+
**Name** | **string** | The name of the session activity contract | [optional]
9+
**ContractAddress** | **string** | The smart contract address | [optional]
10+
**ClientId** | **string** | The client ID associated with the session activity contract | [optional]
11+
**ChainId** | **string** | The chain ID for the session activity contract | [optional]
12+
**OrganisationId** | **Guid** | The organisation ID that owns this session activity contract (UUID format) | [optional]
13+
**Enabled** | **bool** | Whether the session activity contract is enabled | [optional]
14+
**CreatedAt** | **DateTime** | The timestamp when the session activity contract was created | [optional]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Immutable.Api.ZkEvm.Model.SessionActivityContractResponse
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Id** | **int** | The unique identifier of the session activity contract |
8+
**Name** | **string** | The name of the session activity contract |
9+
**ContractAddress** | **string** | The smart contract address |
10+
**ClientId** | **string** | The client ID associated with the session activity contract |
11+
**ChainId** | **string** | The chain ID for the session activity contract |
12+
**OrganisationId** | **Guid** | The organisation ID that owns this session activity contract (UUID format) |
13+
**Enabled** | **bool** | Whether the session activity contract is enabled |
14+
**CreatedAt** | **DateTime** | The timestamp when the session activity contract was created |
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Immutable.Api.ZkEvm.Model.UpsertSessionActivityContractReq
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Id** | **int** | The unique identifier of the session activity contract | [optional]
8+
**Name** | **string** | The name of the session activity contract |
9+
**ContractAddress** | **string** | The smart contract address |
10+
**ClientId** | **string** | The client ID associated with the session activity contract |
11+
**ChainId** | **string** | The chain ID for the session activity contract |
12+
**OrganisationId** | **Guid** | The organisation ID that owns this session activity contract (UUID format) |
13+
**Enabled** | **bool** | Whether the session activity contract is enabled |
14+
**CreatedAt** | **DateTime** | The timestamp when the session activity contract was created | [optional]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Immutable.Api.ZkEvm.Model.UpsertSessionActivityContractResp
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Id** | **int** | The unique identifier of the session activity contract | [optional]
8+
**Name** | **string** | The name of the session activity contract | [optional]
9+
**ContractAddress** | **string** | The smart contract address | [optional]
10+
**ClientId** | **string** | The client ID associated with the session activity contract | [optional]
11+
**ChainId** | **string** | The chain ID for the session activity contract | [optional]
12+
**OrganisationId** | **Guid** | The organisation ID that owns this session activity contract (UUID format) | [optional]
13+
**Enabled** | **bool** | Whether the session activity contract is enabled | [optional]
14+
**CreatedAt** | **DateTime** | The timestamp when the session activity contract was created | [optional]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
/*
2+
* Immutable zkEVM API
3+
*
4+
* Immutable Multi Rollup API
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Contact: support@immutable.com
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
10+
11+
12+
using System;
13+
using System.Collections;
14+
using System.Collections.Generic;
15+
using System.Collections.ObjectModel;
16+
using System.Linq;
17+
using System.IO;
18+
using System.Runtime.Serialization;
19+
using System.Text;
20+
using System.Text.RegularExpressions;
21+
using Newtonsoft.Json;
22+
using Newtonsoft.Json.Converters;
23+
using Newtonsoft.Json.Linq;
24+
using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter;
25+
26+
namespace Immutable.Api.ZkEvm.Model
27+
{
28+
/// <summary>
29+
/// SessionActivityContract
30+
/// </summary>
31+
[DataContract(Name = "SessionActivityContract")]
32+
public partial class SessionActivityContract
33+
{
34+
/// <summary>
35+
/// Initializes a new instance of the <see cref="SessionActivityContract" /> class.
36+
/// </summary>
37+
/// <param name="id">The unique identifier of the session activity contract.</param>
38+
/// <param name="name">The name of the session activity contract.</param>
39+
/// <param name="contractAddress">The smart contract address.</param>
40+
/// <param name="clientId">The client ID associated with the session activity contract.</param>
41+
/// <param name="chainId">The chain ID for the session activity contract.</param>
42+
/// <param name="organisationId">The organisation ID that owns this session activity contract (UUID format).</param>
43+
/// <param name="enabled">Whether the session activity contract is enabled.</param>
44+
/// <param name="createdAt">The timestamp when the session activity contract was created.</param>
45+
public SessionActivityContract(int id = default(int), string name = default(string), string contractAddress = default(string), string clientId = default(string), string chainId = default(string), Guid organisationId = default(Guid), bool enabled = default(bool), DateTime createdAt = default(DateTime))
46+
{
47+
this.Id = id;
48+
this.Name = name;
49+
this.ContractAddress = contractAddress;
50+
this.ClientId = clientId;
51+
this.ChainId = chainId;
52+
this.OrganisationId = organisationId;
53+
this.Enabled = enabled;
54+
this.CreatedAt = createdAt;
55+
}
56+
57+
/// <summary>
58+
/// The unique identifier of the session activity contract
59+
/// </summary>
60+
/// <value>The unique identifier of the session activity contract</value>
61+
/// <example>1</example>
62+
[DataMember(Name = "id", EmitDefaultValue = false)]
63+
public int Id { get; set; }
64+
65+
/// <summary>
66+
/// The name of the session activity contract
67+
/// </summary>
68+
/// <value>The name of the session activity contract</value>
69+
/// <example>Session Activity Contract 1</example>
70+
[DataMember(Name = "name", EmitDefaultValue = false)]
71+
public string Name { get; set; }
72+
73+
/// <summary>
74+
/// The smart contract address
75+
/// </summary>
76+
/// <value>The smart contract address</value>
77+
/// <example>0x1234567890abcdef1234567890abcdef12345678</example>
78+
[DataMember(Name = "contract_address", EmitDefaultValue = false)]
79+
public string ContractAddress { get; set; }
80+
81+
/// <summary>
82+
/// The client ID associated with the session activity contract
83+
/// </summary>
84+
/// <value>The client ID associated with the session activity contract</value>
85+
/// <example>ZabAMafQRA9bWE1XatAtBYNe6DRamgqE</example>
86+
[DataMember(Name = "client_id", EmitDefaultValue = false)]
87+
public string ClientId { get; set; }
88+
89+
/// <summary>
90+
/// The chain ID for the session activity contract
91+
/// </summary>
92+
/// <value>The chain ID for the session activity contract</value>
93+
/// <example>eip155:13371</example>
94+
[DataMember(Name = "chain_id", EmitDefaultValue = false)]
95+
public string ChainId { get; set; }
96+
97+
/// <summary>
98+
/// The organisation ID that owns this session activity contract (UUID format)
99+
/// </summary>
100+
/// <value>The organisation ID that owns this session activity contract (UUID format)</value>
101+
/// <example>550e8400-e29b-41d4-a716-446655440000</example>
102+
[DataMember(Name = "organisation_id", EmitDefaultValue = false)]
103+
public Guid OrganisationId { get; set; }
104+
105+
/// <summary>
106+
/// Whether the session activity contract is enabled
107+
/// </summary>
108+
/// <value>Whether the session activity contract is enabled</value>
109+
/// <example>true</example>
110+
[DataMember(Name = "enabled", EmitDefaultValue = true)]
111+
public bool Enabled { get; set; }
112+
113+
/// <summary>
114+
/// The timestamp when the session activity contract was created
115+
/// </summary>
116+
/// <value>The timestamp when the session activity contract was created</value>
117+
/// <example>2023-12-07T10:30Z</example>
118+
[DataMember(Name = "created_at", EmitDefaultValue = false)]
119+
public DateTime CreatedAt { get; set; }
120+
121+
/// <summary>
122+
/// Returns the string presentation of the object
123+
/// </summary>
124+
/// <returns>String presentation of the object</returns>
125+
public override string ToString()
126+
{
127+
StringBuilder sb = new StringBuilder();
128+
sb.Append("class SessionActivityContract {\n");
129+
sb.Append(" Id: ").Append(Id).Append("\n");
130+
sb.Append(" Name: ").Append(Name).Append("\n");
131+
sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n");
132+
sb.Append(" ClientId: ").Append(ClientId).Append("\n");
133+
sb.Append(" ChainId: ").Append(ChainId).Append("\n");
134+
sb.Append(" OrganisationId: ").Append(OrganisationId).Append("\n");
135+
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
136+
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
137+
sb.Append("}\n");
138+
return sb.ToString();
139+
}
140+
141+
/// <summary>
142+
/// Returns the JSON string presentation of the object
143+
/// </summary>
144+
/// <returns>JSON string presentation of the object</returns>
145+
public virtual string ToJson()
146+
{
147+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
148+
}
149+
150+
}
151+
152+
}

src/Packages/ZkEvmApi/Runtime/Model/SessionActivityContract.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)