@alephium/web3 1.8.4 → 1.8.5

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.
@@ -0,0 +1,19 @@
1
+ import { ContractInstance } from './contract';
2
+ export interface ExecutionResult {
3
+ txId: string;
4
+ unsignedTx: string;
5
+ signature: string;
6
+ gasAmount: number;
7
+ gasPrice: string;
8
+ blockHash: string;
9
+ codeHash: string;
10
+ attoAlphAmount?: string;
11
+ tokens?: Record<string, string>;
12
+ }
13
+ export interface DeployContractExecutionResult<I extends ContractInstance = ContractInstance> extends ExecutionResult {
14
+ contractInstance: I;
15
+ issueTokenAmount?: string;
16
+ }
17
+ export interface RunScriptResult extends ExecutionResult {
18
+ groupIndex: number;
19
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2018 - 2022 The Alephium Authors
4
+ This file is part of the alephium project.
5
+
6
+ The library is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Lesser General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ The library is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU Lesser General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Lesser General Public License
17
+ along with the library. If not, see <http://www.gnu.org/licenses/>.
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,3 +2,4 @@ export * from './ralph';
2
2
  export * from './contract';
3
3
  export * from './events';
4
4
  export * from './script-simulator';
5
+ export * from './deployment';
@@ -35,3 +35,4 @@ __exportStar(require("./ralph"), exports);
35
35
  __exportStar(require("./contract"), exports);
36
36
  __exportStar(require("./events"), exports);
37
37
  __exportStar(require("./script-simulator"), exports);
38
+ __exportStar(require("./deployment"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -0,0 +1,40 @@
1
+ /*
2
+ Copyright 2018 - 2022 The Alephium Authors
3
+ This file is part of the alephium project.
4
+
5
+ The library is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU Lesser General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ The library is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU Lesser General Public License for more details.
14
+
15
+ You should have received a copy of the GNU Lesser General Public License
16
+ along with the library. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+
19
+ import { ContractInstance } from './contract'
20
+
21
+ export interface ExecutionResult {
22
+ txId: string
23
+ unsignedTx: string
24
+ signature: string
25
+ gasAmount: number
26
+ gasPrice: string
27
+ blockHash: string
28
+ codeHash: string
29
+ attoAlphAmount?: string
30
+ tokens?: Record<string, string>
31
+ }
32
+
33
+ export interface DeployContractExecutionResult<I extends ContractInstance = ContractInstance> extends ExecutionResult {
34
+ contractInstance: I
35
+ issueTokenAmount?: string
36
+ }
37
+
38
+ export interface RunScriptResult extends ExecutionResult {
39
+ groupIndex: number
40
+ }
@@ -20,3 +20,4 @@ export * from './ralph'
20
20
  export * from './contract'
21
21
  export * from './events'
22
22
  export * from './script-simulator'
23
+ export * from './deployment'