Skip to content

Commit

Permalink
Test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Dec 3, 2023
1 parent aab9618 commit 07f73be
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 123 deletions.
6 changes: 3 additions & 3 deletions sdk/tests/types/api/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ fn responses() {
// GET /api/core/v3/accounts/{bech32Address}/congestion
// json_response::<CongestionResponse>("get-congestion-estimate-response-example.json").unwrap();
// GET /api/core/v3/rewards/{outputId}
json_response::<ManaRewardsResponse>("get-mana-rewards-example.json").unwrap();
// json_response::<ManaRewardsResponse>("get-mana-rewards-example.json").unwrap();
// GET /api/core/v3/validators
json_response::<ValidatorResponse>("get-validator-example.json").unwrap();
json_response::<ValidatorsResponse>("get-validators-example.json").unwrap();
// json_response::<ValidatorResponse>("get-validator-example.json").unwrap();
// json_response::<ValidatorsResponse>("get-validators-example.json").unwrap();
// GET /api/core/v3/committee
json_response::<CommitteeResponse>("get-committee-example.json").unwrap();
// GET /api/core/v3/blocks/issuance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"slot": 20,
"ready": true,
"referenceManaCost": "50000",
"blockIssuanceCredits": "10000000"
}
"slot": 20,
"ready": true,
"referenceManaCost": "50000",
"blockIssuanceCredits": "10000000"
}
218 changes: 109 additions & 109 deletions sdk/tests/types/api/fixtures/get-info-response-example.json
Original file line number Diff line number Diff line change
@@ -1,111 +1,111 @@
{
"name": "Example Node",
"version": "1.0.0",
"status": {
"isHealthy": true,
"acceptedTangleTime": "1692966168000000000",
"relativeAcceptedTangleTime": "1692966173856059205",
"confirmedTangleTime": "1692966168000000000",
"relativeConfirmedTangleTime": "1692966173855931045",
"latestCommitmentID": "0x8fb6cbb1ecf02c6b5a6a5a6a5f6c5a6a5f6c5a6a5a6a5a6a5f6c5a6a5a6a5f6c50000000000000000",
"latestFinalizedSlot": 100,
"latestAcceptedBlockSlot": 100,
"latestConfirmedBlockSlot": 95,
"pruningEpoch": 20
},
"metrics": {
"blocksPerSecond": "1.5E+00",
"confirmedBlocksPerSecond": "1.5E+00",
"confirmationRate": "1E+02"
},
"protocolParameters": [
{
"startEpoch": 1,
"parameters": {
"type": 0,
"version": 3,
"networkName": "iota-core-testnet",
"bech32Hrp": "rms",
"storageScoreParameters": {
"storageCost": "500",
"factorData": 1,
"offsetOutputOverhead": "10",
"offsetEd25519BlockIssuerKey": "100",
"offsetStakingFeature": "100",
"storageScoreOffoffsetDelegationsetDelegation": "100"
},
"workScoreParameters": {
"dataByte": 0,
"block": 100,
"input": 20,
"contextInput": 20,
"output": 20,
"nativeToken": 20,
"staking": 100,
"blockIssuer": 100,
"allotment": 100,
"signatureEd25519": 200
},
"manaParameters": {
"bitsCount": 63,
"generationRate": 1,
"generationRateExponent": 0,
"decayFactors": [
10,
20
],
"decayFactorsExponent": 0,
"decayFactorEpochsSum": 0,
"decayFactorEpochsSumExponent": 0
},
"tokenSupply": "2779530283277761",
"genesisSlot": 5,
"genesisUnixTimestamp": "1692966168",
"slotDurationInSeconds": 10,
"slotsPerEpochExponent": 13,
"stakingUnbondingPeriod": 10,
"validationBlocksPerSlot": 10,
"punishmentEpochs": 10,
"livenessThresholdLowerBound": 5,
"livenessThresholdUpperBound": 10,
"minCommittableAge": 10,
"maxCommittableAge": 20,
"epochNearingThreshold": 30,
"congestionControlParameters": {
"minReferenceManaCost": "500",
"increase": "500",
"decrease": "500",
"increaseThreshold": 800000,
"decreaseThreshold": 500000,
"schedulerRate": 100000,
"maxBufferSize": 3276800,
"maxValidationBufferSize": 100
},
"versionSignalingParameters": {
"windowSize": 7,
"windowTargetRatio": 5,
"activationOffset": 7
},
"rewardsParameters": {
"profitMarginExponent": 8,
"bootstrappinDuration": 1154,
"manaShareCoefficient": "2",
"decayBalancingConstantExponent": 8,
"decayBalancingConstant": "1",
"poolCoefficientExponent": 31
},
"targetCommitteeSize": 32
}
"name": "Example Node",
"version": "1.0.0",
"status": {
"isHealthy": true,
"acceptedTangleTime": "1692966168000000000",
"relativeAcceptedTangleTime": "1692966173856059205",
"confirmedTangleTime": "1692966168000000000",
"relativeConfirmedTangleTime": "1692966173855931045",
"latestCommitmentId": "0x8fb6cbb1ecf02c6b5a6a5a6a5f6c5a6a5f6c5a6a5a6a5a6a5f6c5a6a5a6a5f6c50000000000000000",
"latestFinalizedSlot": 100,
"latestAcceptedBlockSlot": 100,
"latestConfirmedBlockSlot": 95,
"pruningEpoch": 20
},
"metrics": {
"blocksPerSecond": "1.5E+00",
"confirmedBlocksPerSecond": "1.5E+00",
"confirmationRate": "1E+02"
},
"protocolParameters": [
{
"startEpoch": 1,
"parameters": {
"type": 0,
"version": 3,
"networkName": "iota-core-testnet",
"bech32Hrp": "rms",
"storageScoreParameters": {
"storageCost": "500",
"factorData": 1,
"offsetOutputOverhead": "10",
"offsetEd25519BlockIssuerKey": "100",
"offsetStakingFeature": "100",
"offsetDelegation": "100"
},
"workScoreParameters": {
"dataByte": 0,
"block": 100,
"input": 20,
"contextInput": 20,
"output": 20,
"nativeToken": 20,
"staking": 100,
"blockIssuer": 100,
"allotment": 100,
"signatureEd25519": 200
},
"manaParameters": {
"bitsCount": 63,
"generationRate": 1,
"generationRateExponent": 0,
"decayFactors": [
10,
20
],
"decayFactorsExponent": 0,
"decayFactorEpochsSum": 0,
"decayFactorEpochsSumExponent": 0
},
"tokenSupply": "2779530283277761",
"genesisSlot": 5,
"genesisUnixTimestamp": "1692966168",
"slotDurationInSeconds": 10,
"slotsPerEpochExponent": 13,
"stakingUnbondingPeriod": 10,
"validationBlocksPerSlot": 10,
"punishmentEpochs": 10,
"livenessThresholdLowerBound": 5,
"livenessThresholdUpperBound": 10,
"minCommittableAge": 10,
"maxCommittableAge": 20,
"epochNearingThreshold": 30,
"congestionControlParameters": {
"minReferenceManaCost": "500",
"increase": "500",
"decrease": "500",
"increaseThreshold": 800000,
"decreaseThreshold": 500000,
"schedulerRate": 100000,
"maxBufferSize": 3276800,
"maxValidationBufferSize": 100
},
"versionSignalingParameters": {
"windowSize": 7,
"windowTargetRatio": 5,
"activationOffset": 7
},
"rewardsParameters": {
"profitMarginExponent": 8,
"bootstrappingDuration": 1154,
"manaShareCoefficient": "2",
"decayBalancingConstantExponent": 8,
"decayBalancingConstant": "1",
"poolCoefficientExponent": 31
},
"targetCommitteeSize": 32
}
],
"baseToken": {
"name": "Shimmer",
"tickerSymbol": "SMR",
"unit": "SMR",
"decimals": 6,
"subunit": "glow"
},
"features": [
[]
]
}
}
],
"baseToken": {
"name": "Shimmer",
"tickerSymbol": "SMR",
"unit": "SMR",
"decimals": 6,
"subunit": "glow"
},
"features": [
[]
]
}
12 changes: 6 additions & 6 deletions sdk/tests/types/api/fixtures/get-routes-response-example.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"routes": [
"core/v3",
"dashboard-metrics/v2",
"debug/v2"
]
}
"routes": [
"core/v3",
"dashboard-metrics/v2",
"debug/v2"
]
}

0 comments on commit 07f73be

Please sign in to comment.