@instadapp/avocado-base 0.0.0-dev.19925f5 → 0.0.0-dev.2037715
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abi/avoFactoryProxy.json +109 -0
- package/abi/balanceResolver.json +110 -0
- package/abi/erc20.json +350 -0
- package/abi/forwarder.json +1435 -0
- package/abi/gaslessWallet.json +289 -0
- package/app.vue +20 -0
- package/assets/images/icons/arrow-left.svg +5 -0
- package/assets/images/icons/arrow-right.svg +5 -0
- package/assets/images/icons/avocado.svg +4 -0
- package/assets/images/icons/bridge-2.svg +3 -0
- package/assets/images/icons/bridge.svg +7 -0
- package/assets/images/icons/calendar.svg +8 -0
- package/assets/images/icons/check-circle.svg +4 -0
- package/assets/images/icons/chevron-down.svg +4 -0
- package/assets/images/icons/clipboard.svg +7 -0
- package/assets/images/icons/clock-circle.svg +5 -0
- package/assets/images/icons/copy.svg +5 -0
- package/assets/images/icons/error-circle.svg +6 -0
- package/assets/images/icons/exclamation-circle.svg +13 -0
- package/assets/images/icons/exclamation-octagon.svg +13 -0
- package/assets/images/icons/exclamation-triangle.svg +5 -0
- package/assets/images/icons/external-link.svg +6 -0
- package/assets/images/icons/eye.svg +4 -0
- package/assets/images/icons/flowers.svg +8 -0
- package/assets/images/icons/gas-emoji.svg +193 -0
- package/assets/images/icons/gas.svg +7 -0
- package/assets/images/icons/gift.svg +153 -0
- package/assets/images/icons/globe.svg +110 -0
- package/assets/images/icons/hamburger.svg +6 -0
- package/assets/images/icons/logout.svg +3 -0
- package/assets/images/icons/moon.svg +3 -0
- package/assets/images/icons/network.svg +13 -0
- package/assets/images/icons/options.svg +5 -0
- package/assets/images/icons/plus.svg +5 -0
- package/assets/images/icons/power-off-bg.svg +24 -0
- package/assets/images/icons/power-off.svg +19 -0
- package/assets/images/icons/power-on.svg +19 -0
- package/assets/images/icons/qr.svg +20 -0
- package/assets/images/icons/question-circle.svg +14 -0
- package/assets/images/icons/refresh.svg +6 -0
- package/assets/images/icons/search.svg +12 -0
- package/assets/images/icons/sun.svg +3 -0
- package/assets/images/icons/wave.svg +214 -0
- package/assets/images/icons/x.svg +5 -0
- package/components/ActionMetadata.vue +50 -0
- package/components/ChainLogo.vue +141 -1
- package/components/metadata/Bridge.vue +37 -0
- package/components/metadata/CrossTransfer.vue +65 -0
- package/components/metadata/GasTopup.vue +31 -0
- package/components/metadata/Permit2.vue +37 -0
- package/components/metadata/Swap.vue +66 -0
- package/components/metadata/Transfer.vue +43 -0
- package/components.d.ts +13 -0
- package/contracts/AvoFactoryProxy.ts +302 -0
- package/contracts/BalanceResolver.ts +321 -0
- package/contracts/Erc20.ts +526 -0
- package/contracts/Forwarder.ts +1644 -0
- package/contracts/GaslessWallet.ts +660 -0
- package/contracts/common.ts +46 -0
- package/contracts/factories/AvoFactoryProxy__factory.ts +181 -0
- package/contracts/factories/BalanceResolver__factory.ts +212 -0
- package/contracts/factories/Erc20__factory.ts +368 -0
- package/contracts/factories/Forwarder__factory.ts +1456 -0
- package/contracts/factories/GaslessWallet__factory.ts +499 -0
- package/contracts/factories/index.ts +8 -0
- package/contracts/index.ts +14 -0
- package/nuxt.config.ts +18 -2
- package/package.json +14 -5
- package/server/utils/index.ts +2 -0
- package/utils/avocado.ts +2 -0
- package/utils/bignumber.ts +51 -0
- package/utils/formatter.ts +94 -0
- package/utils/helper.ts +54 -0
- package/utils/metadata.ts +444 -0
- package/utils/network.ts +165 -26
- package/utils/services.ts +14 -0
- package/utils/utils.d.ts +116 -3
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
|
|
3
|
+
const props = defineProps<{
|
|
4
|
+
metadata: any;
|
|
5
|
+
chain_id: number | string
|
|
6
|
+
}>();
|
|
7
|
+
|
|
8
|
+
const fromToken = asyncComputed(() => {
|
|
9
|
+
if (!props?.chain_id) return null;
|
|
10
|
+
|
|
11
|
+
return fetchTokenByAddress(
|
|
12
|
+
props.metadata?.fromToken,
|
|
13
|
+
props?.chain_id
|
|
14
|
+
);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const formattedFromAmount = computed(() =>
|
|
18
|
+
formatDecimal(
|
|
19
|
+
fromWei(props.metadata?.amount, fromToken?.value?.decimals).toFixed()
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<div class="h-[60px]" v-if="!fromToken">
|
|
26
|
+
<div class="rounded-5 w-24 h-4 loading-box" />
|
|
27
|
+
</div>
|
|
28
|
+
<div class="flex gap-5 flex-col" v-else>
|
|
29
|
+
<div class="flex items-center gap-5">
|
|
30
|
+
<span class="capitalize text-xs sm:text-sm">Cross-chain send</span>
|
|
31
|
+
<span class="inline-flex gap-2.5 items-center">
|
|
32
|
+
<img width="20" height="20" class="w-5 h-5" :src="fromToken?.logo_url" />
|
|
33
|
+
{{ formattedFromAmount }}
|
|
34
|
+
<span class="uppercase">{{ fromToken?.symbol }}</span>
|
|
35
|
+
</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="flex items-center gap-2.5">
|
|
39
|
+
<span class="flex items-center gap-2.5">
|
|
40
|
+
<ChainLogo class="w-5" :chain="chain_id" />
|
|
41
|
+
<span>{{ chainIdToName(chain_id) }}</span>
|
|
42
|
+
</span>
|
|
43
|
+
|
|
44
|
+
<SvgoArrowRight class="w-4 h-4 text-slate-400" />
|
|
45
|
+
|
|
46
|
+
<span class="flex items-center gap-2.5">
|
|
47
|
+
<ChainLogo class="w-5" :chain="metadata?.toChainId" />
|
|
48
|
+
|
|
49
|
+
<a
|
|
50
|
+
target="_blank"
|
|
51
|
+
class="text-primary"
|
|
52
|
+
:href="
|
|
53
|
+
getExplorerUrl(
|
|
54
|
+
metadata?.toChainId,
|
|
55
|
+
`/address/${metadata.receiver}`
|
|
56
|
+
)
|
|
57
|
+
"
|
|
58
|
+
>{{ shortenHash(metadata.receiver) }}</a
|
|
59
|
+
>
|
|
60
|
+
on
|
|
61
|
+
<span>{{ chainIdToName(metadata?.toChainId) }}</span>
|
|
62
|
+
</span>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</template>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
|
|
3
|
+
const props = defineProps<{
|
|
4
|
+
metadata: any;
|
|
5
|
+
chain_id: number | string
|
|
6
|
+
}>();
|
|
7
|
+
|
|
8
|
+
const token = asyncComputed(() =>
|
|
9
|
+
fetchTokenByAddress(props.metadata?.token, props?.chain_id)
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
const formattedAmount = computed(() =>
|
|
13
|
+
formatDecimal(
|
|
14
|
+
fromWei(props.metadata?.amount, token?.value?.decimals).toFixed()
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<div v-if="!token" class="rounded-5 w-24 h-4 loading-box" />
|
|
21
|
+
<div class="flex items-center gap-5" v-else>
|
|
22
|
+
<span class="capitalize text-xs sm:text-sm">{{ metadata.type }}</span>
|
|
23
|
+
<span class="inline-flex gap-2.5 items-center">
|
|
24
|
+
<img width="20" height="20" class="w-5 h-5" :src="token?.logo_url" />
|
|
25
|
+
{{ formattedAmount }}
|
|
26
|
+
<span class="uppercase">{{ token?.symbol }}</span>
|
|
27
|
+
<SvgoGas class="w-4 h-4 text-slate-400 mx-2" />
|
|
28
|
+
<span>{{ shortenHash(metadata.onBehalf) }}</span>
|
|
29
|
+
</span>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
|
|
3
|
+
const props = defineProps<{
|
|
4
|
+
metadata: any;
|
|
5
|
+
chain_id: number | string
|
|
6
|
+
}>();
|
|
7
|
+
|
|
8
|
+
const token = asyncComputed(() =>
|
|
9
|
+
fetchTokenByAddress(props.metadata?.token, props?.chain_id)
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
const calculateDate = (timestamp: number) => {
|
|
13
|
+
return new Date(timestamp * 1000).toLocaleString();
|
|
14
|
+
};
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<div v-if="!token" class="rounded-5 w-24 h-4 loading-box" />
|
|
19
|
+
<div v-else class="inline-flex items-center gap-2 flex-wrap">
|
|
20
|
+
<span>Permit2 Allowance: </span>
|
|
21
|
+
<img width="20" height="20" class="w-5 h-5" :src="token?.logo_url" />
|
|
22
|
+
<span class="capitalize">{{ token?.symbol }}</span>
|
|
23
|
+
to
|
|
24
|
+
<NuxtLink
|
|
25
|
+
class="text-primary"
|
|
26
|
+
:href="
|
|
27
|
+
getExplorerUrl(chain_id, `/address/${metadata.spender}`)
|
|
28
|
+
"
|
|
29
|
+
target="_blank"
|
|
30
|
+
external
|
|
31
|
+
>
|
|
32
|
+
{{ shortenHash(metadata.spender) }}
|
|
33
|
+
</NuxtLink>
|
|
34
|
+
|
|
|
35
|
+
<span> Expiration date at {{ calculateDate(metadata?.expiration) }}</span>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
|
|
3
|
+
const props = defineProps<{
|
|
4
|
+
metadata: any;
|
|
5
|
+
chain_id: number | string
|
|
6
|
+
}>();
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const buyToken = asyncComputed(() =>
|
|
10
|
+
fetchTokenByAddress(props.metadata?.buyToken, props?.chain_id)
|
|
11
|
+
);
|
|
12
|
+
const sellToken = asyncComputed(() =>
|
|
13
|
+
fetchTokenByAddress(props.metadata?.sellToken, props?.chain_id)
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
const sellAmountFormatted = computed(() =>
|
|
17
|
+
formatDecimal(
|
|
18
|
+
fromWei(props.metadata?.sellAmount, sellToken?.value?.decimals).toFixed()
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const buyAmountFormatted = computed(() =>
|
|
23
|
+
formatDecimal(
|
|
24
|
+
fromWei(props.metadata?.buyAmount, buyToken?.value?.decimals).toFixed()
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const formatProtocol = (protocol: string) => {
|
|
29
|
+
return (
|
|
30
|
+
new Map([
|
|
31
|
+
["1inch-v5", "1inch"],
|
|
32
|
+
["0x-v1", "0x"],
|
|
33
|
+
["paraswap-v5", "Paraswap"],
|
|
34
|
+
["kyber-v1", "Kyber Network"],
|
|
35
|
+
]).get(protocol) || protocol
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<div v-if="!sellToken || !buyToken" class="rounded-5 w-24 h-4 loading-box" />
|
|
44
|
+
<div
|
|
45
|
+
class="flex items-center gap-5"
|
|
46
|
+
v-else
|
|
47
|
+
>
|
|
48
|
+
<span class="capitalize text-xs sm:text-sm">{{ metadata.type }}</span>
|
|
49
|
+
<span class="inline-flex gap-2.5 items-center">
|
|
50
|
+
<img width="20" height="20" class="w-5 h-5" :src="sellToken?.logo_url" />
|
|
51
|
+
{{ sellAmountFormatted }}
|
|
52
|
+
<span class="uppercase">{{ sellToken?.symbol }}</span>
|
|
53
|
+
<SvgoRefresh class="w-4 h-4 text-slate-400 mx-2" />
|
|
54
|
+
<img width="20" height="20" class="w-5 h-5" :src="buyToken?.logo_url" />
|
|
55
|
+
{{ buyAmountFormatted }}
|
|
56
|
+
<span class="uppercase">{{ buyToken?.symbol }}</span>
|
|
57
|
+
<span
|
|
58
|
+
class="capitalize hidden sm:flex items-center gap-2.5"
|
|
59
|
+
v-if="metadata.protocol"
|
|
60
|
+
>
|
|
61
|
+
On <ProtocolLogo class="w-5 h-5" :name="metadata.protocol" />
|
|
62
|
+
{{ formatProtocol(metadata.protocol) }}
|
|
63
|
+
</span>
|
|
64
|
+
</span>
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
|
|
3
|
+
const props = defineProps<{
|
|
4
|
+
metadata: any;
|
|
5
|
+
chain_id: number | string
|
|
6
|
+
}>();
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const token = asyncComputed(() => {
|
|
10
|
+
if (!props?.chain_id) return null;
|
|
11
|
+
|
|
12
|
+
return fetchTokenByAddress(
|
|
13
|
+
props.metadata?.token,
|
|
14
|
+
props?.chain_id
|
|
15
|
+
);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const formattedAmount = computed(() =>
|
|
19
|
+
formatDecimal(
|
|
20
|
+
fromWei(props.metadata?.amount, token?.value?.decimals).toFixed()
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<div v-if="!token" class="rounded-5 w-24 h-4 loading-box" />
|
|
27
|
+
<div class="flex items-center gap-5" v-else>
|
|
28
|
+
<span class="capitalize text-xs sm:text-sm">{{ metadata.type }}</span>
|
|
29
|
+
<span class="inline-flex gap-2.5 items-center">
|
|
30
|
+
<img width="20" height="20" class="w-5 h-5" :src="token?.logo_url" />
|
|
31
|
+
{{ formattedAmount }}
|
|
32
|
+
<span class="uppercase">{{ token?.symbol }}</span>
|
|
33
|
+
<SvgoArrowRight class="w-4 h-4 text-slate-400 mx-2" />
|
|
34
|
+
<a
|
|
35
|
+
class="text-primary"
|
|
36
|
+
:href="
|
|
37
|
+
getExplorerUrl(chain_id, `/address/${metadata.receiver}`)
|
|
38
|
+
"
|
|
39
|
+
>{{ shortenHash(metadata.receiver) }}</a
|
|
40
|
+
>
|
|
41
|
+
</span>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
package/components.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// Generated by unplugin-vue-components
|
|
5
|
+
// Read more: https://github.com/vuejs/core/pull/3399
|
|
6
|
+
export {}
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
export interface GlobalComponents {
|
|
10
|
+
RouterLink: typeof import('vue-router')['RouterLink']
|
|
11
|
+
RouterView: typeof import('vue-router')['RouterView']
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
ContractTransaction,
|
|
10
|
+
Overrides,
|
|
11
|
+
PopulatedTransaction,
|
|
12
|
+
Signer,
|
|
13
|
+
utils,
|
|
14
|
+
} from "ethers";
|
|
15
|
+
import type {
|
|
16
|
+
FunctionFragment,
|
|
17
|
+
Result,
|
|
18
|
+
EventFragment,
|
|
19
|
+
} from "@ethersproject/abi";
|
|
20
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
21
|
+
import type {
|
|
22
|
+
TypedEventFilter,
|
|
23
|
+
TypedEvent,
|
|
24
|
+
TypedListener,
|
|
25
|
+
OnEvent,
|
|
26
|
+
PromiseOrValue,
|
|
27
|
+
} from "./common";
|
|
28
|
+
|
|
29
|
+
export interface AvoFactoryProxyInterface extends utils.Interface {
|
|
30
|
+
functions: {
|
|
31
|
+
"avoSafeBytecode()": FunctionFragment;
|
|
32
|
+
"avoVersionsRegistry()": FunctionFragment;
|
|
33
|
+
"avoWalletImpl()": FunctionFragment;
|
|
34
|
+
"computeAddress(address)": FunctionFragment;
|
|
35
|
+
"deploy(address)": FunctionFragment;
|
|
36
|
+
"initialize()": FunctionFragment;
|
|
37
|
+
"setAvoWalletImpl(address)": FunctionFragment;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
getFunction(
|
|
41
|
+
nameOrSignatureOrTopic:
|
|
42
|
+
| "avoSafeBytecode"
|
|
43
|
+
| "avoVersionsRegistry"
|
|
44
|
+
| "avoWalletImpl"
|
|
45
|
+
| "computeAddress"
|
|
46
|
+
| "deploy"
|
|
47
|
+
| "initialize"
|
|
48
|
+
| "setAvoWalletImpl"
|
|
49
|
+
): FunctionFragment;
|
|
50
|
+
|
|
51
|
+
encodeFunctionData(
|
|
52
|
+
functionFragment: "avoSafeBytecode",
|
|
53
|
+
values?: undefined
|
|
54
|
+
): string;
|
|
55
|
+
encodeFunctionData(
|
|
56
|
+
functionFragment: "avoVersionsRegistry",
|
|
57
|
+
values?: undefined
|
|
58
|
+
): string;
|
|
59
|
+
encodeFunctionData(
|
|
60
|
+
functionFragment: "avoWalletImpl",
|
|
61
|
+
values?: undefined
|
|
62
|
+
): string;
|
|
63
|
+
encodeFunctionData(
|
|
64
|
+
functionFragment: "computeAddress",
|
|
65
|
+
values: [PromiseOrValue<string>]
|
|
66
|
+
): string;
|
|
67
|
+
encodeFunctionData(
|
|
68
|
+
functionFragment: "deploy",
|
|
69
|
+
values: [PromiseOrValue<string>]
|
|
70
|
+
): string;
|
|
71
|
+
encodeFunctionData(
|
|
72
|
+
functionFragment: "initialize",
|
|
73
|
+
values?: undefined
|
|
74
|
+
): string;
|
|
75
|
+
encodeFunctionData(
|
|
76
|
+
functionFragment: "setAvoWalletImpl",
|
|
77
|
+
values: [PromiseOrValue<string>]
|
|
78
|
+
): string;
|
|
79
|
+
|
|
80
|
+
decodeFunctionResult(
|
|
81
|
+
functionFragment: "avoSafeBytecode",
|
|
82
|
+
data: BytesLike
|
|
83
|
+
): Result;
|
|
84
|
+
decodeFunctionResult(
|
|
85
|
+
functionFragment: "avoVersionsRegistry",
|
|
86
|
+
data: BytesLike
|
|
87
|
+
): Result;
|
|
88
|
+
decodeFunctionResult(
|
|
89
|
+
functionFragment: "avoWalletImpl",
|
|
90
|
+
data: BytesLike
|
|
91
|
+
): Result;
|
|
92
|
+
decodeFunctionResult(
|
|
93
|
+
functionFragment: "computeAddress",
|
|
94
|
+
data: BytesLike
|
|
95
|
+
): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "deploy", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
98
|
+
decodeFunctionResult(
|
|
99
|
+
functionFragment: "setAvoWalletImpl",
|
|
100
|
+
data: BytesLike
|
|
101
|
+
): Result;
|
|
102
|
+
|
|
103
|
+
events: {
|
|
104
|
+
"AvoSafeDeployed(address,address)": EventFragment;
|
|
105
|
+
"Initialized(uint8)": EventFragment;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
getEvent(nameOrSignatureOrTopic: "AvoSafeDeployed"): EventFragment;
|
|
109
|
+
getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface AvoSafeDeployedEventObject {
|
|
113
|
+
owner: string;
|
|
114
|
+
avoSafe: string;
|
|
115
|
+
}
|
|
116
|
+
export type AvoSafeDeployedEvent = TypedEvent<
|
|
117
|
+
[string, string],
|
|
118
|
+
AvoSafeDeployedEventObject
|
|
119
|
+
>;
|
|
120
|
+
|
|
121
|
+
export type AvoSafeDeployedEventFilter = TypedEventFilter<AvoSafeDeployedEvent>;
|
|
122
|
+
|
|
123
|
+
export interface InitializedEventObject {
|
|
124
|
+
version: number;
|
|
125
|
+
}
|
|
126
|
+
export type InitializedEvent = TypedEvent<[number], InitializedEventObject>;
|
|
127
|
+
|
|
128
|
+
export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
|
|
129
|
+
|
|
130
|
+
export interface AvoFactoryProxy extends BaseContract {
|
|
131
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
132
|
+
attach(addressOrName: string): this;
|
|
133
|
+
deployed(): Promise<this>;
|
|
134
|
+
|
|
135
|
+
interface: AvoFactoryProxyInterface;
|
|
136
|
+
|
|
137
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
138
|
+
event: TypedEventFilter<TEvent>,
|
|
139
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
140
|
+
toBlock?: string | number | undefined
|
|
141
|
+
): Promise<Array<TEvent>>;
|
|
142
|
+
|
|
143
|
+
listeners<TEvent extends TypedEvent>(
|
|
144
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
145
|
+
): Array<TypedListener<TEvent>>;
|
|
146
|
+
listeners(eventName?: string): Array<Listener>;
|
|
147
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
148
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
149
|
+
): this;
|
|
150
|
+
removeAllListeners(eventName?: string): this;
|
|
151
|
+
off: OnEvent<this>;
|
|
152
|
+
on: OnEvent<this>;
|
|
153
|
+
once: OnEvent<this>;
|
|
154
|
+
removeListener: OnEvent<this>;
|
|
155
|
+
|
|
156
|
+
functions: {
|
|
157
|
+
avoSafeBytecode(overrides?: CallOverrides): Promise<[string]>;
|
|
158
|
+
|
|
159
|
+
avoVersionsRegistry(overrides?: CallOverrides): Promise<[string]>;
|
|
160
|
+
|
|
161
|
+
avoWalletImpl(overrides?: CallOverrides): Promise<[string]>;
|
|
162
|
+
|
|
163
|
+
computeAddress(
|
|
164
|
+
owner_: PromiseOrValue<string>,
|
|
165
|
+
overrides?: CallOverrides
|
|
166
|
+
): Promise<[string]>;
|
|
167
|
+
|
|
168
|
+
deploy(
|
|
169
|
+
owner_: PromiseOrValue<string>,
|
|
170
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
171
|
+
): Promise<ContractTransaction>;
|
|
172
|
+
|
|
173
|
+
initialize(
|
|
174
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
175
|
+
): Promise<ContractTransaction>;
|
|
176
|
+
|
|
177
|
+
setAvoWalletImpl(
|
|
178
|
+
avoWalletImpl_: PromiseOrValue<string>,
|
|
179
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
180
|
+
): Promise<ContractTransaction>;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
avoSafeBytecode(overrides?: CallOverrides): Promise<string>;
|
|
184
|
+
|
|
185
|
+
avoVersionsRegistry(overrides?: CallOverrides): Promise<string>;
|
|
186
|
+
|
|
187
|
+
avoWalletImpl(overrides?: CallOverrides): Promise<string>;
|
|
188
|
+
|
|
189
|
+
computeAddress(
|
|
190
|
+
owner_: PromiseOrValue<string>,
|
|
191
|
+
overrides?: CallOverrides
|
|
192
|
+
): Promise<string>;
|
|
193
|
+
|
|
194
|
+
deploy(
|
|
195
|
+
owner_: PromiseOrValue<string>,
|
|
196
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
197
|
+
): Promise<ContractTransaction>;
|
|
198
|
+
|
|
199
|
+
initialize(
|
|
200
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
201
|
+
): Promise<ContractTransaction>;
|
|
202
|
+
|
|
203
|
+
setAvoWalletImpl(
|
|
204
|
+
avoWalletImpl_: PromiseOrValue<string>,
|
|
205
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
206
|
+
): Promise<ContractTransaction>;
|
|
207
|
+
|
|
208
|
+
callStatic: {
|
|
209
|
+
avoSafeBytecode(overrides?: CallOverrides): Promise<string>;
|
|
210
|
+
|
|
211
|
+
avoVersionsRegistry(overrides?: CallOverrides): Promise<string>;
|
|
212
|
+
|
|
213
|
+
avoWalletImpl(overrides?: CallOverrides): Promise<string>;
|
|
214
|
+
|
|
215
|
+
computeAddress(
|
|
216
|
+
owner_: PromiseOrValue<string>,
|
|
217
|
+
overrides?: CallOverrides
|
|
218
|
+
): Promise<string>;
|
|
219
|
+
|
|
220
|
+
deploy(
|
|
221
|
+
owner_: PromiseOrValue<string>,
|
|
222
|
+
overrides?: CallOverrides
|
|
223
|
+
): Promise<string>;
|
|
224
|
+
|
|
225
|
+
initialize(overrides?: CallOverrides): Promise<void>;
|
|
226
|
+
|
|
227
|
+
setAvoWalletImpl(
|
|
228
|
+
avoWalletImpl_: PromiseOrValue<string>,
|
|
229
|
+
overrides?: CallOverrides
|
|
230
|
+
): Promise<void>;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
filters: {
|
|
234
|
+
"AvoSafeDeployed(address,address)"(
|
|
235
|
+
owner?: PromiseOrValue<string> | null,
|
|
236
|
+
avoSafe?: PromiseOrValue<string> | null
|
|
237
|
+
): AvoSafeDeployedEventFilter;
|
|
238
|
+
AvoSafeDeployed(
|
|
239
|
+
owner?: PromiseOrValue<string> | null,
|
|
240
|
+
avoSafe?: PromiseOrValue<string> | null
|
|
241
|
+
): AvoSafeDeployedEventFilter;
|
|
242
|
+
|
|
243
|
+
"Initialized(uint8)"(version?: null): InitializedEventFilter;
|
|
244
|
+
Initialized(version?: null): InitializedEventFilter;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
estimateGas: {
|
|
248
|
+
avoSafeBytecode(overrides?: CallOverrides): Promise<BigNumber>;
|
|
249
|
+
|
|
250
|
+
avoVersionsRegistry(overrides?: CallOverrides): Promise<BigNumber>;
|
|
251
|
+
|
|
252
|
+
avoWalletImpl(overrides?: CallOverrides): Promise<BigNumber>;
|
|
253
|
+
|
|
254
|
+
computeAddress(
|
|
255
|
+
owner_: PromiseOrValue<string>,
|
|
256
|
+
overrides?: CallOverrides
|
|
257
|
+
): Promise<BigNumber>;
|
|
258
|
+
|
|
259
|
+
deploy(
|
|
260
|
+
owner_: PromiseOrValue<string>,
|
|
261
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
262
|
+
): Promise<BigNumber>;
|
|
263
|
+
|
|
264
|
+
initialize(
|
|
265
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
266
|
+
): Promise<BigNumber>;
|
|
267
|
+
|
|
268
|
+
setAvoWalletImpl(
|
|
269
|
+
avoWalletImpl_: PromiseOrValue<string>,
|
|
270
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
271
|
+
): Promise<BigNumber>;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
populateTransaction: {
|
|
275
|
+
avoSafeBytecode(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
276
|
+
|
|
277
|
+
avoVersionsRegistry(
|
|
278
|
+
overrides?: CallOverrides
|
|
279
|
+
): Promise<PopulatedTransaction>;
|
|
280
|
+
|
|
281
|
+
avoWalletImpl(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
282
|
+
|
|
283
|
+
computeAddress(
|
|
284
|
+
owner_: PromiseOrValue<string>,
|
|
285
|
+
overrides?: CallOverrides
|
|
286
|
+
): Promise<PopulatedTransaction>;
|
|
287
|
+
|
|
288
|
+
deploy(
|
|
289
|
+
owner_: PromiseOrValue<string>,
|
|
290
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
291
|
+
): Promise<PopulatedTransaction>;
|
|
292
|
+
|
|
293
|
+
initialize(
|
|
294
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
295
|
+
): Promise<PopulatedTransaction>;
|
|
296
|
+
|
|
297
|
+
setAvoWalletImpl(
|
|
298
|
+
avoWalletImpl_: PromiseOrValue<string>,
|
|
299
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
300
|
+
): Promise<PopulatedTransaction>;
|
|
301
|
+
};
|
|
302
|
+
}
|