@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.
- package/dist/alephium-web3.min.js +1 -1
- package/dist/alephium-web3.min.js.map +1 -1
- package/dist/src/contract/deployment.d.ts +19 -0
- package/dist/src/contract/deployment.js +19 -0
- package/dist/src/contract/index.d.ts +1 -0
- package/dist/src/contract/index.js +1 -0
- package/package.json +1 -1
- package/src/contract/deployment.ts +40 -0
- package/src/contract/index.ts +1 -0
|
@@ -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 });
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|
package/src/contract/index.ts
CHANGED