Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,150 --> 00:00:07,170
Now that you know what is remix, let's quickly talk about how it works that you can add files and what
2
00:00:07,170 --> 00:00:08,760
are these files that are already there.
3
00:00:09,060 --> 00:00:15,550
So in the previous versions of Remix, there were no workspaces and this is kind of a new thing and
4
00:00:15,570 --> 00:00:16,710
not so new anymore.
5
00:00:16,920 --> 00:00:19,440
It's already there for a year or around.
6
00:00:20,100 --> 00:00:21,420
But before there were no workspaces.
7
00:00:21,420 --> 00:00:22,440
So what a workspace is.
8
00:00:22,440 --> 00:00:28,930
Workspaces are like folders since remix is not really opening any folder on your hard drive.
9
00:00:28,950 --> 00:00:34,920
I mean, you can technically I think there is a daemon for that, but internally it's kind of meant
10
00:00:34,920 --> 00:00:38,880
to work around these projects and they call these workspaces.
11
00:00:38,880 --> 00:00:44,340
So when you just open remix of the theorems that work for the first time, then you have a default workspace
12
00:00:44,340 --> 00:00:50,010
and you can add new workspaces like new folders over here, and then you can give them a name and you
13
00:00:50,010 --> 00:00:55,770
can even choose a template if you want to use one of those open Zeppelin smart contracts or just the
14
00:00:55,770 --> 00:00:59,700
blank one or the default template, which is this one.
15
00:00:59,700 --> 00:01:01,620
I'm not going to create a new workspace now.
16
00:01:01,650 --> 00:01:09,780
I'm just using the default workspace throughout our course because I think I don't need another workspace.
17
00:01:09,780 --> 00:01:12,270
If you want to create one, if you want to play around with that, fine.
18
00:01:12,540 --> 00:01:16,560
The more important thing is what do you do inside those workspaces?
19
00:01:16,560 --> 00:01:19,560
And that is you can create new files.
20
00:01:19,560 --> 00:01:26,190
And since this is not a normal idea, like a is code or so when you can just like right click, it will
21
00:01:26,220 --> 00:01:30,000
open the context menu of your browser unless you click on a file.
22
00:01:30,030 --> 00:01:36,300
Then you have to, I think, select the folder where you want to create a file and then you create a
23
00:01:36,300 --> 00:01:44,520
new file in there and you can name this for example, my contract dot sole for solidity file and what
24
00:01:44,520 --> 00:01:50,610
will happen, maybe will happen, maybe not is that it gets directly compiled.
25
00:01:50,610 --> 00:01:57,950
And you see now this is really tailored for solidity development because there is an integrated compiler,
26
00:01:57,960 --> 00:02:03,840
there is an integrated test chain and it is also already highlighting solidity code.
27
00:02:03,840 --> 00:02:11,820
So if you write something like a contract, my contract, and then you make curly brackets open and
28
00:02:11,820 --> 00:02:17,450
closed, you see it's already highlighting the right syntax and so on and so forth.
29
00:02:17,460 --> 00:02:23,060
So everything is kind of tailored around of development, which is the nice thing about it.
30
00:02:23,070 --> 00:02:25,380
What happens if the contract is compiled?
31
00:02:25,380 --> 00:02:27,330
It lands in an artifacts folder.
32
00:02:27,630 --> 00:02:28,370
More on that later.
33
00:02:28,380 --> 00:02:29,490
Don't worry about it.
34
00:02:29,490 --> 00:02:36,300
And in remix, since a few version, you also have the option to script stuff because the whole thing
35
00:02:36,300 --> 00:02:37,140
is JavaScript.
36
00:02:37,140 --> 00:02:39,390
So it also injects a JavaScript environment.
37
00:02:39,390 --> 00:02:41,010
It's JavaScript in JavaScript.
38
00:02:41,610 --> 00:02:42,870
How nice can it be?
39
00:02:43,320 --> 00:02:49,020
They also give you sample scripts for deploying smart contract using web free chess or ether as if you
40
00:02:49,020 --> 00:02:49,890
don't know what it is.
41
00:02:49,890 --> 00:02:50,790
Don't worry about it.
42
00:02:50,790 --> 00:02:58,320
We are talking about those libraries later and you can run unit tests, which I never used in remix
43
00:02:58,320 --> 00:03:01,680
and we are maybe going to talk about it in the course.
44
00:03:01,680 --> 00:03:11,460
But normally I do testing of remix inside the Code in Truffle Hard Hat or Foundry Remix also has a JavaScript
45
00:03:11,460 --> 00:03:13,980
console over here on the bottom, so it's interactive.
46
00:03:13,980 --> 00:03:22,170
You can do that free for the free library, the utils stored, I don't know, a free and then create
47
00:03:22,170 --> 00:03:31,590
an Kazak hash of this string that I just entered and that would be the case cache if you don't know
48
00:03:31,590 --> 00:03:32,010
what it is.
49
00:03:32,010 --> 00:03:33,240
Also don't worry about it.
50
00:03:34,170 --> 00:03:37,530
What is important is, you know, you have to file this over here.
51
00:03:37,530 --> 00:03:39,360
You have an editor on the right side.
52
00:03:39,360 --> 00:03:41,430
There is also the small one over here.
53
00:03:41,430 --> 00:03:49,170
Everything is there and there are plugins in remix and those plugins I the whole thing is a is a plugin
54
00:03:49,170 --> 00:03:50,160
architecture.
55
00:03:50,160 --> 00:03:55,980
I think even the file explorer is a plugin, but then you have a compiler which we are talking about
56
00:03:56,190 --> 00:04:03,510
next where you have different versions and so on and you have a deploy and run transaction plugin where
57
00:04:03,510 --> 00:04:10,200
you can actually test your smart contracts and you have a ton of more plugins if you want to, you can
58
00:04:10,200 --> 00:04:10,890
go through them.
59
00:04:10,890 --> 00:04:17,640
Maybe we use the debugger later and I think that's it, what we are going to use in this course because
60
00:04:17,640 --> 00:04:21,570
we are going to move everything off chain of remix.
61
00:04:21,570 --> 00:04:29,310
If you if you go to the settings, then in the settings you have a number of things, but if you like
62
00:04:29,310 --> 00:04:30,930
there is also different themes.
63
00:04:30,930 --> 00:04:39,270
So you can change the Yeah look of remix to something to your liking.
64
00:04:39,270 --> 00:04:44,850
I stay with the dark theme for now, which is a total contrast to the light theme which we did in the
65
00:04:44,850 --> 00:04:45,900
previous course.
66
00:04:45,900 --> 00:04:50,610
In the next lecture, we are going to create the little smart contract.
67
00:04:50,610 --> 00:04:56,430
We are going to start it, stop it and see how we can interact with it from within.
68
00:04:56,430 --> 00:04:57,360
Remix.
7043
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.