Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
66ebde2
0.0.41 - utils.toNano and utils.fromNano now disallow Number as an ar…
tolya-yanot Jun 3, 2022
05cfe19
update readme and tests; 0.0.42;
tolya-yanot Jun 3, 2022
93d2d2c
0.0.43 - update types;
tolya-yanot Jun 4, 2022
c2d5d0f
update jettons
tolya-yanot Jun 11, 2022
97103ae
dns
tolya-yanot Jun 19, 2022
5a0bc67
dns update
tolya-yanot Jun 24, 2022
301ec5a
update dns root
tolya-yanot Jun 24, 2022
e1ed9d8
update dns contracts
tolya-yanot Jun 25, 2022
6452601
change dnsresolve interface
tolya-yanot Jun 25, 2022
45f4242
dns cosmetic
tolya-yanot Jun 25, 2022
797b42e
0.0.47 - fix import
tolya-yanot Jun 26, 2022
3088a38
0.0.48 - update dns records format
tolya-yanot Jun 28, 2022
95b8580
0.0.49 - update dns contracts
tolya-yanot Jun 29, 2022
ef662db
0.0.49 - update dns contracts
tolya-yanot Jun 29, 2022
8064062
payment channels
tolya-yanot Jul 1, 2022
a5475c3
payment channels
tolya-yanot Jul 29, 2022
3c3e811
mainnet dns
tolya-yanot Jul 29, 2022
e228a98
0.0.53 - support nfts with bigint indices and onchain metadata;
tolya-yanot Aug 3, 2022
01a05d7
0.0.54 - dont throw on jettons with onchain metadata
tolya-yanot Aug 5, 2022
f8e53f6
0.0.55 - adnl address records in dns
tolya-yanot Sep 29, 2022
1f64324
0.0.55 - update webpack-cli, build
tolya-yanot Sep 30, 2022
4c827ba
add expireAt parameter to wallet transfer
tolya-yanot Oct 2, 2022
51f0689
Slice, WalletQueryParser
tolya-yanot Oct 2, 2022
548cf8b
0.0.56 - build
tolya-yanot Oct 2, 2022
abd3104
update test-wallet
tolya-yanot Oct 3, 2022
7089456
0.0.57 - update d.ts
tolya-yanot Oct 11, 2022
d53be24
0.0.58 - provider.getConfigParam; get root dns smart contract from co…
tolya-yanot Oct 28, 2022
a821484
update test-dns
tolya-yanot Oct 30, 2022
253cb5c
add ton storage support in ton dns
Dec 29, 2022
00a08af
Change LICENSE to MIT
EmelyanenkoK Jan 14, 2023
9761af5
test-lockup
Jan 19, 2023
71065b1
0.0.60 - allow up to 4 transfers at once; transfer.seqno check - it m…
Feb 16, 2023
b550969
0.0.60 - allow up to 4 transfers at once; transfer.seqno check - it m…
Feb 16, 2023
52bef80
Improve jetton text comment example
EmelyanenkoK Mar 31, 2023
003ec1c
fix readme
rise1507 Jul 8, 2023
5aadf97
add vesting wallet
rise1507 Jul 21, 2023
8bb6c97
add vesting wallet
rise1507 Jul 22, 2023
7091e14
fix loadInt
rise1507 Jul 24, 2023
107168e
fix comment
rise1507 Jul 26, 2023
6c1b8cb
add transfer.getBody() method
rise1507 Jul 28, 2023
448ac6f
writeInt, writeUint checks
rise1507 Jul 31, 2023
171a6aa
0.0.62 - update vesting wallet code and vesting checks
rise1507 Aug 7, 2023
87f0334
Merge remote-tracking branch 'origin/master'
rise1507 Aug 9, 2023
944455d
fix Address.isUrlSafe
rise1507 Aug 17, 2023
48fac91
fix Cell.getMaxDepth recursion
rise1507 Feb 18, 2024
9b4817d
getBlockTransactions paging
rise1507 Feb 18, 2024
b0083f8
0.0.63 - build
rise1507 Feb 18, 2024
b6663d3
getBlockTransactions - improve naming and comments
rise1507 Feb 20, 2024
bc5b2f5
0.0.64 - cell forward_payload in jetton-wallet and nft-item
rise1507 Mar 1, 2024
c16d49e
types
rise1507 Mar 1, 2024
c2ba773
0.0.64
rise1507 Mar 1, 2024
424edad
HighloadQueryId.js
rise1507 Mar 28, 2024
ac411e4
highload-wallet
rise1507 Mar 28, 2024
31ce05c
0.0.65 build
rise1507 Mar 28, 2024
76dfd07
0.0.66 build
rise1507 Mar 28, 2024
51360e3
Create SECURITY.md
Aho38wkw Jul 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
695 changes: 21 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
2 changes: 1 addition & 1 deletion dist/tonweb.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/types/contract/token/ft/jetton-wallet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export interface TransferBodyParams {
tokenAmount: BN;
toAddress: Address;
responseAddress: Address;
forwardAmount: BN;
forwardPayload: Uint8Array;
forwardAmount?: BN;
forwardPayload?: Uint8Array | Cell;
}
export interface BurnBodyParams {
queryId?: number;
Expand Down
2 changes: 1 addition & 1 deletion dist/types/contract/token/nft/nft-item.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface CreateTransferBodyParams {
responseAddress: Address;
queryId?: number;
forwardAmount?: BN;
forwardPayload?: Uint8Array;
forwardPayload?: Uint8Array | Cell;
}
export interface CreateGetStaticDataBodyParams {
queryId?: number;
Expand Down
2 changes: 1 addition & 1 deletion dist/types/contract/wallet/v2/wallet-v2-contract-base.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Cell } from '../../../boc/cell';
import { WalletContract } from '../wallet-contract';
export declare class WalletV2ContractBase extends WalletContract {
protected createSigningMessage(seqno?: number): Cell;
protected createSigningMessage(seqno?: number, expireAt?: number): Cell;
}
2 changes: 1 addition & 1 deletion dist/types/contract/wallet/v3/wallet-v3-contract-base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export interface WalletV3ContractOptions extends WalletContractOptions {
walletId?: number;
}
export declare class WalletV3ContractBase extends WalletContract<WalletV3ContractOptions> {
protected createSigningMessage(seqno?: number): Cell;
protected createSigningMessage(seqno?: number, expireAt?: number): Cell;
protected createDataCell(): Cell;
}
2 changes: 1 addition & 1 deletion dist/types/contract/wallet/v4/wallet-v4-contract-base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export interface WalletV4ContractMethods extends WalletContractMethods {
}
export declare class WalletV4ContractBase<WalletType extends WalletV4ContractOptions = WalletV4ContractOptions, MethodsType extends WalletV4ContractMethods = WalletV4ContractMethods> extends WalletContract<WalletType, MethodsType> {
getPublicKey(): Promise<BN>;
protected createSigningMessage(seqno?: number, withoutOp?: boolean): Cell;
protected createSigningMessage(seqno?: number, expireAt?: number, withoutOp?: boolean): Cell;
protected createDataCell(): Cell;
}
2 changes: 2 additions & 0 deletions dist/types/contract/wallet/v4/wallet-v4-contract-r2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ export interface DeployAndInstallPluginParams {
amount: BN;
stateInit: Cell;
body: Cell;
expireAt?: number;
}
export interface SetPluginParams {
secretKey: Uint8Array;
seqno: number;
pluginAddress: AddressType;
amount?: BN;
queryId?: number;
expireAt?: number;
}
export declare class WalletV4ContractR2 extends WalletV4ContractBase<WalletV4ContractOptions, WalletV4ContractR2Methods> {
constructor(provider: HttpProvider, options: WalletV4ContractOptions);
Expand Down
5 changes: 3 additions & 2 deletions dist/types/contract/wallet/wallet-contract.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ export interface WalletContractOptions extends ContractOptions {
export interface TransferMethodParams {
secretKey: Uint8Array;
toAddress: AddressType;
amount: (BN | number);
amount: (BN | string);
seqno: number;
payload?: (string | Uint8Array | Cell);
sendMode?: number;
stateInit?: Cell;
expireAt?: number;
}
export interface WalletContractMethods extends ContractMethods {
transfer: TransferMethod;
Expand Down Expand Up @@ -54,7 +55,7 @@ export declare class WalletContract<WalletType extends WalletContractOptions = W
* `nacl.KeyPair.secretKey`
* @todo: improve the description
*/
secretKey: Uint8Array, address: AddressType, nanograms: (BN | number), seqno: number, payload?: (string | Uint8Array | Cell), sendMode?: number, dummySignature?: boolean, stateInit?: Cell): Promise<ExternalMessage>;
secretKey: Uint8Array, address: AddressType, nanocoins: (BN | string), seqno: number, payload?: (string | Uint8Array | Cell), sendMode?: number, dummySignature?: boolean, stateInit?: Cell, expireAt?: number): Promise<ExternalMessage>;
/**
* Returns cell that contains wallet data.
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default class TonWeb {
formatTransferUrl: typeof formatTransferUrl;
parseTransferUrl: typeof parseTransferUrl;
sha256(bytes: Uint8Array): Promise<ArrayBuffer>;
toNano(amount: string | number | BN): BN;
fromNano(amount: string | number | BN): string;
toNano(amount: string | BN): BN;
fromNano(amount: string | BN): string;
bytesToHex(buffer: Uint8Array): string;
hexToBytes(hex: string): Uint8Array;
stringToBytes(str: string, size?: number): Uint8Array;
Expand Down
4 changes: 2 additions & 2 deletions dist/types/providers/http-provider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export declare class HttpProvider {
*
* {@link https://toncenter.com/api/v2/#/accounts/get_transactions_getTransactions_get}
*/
getTransactions(address: string, limit?: number, lt?: number, hash?: string, to_lt?: number, archival?: any): Promise<any>;
getTransactions(address: string, limit?: number, lt?: number | string, hash?: string, to_lt?: number | string, archival?: any): Promise<any>;
/**
* Use this method to get balance (in nanograms)
* of a given address.
Expand Down Expand Up @@ -157,7 +157,7 @@ export declare class HttpProvider {
*
* {@link https://toncenter.com/api/v2/#/blocks/get_block_transactions_getBlockTransactions_get}
*/
getBlockTransactions(workchain: number, shardId: string, shardBlockNumber: number): Promise<any>;
getBlockTransactions(workchain: number, shardId: string, shardBlockNumber: number, limit?: number, afterLt?: number | string, addressHash?: string): Promise<any>;
/**
* Returns transactions hashes included
* in this masterchain block.
Expand Down
4 changes: 2 additions & 2 deletions dist/types/utils/common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ export declare function sha256(bytes: Uint8Array): Promise<ArrayBuffer>;
/**
* Converts the specified amount from coins to nanocoins.
*/
export declare function toNano(amount: (number | BN | string)): BN;
export declare function toNano(amount: (BN | string)): BN;
/**
* Converts the specified amount from nanocoins to coins.
*/
export declare function fromNano(amount: (number | BN | string)): string;
export declare function fromNano(amount: (BN | string)): string;
/**
* Converts the specified bytes array to hex string
* using lookup table.
Expand Down
Loading