Add dry-run v2 definition (#6144)

This commit is contained in:
Valentin Fernandez
2025-05-16 09:05:52 -03:00
committed by GitHub
parent dde798d464
commit 08d373ea2c
@@ -37,6 +37,43 @@ export const runtime: DefinitionsCall = {
}
},
version: 1
},
{
methods: {
dry_run_call: {
description: 'Dry run call',
params: [
{
name: 'origin',
type: 'OriginCaller'
},
{
name: 'call',
type: 'RuntimeCall'
},
{
name: 'resultXcmsVersion',
type: 'u32'
}
],
type: 'Result<CallDryRunEffects, XcmDryRunApiError>'
},
dry_run_xcm: {
description: 'Dry run XCM program',
params: [
{
name: 'originLocation',
type: 'VersionedMultiLocation'
},
{
name: 'xcm',
type: 'VersionedXcm'
}
],
type: 'Result<XcmDryRunEffects, XcmDryRunApiError>'
}
},
version: 2
}
]
};