diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a4b269d54..5885756afc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,8 @@ math: true - `evaluateTransaction` now uses the outputs given in `additionalUtxo` over the outputs that transactions in the mempool create, when both have the same output reference. Before, the mempool outputs won. +- `queryNetwork/genesisConfiguration` for the Conway era now returns `plutusCostModels` (the Plutus V3 cost model) and `minFeeReferenceScripts` in `updatableParameters`. Before, both were missing. + ### [6.14.0] - 2025-10-16 #### Added diff --git a/clients/TypeScript/packages/client/test/LedgerStateQuery.test.ts b/clients/TypeScript/packages/client/test/LedgerStateQuery.test.ts index 4047d3a076..3adb25709d 100644 --- a/clients/TypeScript/packages/client/test/LedgerStateQuery.test.ts +++ b/clients/TypeScript/packages/client/test/LedgerStateQuery.test.ts @@ -244,6 +244,8 @@ describe('Local state queries', () => { it('fetches the config used to bootstrap the Conway era', async () => { const config = await LedgerStateQuery.genesisConfiguration(context, 'conway') expect((config as GenesisConway).constitution).toBeDefined() + expect(config.updatableParameters.plutusCostModels['plutus:v3']) + .toEqual([ 100788, 420, 1, 1, 1000, 173, 0, 1, 1000, 59957, 4, 1, 11183, 32, 201305, 8356, 4, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 100, 100, 16000, 100, 94375, 32, 132994, 32, 61462, 4, 72010, 178, 0, 1, 22151, 32, 91189, 769, 4, 2, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 1, 1000, 42921, 4, 2, 24548, 29498, 38, 1, 898148, 27279, 1, 51775, 558, 1, 39184, 1000, 60594, 1, 141895, 32, 83150, 32, 15299, 32, 76049, 1, 13169, 4, 22100, 10, 28999, 74, 1, 28999, 74, 1, 43285, 552, 1, 44749, 541, 1, 33852, 32, 68246, 32, 72362, 32, 7243, 32, 7391, 32, 11546, 32, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 90434, 519, 0, 1, 74433, 32, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 1, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 955506, 213312, 0, 2, 270652, 22588, 4, 1457325, 64566, 4, 20467, 1, 4, 0, 141992, 32, 100788, 420, 1, 1, 81663, 32, 59498, 32, 20142, 32, 24588, 32, 20744, 32, 25933, 32, 24623, 32, 43053543, 10, 53384111, 14333, 10, 43574283, 26308, 10, 16000, 100, 16000, 100, 962335, 18, 2780678, 6, 442008, 1, 52538055, 3756, 18, 267929, 18, 76433006, 8868, 18, 52948122, 18, 1995836, 36, 3227919, 12, 901022, 1, 166917843, 4307, 36, 284546, 36, 158221314, 26549, 36, 74698472, 36, 333849714, 1, 254006273, 72, 2174038, 72, 2261318, 64571, 4, 207616, 8310, 4, 1293828, 28716, 63, 0, 1, 1006041, 43623, 251, 0, 1]) }) }) describe('ledgerTip', () => { diff --git a/clients/TypeScript/packages/schema/src/index.ts b/clients/TypeScript/packages/schema/src/index.ts index ff2c06b8c3..0a4deeaba3 100644 --- a/clients/TypeScript/packages/schema/src/index.ts +++ b/clients/TypeScript/packages/schema/src/index.ts @@ -3022,17 +3022,7 @@ export interface QueryLedgerStateProtocolParametersResponse { export interface ProtocolParameters { minFeeCoefficient: UInt64; minFeeConstant: ValueAdaOnly; - minFeeReferenceScripts?: { - range: UInt32; - /** - * The base cost for the tier-price calculation. - */ - base: number; - /** - * The multiplier increasing the cost of each tier. - */ - multiplier: number; - }; + minFeeReferenceScripts?: MinFeeReferenceScripts; minUtxoDepositCoefficient: UInt64; minUtxoDepositConstant: ValueAdaOnly; maxBlockBodySize: { @@ -3082,6 +3072,17 @@ export interface ProtocolParameters { delegateRepresentativeMaxIdleTime?: Epoch; version: ProtocolVersion; } +export interface MinFeeReferenceScripts { + range: UInt32; + /** + * The base cost for the tier-price calculation. + */ + base: number; + /** + * The multiplier increasing the cost of each tier. + */ + multiplier: number; +} /** * Query current delegation settings and rewards of some given reward accounts. */ @@ -3426,6 +3427,8 @@ export interface GenesisConway { delegateRepresentativeVotingThresholds: DelegateRepresentativeVotingThresholds; delegateRepresentativeDeposit: ValueAdaOnly; delegateRepresentativeMaxIdleTime: Epoch; + plutusCostModels: CostModels; + minFeeReferenceScripts: MinFeeReferenceScripts; }; } /** diff --git a/docs/static/cardano.json b/docs/static/cardano.json index c8d6c2b385..0b6a7cbb13 100644 --- a/docs/static/cardano.json +++ b/docs/static/cardano.json @@ -1364,6 +1364,8 @@ , "delegateRepresentativeVotingThresholds" , "delegateRepresentativeDeposit" , "delegateRepresentativeMaxIdleTime" + , "plutusCostModels" + , "minFeeReferenceScripts" ] , "properties": { "stakePoolVotingThresholds": { "$ref": "cardano.json#/definitions/StakePoolVotingThresholds" } @@ -1374,6 +1376,8 @@ , "delegateRepresentativeVotingThresholds": { "$ref": "cardano.json#/definitions/DelegateRepresentativeVotingThresholds" } , "delegateRepresentativeDeposit": { "$ref": "cardano.json#/definitions/Value" } , "delegateRepresentativeMaxIdleTime": { "$ref": "cardano.json#/definitions/Epoch" } + , "plutusCostModels": { "$ref": "cardano.json#/definitions/CostModels" } + , "minFeeReferenceScripts": { "$ref": "cardano.json#/definitions/MinFeeReferenceScripts" } } } } @@ -1985,6 +1989,26 @@ } } + , "MinFeeReferenceScripts": + { "title": "MinFeeReferenceScripts" + , "type": "object" + , "additionalProperties": false + , "required": [ "range", "base", "multiplier" ] + , "properties": + { "range": + { "$ref": "cardano.json#/definitions/UInt32" + } + , "base": + { "type": "number" + , "description": "The base cost for the tier-price calculation." + } + , "multiplier": + { "type": "number" + , "description": "The multiplier increasing the cost of each tier." + } + } + } + , "Network": { "title": "Network" , "type": "string" @@ -2284,24 +2308,7 @@ , "properties": { "minFeeCoefficient": { "$ref": "cardano.json#/definitions/UInt64" } , "minFeeConstant": { "$ref": "cardano.json#/definitions/Value" } - , "minFeeReferenceScripts": - { "type": "object" - , "additionalProperties": false - , "required": [ "range", "base", "multiplier" ] - , "properties": - { "range": - { "$ref": "cardano.json#/definitions/UInt32" - } - , "base": - { "type": "number" - , "description": "The base cost for the tier-price calculation." - } - , "multiplier": - { "type": "number" - , "description": "The multiplier increasing the cost of each tier." - } - } - } + , "minFeeReferenceScripts": { "$ref": "cardano.json#/definitions/MinFeeReferenceScripts" } , "minUtxoDepositCoefficient": { "$ref": "cardano.json#/definitions/UInt64" } , "minUtxoDepositConstant": { "$ref": "cardano.json#/definitions/Value" } , "maxBlockBodySize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } diff --git a/server/src/Ogmios/Data/Json/Conway.hs b/server/src/Ogmios/Data/Json/Conway.hs index ff5c70d335..9885ae2b03 100644 --- a/server/src/Ogmios/Data/Json/Conway.hs +++ b/server/src/Ogmios/Data/Json/Conway.hs @@ -10,6 +10,7 @@ import Ogmios.Data.Json.Prelude import Cardano.Ledger.Api ( AsItem (..) , AsIx (..) + , Language (..) , PlutusPurpose ) import Cardano.Ledger.BaseTypes @@ -74,6 +75,7 @@ import qualified Cardano.Ledger.Conway.Scripts as Cn import qualified Cardano.Ledger.Conway.TxInfo as Cn import Cardano.Ledger.Plutus ( TxOutSource (..) + , mkCostModels ) import qualified Data.Aeson as Json @@ -410,23 +412,28 @@ encodeGenesis x = <> "constitutionalCommittee" .= encodeCommittee (Cn.cgCommittee x) <> "updatableParameters" .= encodeObject ( "stakePoolVotingThresholds" .= - encodePoolVotingThresholds (Cn.ucppPoolVotingThresholds (Cn.cgUpgradePParams x)) + encodePoolVotingThresholds (Cn.ucppPoolVotingThresholds pparams) <> "delegateRepresentativeVotingThresholds" .= - encodeDRepVotingThresholds (Cn.ucppDRepVotingThresholds (Cn.cgUpgradePParams x)) + encodeDRepVotingThresholds (Cn.ucppDRepVotingThresholds pparams) <> "constitutionalCommitteeMinSize" .= - encodeWord16 (Cn.ucppCommitteeMinSize (Cn.cgUpgradePParams x)) + encodeWord16 (Cn.ucppCommitteeMinSize pparams) <> "constitutionalCommitteeMaxTermLength" .= - encodeEpochInterval (Cn.ucppCommitteeMaxTermLength (Cn.cgUpgradePParams x)) + encodeEpochInterval (Cn.ucppCommitteeMaxTermLength pparams) <> "governanceActionLifetime" .= - encodeEpochInterval (Cn.ucppGovActionLifetime (Cn.cgUpgradePParams x)) + encodeEpochInterval (Cn.ucppGovActionLifetime pparams) <> "governanceActionDeposit" .= - encodeCoin (Cn.ucppGovActionDeposit (Cn.cgUpgradePParams x)) + encodeCoin (Cn.ucppGovActionDeposit pparams) <> "delegateRepresentativeDeposit" .= - encodeCoin (Cn.ucppDRepDeposit (Cn.cgUpgradePParams x)) + encodeCoin (Cn.ucppDRepDeposit pparams) <> "delegateRepresentativeMaxIdleTime" .= - encodeEpochInterval (Cn.ucppDRepActivity (Cn.cgUpgradePParams x)) + encodeEpochInterval (Cn.ucppDRepActivity pparams) + <> "plutusCostModels" .= + Alonzo.encodeCostModels (mkCostModels $ Map.singleton PlutusV3 (Cn.ucppPlutusV3CostModel pparams)) + <> "minFeeReferenceScripts" .= encodeMinFeeReferenceScripts (Cn.ucppMinFeeRefScriptCostPerByte pparams) ) ) + where + pparams = Cn.cgUpgradePParams x encodeGovAction :: Cn.GovAction ConwayEra @@ -527,6 +534,25 @@ encodeGovActionPurpose = \case Cn.ConstitutionPurpose -> encodeText "constitution" +encodeMinFeeReferenceScripts + :: NonNegativeInterval + -> Json +encodeMinFeeReferenceScripts base = encodeObject $ + -- NOTE: This will very likely always be an integer. The ledger + -- represent this as a 'NonNegativeInterval', which technically + -- allow any _Rational_ value between 0 and +INFINITY, but it is + -- highly impractical to manipulate a Rationale here from an API + -- standpoint. + -- + -- So this is a debatable choice, but I believe it's better for + -- users to convert to a Double so that it is directly a number in + -- JSON, and we can still accomodate decimal representation so long + -- as they don't get _too precise_ (which should be a fair + -- assumption in this context). + "base" .= encodeDouble (fromRational (unboundRational base)) <> + "range" .= encodeWord32 25600 <> + "multiplier" .= encodeDouble 1.2 + encodePParams :: (Ledger.PParamsHKD Identity era ~ Cn.ConwayPParams Identity era) => Ledger.PParams era @@ -568,27 +594,7 @@ encodePParamsHKD encode pure_ x = encode "minFeeConstant" (encodeCoin . fromCompact) (unTHKD (Cn.cppTxFeeFixed x)) <> encode "minFeeReferenceScripts" - (\(base :: NonNegativeInterval) -> encodeObject - -- NOTE: This will very likely always be an integer. The ledger - -- represent this as a 'NonNegativeInterval', which technically - -- allow any _Rational_ value between 0 and +INFINITY, but it is - -- highly impractical to manipulate a Rationale here from an API - -- standpoint. - -- - -- So this is a debatable choice, but I believe it's better for - -- users to convert to a Double so that it is directly a number in - -- JSON, and we can still accomodate decimal representation so long - -- as they don't get _too precise_ (which should be a fair - -- assumption in this context). - ( "base" .= encodeDouble (fromRational (unboundRational base)) - <> - "range" .= encodeWord32 25600 - <> - "multiplier" .= encodeDouble 1.2 - ) - ) - (unTHKD (Cn.cppMinFeeRefScriptCostPerByte x)) - <> + encodeMinFeeReferenceScripts (unTHKD (Cn.cppMinFeeRefScriptCostPerByte x)) <> encode "maxBlockBodySize" (encodeSingleton "bytes" . encodeWord32) (unTHKD (Cn.cppMaxBBSize x)) <> encode "maxBlockHeaderSize" diff --git a/server/test/unit/Ogmios/Data/JsonSpec.hs b/server/test/unit/Ogmios/Data/JsonSpec.hs index 81384f6cf9..017b5f1359 100644 --- a/server/test/unit/Ogmios/Data/JsonSpec.hs +++ b/server/test/unit/Ogmios/Data/JsonSpec.hs @@ -1084,6 +1084,13 @@ spec = do (Just [aesonQQ|{ "era": "alonzo" }|]) (parseQueryNetworkGenesisConfiguration genGenesisConfig) + validateNetworkQueryTagged + 10 + "genesisConfiguration" + (Just "Conway") + (Just [aesonQQ|{ "era": "conway" }|]) + (parseQueryNetworkGenesisConfiguration genGenesisConfig) + validateNetworkQuery 5 "startTime" diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/000.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/000.json new file mode 100644 index 0000000000..b0a5036fcd --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/000.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://rK2.ARsefdbpH.n9JcL.com","hash":"a5a31846001929824a07b0f81c60db3ad655ecd8374374013815327050168929"},"guardrails":{"hash":"3c8310f81ead70c5284e1f37fa713fabbf32f1ade4826f9d073e6604"}},"constitutionalCommittee":{"members":[{"from":"verificationKey","id":"afab4acd3f190286d8ea4466e2b336d1bbf71bfdad6f3917ce562ad0","mandate":{"epoch":7}},{"from":"verificationKey","id":"c3e4087b31339314f7644a87933a8c01703211bffe071c97d7c132ff","mandate":{"epoch":6}}],"quorum":"90151561668703/100000000000000"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"199841632340527/1000000000000000","constitutionalCommittee":{"default":"3/5","stateOfNoConfidence":"304639/500000"},"hardForkInitiation":"2135542017033/2500000000000","protocolParametersUpdate":{"security":"17163/25000"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"9798926743547/12500000000000","constitutionalCommittee":{"default":"929/1000","stateOfNoConfidence":"55999629/1000000000"},"constitution":"1283869/2500000","hardForkInitiation":"47771752476334261/100000000000000000","protocolParametersUpdate":{"network":"102952929244135071/250000000000000000","economic":"357755988578187/10000000000000000","technical":"15379651916800791/20000000000000000","governance":"7184889/10000000"},"treasuryWithdrawals":"41/250"},"constitutionalCommitteeMinSize":3,"constitutionalCommitteeMaxTermLength":4,"governanceActionLifetime":1,"governanceActionDeposit":{"ada":{"lovelace":4}},"delegateRepresentativeDeposit":{"ada":{"lovelace":754130}},"delegateRepresentativeMaxIdleTime":0,"plutusCostModels":{"plutus:v3":[-4,-8,1,-13,-13,7,-2,-2,-16,-4,12,-4,-2,-13,-15,-13,10,14,-5,-1,5,-8,11,3,4,-10,14,-5,12,9,-14,-11,11,-8,-13,-14,2,-16,-4,12,-13,11,3,1,-10,12,4,1,7,16,12,5,7,-6,-9,-1,15,14,-12,-2,-16,12,-12,-2,-5,1,-3,-12,-6,-8,-1,5,13,-2,-6,13,-14,-1,15,-16,6,6,-7,11,12,-3,-12,-2,-14,-13,3,-2,-5,9,-9,-13,1,1,-6,-16,-13,14,-10,-14,13,-14,11,-7,4,8,-3,-3,-3,-1,-7,-9,-1,-14,-2,-11,12,-11,4,7,12,8,14,0,-9,7,3,-4,-15,-1,-15,11,-15,8,-6,-13,7,-7,-4,-1,11,16,-11,6,-13,12,6,-9,0,9,1,2,-13,-9,-14,-12,-12,-8,-1,-14,-1,-1,11,-6,3,-6,-11,12,10,16,-9,-15,-15,-2,4,1,8,-2,-9,8,8,2,-7,2,16,4,-15,6,3,13,15,5,-14,-16,-15,-4,11,8,-11,4,10,15,6,-14,-14,2,-15,-4,6,6,3,9,0,11,13,12,4,-11,-11,-15,6,15,-6,-16,-5,9,-7,16,9,0,10,-13,-5,-3,4,-2,-14,8,15,-12,11,6,-12,8,5,13,-8]},"minFeeReferenceScripts":{"base":4.238619974382076e7,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/001.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/001.json new file mode 100644 index 0000000000..c7b01b2a69 --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/001.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://uZJU3IpSs1x97kqvuwUNEPmpdDQImr2FR0f-kfT24N24mM.com","hash":"b3097f490893794ad99f6ab878067e3bde20919a65ce40d99ef035910050c49e"},"guardrails":null},"constitutionalCommittee":{"members":[{"from":"script","id":"55340cf3b038ea240cb76a7062a29680c6152c15e4255e24136669e2","mandate":{"epoch":1}}],"quorum":"330854791/500000000"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"2304249/5000000","constitutionalCommittee":{"default":"416079/500000","stateOfNoConfidence":"2564637824458523/6250000000000000"},"hardForkInitiation":"920868763/5000000000","protocolParametersUpdate":{"security":"2003031228604013711/2500000000000000000"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"1505968817579427/20000000000000000","constitutionalCommittee":{"default":"15021491/25000000","stateOfNoConfidence":"781474685086591353/1000000000000000000"},"constitution":"11018041637992467/50000000000000000","hardForkInitiation":"9672948554659173/12500000000000000","protocolParametersUpdate":{"network":"1/10","economic":"6832038942064993/25000000000000000","technical":"0/1","governance":"6873224511050037/62500000000000000"},"treasuryWithdrawals":"467286545119/1000000000000"},"constitutionalCommitteeMinSize":5,"constitutionalCommitteeMaxTermLength":8,"governanceActionLifetime":5,"governanceActionDeposit":{"ada":{"lovelace":4}},"delegateRepresentativeDeposit":{"ada":{"lovelace":4}},"delegateRepresentativeMaxIdleTime":2,"plutusCostModels":{"plutus:v3":[-3,14,-8,-2,10,-8,-11,15,-4,11,-15,0,-13,8,-7,6,1,0,-10,-9,7,15,-10,-13,-15,1,-6,15,8,-6,-13,-8,-5,-16,-3,0,12,-9,10,5,7,-12,-8,10,-12,-1,10,6,3,-3,2,15,-9,4,-3,-13,-7,1,-10,-12,11,6,11,11,-15,-10,-15,0,-16,6,-12,12,2,14,-7,14,4,8,10,-1,-14,-12,10,-14,-16,9,-3,3,-14,6,0,-9,13,-6,-5,-2,-8,-7,-16,13,-3,16,-6,7,3,16,2,-13,-5,-9,16,-2,12,-12,-12,-14,-8,-3,14,-2,-13,-13,2,8,5,-6,-8,-7,-11,5,2,8,-8,-9,4,-2,14,-7,-1,15,2,-5,-8,-12,5,-9,-7,-15,6,4,-13,6,5,10,-13,-2,5,13,8,16,12,-16,-5,8,-8,-7,9,12,11,2,12,-9,1,-13,-5,8,-2,-2,-13,7,12,-15,8,6,12,-11,-5,13,-6,-11,-8,8,7,3,9,8,2,14,0,9,0,4,10,-6,8,13,9,-4,6,13,-13,-8,8,-7,1,-11,-1,4,0,-10,6,-7,7,-5,9,-9,-5,5,-3,-6,2,5,10,-8,13,-13,12,11,-14,-9,13,4,2,-1,5,2,-1,15,-3,16,1]},"minFeeReferenceScripts":{"base":9.049281161497256e10,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/002.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/002.json new file mode 100644 index 0000000000..543968c24b --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/002.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://kaG.YZqMc4V3il9pYW4ivRrJMcGj0qQuuEswEBwgQM7v.com","hash":"ce76e99949e464bdd60f156cbe26c9c1750794903e39fd095d475c7ad72793e2"},"guardrails":{"hash":"72b8b79fd5ca1d1649a395c26812a91bbd78959bcc950a184fae9492"}},"constitutionalCommittee":{"members":[{"from":"script","id":"82d8a97e97cfca7c04db45594ff387d4a943f0495e8673c64be20008","mandate":{"epoch":15}},{"from":"script","id":"a222c8ea2e66f5f1f1ec5a67150a07200f4906e3511ca320391ef313","mandate":{"epoch":13}},{"from":"verificationKey","id":"54c1c45f14132f00ed749bf1c9f84af224017ad94010c4593ec6e43c","mandate":{"epoch":11}}],"quorum":"1/1"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"7012603472673/10000000000000","constitutionalCommittee":{"default":"38265151/100000000","stateOfNoConfidence":"201940760689999/1000000000000000"},"hardForkInitiation":"0/1","protocolParametersUpdate":{"security":"1/2"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"7/10","constitutionalCommittee":{"default":"2406581/6250000","stateOfNoConfidence":"6017983/12500000"},"constitution":"11442585222313/31250000000000","hardForkInitiation":"509/1000","protocolParametersUpdate":{"network":"5712998946471931/10000000000000000","economic":"35031595555287627/100000000000000000","technical":"3/5","governance":"278873966403202247/312500000000000000"},"treasuryWithdrawals":"33160771/50000000"},"constitutionalCommitteeMinSize":7,"constitutionalCommitteeMaxTermLength":5,"governanceActionLifetime":3,"governanceActionDeposit":{"ada":{"lovelace":781886}},"delegateRepresentativeDeposit":{"ada":{"lovelace":2}},"delegateRepresentativeMaxIdleTime":0,"plutusCostModels":{"plutus:v3":[-15,11,-13,-6,-5,-14,-15,2,7,2,-13,-7,12,12,3,5,-11,-14,9,5,6,7,5,8,-3,6,-3,9,6,1,-14,-4,6,-13,-9,8,-2,3,-6,-13,0,-11,8,2,-4,3,-9,-15,15,-8,-12,12,5,0,4,-9,-5,11,16,-11,-9,14,3,-9,3,11,-2,-5,-12,-1,16,-14,15,-16,5,0,-4,15,-8,-12,-3,-5,-16,-13,-13,3,-8,8,4,10,-10,8,-5,-14,5,11,-15,0,-9,8,6,16,7,14,-16,-15,-8,-15,15,-2,-1,16,3,-7,-10,4,-7,-15,-7,5,-1,8,-16,-14,2,-13,-5,12,9,-2,13,3,10,6,-7,-8,16,-6,-13,2,12,9,0,0,7,2,6,-9,-14,6,8,-8,-6,3,-3,9,-4,-3,-15,6,-16,-13,-8,9,-14,13,-5,8,-9,11,7,-6,9,15,9,-16,-14,-2,13,-16,-6,-14,8,-11,9,-6,10,2,0,-11,-12,3,9,1,4,2,-12,14,-16,-15,9,11,-11,7,-12,-5,2,10,-8,-16,10,2,-2,0,0,-6,-9,-15,2,-6,-1,2,-6,-9,13,14,-9,-13,16,-1,-12,-9,13,-8,6,4,14,4,0,-3,-1,16,-8,-7,10,14,-14,-14,-11,1,-2]},"minFeeReferenceScripts":{"base":530319.2931263212,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/003.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/003.json new file mode 100644 index 0000000000..ed087f2499 --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/003.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://ebyYMOElwxPv327oi9zJQ0fBKEUcLnvPvAn5N-75-9D96t.com","hash":"7e52d112c500088d348ad5a57cffd433bc2bfb44314fb6a9b12790273290bcdd"},"guardrails":{"hash":"518c7a4a83d752a4f128f1f16e8782629a119c1822c12ad78ba1e875"}},"constitutionalCommittee":{"members":[{"from":"script","id":"1f31bc7e5937e51e5a0b87c447bcabd9718a51cfa04d3726e71db11f","mandate":{"epoch":9}},{"from":"verificationKey","id":"0ae1ffcac3fb1a56a0c77b5cfd6d8531eca2dbf93d5d9beac1d8f3fa","mandate":{"epoch":2}},{"from":"verificationKey","id":"e9ac969741bd0db39312197b9cfc0b8f58cb845f43921e8ad4e8f1fc","mandate":{"epoch":13}}],"quorum":"5021/100000"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"332985507/1000000000","constitutionalCommittee":{"default":"4148070511667201/5000000000000000","stateOfNoConfidence":"285293/1250000"},"hardForkInitiation":"19/20","protocolParametersUpdate":{"security":"7644906319307/100000000000000"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"33769242457346883/62500000000000000","constitutionalCommittee":{"default":"235833237/500000000","stateOfNoConfidence":"2127/12500"},"constitution":"19/100","hardForkInitiation":"12/25","protocolParametersUpdate":{"network":"9897/20000","economic":"2986941531561723/5000000000000000","technical":"5516460361/10000000000","governance":"3253131448512871419/5000000000000000000"},"treasuryWithdrawals":"103491961/200000000"},"constitutionalCommitteeMinSize":4,"constitutionalCommitteeMaxTermLength":2,"governanceActionLifetime":1,"governanceActionDeposit":{"ada":{"lovelace":809784}},"delegateRepresentativeDeposit":{"ada":{"lovelace":307958}},"delegateRepresentativeMaxIdleTime":6,"plutusCostModels":{"plutus:v3":[3,-5,-12,-4,11,11,7,-12,-3,9,-12,-9,3,4,3,-14,10,9,8,16,14,-14,-4,-3,-16,-9,-13,5,-6,5,-4,11,-10,1,-12,-8,-11,-9,1,-2,-13,10,-6,-5,7,-3,-15,2,-10,-11,11,6,9,12,0,-4,10,-12,-6,-13,14,-7,7,2,-10,2,14,-1,8,0,-4,-16,14,-12,-13,9,9,-11,-10,9,-13,-12,-16,6,-12,16,7,13,-11,-5,15,10,-11,14,-4,14,11,-9,-8,15,6,4,14,-15,-10,6,-6,-5,7,8,3,15,6,16,16,-13,-11,-10,-11,3,3,-11,12,13,3,-1,6,-8,-6,13,-7,9,4,-9,4,14,-11,-11,2,-13,7,-12,-14,-9,5,-4,12,-1,4,8,10,13,12,8,-4,-11,5,-1,-4,8,7,6,10,9,-15,6,-7,-7,12,-6,1,-7,-16,-16,-5,-8,11,-12,8,-16,13,14,4,7,10,2,8,9,14,14,5,-16,1,7,0,-5,-10,6,-12,-1,3,8,8,16,-8,-16,-14,-10,10,-2,7,1,-9,-8,16,5,-1,-6,-3,1,-2,1,13,12,-15,7,4,-1,0,-14,-8,-1,-13,8,0,1,-10,16,13,6,-13,-16,-7,-8,7,6,4,10,9,11,12]},"minFeeReferenceScripts":{"base":6369.181820139539,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/004.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/004.json new file mode 100644 index 0000000000..f3145c98af --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/004.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://WF3twFATT.com","hash":"e2c21d74ee799a77e9196c6d6e93a167827db52b702d1c7d5391eb07efe82db7"},"guardrails":{"hash":"8a9bf978ad45e6a77cbd98ca47b28a7463d2f9b6251611636c8b8743"}},"constitutionalCommittee":{"members":[{"from":"script","id":"0e987e1e00c6fd411dff5b6291ffede92aed1120591b1ccefeff2d86","mandate":{"epoch":10}},{"from":"script","id":"153ce9582a6b41be86627b7d68d5b73f600a3f827d2500e22b6fe0f3","mandate":{"epoch":9}},{"from":"script","id":"524e0013d0a2e0b151c1c2f7a76d5f7de1f6e54c0e22a26255383038","mandate":{"epoch":0}},{"from":"script","id":"a1653a11f0adf062343ee13c8261cca10dd023c22b3cf122fb23321a","mandate":{"epoch":11}},{"from":"script","id":"f55c58265197c2d17137e856cae842a7f873ddb4d0f499b27dcc67ba","mandate":{"epoch":15}}],"quorum":"4045167/10000000"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"5105562177/10000000000","constitutionalCommittee":{"default":"24038011605459857/50000000000000000","stateOfNoConfidence":"447689301380760567/10000000000000000000"},"hardForkInitiation":"52717/125000","protocolParametersUpdate":{"security":"15129647827/156250000000"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"2717246561616922561/5000000000000000000","constitutionalCommittee":{"default":"89586527/250000000","stateOfNoConfidence":"17756960527/500000000000"},"constitution":"994568875213/10000000000000","hardForkInitiation":"1975541547/5000000000","protocolParametersUpdate":{"network":"185280003/250000000","economic":"569/25000","technical":"3801222402369/5000000000000","governance":"7418467/10000000"},"treasuryWithdrawals":"18514997961/50000000000"},"constitutionalCommitteeMinSize":0,"constitutionalCommitteeMaxTermLength":1,"governanceActionLifetime":7,"governanceActionDeposit":{"ada":{"lovelace":4}},"delegateRepresentativeDeposit":{"ada":{"lovelace":2}},"delegateRepresentativeMaxIdleTime":0,"plutusCostModels":{"plutus:v3":[4,-8,5,-2,-15,11,-13,-7,5,-15,0,-9,6,-6,11,8,10,-11,10,7,3,12,15,15,2,-10,12,-10,15,-7,-4,-15,14,2,12,-6,-4,-4,-6,-4,15,-7,2,10,12,8,-1,13,-1,-6,11,-2,-8,-5,-14,4,8,0,-6,8,8,14,9,0,-14,1,6,-2,-11,0,-6,-5,5,-13,-3,11,1,-9,-12,-8,0,-15,12,11,3,-9,6,-1,13,-7,16,-12,13,-8,12,12,1,-7,-2,-4,6,-12,-1,1,6,8,-2,13,8,9,4,-6,12,-12,13,-16,-15,3,-14,6,-6,-7,5,6,-7,2,0,-5,-6,-10,-10,3,-5,7,1,-9,13,-12,-16,-1,-11,2,-7,-11,11,-15,-10,-10,-15,-3,-16,6,5,14,-10,-4,8,-8,14,6,3,14,12,-7,-5,-3,-12,-12,-9,-4,-2,9,-11,11,-6,-7,-6,9,4,-2,-15,4,0,11,-13,4,-7,-15,13,-5,-1,-12,6,-1,0,0,-10,6,16,11,-3,-8,-4,8,10,6,-7,13,-2,9,-6,-16,8,14,10,5,-13,-15,-15,-16,8,-15,-4,13,6,3,-6,-11,-14,-13,11,-11,12,-15,-10,-6,-2,-1,-8,-13,15,-15,13,-7,9,6,16,-3,-2,-10,0]},"minFeeReferenceScripts":{"base":3.156547463207553e12,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/005.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/005.json new file mode 100644 index 0000000000..8d5b384f06 --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/005.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://hLORrIReVDlWJ.4G.com","hash":"cbfa4a2a60e7f97e3d81b2ad996c729a25c1ba65f64eec2c824c1f9b44d6561e"},"guardrails":null},"constitutionalCommittee":{"members":[{"from":"script","id":"93323dca3a5cd7ae659cba51542d70da13914105109e1f203027095d","mandate":{"epoch":7}},{"from":"script","id":"bfa33894838b1dda0c067050dbcf94beee18e45212bba3d01bc79304","mandate":{"epoch":8}},{"from":"script","id":"e8138f7c4d7bed30d61329e20a1b68492625dbf80f0e3f2cd1c263dc","mandate":{"epoch":4}},{"from":"verificationKey","id":"6303bf7dbad3fa522cbae869ef459ee0a5d7fe78fc4c2ca06df1ec33","mandate":{"epoch":15}},{"from":"verificationKey","id":"83685b20d642f6941063d38bc78cc97609c5a2808b60a834695888d6","mandate":{"epoch":11}},{"from":"verificationKey","id":"c8364ff39b1d7cf846173ad797ff2ae0ca036dc061af7db90e035d7c","mandate":{"epoch":4}}],"quorum":"14459426819/15625000000"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"7261140023239/10000000000000","constitutionalCommittee":{"default":"354996960258487777/500000000000000000","stateOfNoConfidence":"70082403727039/100000000000000"},"hardForkInitiation":"837/1000","protocolParametersUpdate":{"security":"511/2000"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"4567120634590668797/5000000000000000000","constitutionalCommittee":{"default":"343823511342963/500000000000000","stateOfNoConfidence":"7071671/20000000"},"constitution":"822439680559897/2500000000000000","hardForkInitiation":"792521147778483/10000000000000000","protocolParametersUpdate":{"network":"369/1000","economic":"141/200","technical":"18760187/100000000","governance":"319/1000"},"treasuryWithdrawals":"539919001/1000000000"},"constitutionalCommitteeMinSize":5,"constitutionalCommitteeMaxTermLength":0,"governanceActionLifetime":8,"governanceActionDeposit":{"ada":{"lovelace":981551}},"delegateRepresentativeDeposit":{"ada":{"lovelace":285585}},"delegateRepresentativeMaxIdleTime":8,"plutusCostModels":{"plutus:v3":[-6,-15,-2,-11,13,16,8,-14,-12,4,15,7,-5,-5,-12,0,0,-12,-6,-12,3,11,4,-2,-15,10,4,-8,15,15,-15,14,5,-4,8,-12,6,2,1,7,-15,-4,7,9,11,13,-14,-1,10,1,-2,15,-3,-5,8,-11,16,10,-4,13,8,-11,-10,-5,14,4,-15,4,-3,14,-14,-8,7,4,-9,-9,9,13,-12,2,-14,-5,15,3,-8,14,-13,10,-15,7,0,10,9,4,-14,2,-14,4,-15,14,8,16,10,-8,12,14,-12,3,14,-9,14,-4,-11,-11,-11,13,-2,-10,4,2,-6,-16,14,-6,15,3,9,14,15,-11,16,-10,1,7,7,14,-2,-16,-15,-4,-12,5,-11,-16,9,-16,-13,-6,-3,15,2,4,10,-13,7,5,-16,6,-3,-16,8,16,-5,7,-10,14,-3,-10,4,-5,-8,-1,-15,9,8,5,3,10,13,0,2,-16,4,0,2,-4,13,-4,-7,9,-7,-16,1,12,0,1,10,-5,16,6,16,2,5,2,5,-4,-4,-15,2,-5,-11,-4,10,14,2,4,11,-13,4,-7,11,7,-12,-12,15,16,14,8,0,-10,8,-4,13,3,-14,7,-8,-2,9,-12,-2,-10,-7,4,-12,2,-4,14,1,-9,2]},"minFeeReferenceScripts":{"base":147093.23747136432,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/006.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/006.json new file mode 100644 index 0000000000..3e9db1db82 --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/006.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://YcAAvJwjGvm0GkKpdtGHSgg6zi1vmh0.com","hash":"01297f1a21e54fb3984284345ee0331aed80cd6f53ee5e1f14954927e4a389db"},"guardrails":{"hash":"6da25a921415ab62ecbfd6d9899a794fe302e64ad803c003c73b46d2"}},"constitutionalCommittee":{"members":[{"from":"script","id":"88dea4ac6865652189e6e22bbfe515001ecc5b478d873ebb9a7f35aa","mandate":{"epoch":4}},{"from":"script","id":"f0401b0c59cfc2d49e0b852573ecf5d36ae41d0fd72797f444046d58","mandate":{"epoch":2}},{"from":"verificationKey","id":"27cdab45ef18cb7760543448d91cdc5637eb55ca61eafaf8401ace1e","mandate":{"epoch":2}},{"from":"verificationKey","id":"5965556d3b4fc3e6befa52420586fc45138a07f61296f84fde8b1e8d","mandate":{"epoch":2}}],"quorum":"6643/10000"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"71581843/100000000","constitutionalCommittee":{"default":"2607367719972663/50000000000000000","stateOfNoConfidence":"46434973/200000000"},"hardForkInitiation":"4830470337/20000000000","protocolParametersUpdate":{"security":"644039/1250000"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"514429589189/1000000000000","constitutionalCommittee":{"default":"0/1","stateOfNoConfidence":"11717/50000"},"constitution":"224182851/250000000","hardForkInitiation":"19/50","protocolParametersUpdate":{"network":"7776932878095557/100000000000000000","economic":"39/50","technical":"2115579143/100000000000","governance":"3/5"},"treasuryWithdrawals":"1202763742648289/100000000000000000"},"constitutionalCommitteeMinSize":4,"constitutionalCommitteeMaxTermLength":8,"governanceActionLifetime":0,"governanceActionDeposit":{"ada":{"lovelace":764753}},"delegateRepresentativeDeposit":{"ada":{"lovelace":170050}},"delegateRepresentativeMaxIdleTime":0,"plutusCostModels":{"plutus:v3":[16,-6,-2,11,-7,-9,-2,7,7,9,11,14,8,9,2,2,-11,2,-4,5,-5,7,13,7,8,-1,3,6,2,-1,0,-12,6,-4,-5,5,11,13,-16,9,9,8,-1,-11,1,-10,10,10,-13,-9,-16,0,0,-6,14,16,1,3,5,5,0,15,14,-8,7,7,-4,-12,9,-10,14,0,5,15,7,-13,3,-11,-9,6,15,-12,0,-5,-1,-6,-9,-14,12,5,5,9,-15,-13,1,-9,-14,2,-10,13,-10,9,-9,5,-16,0,-1,-3,3,14,-14,-2,-2,2,9,-10,-14,6,7,15,-7,0,2,-9,15,15,-10,-5,-10,7,14,5,-9,9,-5,8,-12,-9,-6,10,-13,10,-15,5,-7,-8,10,8,1,-16,-12,-2,-6,11,9,-13,-1,-3,-2,13,-9,-7,-1,-8,9,-11,4,-8,14,-9,6,8,-14,0,-14,9,-12,0,-2,-6,-12,16,1,7,9,-9,3,-4,-11,13,10,6,15,-2,-15,-4,-3,12,-16,10,16,7,-14,-14,-16,-14,-6,15,4,12,-6,-8,-11,8,3,0,4,-12,-8,0,-4,-9,3,10,2,-9,-11,-4,-16,9,-5,-6,-15,6,-15,-15,5,-10,-2,15,-2,2,-2,-8,11,7,-10,-7,10,9,12]},"minFeeReferenceScripts":{"base":2.636912860908049e14,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/007.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/007.json new file mode 100644 index 0000000000..64ae531a9f --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/007.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://et5ka.4Xag8l4P1m2rOkseqQZivfJNw2fJmePXGHojXhoG7P-2.com","hash":"9c76e7aea56bf168702f8526757963fd91f217d25566cb69ad1999d2c07dc18c"},"guardrails":{"hash":"6d520a75384539acfee7b2d01f508e9af66773ee241badbcb3d78cf0"}},"constitutionalCommittee":{"members":[{"from":"verificationKey","id":"67de9d680082b9043c83db7cbb32f8a0fdaeed05f5be693274666755","mandate":{"epoch":6}},{"from":"verificationKey","id":"c24a106dd312c25cf7ce9c5b28120f3765a13aecb31cd5d898ea3a7b","mandate":{"epoch":12}}],"quorum":"955112733306579/3125000000000000"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"128453736247/250000000000","constitutionalCommittee":{"default":"240950307/250000000","stateOfNoConfidence":"0/1"},"hardForkInitiation":"8679739/10000000","protocolParametersUpdate":{"security":"397423059171/500000000000"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"216716917/1000000000","constitutionalCommittee":{"default":"855262446170721/1000000000000000","stateOfNoConfidence":"3617807561/10000000000"},"constitution":"47895697603/125000000000","hardForkInitiation":"5177/50000","protocolParametersUpdate":{"network":"98646746715625779/250000000000000000","economic":"6854727/10000000","technical":"13592273651/100000000000","governance":"2257/12500"},"treasuryWithdrawals":"6271/25000"},"constitutionalCommitteeMinSize":4,"constitutionalCommitteeMaxTermLength":8,"governanceActionLifetime":7,"governanceActionDeposit":{"ada":{"lovelace":0}},"delegateRepresentativeDeposit":{"ada":{"lovelace":200418}},"delegateRepresentativeMaxIdleTime":4,"plutusCostModels":{"plutus:v3":[2,8,-14,-11,9,-15,11,-3,4,-9,11,15,-2,-15,-3,-3,9,7,-15,7,12,4,-13,-1,-15,-4,10,-15,0,16,-15,13,-8,-7,15,-6,-4,14,10,9,-11,3,6,1,-8,-15,-6,-10,-14,-9,9,10,10,2,8,-1,-10,0,-9,-4,12,-5,13,12,-10,8,4,-13,7,-11,-16,6,-11,15,11,3,-6,-6,-4,16,5,11,-2,-15,8,8,-5,1,8,7,-5,-5,-13,-13,-9,-3,-16,9,-7,-12,13,-11,-8,3,2,6,-14,-6,13,-3,-2,7,-3,16,-9,-16,-7,-16,-6,-16,-8,10,8,-5,-8,2,-7,3,-5,-12,4,-14,-9,10,-12,-4,7,-1,-5,11,-13,16,-4,-12,-5,-5,13,9,0,16,-13,13,10,1,-3,-4,-16,-10,15,-7,-4,6,0,5,-1,-9,14,10,-1,11,15,-4,-10,-1,14,6,-12,-16,6,6,1,-13,-13,15,2,-1,2,-16,-10,2,2,-16,16,0,-5,-2,16,3,-11,1,-12,-4,16,2,3,3,1,8,2,3,11,-1,9,5,-5,8,9,-10,9,12,-15,-7,13,4,-14,-15,-15,9,-1,6,1,13,-15,-12,11,5,4,-5,13,-5,3,-12,7,13,-15,3,-16,-14,2,-8,6]},"minFeeReferenceScripts":{"base":8.712510026630252e17,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/008.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/008.json new file mode 100644 index 0000000000..c8c7245808 --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/008.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://DUH6IsyGFDeq6UWY9T-0k1ZC2XnGggNAUvP3-6.com","hash":"b7aac7c53d665a8bcffa7cc5a9dc8c6db022d752eaae87bd440b1085faba5f08"},"guardrails":{"hash":"1daa559f6308c82086754ee5be00b650ebb25375138642c177721143"}},"constitutionalCommittee":{"members":[{"from":"script","id":"7dd1f9915447f3fa827843e8063b1d91a19abc13107631510451a016","mandate":{"epoch":12}}],"quorum":"6657651365509/20000000000000"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"79494419109709111/100000000000000000","constitutionalCommittee":{"default":"22768034818953/25000000000000","stateOfNoConfidence":"271421134307/10000000000000"},"hardForkInitiation":"143986440885438783/500000000000000000","protocolParametersUpdate":{"security":"321641346416445173/1000000000000000000"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"3790112001/10000000000","constitutionalCommittee":{"default":"61987/100000","stateOfNoConfidence":"6098517/10000000"},"constitution":"1/5","hardForkInitiation":"74276059/100000000","protocolParametersUpdate":{"network":"667438296873/976562500000","economic":"3422377883/5000000000","technical":"492721696832876271/500000000000000000","governance":"31123376989/100000000000"},"treasuryWithdrawals":"6918605155507783971/10000000000000000000"},"constitutionalCommitteeMinSize":6,"constitutionalCommitteeMaxTermLength":4,"governanceActionLifetime":4,"governanceActionDeposit":{"ada":{"lovelace":87797}},"delegateRepresentativeDeposit":{"ada":{"lovelace":1}},"delegateRepresentativeMaxIdleTime":6,"plutusCostModels":{"plutus:v3":[16,8,-5,4,-4,-13,-2,14,3,-2,-1,8,-11,16,-10,-15,15,11,10,11,-1,-12,10,6,-12,2,-13,-13,-16,-11,12,10,12,-16,-4,-4,3,-13,-14,-13,6,9,-11,-11,4,7,9,-16,-7,4,-14,5,5,-9,14,-9,-1,8,2,6,5,10,-4,-14,-4,1,15,-9,15,-3,8,12,-12,-7,-12,8,2,-15,2,0,-5,0,3,7,-1,-4,-13,-5,10,12,8,-9,-9,15,-2,-2,6,1,10,-15,-5,-6,-4,-15,9,1,15,15,-5,2,11,-15,-16,14,-13,-7,-15,-8,-15,-14,-9,16,13,12,-14,7,-13,2,-8,3,8,2,0,0,4,13,15,-10,9,-10,8,1,-2,15,-15,4,0,-10,-2,2,4,15,6,-9,3,6,-16,11,9,-10,13,2,-9,9,16,3,7,5,14,-13,3,9,15,-6,-5,-4,-4,-4,-10,8,-10,-14,6,-4,6,-16,12,-7,4,-11,-7,-5,-12,2,-12,-11,-14,3,-13,1,11,-3,-16,12,0,-15,-15,-15,-14,1,-12,-7,2,-8,-2,14,-5,3,-6,2,5,13,-1,13,4,13,-1,7,3,15,-6,10,1,-1,7,7,-8,-4,13,-8,-11,-1,-8,-8,-15,-9,7,-2,-13,7,-4]},"minFeeReferenceScripts":{"base":8.237918548036602e13,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file diff --git a/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/009.json b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/009.json new file mode 100644 index 0000000000..6fabf2f0dd --- /dev/null +++ b/server/test/vectors/QueryNetworkGenesisConfiguration/Conway/009.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","method":"queryNetwork/genesisConfiguration","result":{"era":"conway","constitution":{"metadata":{"url":"https://lbiTcNXOtr7FdI4mPklm2loGukBfRvaOVa9g.com","hash":"b2cc3632755693b51f8d267fc98fbacee22ddd2872ec8fc08d63b5d32dc5f890"},"guardrails":{"hash":"9a7895a2cf06765195cb8fbb0cfcaf9a8f1c9f6b4edfe24f32540416"}},"constitutionalCommittee":{"members":[{"from":"script","id":"ac3cd9e04825b7eb646a9374af37a83dfd0568dc6ba6d6ed9be103da","mandate":{"epoch":13}},{"from":"verificationKey","id":"3435fe1e5708982d84ca778adbacfa82638eb9a6b0a86e2705e421dc","mandate":{"epoch":12}}],"quorum":"1/1"},"updatableParameters":{"stakePoolVotingThresholds":{"noConfidence":"4396493909/10000000000","constitutionalCommittee":{"default":"26305613783/50000000000","stateOfNoConfidence":"98705931/125000000"},"hardForkInitiation":"351/1000","protocolParametersUpdate":{"security":"26277107859/62500000000"}},"delegateRepresentativeVotingThresholds":{"noConfidence":"10439/25000","constitutionalCommittee":{"default":"131860837/500000000","stateOfNoConfidence":"3/100"},"constitution":"0/1","hardForkInitiation":"5057419/10000000","protocolParametersUpdate":{"network":"35978787786332781/100000000000000000","economic":"12401939/12500000","technical":"7746909110113/10000000000000","governance":"3/10"},"treasuryWithdrawals":"1/1"},"constitutionalCommitteeMinSize":6,"constitutionalCommitteeMaxTermLength":8,"governanceActionLifetime":6,"governanceActionDeposit":{"ada":{"lovelace":2}},"delegateRepresentativeDeposit":{"ada":{"lovelace":388094}},"delegateRepresentativeMaxIdleTime":0,"plutusCostModels":{"plutus:v3":[-2,-11,14,2,-10,7,0,7,-10,-8,-3,-11,-7,-14,-1,-2,-3,-9,-5,-13,-6,-12,9,4,1,-13,15,-6,13,8,-11,15,1,8,-9,-11,-6,-5,-4,-4,-7,-11,-5,6,14,-7,4,7,-2,-13,-9,-12,-16,-2,11,-8,12,-10,12,-8,-7,-1,-12,8,-7,9,-15,11,-5,3,-11,7,-3,16,-14,11,-16,-15,9,-7,16,2,-10,-6,-9,4,-6,12,10,13,-9,-13,-14,-11,-7,-14,-14,-8,5,5,8,-12,-7,8,-8,-5,-9,-4,14,-9,10,2,-13,-2,1,15,-7,12,-16,15,15,5,3,-14,-6,-10,-6,-9,-7,14,2,-15,5,-8,6,6,11,1,1,-10,-10,13,-2,16,3,-3,11,15,12,-14,-10,-3,9,5,14,5,-16,2,-2,-14,-6,-2,-7,-7,2,9,8,2,8,-11,-12,9,-14,15,-2,-7,-2,7,13,11,-3,-6,10,10,-9,9,-11,-3,-12,12,-7,10,1,-9,-15,-4,-9,5,13,10,-2,-8,10,16,11,-7,-11,-6,16,-15,-1,7,-6,16,14,-15,13,9,0,9,-9,-8,14,-8,-15,-15,15,10,-8,9,-12,3,-8,-5,-8,8,5,16,9,7,-12,14,15,4,15,-3,-16,2,-10,-12,-11]},"minFeeReferenceScripts":{"base":3.6064492320938454e9,"range":25600,"multiplier":1.2}}},"id":null} \ No newline at end of file