Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
nosocfg
Browse files Browse the repository at this point in the history
  • Loading branch information
DevTeamNoso committed Dec 12, 2022
1 parent 175b3b5 commit c2c8bcd
Show file tree
Hide file tree
Showing 22 changed files with 372 additions and 181 deletions.
45 changes: 45 additions & 0 deletions formliqpool.lfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
object Form7: TForm7
Left = 381
Height = 400
Top = 331
Width = 640
Caption = 'Liquidity pool'
ClientHeight = 400
ClientWidth = 640
Position = poDesktopCenter
ShowInTaskBar = stAlways
LCLVersion = '2.2.4.0'
object PageControl1: TPageControl
Left = 0
Height = 400
Top = 0
Width = 640
ActivePage = TabConsole
Align = alClient
TabIndex = 1
TabOrder = 0
object TabTrade: TTabSheet
Caption = 'Trade'
end
object TabConsole: TTabSheet
Caption = 'Console'
ClientHeight = 372
ClientWidth = 632
object Memo1: TMemo
Left = 0
Height = 372
Top = 0
Width = 632
Align = alClient
Color = clBlack
Font.CharSet = ANSI_CHARSET
Font.Color = clWhite
Font.Name = 'Consolas'
Font.Pitch = fpFixed
Font.Quality = fqDraft
ParentFont = False
TabOrder = 0
end
end
end
end
5 changes: 5 additions & 0 deletions formliqpool.lrj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{"version":1,"strings":[
{"hash":188446316,"name":"tform7.caption","sourcebytes":[76,105,113,117,105,100,105,116,121,32,112,111,111,108],"value":"Liquidity pool"},
{"hash":5998501,"name":"tform7.tabtrade.caption","sourcebytes":[84,114,97,100,101],"value":"Trade"},
{"hash":174433893,"name":"tform7.tabconsole.caption","sourcebytes":[67,111,110,115,111,108,101],"value":"Console"}
]}
59 changes: 59 additions & 0 deletions formliqpool.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
unit formliqpool;

{$mode ObjFPC}{$H+}

interface

uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, StdCtrls,
fphttpclient;

type

{ TForm7 }

TForm7 = class(TForm)
Memo1: TMemo;
PageControl1: TPageControl;
TabConsole: TTabSheet;
TabTrade: TTabSheet;
private

public

end;

Function PostMessageToHost(host:string;port:integer;message:string):string;

var
Form7: TForm7;

IMPLEMENTATION

Function PostMessageToHost(host:string;port:integer;message:string):string;
var
HTTPClient: TFPHTTPClient;
Resultado : String = '';
RequestBodyStream: TStringStream;
{ No need for the params string list }
begin
Result := '';
HTTPClient := TFPHTTPClient.Create(nil);
RequestBodyStream:= TStringStream.Create(message, TEncoding.UTF8);
HTTPClient.IOTimeout:=3000; //
TRY
HTTPClient.AllowRedirect := True; // <-- I always forget this LOL!!
HTTPClient.RequestBody:= RequestBodyStream;
Resultado := HTTPClient.Post('http://'+host+':'+Port.ToString);
Except on E:Exception do
Resultado := 'ERROR : '+E.Message;
end;
Result := Resultado;
RequestBodyStream.Free;
HTTPClient.Free;
End;

{$R *.lfm}

END.

4 changes: 3 additions & 1 deletion formlog.lfm
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ object Form5: TForm5
Height = 320
Top = 119
Width = 480
Caption = 'Log'
Caption = 'Log - Nosolite'
ClientHeight = 320
ClientWidth = 480
Constraints.MinHeight = 320
Constraints.MinWidth = 480
Position = poWorkAreaCenter
ShowInTaskBar = stAlways
LCLVersion = '2.2.4.0'
object memolog: TMemo
Left = 0
Expand Down
2 changes: 1 addition & 1 deletion formlog.lrj
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{"version":1,"strings":[
{"hash":21335,"name":"tform5.caption","sourcebytes":[76,111,103],"value":"Log"}
{"hash":51962405,"name":"tform5.caption","sourcebytes":[76,111,103,32,45,32,78,111,115,111,108,105,116,101],"value":"Log - Nosolite"}
]}
1 change: 1 addition & 0 deletions formnetwork.lfm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ object Form6: TForm6
Constraints.MinHeight = 400
Constraints.MinWidth = 640
Position = poMainFormCenter
ShowInTaskBar = stAlways
LCLVersion = '2.2.4.0'
object LabelNodes: TLabel
Left = 0
Expand Down
47 changes: 31 additions & 16 deletions languages/nosolite.es.po
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,14 @@ msgstr ""
msgid "Connecting..."
msgstr ""

#: nl_language.rsgui0051
msgid "Connect to Liquidity pool"
msgstr ""

#: nl_language.rsgui0052
msgid "Entered Noso address not present on wallet"
msgstr ""

#: tform1.button1.caption
msgctxt "tform1.button1.caption"
msgid "Submit"
Expand Down Expand Up @@ -410,6 +418,7 @@ msgid "Checking nodes"
msgstr ""

#: tform1.label1.caption
msgctxt "tform1.label1.caption"
msgid "Liquidity pool"
msgstr ""

Expand Down Expand Up @@ -572,11 +581,6 @@ msgstr ""
msgid "Locked balance"
msgstr ""

