Skip to content

Commit f0ed0ee

Browse files
adds license file to each component.
1 parent 89b5dc6 commit f0ed0ee

File tree

11 files changed

+148
-120
lines changed

11 files changed

+148
-120
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Lockb0X-LLC
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Lockb0X-LLC
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Lockb0X-LLC
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Components/SendFunds/LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Lockb0X-LLC
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

ExampleJsInterop.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 37 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,41 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

3-
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<Nullable>enable</Nullable>
6-
<ImplicitUsings>enable</ImplicitUsings>
7-
<RootNamespace>Pakana_Stellar_Razor_Components</RootNamespace>
8-
<ApplicationIcon>pkcomponents.ico</ApplicationIcon>
9-
<Title>Pakana Stellar Razor Components</Title>
10-
<Company>Lockb0X LLC</Company>
11-
<Authors>Joshua Kassabian, Steven Tomlinson</Authors>
12-
<Description>The Pakana Stellar Razor Components provide a set of powerful and customizable Razor Components for integrating Stellar blockchain functionality seamlessly into your web applications. These components simplify the integration process, offering a user-friendly interface for Stellar transactions and multisignature operations.</Description>
13-
<Copyright>MIT</Copyright>
14-
<RepositoryUrl>https://github.com/lockb0x-llc/Pakana-Stellar-Razor-Components</RepositoryUrl>
15-
<RepositoryType>git</RepositoryType>
16-
<PackageIcon>pkcomponents.png</PackageIcon>
17-
<PackageReleaseNotes>Powered by Stellar Blockchains Latest Protocol 20 Release Supporting Smart Contracts and Blockchain Transactions. Learn more at https://stellar.org/</PackageReleaseNotes>
18-
<PackageTags>Blockchain, Stellar, MultiSig, Components, Razor, Javascript, Html, Finance</PackageTags>
19-
<PackageProjectUrl>https://www.pakana.net/</PackageProjectUrl>
20-
<PackageId>Pre-release-Pakana-Stellar-Razor-Components</PackageId>
21-
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
22-
<PackageReadmeFile>README.md</PackageReadmeFile>
23-
</PropertyGroup>
24-
25-
<ItemGroup>
26-
<Content Include="pkcomponents.ico" />
27-
</ItemGroup>
28-
29-
<ItemGroup>
30-
<None Include="..\..\..\OneDrive\Desktop\pkcomponents.png">
31-
<Pack>True</Pack>
32-
<PackagePath>\</PackagePath>
33-
</None>
34-
</ItemGroup>
35-
36-
37-
<ItemGroup>
38-
<SupportedPlatform Include="browser" />
39-
</ItemGroup>
40-
41-
<ItemGroup>
42-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.2" />
43-
</ItemGroup>
44-
45-
<ItemGroup>
46-
<None Update="LICENSE.txt">
47-
<Pack>True</Pack>
48-
<PackagePath>\</PackagePath>
49-
</None>
50-
<None Update="README.md">
51-
<Pack>True</Pack>
52-
<PackagePath>\</PackagePath>
53-
</None>
54-
</ItemGroup>
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<RootNamespace>Pakana_Stellar_Razor_Components</RootNamespace>
8+
<ApplicationIcon>pkcomponents.ico</ApplicationIcon>
9+
<Title>Pakana Stellar Razor Components</Title>
10+
<Company>Lockb0X LLC</Company>
11+
<Authors>Joshua Kassabian, Steven Tomlinson</Authors>
12+
<Description>The Pakana Stellar Razor Components provide a set of powerful and customizable Razor Components for integrating Stellar blockchain functionality seamlessly into your web applications. These components simplify the integration process, offering a user-friendly interface for Stellar transactions and multisignature operations.</Description>
13+
<Copyright>MIT</Copyright>
14+
<RepositoryUrl>https://github.com/lockb0x-llc/Pakana-Stellar-Razor-Components</RepositoryUrl>
15+
<RepositoryType>git</RepositoryType>
16+
<PackageIcon>pkcomponents.png</PackageIcon>
17+
<PackageReleaseNotes>Powered by Stellar Blockchains Latest Protocol 20 Release Supporting Smart Contracts and Blockchain Transactions. Learn more at https://stellar.org/</PackageReleaseNotes>
18+
<PackageTags>Blockchain, Stellar, MultiSig, Components, DotNet, Razor, Javascript, Html, Finance, Payments</PackageTags>
19+
<PackageProjectUrl>https://www.pakana.net/</PackageProjectUrl>
20+
<PackageId>Pre-release-Pakana-Stellar-Razor-Components</PackageId>
21+
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
22+
<PackageReadmeFile>README.md</PackageReadmeFile>
23+
</PropertyGroup>
24+
25+
26+
<ItemGroup>
27+
<SupportedPlatform Include="browser" />
28+
</ItemGroup>
29+
30+
<ItemGroup>
31+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.2" />
32+
</ItemGroup>
33+
34+
<ItemGroup>
35+
<None Update="README.md">
36+
<Pack>True</Pack>
37+
<PackagePath>content\</PackagePath>
38+
</None>
39+
</ItemGroup>
5540

