Skip to content

Commit

Permalink
add extra well known addresses to gateway response.
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPawelec-RDX committed Nov 13, 2024
1 parent fafc9ad commit a446d7b
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/GatewayApi/Controllers/StatusController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ public StatusController(IStatusHandler statusHandler, INetworkConfigurationProvi
faucet: wellKnownAddresses.Faucet,
poolPackage: wellKnownAddresses.PoolPackage,
lockerPackage: wellKnownAddresses.LockerPackage,
transactionTracker: wellKnownAddresses.TransactionTracker
transactionTracker: wellKnownAddresses.TransactionTracker,
transactionTrackerPackage: wellKnownAddresses.TransactionTrackerPackage,
testUtilsPackage: wellKnownAddresses.TestUtilsPackage
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,18 @@ export interface NetworkConfigurationResponseWellKnownAddresses {
* @memberof NetworkConfigurationResponseWellKnownAddresses
*/
transaction_tracker: string;
/**
* Bech32m-encoded human readable version of the address.
* @type {string}
* @memberof NetworkConfigurationResponseWellKnownAddresses
*/
transaction_tracker_package?: string;
/**
* Bech32m-encoded human readable version of the address.
* @type {string}
* @memberof NetworkConfigurationResponseWellKnownAddresses
*/
test_utils_package?: string;
}

/**
Expand Down Expand Up @@ -272,6 +284,8 @@ export function NetworkConfigurationResponseWellKnownAddressesFromJSONTyped(json
'pool_package': json['pool_package'],
'locker_package': json['locker_package'],
'transaction_tracker': json['transaction_tracker'],
'transaction_tracker_package': !exists(json, 'transaction_tracker_package') ? undefined : json['transaction_tracker_package'],
'test_utils_package': !exists(json, 'test_utils_package') ? undefined : json['test_utils_package'],
};
}

Expand Down Expand Up @@ -313,6 +327,8 @@ export function NetworkConfigurationResponseWellKnownAddressesToJSON(value?: Net
'pool_package': value.pool_package,
'locker_package': value.locker_package,
'transaction_tracker': value.transaction_tracker,
'transaction_tracker_package': value.transaction_tracker_package,
'test_utils_package': value.test_utils_package,
};
}

Original file line number Diff line number Diff line change
Expand Up @@ -3477,6 +3477,10 @@ components:
$ref: "#/components/schemas/Address"
transaction_tracker:
$ref: "#/components/schemas/Address"
transaction_tracker_package:
$ref: "#/components/schemas/Address"
test_utils_package:
$ref: "#/components/schemas/Address"

GatewayStatusResponse:
allOf:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ protected NetworkConfigurationResponseWellKnownAddresses() { }
/// <param name="poolPackage">Bech32m-encoded human readable version of the address. (required).</param>
/// <param name="lockerPackage">Bech32m-encoded human readable version of the address. (required).</param>
/// <param name="transactionTracker">Bech32m-encoded human readable version of the address. (required).</param>
public NetworkConfigurationResponseWellKnownAddresses(string xrd = default(string), string secp256k1SignatureVirtualBadge = default(string), string ed25519SignatureVirtualBadge = default(string), string packageOfDirectCallerVirtualBadge = default(string), string globalCallerVirtualBadge = default(string), string systemTransactionBadge = default(string), string packageOwnerBadge = default(string), string validatorOwnerBadge = default(string), string accountOwnerBadge = default(string), string identityOwnerBadge = default(string), string packagePackage = default(string), string resourcePackage = default(string), string accountPackage = default(string), string identityPackage = default(string), string consensusManagerPackage = default(string), string accessControllerPackage = default(string), string transactionProcessorPackage = default(string), string metadataModulePackage = default(string), string royaltyModulePackage = default(string), string accessRulesPackage = default(string), string roleAssignmentModulePackage = default(string), string genesisHelperPackage = default(string), string faucetPackage = default(string), string consensusManager = default(string), string genesisHelper = default(string), string faucet = default(string), string poolPackage = default(string), string lockerPackage = default(string), string transactionTracker = default(string))
/// <param name="transactionTrackerPackage">Bech32m-encoded human readable version of the address..</param>
/// <param name="testUtilsPackage">Bech32m-encoded human readable version of the address..</param>
public NetworkConfigurationResponseWellKnownAddresses(string xrd = default(string), string secp256k1SignatureVirtualBadge = default(string), string ed25519SignatureVirtualBadge = default(string), string packageOfDirectCallerVirtualBadge = default(string), string globalCallerVirtualBadge = default(string), string systemTransactionBadge = default(string), string packageOwnerBadge = default(string), string validatorOwnerBadge = default(string), string accountOwnerBadge = default(string), string identityOwnerBadge = default(string), string packagePackage = default(string), string resourcePackage = default(string), string accountPackage = default(string), string identityPackage = default(string), string consensusManagerPackage = default(string), string accessControllerPackage = default(string), string transactionProcessorPackage = default(string), string metadataModulePackage = default(string), string royaltyModulePackage = default(string), string accessRulesPackage = default(string), string roleAssignmentModulePackage = default(string), string genesisHelperPackage = default(string), string faucetPackage = default(string), string consensusManager = default(string), string genesisHelper = default(string), string faucet = default(string), string poolPackage = default(string), string lockerPackage = default(string), string transactionTracker = default(string), string transactionTrackerPackage = default(string), string testUtilsPackage = default(string))
{
// to ensure "xrd" is required (not null)
if (xrd == null)
Expand Down Expand Up @@ -308,6 +310,8 @@ protected NetworkConfigurationResponseWellKnownAddresses() { }
throw new ArgumentNullException("transactionTracker is a required property for NetworkConfigurationResponseWellKnownAddresses and cannot be null");
}
this.TransactionTracker = transactionTracker;
this.TransactionTrackerPackage = transactionTrackerPackage;
this.TestUtilsPackage = testUtilsPackage;
}

/// <summary>
Expand Down Expand Up @@ -513,6 +517,20 @@ protected NetworkConfigurationResponseWellKnownAddresses() { }
[DataMember(Name = "transaction_tracker", IsRequired = true, EmitDefaultValue = true)]
public string TransactionTracker { get; set; }

/// <summary>
/// Bech32m-encoded human readable version of the address.
/// </summary>
/// <value>Bech32m-encoded human readable version of the address.</value>
[DataMember(Name = "transaction_tracker_package", EmitDefaultValue = true)]
public string TransactionTrackerPackage { get; set; }

/// <summary>
/// Bech32m-encoded human readable version of the address.
/// </summary>
/// <value>Bech32m-encoded human readable version of the address.</value>
[DataMember(Name = "test_utils_package", EmitDefaultValue = true)]
public string TestUtilsPackage { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand Down Expand Up @@ -550,6 +568,8 @@ public override string ToString()
sb.Append(" PoolPackage: ").Append(PoolPackage).Append("\n");
sb.Append(" LockerPackage: ").Append(LockerPackage).Append("\n");
sb.Append(" TransactionTracker: ").Append(TransactionTracker).Append("\n");
sb.Append(" TransactionTrackerPackage: ").Append(TransactionTrackerPackage).Append("\n");
sb.Append(" TestUtilsPackage: ").Append(TestUtilsPackage).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -729,6 +749,16 @@ public bool Equals(NetworkConfigurationResponseWellKnownAddresses input)
this.TransactionTracker == input.TransactionTracker ||
(this.TransactionTracker != null &&
this.TransactionTracker.Equals(input.TransactionTracker))
) &&
(
this.TransactionTrackerPackage == input.TransactionTrackerPackage ||
(this.TransactionTrackerPackage != null &&
this.TransactionTrackerPackage.Equals(input.TransactionTrackerPackage))
) &&
(
this.TestUtilsPackage == input.TestUtilsPackage ||
(this.TestUtilsPackage != null &&
this.TestUtilsPackage.Equals(input.TestUtilsPackage))
);
}

Expand Down Expand Up @@ -857,6 +887,14 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.TransactionTracker.GetHashCode();
}
if (this.TransactionTrackerPackage != null)
{
hashCode = (hashCode * 59) + this.TransactionTrackerPackage.GetHashCode();
}
if (this.TestUtilsPackage != null)
{
hashCode = (hashCode * 59) + this.TestUtilsPackage.GetHashCode();
}
return hashCode;
}
}
Expand Down

0 comments on commit a446d7b

Please sign in to comment.