Skip to content

Commit

Permalink
update and adjust the code
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed Oct 13, 2024
1 parent 296d075 commit 20b2b27
Show file tree
Hide file tree
Showing 17 changed files with 613 additions and 695 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### [0.20.0](https://github.com/elven-js/elven.js/releases/tag/v0.20.0) (2024-10-13)
- remove `@multiversx/sdk-network-providers` package (now included in the sdk core)
- remove/replace `SignableMessage` and adjust the code
- update dependencies

### [0.19.0](https://github.com/elven-js/elven.js/releases/tag/v0.19.0) (2024-08-03)
- replace custom webview provider implementation with the dedicated library (xPortal)
- update dependencies
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ Why? Because it is supposed to be a browser script, it should be as small as pos
4. test on example -> `npm run dev:server`
5. rebuild with every change in the script

To test the MultiversX browser extension you would need to run localhost with SSL.
For quick dev testing tools like [localhost.run](https://localhost.run/) should be enough.
After you run `npm run dev:server`, in separate teriminal window run `ssh -R 80:localhost:3000 localhost.run`. You can also relay on your own SSL setup.

### Articles

- [How to Interact With the MultiversX Blockchain in a Simple Static Website](https://hackernoon.com/how-to-interact-with-the-elrond-blockchain-in-a-simple-static-website)
Expand Down
67 changes: 32 additions & 35 deletions build/elven.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions build/types/elven.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ export { Transaction } from '@multiversx/sdk-core/out/transaction';
export { TransactionComputer } from '@multiversx/sdk-core/out/transactionComputer';
export { Message, MessageComputer } from '@multiversx/sdk-core/out/message';
export { TransactionWatcher } from '@multiversx/sdk-core/out/transactionWatcher';
export { SignableMessage } from '@multiversx/sdk-core/out/signableMessage';
export { BytesType, BytesValue, } from '@multiversx/sdk-core/out/smartcontracts/typesystem/bytes';
export { U16Type, U16Value, U32Type, U32Value, U64Type, U64Value, U8Type, U8Value, BigUIntType, BigUIntValue, } from '@multiversx/sdk-core/out/smartcontracts/typesystem/numerical';
export { BooleanType, BooleanValue, } from '@multiversx/sdk-core/out/smartcontracts/typesystem/boolean';
export { AddressType, AddressValue, } from '@multiversx/sdk-core/out/smartcontracts/typesystem/address';
export { QueryArguments } from '@multiversx/sdk-core/out/smartcontracts/interface';
export { ContractQueryResponse } from '@multiversx/sdk-network-providers/out/contractQueryResponse';
export { ContractQueryResponse } from '@multiversx/sdk-core/out/networkProviders/contractQueryResponse';
export { ElvenJS } from './main';
export { parseAmount, formatAmount } from './utils/amount';
export * from './types';
2 changes: 1 addition & 1 deletion build/types/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export declare class ElvenJS {
/**
* Query Smart Contracts
*/
static queryContract({ address, func, args, value, caller, }: SmartContractQueryArgs): Promise<import("@multiversx/sdk-network-providers/out/contractQueryResponse").ContractQueryResponse | undefined>;
static queryContract({ address, func, args, value, caller, }: SmartContractQueryArgs): Promise<import("@multiversx/sdk-core/out").ContractQueryResponse | undefined>;
/**
* Main storage
*/
Expand Down
10 changes: 5 additions & 5 deletions build/types/network-provider.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Address } from '@multiversx/sdk-core/out/address';
import { TransactionStatus } from '@multiversx/sdk-network-providers/out/transactionStatus';
import { TransactionReceipt } from '@multiversx/sdk-network-providers/out/transactionReceipt';
import { TransactionLogs } from '@multiversx/sdk-network-providers/out/transactionLogs';
import { ContractResults } from '@multiversx/sdk-network-providers/out/contractResults';
import { ContractQueryResponse } from '@multiversx/sdk-network-providers/out/contractQueryResponse';
import { TransactionStatus } from '@multiversx/sdk-core/out/networkProviders/transactionStatus';
import { TransactionReceipt } from '@multiversx/sdk-core/out/networkProviders/transactionReceipt';
import { TransactionLogs } from '@multiversx/sdk-core/out/networkProviders/transactionLogs';
import { ContractResults } from '@multiversx/sdk-core/out/networkProviders/contractResults';
import { ContractQueryResponse } from '@multiversx/sdk-core/out/networkProviders/contractQueryResponse';
import { QueryArguments } from '@multiversx/sdk-core/out/smartcontracts/interface';
import { InitOptions } from './types';
export interface IAddress {
Expand Down
2 changes: 1 addition & 1 deletion build/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { WalletConnectV2Provider } from '@multiversx/sdk-wallet-connect-provider
import { WalletProvider } from '@multiversx/sdk-web-wallet-provider/out/walletProvider';
import { WebviewProvider } from '@multiversx/sdk-webview-provider';
import { QueryArguments } from '@multiversx/sdk-core/out/smartcontracts';
import { ContractQueryResponse } from '@multiversx/sdk-network-providers/out/contractQueryResponse';
import { ContractQueryResponse } from '@multiversx/sdk-core/out/networkProviders/contractQueryResponse';
export interface InitOptions {
apiUrl?: string;
chainType?: string;
Expand Down
2 changes: 1 addition & 1 deletion esbuild.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-eslint/no-require-imports */
const esbuild = require('esbuild');
const path = require('path');

Expand Down
67 changes: 32 additions & 35 deletions example/elven.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
<h1>ElvenJS (demo)</h1>
<div><strong>All transactions will take place on the devent!</strong> Check how to use it on the testnet and mainnet
in the docs.</div>
<p>
<strong>For testing the browser extension locally you will need SSL (https) for the localhost. Check the <a
href="https://github.com/elven-js/elven.js/blob/main/README.md#development" target="_blank">README</a>
file.</strong>
</p>
<h4>Docs and code: <a href="https://www.elvenjs.com">www.elvenjs.com</a></h4>
<h5>For styling elements like QR code container and Wallet Connect pairings check <a
href="https://github.com/elven-js/elven.js/blob/main/example/demo-styles.css">demo styles</a>. Each element
Expand Down
Loading

0 comments on commit 20b2b27

Please sign in to comment.