5641
</Project>
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
<script>
2-
document.addEventListener("DOMContentLoaded", async function () {
1+
document.addEventListener("DOMContentLoaded", async function () {
32
if (typeof StellarSdk === 'undefined') {
43
console.error("Stellar SDK is not loaded");
5-
return;
4+
return;
65
}
76

87
let assetCode = ''; // Add the asset code here for Establishing Trustline During Wallet Creation
@@ -13,56 +12,56 @@
1312
// Note: that the namespace for StellarSDK has been refactored for protocol 20.
1413
// Now there is StellarSDK., StellarSDK.Horizon., and StellarSDK.Soroban
1514
horizonServer = new StellarSdk.Horizon.Server('https://horizon-testnet.stellar.org'); // Initialize horizonServer here
16-
console.log("Stellar SDK Server instance created:", horizonServer);
15+
console.log("Stellar SDK Server instance created:", horizonServer);
1716
} catch (e) {
1817
console.error("Error creating StellarSdk.Server instance:", e);
19-
return; // Exit if horizonServer cannot be initialized
18+
return; // Exit if horizonServer cannot be initialized
2019
}
2120

2221
async function fetchAccount(publicKey) {
2322
try {
2423
const account = await horizonServer.loadAccount(publicKey); // Use horizonServer here
25-
console.log(account.balances);
26-
return account.balances;
24+
console.log(account.balances);
25+
return account.balances;
2726
} catch (error) {
28-
console.error("Error fetching account:", error);
27+
console.error("Error fetching account:", error);
2928
}
3029
}
3130

3231
async function fetchRecentPayments(publicKey, limit = 10) {
3332
try {
3433
const payments = await horizonServer.payments()
35-
.forAccount(publicKey)
36-
.limit(limit)
37-
.order('desc')
38-
.call(); // Use horizonServer here
39-
console.log(payments.records);
40-
return payments.records;
34+
.forAccount(publicKey)
35+
.limit(limit)
36+
.order('desc')
37+
.call(); // Use horizonServer here
38+
console.log(payments.records);
39+
return payments.records;
4140
} catch (error) {
42-
console.error("Error fetching recent payments:", error);
41+
console.error("Error fetching recent payments:", error);
4342
}
4443
}
4544

4645
async function getWallet(publicKey) {
4746
try {
4847
var balances = await fetchAccount(publicKey);
49-
var recentPayments = await fetchRecentPayments(publicKey);
48+
var recentPayments = await fetchRecentPayments(publicKey);
5049

51-
return {
52-
publicKey,
53-
balances,
54-
recentPayments
55-
};
50+
return {
51+
publicKey,
52+
balances,
53+
recentPayments
54+
};
5655
} catch (error) {
5756
throw new Error(`Failed to fetch wallet: ${error.message}`);
5857
}
5958
}
6059

6160
async function generateKeypair() {
6261
const pair = StellarSdk.Keypair.random();
63-
return {
64-
publicKey: pair.publicKey(),
65-
secret: pair.secret()
62+
return {
63+
publicKey: pair.publicKey(),
64+
secret: pair.secret()
6665
};
6766
}
6867

@@ -87,4 +86,3 @@
8786
window.fetchAccount = fetchAccount;
8887
window.fetchRecentPayments = fetchRecentPayments;
8988
});
90-
</script>

wwwroot/exampleJsInterop.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)