@stellar-expert/ui-framework 1.13.6 → 1.13.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,9 +22,9 @@ export default function InvocationInfoView({contract, func, args, result, sac})
|
|
|
22
22
|
<code>{func}({args.map((arg, i) => <ScValStruct key={i} separate={args.length - i}>
|
|
23
23
|
<ScVal value={arg} nested/>
|
|
24
24
|
</ScValStruct>)})<InvocationResult result={result}/></code>
|
|
25
|
-
<Tooltip trigger={<i className="trigger icon-info"/>} desiredPlace="top" activation="click" maxWidth="Min(60em, 40vw)">
|
|
25
|
+
{!!contract && <Tooltip trigger={<i className="trigger icon-info"/>} desiredPlace="top" activation="click" maxWidth="Min(60em, 40vw)">
|
|
26
26
|
<ExtendedInvocationInfoView {...{contract, func, args, result, sac}}/>
|
|
27
|
-
</Tooltip
|
|
27
|
+
</Tooltip>}{' '}
|
|
28
28
|
</>
|
|
29
29
|
}
|
|
30
30
|
|
package/contract/sc-val.js
CHANGED
|
@@ -63,7 +63,7 @@ export const ScVal = React.memo(function ScVal({value, nested = false, indent =
|
|
|
63
63
|
case 'nonceKey':
|
|
64
64
|
return <>{val.nonce()._value.toString()}<ScValType type="nonce"/></>
|
|
65
65
|
case 'instance':
|
|
66
|
-
return
|
|
66
|
+
return <span className="word-break">{val._attributes.executable.wasmHash().toString('hex')}<ScValType type="wasm"/></span>
|
|
67
67
|
case 'error':
|
|
68
68
|
const errMessage = value.toXDR('base64')
|
|
69
69
|
return <><span className="condensed" title={errMessage}>{shortenString(errMessage, 50)}</span><ScValType type="error"/></>
|
|
@@ -26,10 +26,10 @@ export function EffectDescription({effect, operation}) {
|
|
|
26
26
|
return <>Account <AccountAddress account={effect.source}/> removed</>
|
|
27
27
|
case 'accountCredited':
|
|
28
28
|
return <><Amount asset={effect.asset} amount={effect.amount} adjust/> credited to
|
|
29
|
-
{effect.source.startsWith('C') ? 'contract' : 'account'} <AccountAddress account={effect.source}/></>
|
|
29
|
+
{effect.source.startsWith('C') ? ' contract' : ' account'} <AccountAddress account={effect.source}/></>
|
|
30
30
|
case 'accountDebited':
|
|
31
31
|
return <><Amount asset={effect.asset} amount={effect.amount} adjust/> debited from
|
|
32
|
-
{effect.source.startsWith('C') ? 'contract' : 'account'} <AccountAddress account={effect.source}/></>
|
|
32
|
+
{effect.source.startsWith('C') ? ' contract' : ' account'} <AccountAddress account={effect.source}/></>
|
|
33
33
|
case 'accountThresholdsUpdated':
|
|
34
34
|
return <>Account <AccountAddress account={effect.source}/> set thresholds to {effect.thresholds.join('/')}</>
|
|
35
35
|
case 'accountHomeDomainUpdated':
|
|
@@ -220,7 +220,7 @@ export function EffectDescription({effect, operation}) {
|
|
|
220
220
|
case 'contractInvoked':
|
|
221
221
|
return <>{effect.depth > 0 &&
|
|
222
222
|
<i className="icon-level-down text-tiny color-primary" style={{paddingLeft: (effect.depth - 1) + 'em'}}/>}
|
|
223
|
-
|
|
223
|
+
Invoked contract <AccountAddress account={effect.contract}/>{' '}
|
|
224
224
|
<InvocationInfoView func={effect.function} args={effect.rawArgs} contract={effect.contract} result={effect.result} sac={operation.operation.sacMap?.[effect.contract]}/>
|
|
225
225
|
</>
|
|
226
226
|
case 'contractEvent':
|
|
@@ -309,6 +309,12 @@ function ContractDetails({effect}) {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
+
function ConstructorDetails({effect}) {
|
|
313
|
+
if (!effect.constructorArgs?.length)
|
|
314
|
+
return null
|
|
315
|
+
return <span>{' '}<InvocationInfoView func="__constructor" args={effect.constructorArgs}/></span>
|
|
316
|
+
}
|
|
317
|
+
|
|
312
318
|
function ContractCodeWasm({wasm}) {
|
|
313
319
|
return <>
|
|
314
320
|
<code title={wasm}>{shortenString(wasm, 16)}</code>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stellar-expert/ui-framework",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.8",
|
|
4
4
|
"description": "StellarExpert shared UI components library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"author": "orbitlens <orbit@stellar.expert>",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@stellar/stellar-base": "^
|
|
18
|
-
"@stellar/stellar-sdk": "^
|
|
17
|
+
"@stellar/stellar-base": "^13.0.0",
|
|
18
|
+
"@stellar/stellar-sdk": "^13.0.0",
|
|
19
19
|
"@stellar-expert/asset-descriptor": "^1.3.3",
|
|
20
20
|
"@stellar-expert/claimable-balance-utils": "^1.4.1",
|
|
21
21
|
"@stellar-expert/client-cache": "github:stellar-expert/client-cache",
|
|
@@ -809,6 +809,7 @@ function InvokeHostFunctionView({op, compact}) {
|
|
|
809
809
|
<OpSourceAccount op={op}/> uploaded contract code {codeReference}
|
|
810
810
|
</>
|
|
811
811
|
case 'createContract':
|
|
812
|
+
case 'createContractV2':
|
|
812
813
|
const preimage = value.contractIdPreimage()
|
|
813
814
|
const executable = value.executable()
|
|
814
815
|
const executableType = executable.switch().name
|
|
@@ -836,6 +837,12 @@ function InvokeHostFunctionView({op, compact}) {
|
|
|
836
837
|
}
|
|
837
838
|
break
|
|
838
839
|
}
|
|
840
|
+
if (func.arm() === 'createContractV2') {
|
|
841
|
+
const args = value.constructorArgs() //array
|
|
842
|
+
if (args.length > 0) {
|
|
843
|
+
contractProps = <>{contractProps} with <InvocationInfoView func="__constructor" args={args}/></>
|
|
844
|
+
}
|
|
845
|
+
}
|
|
839
846
|
if (op.isEphemeral)
|
|
840
847
|
return <>
|
|
841
848
|
<b>Create contract</b> <AccountAddress account={contract}/> from {contractProps}<OpSourceAccount op={op}/>
|