Skip to content

Commit

Permalink
🔨 refactor: Update modules in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheus Nascimento committed Mar 17, 2024
1 parent 6e4e881 commit e9f9c11
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 23 deletions.
3 changes: 2 additions & 1 deletion docs/docs/indy/examples/test-local-webserver-network.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ from fogbed import (
)
import time

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
setLogLevel('info')


Expand Down
Empty file removed docs/docs/iota/README.md
Empty file.
9 changes: 4 additions & 5 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ theme:
- content.code.copy
language: en

repo_name: larsid/fogledger
repo_url: https://github.com/larsid/fogledger/
repo_name: larsid/fogledger-indy
repo_url: https://github.com/MatheusNascimentoti99/FogLedger-Indy/
edit_uri: ""

extra:
Expand All @@ -38,7 +38,7 @@ extra:
link: https://www.linkedin.com/in/matheus-nascimento-322a0b181/

copyright: |
&copy; 2023 <a href="https://github.com/larsid/fogledger/" target="_blank" rel="noopener">LARSID</a>
&copy; 2023 <a href="https://github.com/MatheusNascimentoti99/FogLedger-Indy/" target="_blank" rel="noopener">LARSID</a>
markdown_extensions:
- pymdownx.highlight:
Expand Down Expand Up @@ -68,5 +68,4 @@ nav:
- Using Webserver: 'indy/examples/test-local-webserver-network.md'
- Distributed Emulation: 'indy/examples/test-distributed-network.md'
- Resources:
- Webserver: 'indy/resources/webserver.md'
- IOTA Tangle: 'iota/README.md'
- Webserver: 'indy/resources/webserver.md'
3 changes: 2 additions & 1 deletion examples/indy/test-distributed-aca-py-network.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
setLogLevel, FogbedDistributedExperiment, Worker
)

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
setLogLevel('info')


Expand Down
3 changes: 2 additions & 1 deletion examples/indy/test-distributed-fog-network.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import time
import os

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
setLogLevel('info')


Expand Down
3 changes: 2 additions & 1 deletion examples/indy/test-distributed-gcp-network-n_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import time
import os

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
setLogLevel('info')


Expand Down
3 changes: 2 additions & 1 deletion examples/indy/test-distributed-larsid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
)
import time

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
setLogLevel('info')


Expand Down
3 changes: 2 additions & 1 deletion examples/indy/test-distributed-network-n_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
)
import time

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
setLogLevel('info')


Expand Down
3 changes: 2 additions & 1 deletion examples/indy/test-distributed-network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from fogbed import (FogbedDistributedExperiment, Worker
)

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic

if (__name__ == '__main__'):

Expand Down
3 changes: 2 additions & 1 deletion examples/indy/test-distributed-simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import time
import os

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
setLogLevel('info')


Expand Down
3 changes: 2 additions & 1 deletion examples/indy/test-local-aca-py-network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
FogbedExperiment, Container, VirtualInstance,
setLogLevel,
)
from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
import time

setLogLevel('info')
Expand Down
6 changes: 3 additions & 3 deletions examples/indy/test-local-gcp-network-n_nodes.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import List
from fogbed import (
Container, VirtualInstance,
setLogLevel, FogbedDistributedExperiment, Worker, Controller
setLogLevel, FogbedDistributedExperiment, Worker
)
import time
import os

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
setLogLevel('info')


Expand Down
3 changes: 2 additions & 1 deletion examples/indy/test-local-network.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
)
import time

from fogledgerIndy import (IndyBasic, Node)
from fogledgerIndy.Node import Node
from fogledgerIndy.IndyBasic import IndyBasic
setLogLevel('info')


Expand Down
2 changes: 1 addition & 1 deletion fogledgerIndy/IndyBasic.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import uuid
import re
import numpy
from Node import (Node)
from fogledgerIndy.Node import (Node)
class IndyBasic:
def __init__(
self,
Expand Down
2 changes: 0 additions & 2 deletions fogledgerIndy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
from IndyBasic import (IndyBasic)
from Node import (Node)
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@


setup(
name="fogLedger-indy",
version="2.1.1",
name="fogLedgerIndy",
version="1.0.0",
description='Plugin to build DLTs Indy in Fogbed.',
long_description='Plugin to build DLT Indy in Fogbed\
The FogLedger is a plugin for [Fogbed](https://github.com/larsid/fogbed). It allows you to emulate a fog network with distributed ledgers. \
Expand Down

0 comments on commit e9f9c11

Please sign in to comment.