@moralisweb3/evm-utils
Advanced tools
Comparing version 2.7.3 to 2.7.4
@@ -57,2 +57,4 @@ import { MoralisDataObject, BigNumber } from '@moralisweb3/core'; | ||
blockHash: string; | ||
transactionIndex: number; | ||
logIndex: number; | ||
}; | ||
@@ -73,2 +75,4 @@ /** | ||
blockHash: string; | ||
transactionIndex: number; | ||
logIndex: number; | ||
}; | ||
@@ -125,3 +129,13 @@ /** | ||
get value(): BigNumber; | ||
/** | ||
* @returns the transactionIndex of the tranfer | ||
* @example transfer.transactionIndex // 3 | ||
*/ | ||
get transactionIndex(): number; | ||
/** | ||
* @returns the logIndex of the tranfer | ||
* @example transfer.logIndex // 2 | ||
*/ | ||
get logIndex(): number; | ||
} | ||
//# sourceMappingURL=Erc20Transfer.d.ts.map |
@@ -187,2 +187,24 @@ "use strict"; | ||
}); | ||
Object.defineProperty(Erc20Transfer.prototype, "transactionIndex", { | ||
/** | ||
* @returns the transactionIndex of the tranfer | ||
* @example transfer.transactionIndex // 3 | ||
*/ | ||
get: function () { | ||
return this._data.transactionIndex; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Object.defineProperty(Erc20Transfer.prototype, "logIndex", { | ||
/** | ||
* @returns the logIndex of the tranfer | ||
* @example transfer.logIndex // 2 | ||
*/ | ||
get: function () { | ||
return this._data.logIndex; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Erc20Transfer.parse = function (data) { return (__assign(__assign({}, data), { chain: EvmChain_1.EvmChain.create(data.chain), address: EvmAddress_1.EvmAddress.create(data.address), blockTimestamp: (0, core_1.dateInputToDate)(data.blockTimestamp), blockNumber: core_1.BigNumber.create(data.blockNumber), toAddress: EvmAddress_1.EvmAddress.create(data.toAddress), fromAddress: EvmAddress_1.EvmAddress.create(data.fromAddress), value: core_1.BigNumber.create(data.value) })); }; | ||
@@ -189,0 +211,0 @@ return Erc20Transfer; |
@@ -18,2 +18,4 @@ import { BigNumber, BigNumberish, DateInput } from '@moralisweb3/core'; | ||
* transactionHash: "0x2d30ca6f024dbc1307ac8a1a44ca27de6f797ec22ef20627a1307243b0ab7d09" | ||
* transactionIndex: 3; | ||
* logIndex: 2 | ||
* } | ||
@@ -32,2 +34,4 @@ * ``` | ||
value: BigNumberish; | ||
transactionIndex: number; | ||
logIndex: number; | ||
} | ||
@@ -47,3 +51,5 @@ /** | ||
value: BigNumber; | ||
transactionIndex: number; | ||
logIndex: number; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
@@ -16,16 +16,2 @@ import { EvmChainish } from './EvmChainish'; | ||
/** | ||
* Returns ROPSTEN chain | ||
* | ||
* @example EvmChain.ROPSTEN | ||
* @deprecated see https://ethereum.org/en/developers/docs/networks/ | ||
*/ | ||
static get ROPSTEN(): EvmChain; | ||
/** | ||
* Returns RINKEBY chain | ||
* | ||
* @example EvmChain.RINKEBY | ||
* @deprecated see https://ethereum.org/en/developers/docs/networks/ | ||
*/ | ||
static get RINKEBY(): EvmChain; | ||
/** | ||
* Returns GOERLI chain | ||
@@ -36,9 +22,2 @@ * | ||
static get GOERLI(): EvmChain; | ||
/** | ||
* Returns KOVAN chain | ||
* | ||
* @example EvmChain.KOVAN | ||
* @deprecated see https://ethereum.org/en/developers/docs/networks/ | ||
*/ | ||
static get KOVAN(): EvmChain; | ||
static get SEPOLIA(): EvmChain; | ||
@@ -187,3 +166,3 @@ /** | ||
*/ | ||
get apiHex(): "0x1" | "0x3" | "0x4" | "0x5" | "0x2a" | "0x89" | "0x13881" | "0x38" | "0x61" | "0xa86a" | "0xa869" | "0xfa" | "cronos" | "0x19"; | ||
get apiHex(): "0x1" | "0x5" | "0xaa36a7" | "0x89" | "0x13881" | "0x38" | "0x61" | "0xa86a" | "0xa869" | "0xfa" | "0x19" | "0x152"; | ||
/** | ||
@@ -194,3 +173,3 @@ * Validate and cast to api compatible id | ||
*/ | ||
get apiId(): "1" | "3" | "4" | "5" | "25" | "42" | "56" | "97" | "137" | "250" | "338" | "1337" | "43113" | "43114" | "80001"; | ||
get apiId(): "1" | "5" | "25" | "56" | "97" | "137" | "250" | "338" | "1337" | "43113" | "43114" | "80001" | "11155111"; | ||
/** | ||
@@ -197,0 +176,0 @@ * Returns the name of the chain |
@@ -32,28 +32,2 @@ "use strict"; | ||
}); | ||
Object.defineProperty(EvmChain, "ROPSTEN", { | ||
/** | ||
* Returns ROPSTEN chain | ||
* | ||
* @example EvmChain.ROPSTEN | ||
* @deprecated see https://ethereum.org/en/developers/docs/networks/ | ||
*/ | ||
get: function () { | ||
return EvmChain.create(3); | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Object.defineProperty(EvmChain, "RINKEBY", { | ||
/** | ||
* Returns RINKEBY chain | ||
* | ||
* @example EvmChain.RINKEBY | ||
* @deprecated see https://ethereum.org/en/developers/docs/networks/ | ||
*/ | ||
get: function () { | ||
return EvmChain.create(4); | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Object.defineProperty(EvmChain, "GOERLI", { | ||
@@ -71,15 +45,2 @@ /** | ||
}); | ||
Object.defineProperty(EvmChain, "KOVAN", { | ||
/** | ||
* Returns KOVAN chain | ||
* | ||
* @example EvmChain.KOVAN | ||
* @deprecated see https://ethereum.org/en/developers/docs/networks/ | ||
*/ | ||
get: function () { | ||
return EvmChain.create(42); | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Object.defineProperty(EvmChain, "SEPOLIA", { | ||
@@ -86,0 +47,0 @@ get: function () { |
{ | ||
"name": "@moralisweb3/evm-utils", | ||
"author": "Moralis", | ||
"version": "2.7.3", | ||
"version": "2.7.4", | ||
"license": "MIT", | ||
@@ -30,4 +30,4 @@ "private": false, | ||
"@ethersproject/transactions": "^5.6.0", | ||
"@moralisweb3/core": "^2.7.3" | ||
"@moralisweb3/core": "^2.7.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
782066
17309
Updated@moralisweb3/core@^2.7.4