Skip to content

Commit 21cd7be

Browse files
committed
wip
1 parent 272329d commit 21cd7be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+22
-16823
lines changed

.github/workflows/slither.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ jobs:
2525
file: "call.sarif"
2626
- project: "examples/swap"
2727
file: "swap.sarif"
28-
- project: "examples/nft"
29-
file: "nft.sarif"
30-
- project: "examples/token"
31-
file: "token.sarif"
3228
permissions:
3329
contents: read
3430
security-events: write

examples/call/tasks/connectedCall.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ task(
7171
.addOptionalParam(
7272
"txOptionsGasPrice",
7373
"The gas price for the transaction",
74-
10000000000,
74+
20000000000,
7575
types.int
7676
)
7777
.addOptionalParam(
7878
"txOptionsGasLimit",
7979
"The gas limit for the transaction",
80-
7000000,
80+
500000,
8181
types.int
8282
)
8383
.addFlag("callOnRevert", "Whether to call on revert")
@@ -94,7 +94,7 @@ task(
9494
.addOptionalParam(
9595
"onRevertGasLimit",
9696
"The gas limit for the revert transaction",
97-
7000000,
97+
500000,
9898
types.int
9999
)
100100
.addParam("name", "The name of the contract", "Connected")

examples/call/tasks/connectedDeposit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ task("connected-deposit", "Deposit tokens to ZetaChain", main)
6464
.addOptionalParam(
6565
"txOptionsGasPrice",
6666
"The gas price for the transaction",
67-
10000000000,
67+
20000000000,
6868
types.int
6969
)
7070
.addOptionalParam(
7171
"txOptionsGasLimit",
7272
"The gas limit for the transaction",
73-
7000000,
73+
500000,
7474
types.int
7575
)
7676
.addFlag("callOnRevert", "Whether to call on revert")
@@ -87,7 +87,7 @@ task("connected-deposit", "Deposit tokens to ZetaChain", main)
8787
.addOptionalParam(
8888
"onRevertGasLimit",
8989
"The gas limit for the revert transaction",
90-
7000000,
90+
500000,
9191
types.int
9292
)
9393
.addOptionalParam("erc20", "The address of the ERC20 token to deposit")

examples/call/tasks/connectedDepositAndCall.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ task(
103103
.addOptionalParam(
104104
"txOptionsGasPrice",
105105
"The gas price for the transaction",
106-
10000000000,
106+
20000000000,
107107
types.int
108108
)
109109
.addOptionalParam(
110110
"txOptionsGasLimit",
111111
"The gas limit for the transaction",
112-
7000000,
112+
500000,
113113
types.int
114114
)
115115
.addFlag("callOnRevert", "Whether to call on revert")
@@ -126,7 +126,7 @@ task(
126126
.addOptionalParam(
127127
"onRevertGasLimit",
128128
"The gas limit for the revert transaction",
129-
7000000,
129+
500000,
130130
types.int
131131
)
132132
.addParam("amount", "The amount of tokens to deposit")

examples/call/tasks/universalCall.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ task(
9393
.addOptionalParam(
9494
"txOptionsGasPrice",
9595
"The gas price for the transaction",
96-
10000000000,
96+
20000000000,
9797
types.int
9898
)
9999
.addOptionalParam(
100100
"txOptionsGasLimit",
101101
"The gas limit for the transaction",
102-
7000000,
102+
500000,
103103
types.int
104104
)
105105
.addFlag("callOnRevert", "Whether to call on revert")
@@ -116,14 +116,14 @@ task(
116116
.addOptionalParam(
117117
"onRevertGasLimit",
118118
"The gas limit for the revert transaction",
119-
7000000,
119+
50000,
120120
types.int
121121
)
122122
.addFlag("callOptionsIsArbitraryCall", "Call any function")
123123
.addOptionalParam(
124124
"callOptionsGasLimit",
125125
"The gas limit for the call",
126-
7000000,
126+
500000,
127127
types.int
128128
)
129129
.addParam("function", `Function to call (example: "hello(string)")`)

examples/call/tasks/universalWithdraw.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ task("universal-withdraw", "Withdraw ZRC-20", main)
6363
.addOptionalParam(
6464
"txOptionsGasPrice",
6565
"The gas price for the transaction",
66-
10000000000,
66+
20000000000,
6767
types.int
6868
)
6969
.addOptionalParam(
7070
"txOptionsGasLimit",
7171
"The gas limit for the transaction",
72-
7000000,
72+
500000,
7373
types.int
7474
)
7575
.addFlag("callOnRevert", "Whether to call on revert")
@@ -86,7 +86,7 @@ task("universal-withdraw", "Withdraw ZRC-20", main)
8686
.addOptionalParam(
8787
"onRevertGasLimit",
8888
"The gas limit for the revert transaction",
89-
7000000,
89+
500000,
9090
types.int
9191
)
9292
.addParam("name", "The name of the contract", "Universal")

examples/call/tasks/universalWithdrawAndCall.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ task(
124124
.addOptionalParam(
125125
"txOptionsGasPrice",
126126
"The gas price for the transaction",
127-
10000000000,
127+
20000000000,
128128
types.int
129129
)
130130
.addOptionalParam(
131131
"txOptionsGasLimit",
132132
"The gas limit for the transaction",
133-
7000000,
133+
500000,
134134
types.int
135135
)
136136
.addFlag("callOnRevert", "Whether to call on revert")
@@ -147,14 +147,14 @@ task(
147147
.addOptionalParam(
148148
"onRevertGasLimit",
149149
"The gas limit for the revert transaction",
150-
7000000,
150+
500000,
151151
types.int
152152
)
153153
.addFlag("callOptionsIsArbitraryCall", "Call any function")
154154
.addOptionalParam(
155155
"callOptionsGasLimit",
156156
"The gas limit for the call",
157-
7000000,
157+
500000,
158158
types.int
159159
)
160160
.addOptionalParam("function", `Function to call (example: "hello(string)")`)

examples/nft/.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/nft/.eslintrc.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

examples/nft/.gitignore

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)