#: tform1.labelnodes.caption
msgctxt "tform1.labelnodes.caption"
msgid " "
msgstr ""

#: tform1.labelpoolmainprice.caption
msgid "LabelPoolMainPrice"
msgstr ""
Expand Down Expand Up @@ -660,6 +664,10 @@ msgstr ""
msgid "Show log"
msgstr ""

#: tform1.menuitem13.caption
msgid "Liquidity Pool"
msgstr ""

#: tform1.menuitem15.caption
msgid "Certificate"
msgstr ""
Expand Down Expand Up @@ -755,6 +763,7 @@ msgid "Deposit Noso to your account"
msgstr ""

#: tform1.sbpooltrade.caption
msgctxt "tform1.sbpooltrade.caption"
msgid "Trade"
msgstr ""

Expand Down Expand Up @@ -824,15 +833,6 @@ msgctxt "tform1.tabliqpool.caption"
msgid "Liqpool"
msgstr ""

#: tform1.tablog.caption
msgctxt "tform1.tablog.caption"
msgid "Log"
msgstr "Historial"

#: tform1.tabnodes.caption
msgid "Nodes"
msgstr "Nodos"

#: tform1.tabsheet1.caption
msgid "Trades"
msgstr ""
Expand Down Expand Up @@ -886,7 +886,7 @@ msgid "Request"
msgstr ""

#: tform4.caption
msgid "Form4"
msgid "Starting"
msgstr ""

#: tform4.label1.caption
Expand All @@ -899,8 +899,9 @@ msgstr ""

#: tform5.caption
#, fuzzy
#| msgid "Log"
msgctxt "tform5.caption"
msgid "Log"
msgid "Log - Nosolite"
msgstr "Historial"

#: tform6.caption
Expand All @@ -912,6 +913,20 @@ msgctxt "tform6.labelnodes.caption"
msgid " "
msgstr ""

#: tform7.caption
msgctxt "tform7.caption"
msgid "Liquidity pool"
msgstr ""

#: tform7.tabconsole.caption
msgid "Console"
msgstr ""

#: tform7.tabtrade.caption
msgctxt "tform7.tabtrade.caption"
msgid "Trade"
msgstr ""

#: tformexplorer.butaccept.hint
msgctxt "tformexplorer.butaccept.hint"
msgid "Accept"
Expand Down
46 changes: 30 additions & 16 deletions languages/nosolite.pot
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,14 @@ msgstr ""
msgid "Connecting..."
msgstr ""

#: nl_language.rsgui0051
msgid "Connect to Liquidity pool"
msgstr ""

#: nl_language.rsgui0052
msgid "Entered Noso address not present on wallet"
msgstr ""

#: tform1.button1.caption
msgctxt "tform1.button1.caption"
msgid "Submit"
Expand Down Expand Up @@ -382,6 +390,7 @@ msgid "Checking nodes"
msgstr ""

#: tform1.label1.caption
msgctxt "tform1.label1.caption"
msgid "Liquidity pool"
msgstr ""

Expand Down Expand Up @@ -536,11 +545,6 @@ msgstr ""
msgid "Locked balance"
msgstr ""

#: tform1.labelnodes.caption
msgctxt "tform1.labelnodes.caption"
msgid " "
msgstr ""

#: tform1.labelpoolmainprice.caption
msgid "LabelPoolMainPrice"
msgstr ""
Expand Down Expand Up @@ -619,6 +623,10 @@ msgstr ""
msgid "Show log"
msgstr ""

#: tform1.menuitem13.caption
msgid "Liquidity Pool"
msgstr ""

#: tform1.menuitem15.caption
msgid "Certificate"
msgstr ""
Expand Down Expand Up @@ -712,6 +720,7 @@ msgid "Deposit Noso to your account"
msgstr ""

#: tform1.sbpooltrade.caption
msgctxt "tform1.sbpooltrade.caption"
msgid "Trade"
msgstr ""

Expand Down Expand Up @@ -780,15 +789,6 @@ msgstr ""
msgid "Liqpool"
msgstr ""

#: tform1.tablog.caption
msgctxt "tform1.tablog.caption"
msgid "Log"
msgstr ""

#: tform1.tabnodes.caption
msgid "Nodes"
msgstr ""

#: tform1.tabsheet1.caption
msgid "Trades"
msgstr ""
Expand Down Expand Up @@ -840,7 +840,7 @@ msgid "Request"
msgstr ""

#: tform4.caption
msgid "Form4"
msgid "Starting"
msgstr ""

#: tform4.label1.caption
Expand All @@ -853,7 +853,7 @@ msgstr ""

#: tform5.caption
msgctxt "tform5.caption"
msgid "Log"
msgid "Log - Nosolite"
msgstr ""

#: tform6.caption
Expand All @@ -865,6 +865,20 @@ msgctxt "tform6.labelnodes.caption"
msgid " "
msgstr ""

#: tform7.caption
msgctxt "tform7.caption"
msgid "Liquidity pool"
msgstr ""

#: tform7.tabconsole.caption
msgid "Console"
msgstr ""

#: tform7.tabtrade.caption
msgctxt "tform7.tabtrade.caption"
msgid "Trade"
msgstr ""

#: tformexplorer.butaccept.hint
msgid "Accept"
msgstr ""
Expand Down
Loading

0 comments on commit c2c8bcd

Please sign in to comment.