Skip to content

Commit 834c08e

Browse files
Tests fixed
1 parent 035dba9 commit 834c08e

File tree

12 files changed

+24
-29
lines changed

12 files changed

+24
-29
lines changed

.github/workflows/sonar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ jobs:
4545
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4646
shell: powershell
4747
run: |
48-
.\.sonar\scanner\dotnet-sonarscanner begin /k:"mavrykdynamics_netmavryk" /o:"baking-bad" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
48+
.\.sonar\scanner\dotnet-sonarscanner begin /k:"mavrykdynamics_netmavryk" /o:"mavrykdynamics" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
4949
dotnet build
5050
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

Netmavryk.Ledger/MavrykLedgerClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class MavrykLedgerClient : LedgerClientBase
1616
readonly byte MavrykWalletCLA = 0x80;
1717
readonly byte[] KeyPath;
1818

19-
enum Instruction { // taken from https://github.com/obsidiansystems/ledger-app-tezos/blob/master/APDUs.md
19+
enum Instruction { // taken from https://github.com/mavryk-network/ledger-app-mavryk-wallet/blob/main/app/docs/apdu.md
2020
InsVersion = 0x00,
2121
InsGetPublicKey = 0x02,
2222
InsPromptPublicKey = 0x03,

Netmavryk.Tests/Encoding/MichelineEncodingTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static string CreateDeepOption(int depth)
3939
return $@"{{""prim"":""option"",""args"":[{CreateDeepOption(depth - 1)}]}}";
4040
}
4141

42-
var json1 = CreateDeepOption(12_000);
42+
var json1 = CreateDeepOption(5_000);
4343
var m1 = Micheline.FromJson(json1);
4444
var b1 = m1.ToBytes();
4545
Assert.NotNull(m1);
@@ -58,7 +58,7 @@ static string CreateDeepPair(int depth)
5858
return $@"{{""prim"":""pair"",""args"":[{{""prim"":""unit""}},{CreateDeepPair(depth - 1)}],""annots"":[""%d{depth}""]}}";
5959
}
6060

61-
var json2 = CreateDeepPair(10_000);
61+
var json2 = CreateDeepPair(5_000);
6262
var m2 = Micheline.FromJson(json2);
6363
var b2 = m2.ToBytes();
6464
Assert.NotNull(m2);

Netmavryk.Tests/Keys/Samples/key-conversion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ length=$(jq length <<< "$json_content")
1414
for ((i = 0; i < length; i++)); do
1515
current_pk=$(jq -r ".[$i].pub" <<< "$json_content")
1616
echo "Current pk for entry $i is $current_pk. New pkh:"
17-
key=$(kubectl exec -it mavryk-baking-node-0 -c octez-node -- octez-client import public key taquito unencrypted:$current_pk --force > key)
17+
key=$(kubectl exec -it mavryk-baking-node-0 -c mavkit-node -- mavkit-client import public key taquito unencrypted:$current_pk --force > key)
1818
new_pkh=$(grep -o '\<mv3[^[:space:]]*' key)
1919
echo $new_pkh
2020

Netmavryk.Tests/Rpc/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"node": "https://rpc.tzkt.io/mainnet/",
2+
"node": "https://rpc.mavryk.network/",
33
"testContract": "KT1WPEis2WhAc2FciM2tZVn8qe6pCBe9HkDp",
44
"testEntrypoint": "Action",
55
"testDelegate": "mv3Mr9TnZnjJDLUtD5ZyLDLxLBFwaTdQzbvt",

Netmavryk.Tests/Rpc/settings_ithaca.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"node": "https://rpc.tzkt.io/ithacanet/",
2+
"node": "https://atlasnet.rpc.mavryk.network",
33
"testContract": "KT1GHz4zehbss9hxsYsTbppRgozXxaLJLM2R",
44
"testEntrypoint": "do",
55
"testDelegate": "mv1NszgcMUUhWe4XkWmupruw3DWuGEKi2EmL",

Netmavryk.Tests/Rpc/settings_oxford.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"node": "https://rpc.tzkt.io/oxfordnet/",
2+
"node": "https://atlasnet.rpc.mavryk.network/",
33
"testContract": "KT1XtHJBXF3aAwggHrZh1fUbzaHc5MmB6QDs",
44
"testEntrypoint": "default",
55
"testDelegate": "mv1CyTQb22Pg5wYSEEvbbQx15aSST23UMt8B",

