h-agent-swap 1.7.2 → 1.7.5
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/package.json +1 -1
- package/src/agent-swap.js +6 -0
- package/src/swap-router.js +4 -0
package/package.json
CHANGED
package/src/agent-swap.js
CHANGED
|
@@ -119,6 +119,12 @@ class AgentSwap extends HI {
|
|
|
119
119
|
return result
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
|
|
123
|
+
async updateSpace({ space = 86340,adjust = 0 }) {
|
|
124
|
+
let result = await this.manage("updateSpace", [space,adjust])
|
|
125
|
+
return result
|
|
126
|
+
}
|
|
127
|
+
|
|
122
128
|
async verifySign(signer) {
|
|
123
129
|
let result = await this.manage("verifySign", [signer])
|
|
124
130
|
return result
|
package/src/swap-router.js
CHANGED
|
@@ -20,6 +20,10 @@ class SwapRouter extends HI {
|
|
|
20
20
|
this.WETH = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
|
|
21
21
|
}else if(chainId == 97) {
|
|
22
22
|
this.WETH = "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"
|
|
23
|
+
}else if(chainId == 137) {
|
|
24
|
+
this.WETH = "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"
|
|
25
|
+
}else if(chainId == 80001) {
|
|
26
|
+
this.WETH = "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
let gasPrice = await this.GasPrice()
|