@alephium/web3 1.11.4 → 1.11.6
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.
- package/dist/alephium-web3.min.js +1 -1
- package/dist/alephium-web3.min.js.map +1 -1
- package/dist/src/api/api-alephium.d.ts +21 -4
- package/dist/src/api/api-alephium.js +1 -1
- package/dist/src/contract/contract.js +1 -1
- package/dist/src/signer/signer.js +1 -1
- package/dist/src/signer/types.d.ts +2 -1
- package/package.json +3 -3
- package/src/api/api-alephium.ts +340 -130
- package/src/contract/contract.ts +1 -1
- package/src/signer/signer.ts +1 -1
- package/src/signer/types.ts +2 -1
package/src/contract/contract.ts
CHANGED
|
@@ -482,7 +482,7 @@ export class Contract extends Artifact {
|
|
|
482
482
|
blockTimeStamp: params.blockTimeStamp,
|
|
483
483
|
txId: params.txId,
|
|
484
484
|
address: params.address,
|
|
485
|
-
|
|
485
|
+
callerContractAddress: params.callerAddress,
|
|
486
486
|
bytecode: this.isInlineFunc(methodIndex) ? this.getByteCodeForTesting() : this.bytecodeDebug,
|
|
487
487
|
initialImmFields: immFields,
|
|
488
488
|
initialMutFields: mutFields,
|
package/src/signer/signer.ts
CHANGED
|
@@ -298,5 +298,5 @@ export function toApiDestinations(data: Destination[]): node.Destination[] {
|
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
export function fromApiDestination(data: node.Destination): Destination {
|
|
301
|
-
return { ...data, attoAlphAmount: fromApiNumber256(data.attoAlphAmount), tokens: fromApiTokens(data.tokens) }
|
|
301
|
+
return { ...data, attoAlphAmount: fromApiNumber256(data.attoAlphAmount ?? '0'), tokens: fromApiTokens(data.tokens) }
|
|
302
302
|
}
|
package/src/signer/types.ts
CHANGED
|
@@ -18,6 +18,7 @@ along with the library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
|
|
19
19
|
import { Number256, Token } from '../api'
|
|
20
20
|
import { node } from '../api'
|
|
21
|
+
import { SimulationResult } from '../api/api-alephium'
|
|
21
22
|
import { Eq, assertType, NetworkId } from '../utils'
|
|
22
23
|
|
|
23
24
|
export type Address = string
|
|
@@ -113,7 +114,7 @@ export interface SignExecuteScriptTxResult {
|
|
|
113
114
|
signature: string
|
|
114
115
|
gasAmount: number
|
|
115
116
|
gasPrice: Number256
|
|
116
|
-
|
|
117
|
+
simulationResult: SimulationResult
|
|
117
118
|
}
|
|
118
119
|
assertType<
|
|
119
120
|
Eq<
|