Skip to content

Commit

Permalink
Merge pull request #8 from Entropy-Foundation/issue-7
Browse files Browse the repository at this point in the history
Addresses Issue-7
  • Loading branch information
vpanchal-supra authored Oct 3, 2024
2 parents 65adf1a + 055c366 commit 027e416
Show file tree
Hide file tree
Showing 198 changed files with 596 additions and 99 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Install supra-l1-sdk with npm
npm install git+https://github.com/Entropy-Foundation/supra-l1-sdk.git
```

**NOTE:** This `sdk` utilizes [aptos-sdk](https://github.com/aptos-labs/aptos-core/tree/main/ecosystem/typescript/sdk) and expects few things such as `keyPair` of `aptos-sdk` type, so due to this you also have to add `aptos-sdk` in your project.

## Reference Docs

For SDK documentation, check out the [TypeScript SDK documentation](https://sdk-docs.supra.com/index.html)
Expand Down
1 change: 1 addition & 0 deletions dist/browser/index.d.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { TxnBuilderTypes, HexString, AptosAccount } from 'aptos';
export { BCS, HexString, AptosAccount as SupraAccount, TxnBuilderTypes } from 'aptos';

interface AccountInfo {
sequence_number: bigint;
Expand Down
1 change: 1 addition & 0 deletions dist/browser/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { TxnBuilderTypes, HexString, AptosAccount } from 'aptos';
export { BCS, HexString, AptosAccount as SupraAccount, TxnBuilderTypes } from 'aptos';

interface AccountInfo {
sequence_number: bigint;
Expand Down
4 changes: 2 additions & 2 deletions dist/browser/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/browser/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/index.mjs.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/node/index.d.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { TxnBuilderTypes, HexString, AptosAccount } from 'aptos';
export { BCS, HexString, AptosAccount as SupraAccount, TxnBuilderTypes } from 'aptos';

interface AccountInfo {
sequence_number: bigint;
Expand Down
1 change: 1 addition & 0 deletions dist/node/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { TxnBuilderTypes, HexString, AptosAccount } from 'aptos';
export { BCS, HexString, AptosAccount as SupraAccount, TxnBuilderTypes } from 'aptos';

interface AccountInfo {
sequence_number: bigint;
Expand Down
12 changes: 10 additions & 2 deletions dist/node/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/node/index.js.map

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions dist/node/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10821,7 +10821,12 @@ var require_follow_redirects = __commonJS({
});

// src/index.ts
import { TxnBuilderTypes, BCS, HexString } from "aptos";
import {
TxnBuilderTypes,
BCS,
HexString,
AptosAccount as SupraAccount
} from "aptos";

// node_modules/axios/lib/helpers/bind.js
function bind(fn, thisArg) {
Expand Down Expand Up @@ -14909,9 +14914,13 @@ var SupraClient = class _SupraClient {
}
};
export {
BCS,
HexString,
SupraAccount,
SupraClient,
TransactionStatus,
TxTypeForTransactionInsights
TxTypeForTransactionInsights,
TxnBuilderTypes
};
/*! Bundled license information:
Expand Down
2 changes: 1 addition & 1 deletion dist/node/index.mjs.map

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
--dark-hl-1: #DCDCAA;
--light-hl-2: #A31515;
--dark-hl-2: #CE9178;
--light-hl-3: #0000FF;
--dark-hl-3: #569CD6;
--light-hl-4: #0070C1;
--dark-hl-4: #4FC1FF;
--light-hl-5: #001080;
--dark-hl-5: #9CDCFE;
--light-hl-6: #008000;
--dark-hl-6: #6A9955;
--light-hl-7: #000000;
--dark-hl-7: #C8C8C8;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}
Expand All @@ -13,31 +23,56 @@
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--code-background: var(--light-code-background);
} }

@media (prefers-color-scheme: dark) { :root {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--code-background: var(--dark-code-background);
} }

:root[data-theme='light'] {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--code-background: var(--light-code-background);
}

:root[data-theme='dark'] {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--code-background: var(--dark-code-background);
}

.hl-0 { color: var(--hl-0); }
.hl-1 { color: var(--hl-1); }
.hl-2 { color: var(--hl-2); }
.hl-3 { color: var(--hl-3); }
.hl-4 { color: var(--hl-4); }
.hl-5 { color: var(--hl-5); }
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
pre, code { background: var(--code-background); }
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 027e416

Please sign in to comment.