make wrapped asset check public on eth
This commit is contained in:
parent
f5f62e8b3e
commit
9749044c25
|
@ -57,8 +57,8 @@ contract Wormhole {
|
|||
mapping(bytes32 => bool) consumedVAAs;
|
||||
|
||||
// Mapping of wrapped asset ERC20 contracts
|
||||
mapping(bytes32 => address) wrappedAssets;
|
||||
mapping(address => bool) isWrappedAsset;
|
||||
mapping(bytes32 => address) public wrappedAssets;
|
||||
mapping(address => bool) public isWrappedAsset;
|
||||
|
||||
constructor(GuardianSet memory initial_guardian_set, address wrapped_asset_master, uint32 _vaa_expiry) public {
|
||||
guardian_sets[0] = initial_guardian_set;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -11,7 +11,8 @@
|
|||
"chai": "^4.2.0",
|
||||
"mocha": "^8.1.1",
|
||||
"truffle-assertions": "^0.9.2",
|
||||
"truffle": "^5.1.37"
|
||||
"truffle": "^5.1.37",
|
||||
"@truffle/hdwallet-provider": "^1.0.42"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "truffle compile",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -14,10 +14,18 @@ interface WormholeInterface extends Interface {
|
|||
functions: {
|
||||
guardian_set_index: TypedFunctionDescription<{ encode([]: []): string }>;
|
||||
|
||||
guardian_sets: TypedFunctionDescription<{
|
||||
encode([]: [BigNumberish]): string;
|
||||
}>;
|
||||
|
||||
isWrappedAsset: TypedFunctionDescription<{ encode([]: [string]): string }>;
|
||||
|
||||
vaa_expiry: TypedFunctionDescription<{ encode([]: []): string }>;
|
||||
|
||||
wrappedAssetMaster: TypedFunctionDescription<{ encode([]: []): string }>;
|
||||
|
||||
wrappedAssets: TypedFunctionDescription<{ encode([]: [Arrayish]): string }>;
|
||||
|
||||
submitVAA: TypedFunctionDescription<{ encode([vaa]: [Arrayish]): string }>;
|
||||
|
||||
lockAssets: TypedFunctionDescription<{
|
||||
|
@ -60,15 +68,6 @@ interface WormholeInterface extends Interface {
|
|||
amount
|
||||
]: [null, null, Arrayish | null, Arrayish | null, null, null]): string[];
|
||||
}>;
|
||||
|
||||
LogTokensUnlocked: TypedEventDescription<{
|
||||
encodeTopics([token, sender, recipient, amount]: [
|
||||
string | null,
|
||||
Arrayish | null,
|
||||
null,
|
||||
null
|
||||
]): string[];
|
||||
}>;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -90,6 +89,40 @@ export class Wormhole extends Contract {
|
|||
|
||||
"guardian_set_index()"(overrides?: TransactionOverrides): Promise<number>;
|
||||
|
||||
guardian_sets(
|
||||
arg0: BigNumberish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<{
|
||||
x: BigNumber;
|
||||
parity: number;
|
||||
expiration_time: number;
|
||||
0: BigNumber;
|
||||
1: number;
|
||||
2: number;
|
||||
}>;
|
||||
|
||||
"guardian_sets(uint32)"(
|
||||
arg0: BigNumberish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<{
|
||||
x: BigNumber;
|
||||
parity: number;
|
||||
expiration_time: number;
|
||||
0: BigNumber;
|
||||
1: number;
|
||||
2: number;
|
||||
}>;
|
||||
|
||||
isWrappedAsset(
|
||||
arg0: string,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
"isWrappedAsset(address)"(
|
||||
arg0: string,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
vaa_expiry(overrides?: TransactionOverrides): Promise<number>;
|
||||
|
||||
"vaa_expiry()"(overrides?: TransactionOverrides): Promise<number>;
|
||||
|
@ -98,6 +131,16 @@ export class Wormhole extends Contract {
|
|||
|
||||
"wrappedAssetMaster()"(overrides?: TransactionOverrides): Promise<string>;
|
||||
|
||||
wrappedAssets(
|
||||
arg0: Arrayish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<string>;
|
||||
|
||||
"wrappedAssets(bytes32)"(
|
||||
arg0: Arrayish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<string>;
|
||||
|
||||
submitVAA(
|
||||
vaa: Arrayish,
|
||||
overrides?: TransactionOverrides
|
||||
|
@ -141,6 +184,40 @@ export class Wormhole extends Contract {
|
|||
|
||||
"guardian_set_index()"(overrides?: TransactionOverrides): Promise<number>;
|
||||
|
||||
guardian_sets(
|
||||
arg0: BigNumberish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<{
|
||||
x: BigNumber;
|
||||
parity: number;
|
||||
expiration_time: number;
|
||||
0: BigNumber;
|
||||
1: number;
|
||||
2: number;
|
||||
}>;
|
||||
|
||||
"guardian_sets(uint32)"(
|
||||
arg0: BigNumberish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<{
|
||||
x: BigNumber;
|
||||
parity: number;
|
||||
expiration_time: number;
|
||||
0: BigNumber;
|
||||
1: number;
|
||||
2: number;
|
||||
}>;
|
||||
|
||||
isWrappedAsset(
|
||||
arg0: string,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
"isWrappedAsset(address)"(
|
||||
arg0: string,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
vaa_expiry(overrides?: TransactionOverrides): Promise<number>;
|
||||
|
||||
"vaa_expiry()"(overrides?: TransactionOverrides): Promise<number>;
|
||||
|
@ -149,6 +226,16 @@ export class Wormhole extends Contract {
|
|||
|
||||
"wrappedAssetMaster()"(overrides?: TransactionOverrides): Promise<string>;
|
||||
|
||||
wrappedAssets(
|
||||
arg0: Arrayish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<string>;
|
||||
|
||||
"wrappedAssets(bytes32)"(
|
||||
arg0: Arrayish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<string>;
|
||||
|
||||
submitVAA(
|
||||
vaa: Arrayish,
|
||||
overrides?: TransactionOverrides
|
||||
|
@ -209,13 +296,6 @@ export class Wormhole extends Contract {
|
|||
recipient: null,
|
||||
amount: null
|
||||
): EventFilter;
|
||||
|
||||
LogTokensUnlocked(
|
||||
token: string | null,
|
||||
sender: Arrayish | null,
|
||||
recipient: null,
|
||||
amount: null
|
||||
): EventFilter;
|
||||
};
|
||||
|
||||
estimate: {
|
||||
|
@ -225,6 +305,26 @@ export class Wormhole extends Contract {
|
|||
overrides?: TransactionOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
guardian_sets(
|
||||
arg0: BigNumberish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
"guardian_sets(uint32)"(
|
||||
arg0: BigNumberish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
isWrappedAsset(
|
||||
arg0: string,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
"isWrappedAsset(address)"(
|
||||
arg0: string,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
vaa_expiry(overrides?: TransactionOverrides): Promise<BigNumber>;
|
||||
|
||||
"vaa_expiry()"(overrides?: TransactionOverrides): Promise<BigNumber>;
|
||||
|
@ -235,6 +335,16 @@ export class Wormhole extends Contract {
|
|||
overrides?: TransactionOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
wrappedAssets(
|
||||
arg0: Arrayish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
"wrappedAssets(bytes32)"(
|
||||
arg0: Arrayish,
|
||||
overrides?: TransactionOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
submitVAA(
|
||||
vaa: Arrayish,
|
||||
overrides?: TransactionOverrides
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue