File tree Expand file tree Collapse file tree 9 files changed +31
-17
lines changed Expand file tree Collapse file tree 9 files changed +31
-17
lines changed Original file line number Diff line number Diff line change 22
22
submodules : recursive
23
23
- name : Provision Darwin
24
24
run : bash .github/workflows/provision-darwin.sh
25
+ - name : Install mops
26
+ uses : ZenVoich/setup-mops@v1
25
27
- name : Motoko Basic Bitcoin Darwin
26
28
run : |
27
29
dfx start --background
36
38
submodules : recursive
37
39
- name : Provision Linux
38
40
run : bash .github/workflows/provision-linux.sh
41
+ - name : Install mops
42
+ uses : ZenVoich/setup-mops@v1
39
43
- name : Motoko Basic Bitcoin Linux
40
44
run : |
41
45
dfx start --background
Original file line number Diff line number Diff line change 7
7
.vscode /
8
8
target /
9
9
* .old.did
10
- .idea
10
+ .idea
11
+ .mops
Original file line number Diff line number Diff line change 8
8
[submodule "rust/defi/DIP20 "]
9
9
path = rust/defi/src/DIP20
10
10
url = https://github.com/Psychedelic/DIP20.git
11
- [submodule "motoko/basic_bitcoin/motoko-bitcoin "]
12
- path = motoko/basic_bitcoin/motoko-bitcoin
13
- url = https://github.com/tgalal/motoko-bitcoin
14
11
[submodule "svelte/svelte-starter/internet-identity "]
15
12
path = svelte/svelte-starter/internet-identity
16
13
url = https://github.com/dfinity/internet-identity.git
Original file line number Diff line number Diff line change @@ -29,7 +29,15 @@ To clone and build the smart contract in **Motoko**:
29
29
``` bash
30
30
git clone https://github.com/dfinity/examples
31
31
cd examples/motoko/basic_bitcoin
32
- git submodule update --init --recursive
32
+ ```
33
+
34
+ ### Install MOPS
35
+
36
+ [ Install] ( https://docs.mops.one/quick-start#2-install-mops-cli ) the MOPS package
37
+ manager, e.g., by running
38
+
39
+ ``` bash
40
+ curl -fsSL cli.mops.one/install.sh | sh
33
41
```
34
42
35
43
### Acquire cycles to deploy
Original file line number Diff line number Diff line change 14
14
"log_level" : " info"
15
15
},
16
16
"build" : {
17
- "packtool" : " " ,
17
+ "packtool" : " mops sources " ,
18
18
"args" : " "
19
19
}
20
20
},
Original file line number Diff line number Diff line change
1
+ [dependencies ]
2
+ base = " 0.11.2"
3
+ bitcoin = " https://github.com/dfinity/motoko-bitcoin#ad3709363bf980d2cab45cce0dea7eda5c97a7ff"
4
+ # sha2 is a transitive dependency and should be removed when `bitcoin` is published on `mops`
5
+ sha2 = " 0.1.0"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ import Nat64 "mo:base/Nat64";
16
16
import Iter "mo:base/Iter" ;
17
17
import Blob "mo:base/Blob" ;
18
18
19
- import EcdsaTypes "../../../motoko- bitcoin/src /ecdsa/Types" ;
20
- import P2pkh "../../../motoko- bitcoin/src /bitcoin/P2pkh" ;
21
- import Bitcoin "../../../motoko- bitcoin/src /bitcoin/Bitcoin" ;
22
- import Address "../../../motoko- bitcoin/src /bitcoin/Address" ;
23
- import Transaction "../../../motoko- bitcoin/src /bitcoin/Transaction" ;
24
- import Script "../../../motoko- bitcoin/src /bitcoin/Script" ;
25
- import Publickey "../../../motoko- bitcoin/src /ecdsa/Publickey" ;
26
- import Der "../../../motoko- bitcoin/src /ecdsa/Der" ;
27
- import Affine "../../../motoko- bitcoin/src /ec/Affine" ;
19
+ import EcdsaTypes "mo: bitcoin/ecdsa/Types" ;
20
+ import P2pkh "mo: bitcoin/bitcoin/P2pkh" ;
21
+ import Bitcoin "mo: bitcoin/bitcoin/Bitcoin" ;
22
+ import Address "mo: bitcoin/bitcoin/Address" ;
23
+ import Transaction "mo: bitcoin/bitcoin/Transaction" ;
24
+ import Script "mo: bitcoin/bitcoin/Script" ;
25
+ import Publickey "mo: bitcoin/ecdsa/Publickey" ;
26
+ import Der "mo: bitcoin/ecdsa/Der" ;
27
+ import Affine "mo: bitcoin/ec/Affine" ;
28
28
29
29
import Types "Types" ;
30
30
import EcdsaApi "EcdsaApi" ;
Original file line number Diff line number Diff line change 1
- import Curves "../../../motoko- bitcoin/src /ec/Curves" ;
1
+ import Curves "mo: bitcoin/ec/Curves" ;
2
2
3
3
module Types {
4
4
public type SendRequest = {
You can’t perform that action at this time.
0 commit comments