Skip to content

Commit

Permalink
added new contract types
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Aug 6, 2024
1 parent e494e62 commit f7b09e9
Show file tree
Hide file tree
Showing 51 changed files with 2,560 additions and 3,918 deletions.
5 changes: 3 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const prodBridgeConfig: IBridgeConfig = {
intialFund: "50000000000000000",
contractAddress: "0xE0ea24108ec2754467D2c1D9320Cb6A16276478f",
chainType: "evm",
lastBlock: 41099482,
lastBlock: 41125140,
decimals: 18,
blockChunks: 1000,
},
Expand Down Expand Up @@ -133,7 +133,8 @@ export const prodBridgeConfig: IBridgeConfig = {
},
{
chain: "TON",
rpcURL: "https://toncenter.com/api/v2/jsonRPC",
rpcURL:
"https://toncenter.com/api/v2/jsonRPC?api_key=05645d6b549f33bf80cee8822bd63df720c6781bd00020646deb7b2b2cd53b73",
chainType: "ton",
contractAddress: "EQBuZspBrrEBIs7NYTkJ2A1lESRZupvU63rMkdyKZeSZaJNI",
decimals: 9,
Expand Down
36 changes: 18 additions & 18 deletions src/contractsTypes/evm/@openzeppelin/contracts/access/Ownable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,29 @@ import type {

export interface OwnableInterface extends Interface {
getFunction(
nameOrSignature: "owner" | "renounceOwnership" | "transferOwnership",
nameOrSignature: "owner" | "renounceOwnership" | "transferOwnership"
): FunctionFragment;

getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;

encodeFunctionData(functionFragment: "owner", values?: undefined): string;
encodeFunctionData(
functionFragment: "renounceOwnership",
values?: undefined,
values?: undefined
): string;
encodeFunctionData(
functionFragment: "transferOwnership",
values: [AddressLike],
values: [AddressLike]
): string;

decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "renounceOwnership",
data: BytesLike,
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "transferOwnership",
data: BytesLike,
data: BytesLike
): Result;
}

Expand All @@ -72,38 +72,38 @@ export interface Ownable extends BaseContract {
queryFilter<TCEvent extends TypedContractEvent>(
event: TCEvent,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;
queryFilter<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;

on<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;
on<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;

once<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;
once<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;

listeners<TCEvent extends TypedContractEvent>(
event: TCEvent,
event: TCEvent
): Promise<Array<TypedListener<TCEvent>>>;
listeners(eventName?: string): Promise<Array<Listener>>;
removeAllListeners<TCEvent extends TypedContractEvent>(
event?: TCEvent,
event?: TCEvent
): Promise<this>;

owner: TypedContractMethod<[], [string], "view">;
Expand All @@ -117,21 +117,21 @@ export interface Ownable extends BaseContract {
>;

getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment,
key: string | FunctionFragment
): T;

getFunction(
nameOrSignature: "owner",
nameOrSignature: "owner"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "renounceOwnership",
nameOrSignature: "renounceOwnership"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "transferOwnership",
nameOrSignature: "transferOwnership"
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;

getEvent(
key: "OwnershipTransferred",
key: "OwnershipTransferred"
): TypedContractEvent<
OwnershipTransferredEvent.InputTuple,
OwnershipTransferredEvent.OutputTuple,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export type { Ownable } from './Ownable';
export type { Ownable } from "./Ownable";
8 changes: 4 additions & 4 deletions src/contractsTypes/evm/@openzeppelin/contracts/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type * as access from './access';
import type * as access from "./access";
export type { access };
import type * as interfaces from './interfaces';
import type * as interfaces from "./interfaces";
export type { interfaces };
import type * as token from './token';
import type * as token from "./token";
export type { token };
import type * as utils from './utils';
import type * as utils from "./utils";
export type { utils };
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ import type {

export interface IERC2981Interface extends Interface {
getFunction(
nameOrSignature: "royaltyInfo" | "supportsInterface",
nameOrSignature: "royaltyInfo" | "supportsInterface"
): FunctionFragment;

encodeFunctionData(
functionFragment: "royaltyInfo",
values: [BigNumberish, BigNumberish],
values: [BigNumberish, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "supportsInterface",
values: [BytesLike],
values: [BytesLike]
): string;

decodeFunctionResult(
functionFragment: "royaltyInfo",
data: BytesLike,
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "supportsInterface",
data: BytesLike,
data: BytesLike
): Result;
}

Expand All @@ -53,38 +53,38 @@ export interface IERC2981 extends BaseContract {
queryFilter<TCEvent extends TypedContractEvent>(
event: TCEvent,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;
queryFilter<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;

on<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;
on<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;

once<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;
once<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;

listeners<TCEvent extends TypedContractEvent>(
event: TCEvent,
event: TCEvent
): Promise<Array<TypedListener<TCEvent>>>;
listeners(eventName?: string): Promise<Array<Listener>>;
removeAllListeners<TCEvent extends TypedContractEvent>(
event?: TCEvent,
event?: TCEvent
): Promise<this>;

royaltyInfo: TypedContractMethod<
Expand All @@ -100,18 +100,18 @@ export interface IERC2981 extends BaseContract {
>;

getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment,
key: string | FunctionFragment
): T;

getFunction(
nameOrSignature: "royaltyInfo",
nameOrSignature: "royaltyInfo"
): TypedContractMethod<
[tokenId: BigNumberish, salePrice: BigNumberish],
[[string, bigint] & { receiver: string; royaltyAmount: bigint }],
"view"
>;
getFunction(
nameOrSignature: "supportsInterface",
nameOrSignature: "supportsInterface"
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;

filters: {};
Expand Down
Loading

0 comments on commit f7b09e9

Please sign in to comment.