Netmavryk/Rpc/Queries/IssuanceQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class IssuanceQuery : RpcQuery
1616
public RpcObject CurrentYearlyRateExact => new(this, "current_yearly_rate_exact/");
1717

1818
/// <summary>
19-
/// Returns the expected issued tez for the provided block and the next five cycles.
19+
/// Returns the expected issued mav for the provided block and the next five cycles.
2020
/// </summary>
2121
public RpcObject ExpectedIssuance => new(this, "expected_issuance/");
2222

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Do not hesitate to use [GitHub issue tracker](https://github.com/mavryk-network/
3030

3131
### Support
3232

33-
Feel free to join our [Discord server](https://discord.gg/aG8XKuwsQd), [Telegram chat](https://t.me/baking_bad_chat), or find us in [Mavryk Dev Slack](https://tezos-dev.slack.com/archives/CV5NX7F2L).
33+
Feel free to join our [Discord server](https://discord.com/invite/FXYQyVf6fE) or [Telegram chat](https://t.me/MavrykNetwork).
3434
We will be glad to hear any feedback and feature requests and will try to help you with general use cases of the Netmavryk library.
3535

3636
## Getting started
@@ -109,8 +109,3 @@ var result = await rpc.Inject.Operation.PostAsync(bytes.Concat(signature));
109109
````
110110

111111
That is it. We have successfully injected our first operation into the Mavryk blockchain.
112-
113-
## Useful links
114-
115-
- [Examples of Netmavryk usage](https://baking-bad.org/blog/2019/11/14/tezos-c-sdk-examples-of-netezos-usage/)
116-
- [Forge an operation locally and sign it using Ledger](https://baking-bad.org/blog/2019/12/30/tezos-c-sdk-netezos-forge-an-operation-locally-and-sign-it-using-ledger-wallet/)

docs/docs/call-smart-contracts.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ A full working code snippet of calling FA1.2 and FA2 transfers with Netmavryk SD
1212
## Prerequisites
1313

1414
First, we need an `Rpc` to interaction. You can find a more detailed description of working with the `Rpc`
15-
in the [Mavryk Rpc](mavryk-rpc.html) section. In our case we use the RPC with the `ghostnet` network.
15+
in the [Mavryk Rpc](mavryk-rpc.html) section. In our case we use the RPC with the `basenet` network.
1616

1717
```cs
18-
var rpc = new MavrykRpc("https://rpc.tzkt.io/ghostnet/");
18+
var rpc = new MavrykRpc("https://basenet.rpc.mavryk.network/");
1919
```
2020

2121
Also, we need a wallet to call contracts. You can find a more detailed description of working with the `Key` in the [Get started](get-started.html) section.
22-
You can use the address to get some test tokens with the [Mavryk Faucet Bot](https://t.me/tezos_faucet_bot) or even generate a new key.
22+
You can use the address to get some test tokens with the [Mavryk Faucet](https://mavrykdynamics.com) or even generate a new key.
2323

2424
```cs
2525
var key = Key.FromBase58("edsk35mfZXZJiYUxqcmsK5K6ggg3owD2dpbRgFHp4zZzmrPy9RBdj8");
@@ -63,7 +63,7 @@ var cs = new ContractScript(code);
6363
```
6464

6565
To build the parameter for your transfer we need to know the entrypoint schema. You can check the parameter schema on the
66-
[TzKT Explorer](https://ghostnet.tzkt.io/KT1EwXFWoG9bYebmF4pYw72aGjwEnBWefgW5/entrypoints) or you can get the schema from the `ContractScript`
66+
[MvKT Explorer](https://basenet.api.mavryk.network/KT1EwXFWoG9bYebmF4pYw72aGjwEnBWefgW5/entrypoints) or you can get the schema from the `ContractScript`
6767

6868
```cs
6969
var schemaString = cs.Entrypoints["transfer"].Humanize();
@@ -132,7 +132,7 @@ var cs = new ContractScript(code);
132132
```
133133

134134
To build the parameter for your transfer we need to know the entrypoint schema. You can check the parameter schema on the
135-
[TzKT Explorer](https://ghostnet.tzkt.io/KT1DYk1XDzHredJq1EyNkDindiWDqZyekXGj/entrypoints) or you can get the schema from the `ContractScript`
135+
[MvKT Explorer](https://basenet.api.mavryk.network/KT1DYk1XDzHredJq1EyNkDindiWDqZyekXGj/entrypoints) or you can get the schema from the `ContractScript`
136136

137137
```cs
138138
var schemaString = cs.Entrypoints["transfer"].Humanize();

0 commit comments

Comments
 (0)