@alephium/web3 1.0.7-rc.1 → 1.1.0
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 +3 -1
- package/dist/src/api/api-alephium.js +1 -1
- package/dist/src/contract/contract.d.ts +1 -1
- package/dist/src/contract/contract.js +2 -1
- package/dist/src/signer/types.d.ts +1 -0
- package/package.json +2 -2
- package/src/api/api-alephium.ts +3 -1
- package/src/contract/contract.ts +3 -2
- package/src/signer/types.ts +1 -0
|
@@ -218,6 +218,8 @@ export interface BuildExecuteScriptTx {
|
|
|
218
218
|
gasPrice?: string;
|
|
219
219
|
/** @format block-hash */
|
|
220
220
|
targetBlockHash?: string;
|
|
221
|
+
/** @format double */
|
|
222
|
+
gasEstimationMultiplier?: number;
|
|
221
223
|
}
|
|
222
224
|
/** BuildExecuteScriptTxResult */
|
|
223
225
|
export interface BuildExecuteScriptTxResult {
|
|
@@ -1151,7 +1153,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
1151
1153
|
}
|
|
1152
1154
|
/**
|
|
1153
1155
|
* @title Alephium API
|
|
1154
|
-
* @version 3.
|
|
1156
|
+
* @version 3.2.0
|
|
1155
1157
|
* @baseUrl ../
|
|
1156
1158
|
*/
|
|
1157
1159
|
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
@@ -209,7 +209,7 @@ export interface CallContractParams<T extends Arguments = Arguments> {
|
|
|
209
209
|
worldStateBlockHash?: string;
|
|
210
210
|
txId?: string;
|
|
211
211
|
existingContracts?: string[];
|
|
212
|
-
inputAssets?:
|
|
212
|
+
inputAssets?: InputAsset[];
|
|
213
213
|
}
|
|
214
214
|
export interface CallContractResult<R> {
|
|
215
215
|
returns: R;
|
|
@@ -375,7 +375,8 @@ class Contract extends Artifact {
|
|
|
375
375
|
group: groupIndex,
|
|
376
376
|
address: contractAddress,
|
|
377
377
|
methodIndex: methodIndex,
|
|
378
|
-
args: args
|
|
378
|
+
args: args,
|
|
379
|
+
inputAssets: toApiInputAssets(params.inputAssets)
|
|
379
380
|
};
|
|
380
381
|
}
|
|
381
382
|
fromApiCallContractResult(result, txId, methodIndex, getContractByCodeHash) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alephium/web3",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A JS/TS library to interact with the Alephium platform",
|
|
5
5
|
"license": "GPL",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"author": "Alephium dev <dev@alephium.org>",
|
|
35
35
|
"config": {
|
|
36
|
-
"alephium_version": "3.
|
|
36
|
+
"alephium_version": "3.2.0",
|
|
37
37
|
"explorer_backend_version": "1.19.3"
|
|
38
38
|
},
|
|
39
39
|
"type": "commonjs",
|
package/src/api/api-alephium.ts
CHANGED
|
@@ -248,6 +248,8 @@ export interface BuildExecuteScriptTx {
|
|
|
248
248
|
gasPrice?: string
|
|
249
249
|
/** @format block-hash */
|
|
250
250
|
targetBlockHash?: string
|
|
251
|
+
/** @format double */
|
|
252
|
+
gasEstimationMultiplier?: number
|
|
251
253
|
}
|
|
252
254
|
|
|
253
255
|
/** BuildExecuteScriptTxResult */
|
|
@@ -1451,7 +1453,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
1451
1453
|
|
|
1452
1454
|
/**
|
|
1453
1455
|
* @title Alephium API
|
|
1454
|
-
* @version 3.
|
|
1456
|
+
* @version 3.2.0
|
|
1455
1457
|
* @baseUrl ../
|
|
1456
1458
|
*/
|
|
1457
1459
|
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
package/src/contract/contract.ts
CHANGED
|
@@ -590,7 +590,8 @@ export class Contract extends Artifact {
|
|
|
590
590
|
group: groupIndex,
|
|
591
591
|
address: contractAddress,
|
|
592
592
|
methodIndex: methodIndex,
|
|
593
|
-
args: args
|
|
593
|
+
args: args,
|
|
594
|
+
inputAssets: toApiInputAssets(params.inputAssets)
|
|
594
595
|
}
|
|
595
596
|
}
|
|
596
597
|
|
|
@@ -1045,7 +1046,7 @@ export interface CallContractParams<T extends Arguments = Arguments> {
|
|
|
1045
1046
|
worldStateBlockHash?: string
|
|
1046
1047
|
txId?: string
|
|
1047
1048
|
existingContracts?: string[]
|
|
1048
|
-
inputAssets?:
|
|
1049
|
+
inputAssets?: InputAsset[]
|
|
1049
1050
|
}
|
|
1050
1051
|
|
|
1051
1052
|
export interface CallContractResult<R> {
|
package/src/signer/types.ts
CHANGED
|
@@ -103,6 +103,7 @@ export interface SignExecuteScriptTxParams {
|
|
|
103
103
|
tokens?: Token[]
|
|
104
104
|
gasAmount?: number
|
|
105
105
|
gasPrice?: Number256
|
|
106
|
+
gasEstimationMultiplier?: number
|
|
106
107
|
}
|
|
107
108
|
assertType<Eq<keyof SignExecuteScriptTxParams, keyof TxBuildParams<node.BuildExecuteScriptTx>>>()
|
|
108
109
|
export interface SignExecuteScriptTxResult {
|