Skip to content

Commit

Permalink
- wxtz wrapper update
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymoussprocket committed Dec 11, 2020
1 parent 135cc2c commit d8f2308
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/chain/tezos/contracts/WrappedTezosHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { ConseilServerInfo } from '../../../types/conseil/QueryTypes';
import { ContractMapDetailsItem } from '../../../types/conseil/ConseilTezosTypes';
import { TezosParameterFormat } from '../../../types/tezos/TezosChainTypes';
import { StakerDaoTzip7 } from './StakerDaoTzip7';
import { StakerDAOTokenHelper } from './StakerDAOTokenHelper';

/** The expected checksum for the Wrapped Tezos contracts. */
const CONTRACT_CHECKSUMS = {
Expand Down Expand Up @@ -108,7 +107,7 @@ const WrappedTezosHelperInternal = {
* @param storageLimit The storage limit to use.
* @returns A string representing the operation hash.
*/
depositToOven: async function depositToOven(
depositToOven: async function (
nodeUrl: string,
signer: Signer,
keystore: KeyStore,
Expand Down Expand Up @@ -197,7 +196,7 @@ const WrappedTezosHelperInternal = {
coreContractAddress: string,
ovenOwner: string,
ovenListBigMapId: number
): Promise<Array<string>> {
): Promise<string[]> {
// Fetch map data.
const mapData = await TezosConseilClient.getBigMapData(serverInfo, coreContractAddress)
if (mapData === undefined) {
Expand Down Expand Up @@ -235,7 +234,7 @@ const WrappedTezosHelperInternal = {
// Map filtered array to only contain oven addresses.
return ownedOvens.map((oven: OvenMapSchema) => {
return oven.key
})
});
},

/**
Expand All @@ -248,12 +247,12 @@ const WrappedTezosHelperInternal = {
* @param keystore A Keystore for the sourceAddress.
* @param fee The fee to use.
* @param coreAddress The address of the core contract.
* @param baker The inital baker for the Oven. If `undefined` the oven will not have an initial baker. Defaults to `undefined`.
* @param baker The initial baker for the Oven. If `undefined` the oven will not have an initial baker. Defaults to `undefined`.
* @param gasLimit The gas limit to use.
* @param storageLimit The storage limit to use.
* @returns A property bag of data about the operation.
*/
export async function deployOven(
deployOven: async function (
nodeUrl: string,
signer: Signer,
keystore: KeyStore,
Expand Down Expand Up @@ -441,4 +440,4 @@ export const WrappedTezosHelper = StakerDaoTzip7 && WrappedTezosHelperInternal &

return tokenMatched && wrappedTezosInternalMatched
}
}
}

0 comments on commit d8f2308

Please sign in to comment.