@sentio/sdk 2.17.1-rc.1 → 2.18.0-rc.1
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/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +17 -0
 - package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +88 -0
 - package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/erc1155-processor.d.ts +13 -0
 - package/lib/eth/builtin/internal/erc1155-processor.js +56 -0
 - package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/erc20-processor.d.ts +28 -1
 - package/lib/eth/builtin/internal/erc20-processor.js +168 -0
 - package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +14 -1
 - package/lib/eth/builtin/internal/erc20bytes-processor.js +56 -0
 - package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/erc721-processor.d.ts +17 -0
 - package/lib/eth/builtin/internal/erc721-processor.js +88 -0
 - package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
 - package/lib/eth/builtin/internal/weth9-processor.d.ts +18 -1
 - package/lib/eth/builtin/internal/weth9-processor.js +88 -0
 - package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
 - package/lib/eth/codegen/file.js +22 -4
 - package/lib/eth/codegen/file.js.map +1 -1
 - package/lib/eth/codegen/function-calls.d.ts +5 -0
 - package/lib/eth/codegen/function-calls.js +64 -0
 - package/lib/eth/codegen/function-calls.js.map +1 -0
 - package/package.json +3 -3
 - package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +105 -0
 - package/src/eth/builtin/internal/erc1155-processor.ts +111 -0
 - package/src/eth/builtin/internal/erc20-processor.ts +228 -1
 - package/src/eth/builtin/internal/erc20bytes-processor.ts +84 -1
 - package/src/eth/builtin/internal/erc721-processor.ts +146 -0
 - package/src/eth/builtin/internal/weth9-processor.ts +114 -1
 - package/src/eth/codegen/file.ts +22 -4
 - package/src/eth/codegen/function-calls.ts +78 -0
 - package/lib/eth/codegen/view-function.d.ts +0 -5
 - package/lib/eth/codegen/view-function.js +0 -60
 - package/lib/eth/codegen/view-function.js.map +0 -1
 - package/src/eth/codegen/view-function.ts +0 -71
 
| 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            /* Autogenerated file. Do not edit manually. */
         
     | 
| 
       2 
2 
     | 
    
         
             
            /* tslint:disable */
         
     | 
| 
       3 
3 
     | 
    
         
             
            /* eslint-disable */
         
     | 
| 
       4 
     | 
    
         
            -
            import { Overrides } from "ethers";
         
     | 
| 
      
 4 
     | 
    
         
            +
            import { BigNumberish, Overrides } from "ethers";
         
     | 
| 
       5 
5 
     | 
    
         
             
            import {
         
     | 
| 
       6 
6 
     | 
    
         
             
              addContractByABI,
         
     | 
| 
       7 
7 
     | 
    
         
             
              getContractByABI,
         
     | 
| 
         @@ -167,6 +167,7 @@ const templateContract = ERC20__factory.connect("0x0", DummyProvider); 
     | 
|
| 
       167 
167 
     | 
    
         
             
            export class ERC20ContractView extends ContractView<ERC20> {
         
     | 
| 
       168 
168 
     | 
    
         
             
              constructor(contract: ERC20) {
         
     | 
| 
       169 
169 
     | 
    
         
             
                super(contract);
         
     | 
| 
      
 170 
     | 
    
         
            +
                this.callStatic.contract = contract;
         
     | 
| 
       170 
171 
     | 
    
         
             
              }
         
     | 
| 
       171 
172 
     | 
    
         | 
| 
       172 
173 
     | 
    
         
             
              async allowance(
         
     | 
| 
         @@ -243,6 +244,129 @@ export class ERC20ContractView extends ContractView<ERC20> { 
     | 
|
| 
       243 
244 
     | 
    
         
             
                  throw transformEtherError(e, undefined);
         
     | 
| 
       244 
245 
     | 
    
         
             
                }
         
     | 
| 
       245 
246 
     | 
    
         
             
              }
         
     | 
| 
      
 247 
     | 
    
         
            +
             
     | 
| 
      
 248 
     | 
    
         
            +
              callStatic = {
         
     | 
| 
      
 249 
     | 
    
         
            +
                contract: this.contract,
         
     | 
| 
      
 250 
     | 
    
         
            +
             
     | 
| 
      
 251 
     | 
    
         
            +
                async approve(
         
     | 
| 
      
 252 
     | 
    
         
            +
                  spender: string,
         
     | 
| 
      
 253 
     | 
    
         
            +
                  amount: BigNumberish,
         
     | 
| 
      
 254 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 255 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 256 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 257 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 258 
     | 
    
         
            +
                      .getFunction("approve(address,uint256)")
         
     | 
| 
      
 259 
     | 
    
         
            +
                      .staticCall(spender, amount, overrides || {});
         
     | 
| 
      
 260 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 261 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 262 
     | 
    
         
            +
                  }
         
     | 
| 
      
 263 
     | 
    
         
            +
                },
         
     | 
| 
      
 264 
     | 
    
         
            +
                async burn(amount: BigNumberish, overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 265 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 266 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 267 
     | 
    
         
            +
                      .getFunction("burn(uint256)")
         
     | 
| 
      
 268 
     | 
    
         
            +
                      .staticCall(amount, overrides || {});
         
     | 
| 
      
 269 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 270 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 271 
     | 
    
         
            +
                  }
         
     | 
| 
      
 272 
     | 
    
         
            +
                },
         
     | 
| 
      
 273 
     | 
    
         
            +
                async burnFrom(
         
     | 
| 
      
 274 
     | 
    
         
            +
                  account: string,
         
     | 
| 
      
 275 
     | 
    
         
            +
                  amount: BigNumberish,
         
     | 
| 
      
 276 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 277 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 278 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 279 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 280 
     | 
    
         
            +
                      .getFunction("burnFrom(address,uint256)")
         
     | 
| 
      
 281 
     | 
    
         
            +
                      .staticCall(account, amount, overrides || {});
         
     | 
| 
      
 282 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 283 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 284 
     | 
    
         
            +
                  }
         
     | 
| 
      
 285 
     | 
    
         
            +
                },
         
     | 
| 
      
 286 
     | 
    
         
            +
                async decreaseAllowance(
         
     | 
| 
      
 287 
     | 
    
         
            +
                  spender: string,
         
     | 
| 
      
 288 
     | 
    
         
            +
                  subtractedValue: BigNumberish,
         
     | 
| 
      
 289 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 290 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 291 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 292 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 293 
     | 
    
         
            +
                      .getFunction("decreaseAllowance(address,uint256)")
         
     | 
| 
      
 294 
     | 
    
         
            +
                      .staticCall(spender, subtractedValue, overrides || {});
         
     | 
| 
      
 295 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 296 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 297 
     | 
    
         
            +
                  }
         
     | 
| 
      
 298 
     | 
    
         
            +
                },
         
     | 
| 
      
 299 
     | 
    
         
            +
                async increaseAllowance(
         
     | 
| 
      
 300 
     | 
    
         
            +
                  spender: string,
         
     | 
| 
      
 301 
     | 
    
         
            +
                  addedValue: BigNumberish,
         
     | 
| 
      
 302 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 303 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 304 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 305 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 306 
     | 
    
         
            +
                      .getFunction("increaseAllowance(address,uint256)")
         
     | 
| 
      
 307 
     | 
    
         
            +
                      .staticCall(spender, addedValue, overrides || {});
         
     | 
| 
      
 308 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 309 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 310 
     | 
    
         
            +
                  }
         
     | 
| 
      
 311 
     | 
    
         
            +
                },
         
     | 
| 
      
 312 
     | 
    
         
            +
                async renounceOwnership(overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 313 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 314 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 315 
     | 
    
         
            +
                      .getFunction("renounceOwnership()")
         
     | 
| 
      
 316 
     | 
    
         
            +
                      .staticCall(overrides || {});
         
     | 
| 
      
 317 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 318 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 319 
     | 
    
         
            +
                  }
         
     | 
| 
      
 320 
     | 
    
         
            +
                },
         
     | 
| 
      
 321 
     | 
    
         
            +
                async setLocker(_locker: string, overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 322 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 323 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 324 
     | 
    
         
            +
                      .getFunction("setLocker(address)")
         
     | 
| 
      
 325 
     | 
    
         
            +
                      .staticCall(_locker, overrides || {});
         
     | 
| 
      
 326 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 327 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 328 
     | 
    
         
            +
                  }
         
     | 
| 
      
 329 
     | 
    
         
            +
                },
         
     | 
| 
      
 330 
     | 
    
         
            +
                async transfer(
         
     | 
| 
      
 331 
     | 
    
         
            +
                  recipient: string,
         
     | 
| 
      
 332 
     | 
    
         
            +
                  amount: BigNumberish,
         
     | 
| 
      
 333 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 334 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 335 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 336 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 337 
     | 
    
         
            +
                      .getFunction("transfer(address,uint256)")
         
     | 
| 
      
 338 
     | 
    
         
            +
                      .staticCall(recipient, amount, overrides || {});
         
     | 
| 
      
 339 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 340 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 341 
     | 
    
         
            +
                  }
         
     | 
| 
      
 342 
     | 
    
         
            +
                },
         
     | 
| 
      
 343 
     | 
    
         
            +
                async transferFrom(
         
     | 
| 
      
 344 
     | 
    
         
            +
                  sender: string,
         
     | 
| 
      
 345 
     | 
    
         
            +
                  recipient: string,
         
     | 
| 
      
 346 
     | 
    
         
            +
                  amount: BigNumberish,
         
     | 
| 
      
 347 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 348 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 349 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 350 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 351 
     | 
    
         
            +
                      .getFunction("transferFrom(address,address,uint256)")
         
     | 
| 
      
 352 
     | 
    
         
            +
                      .staticCall(sender, recipient, amount, overrides || {});
         
     | 
| 
      
 353 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 354 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 355 
     | 
    
         
            +
                  }
         
     | 
| 
      
 356 
     | 
    
         
            +
                },
         
     | 
| 
      
 357 
     | 
    
         
            +
                async transferOwnership(
         
     | 
| 
      
 358 
     | 
    
         
            +
                  newOwner: string,
         
     | 
| 
      
 359 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 360 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 361 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 362 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 363 
     | 
    
         
            +
                      .getFunction("transferOwnership(address)")
         
     | 
| 
      
 364 
     | 
    
         
            +
                      .staticCall(newOwner, overrides || {});
         
     | 
| 
      
 365 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 366 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 367 
     | 
    
         
            +
                  }
         
     | 
| 
      
 368 
     | 
    
         
            +
                },
         
     | 
| 
      
 369 
     | 
    
         
            +
              };
         
     | 
| 
       246 
370 
     | 
    
         
             
            }
         
     | 
| 
       247 
371 
     | 
    
         | 
| 
       248 
372 
     | 
    
         
             
            export class ERC20BoundContractView extends BoundContractView<
         
     | 
| 
         @@ -308,6 +432,109 @@ export class ERC20BoundContractView extends BoundContractView< 
     | 
|
| 
       308 
432 
     | 
    
         
             
                  ...overrides,
         
     | 
| 
       309 
433 
     | 
    
         
             
                });
         
     | 
| 
       310 
434 
     | 
    
         
             
              }
         
     | 
| 
      
 435 
     | 
    
         
            +
             
     | 
| 
      
 436 
     | 
    
         
            +
              callStatic = {
         
     | 
| 
      
 437 
     | 
    
         
            +
                view: this.view,
         
     | 
| 
      
 438 
     | 
    
         
            +
                context: this.context,
         
     | 
| 
      
 439 
     | 
    
         
            +
             
     | 
| 
      
 440 
     | 
    
         
            +
                async approve(
         
     | 
| 
      
 441 
     | 
    
         
            +
                  spender: string,
         
     | 
| 
      
 442 
     | 
    
         
            +
                  amount: BigNumberish,
         
     | 
| 
      
 443 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 444 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 445 
     | 
    
         
            +
                  return await this.view.callStatic.approve(spender, amount, {
         
     | 
| 
      
 446 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 447 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 448 
     | 
    
         
            +
                  });
         
     | 
| 
      
 449 
     | 
    
         
            +
                },
         
     | 
| 
      
 450 
     | 
    
         
            +
                async burn(amount: BigNumberish, overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 451 
     | 
    
         
            +
                  return await this.view.callStatic.burn(amount, {
         
     | 
| 
      
 452 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 453 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 454 
     | 
    
         
            +
                  });
         
     | 
| 
      
 455 
     | 
    
         
            +
                },
         
     | 
| 
      
 456 
     | 
    
         
            +
                async burnFrom(
         
     | 
| 
      
 457 
     | 
    
         
            +
                  account: string,
         
     | 
| 
      
 458 
     | 
    
         
            +
                  amount: BigNumberish,
         
     | 
| 
      
 459 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 460 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 461 
     | 
    
         
            +
                  return await this.view.callStatic.burnFrom(account, amount, {
         
     | 
| 
      
 462 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 463 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 464 
     | 
    
         
            +
                  });
         
     | 
| 
      
 465 
     | 
    
         
            +
                },
         
     | 
| 
      
 466 
     | 
    
         
            +
                async decreaseAllowance(
         
     | 
| 
      
 467 
     | 
    
         
            +
                  spender: string,
         
     | 
| 
      
 468 
     | 
    
         
            +
                  subtractedValue: BigNumberish,
         
     | 
| 
      
 469 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 470 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 471 
     | 
    
         
            +
                  return await this.view.callStatic.decreaseAllowance(
         
     | 
| 
      
 472 
     | 
    
         
            +
                    spender,
         
     | 
| 
      
 473 
     | 
    
         
            +
                    subtractedValue,
         
     | 
| 
      
 474 
     | 
    
         
            +
                    {
         
     | 
| 
      
 475 
     | 
    
         
            +
                      blockTag: this.context.blockNumber,
         
     | 
| 
      
 476 
     | 
    
         
            +
                      ...overrides,
         
     | 
| 
      
 477 
     | 
    
         
            +
                    }
         
     | 
| 
      
 478 
     | 
    
         
            +
                  );
         
     | 
| 
      
 479 
     | 
    
         
            +
                },
         
     | 
| 
      
 480 
     | 
    
         
            +
                async increaseAllowance(
         
     | 
| 
      
 481 
     | 
    
         
            +
                  spender: string,
         
     | 
| 
      
 482 
     | 
    
         
            +
                  addedValue: BigNumberish,
         
     | 
| 
      
 483 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 484 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 485 
     | 
    
         
            +
                  return await this.view.callStatic.increaseAllowance(spender, addedValue, {
         
     | 
| 
      
 486 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 487 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 488 
     | 
    
         
            +
                  });
         
     | 
| 
      
 489 
     | 
    
         
            +
                },
         
     | 
| 
      
 490 
     | 
    
         
            +
                async renounceOwnership(overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 491 
     | 
    
         
            +
                  return await this.view.callStatic.renounceOwnership({
         
     | 
| 
      
 492 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 493 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 494 
     | 
    
         
            +
                  });
         
     | 
| 
      
 495 
     | 
    
         
            +
                },
         
     | 
| 
      
 496 
     | 
    
         
            +
                async setLocker(_locker: string, overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 497 
     | 
    
         
            +
                  return await this.view.callStatic.setLocker(_locker, {
         
     | 
| 
      
 498 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 499 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 500 
     | 
    
         
            +
                  });
         
     | 
| 
      
 501 
     | 
    
         
            +
                },
         
     | 
| 
      
 502 
     | 
    
         
            +
                async transfer(
         
     | 
| 
      
 503 
     | 
    
         
            +
                  recipient: string,
         
     | 
| 
      
 504 
     | 
    
         
            +
                  amount: BigNumberish,
         
     | 
| 
      
 505 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 506 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 507 
     | 
    
         
            +
                  return await this.view.callStatic.transfer(recipient, amount, {
         
     | 
| 
      
 508 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 509 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 510 
     | 
    
         
            +
                  });
         
     | 
| 
      
 511 
     | 
    
         
            +
                },
         
     | 
| 
      
 512 
     | 
    
         
            +
                async transferFrom(
         
     | 
| 
      
 513 
     | 
    
         
            +
                  sender: string,
         
     | 
| 
      
 514 
     | 
    
         
            +
                  recipient: string,
         
     | 
| 
      
 515 
     | 
    
         
            +
                  amount: BigNumberish,
         
     | 
| 
      
 516 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 517 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 518 
     | 
    
         
            +
                  return await this.view.callStatic.transferFrom(
         
     | 
| 
      
 519 
     | 
    
         
            +
                    sender,
         
     | 
| 
      
 520 
     | 
    
         
            +
                    recipient,
         
     | 
| 
      
 521 
     | 
    
         
            +
                    amount,
         
     | 
| 
      
 522 
     | 
    
         
            +
                    {
         
     | 
| 
      
 523 
     | 
    
         
            +
                      blockTag: this.context.blockNumber,
         
     | 
| 
      
 524 
     | 
    
         
            +
                      ...overrides,
         
     | 
| 
      
 525 
     | 
    
         
            +
                    }
         
     | 
| 
      
 526 
     | 
    
         
            +
                  );
         
     | 
| 
      
 527 
     | 
    
         
            +
                },
         
     | 
| 
      
 528 
     | 
    
         
            +
                async transferOwnership(
         
     | 
| 
      
 529 
     | 
    
         
            +
                  newOwner: string,
         
     | 
| 
      
 530 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 531 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 532 
     | 
    
         
            +
                  return await this.view.callStatic.transferOwnership(newOwner, {
         
     | 
| 
      
 533 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 534 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 535 
     | 
    
         
            +
                  });
         
     | 
| 
      
 536 
     | 
    
         
            +
                },
         
     | 
| 
      
 537 
     | 
    
         
            +
              };
         
     | 
| 
       311 
538 
     | 
    
         
             
            }
         
     | 
| 
       312 
539 
     | 
    
         | 
| 
       313 
540 
     | 
    
         
             
            export type ERC20Context = ContractContext<ERC20, ERC20BoundContractView>;
         
     | 
| 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            /* Autogenerated file. Do not edit manually. */
         
     | 
| 
       2 
2 
     | 
    
         
             
            /* tslint:disable */
         
     | 
| 
       3 
3 
     | 
    
         
             
            /* eslint-disable */
         
     | 
| 
       4 
     | 
    
         
            -
            import { Overrides } from "ethers";
         
     | 
| 
      
 4 
     | 
    
         
            +
            import { BigNumberish, Overrides } from "ethers";
         
     | 
| 
       5 
5 
     | 
    
         
             
            import {
         
     | 
| 
       6 
6 
     | 
    
         
             
              addContractByABI,
         
     | 
| 
       7 
7 
     | 
    
         
             
              getContractByABI,
         
     | 
| 
         @@ -99,6 +99,7 @@ const templateContract = ERC20Bytes__factory.connect("0x0", DummyProvider); 
     | 
|
| 
       99 
99 
     | 
    
         
             
            export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
         
     | 
| 
       100 
100 
     | 
    
         
             
              constructor(contract: ERC20Bytes) {
         
     | 
| 
       101 
101 
     | 
    
         
             
                super(contract);
         
     | 
| 
      
 102 
     | 
    
         
            +
                this.callStatic.contract = contract;
         
     | 
| 
       102 
103 
     | 
    
         
             
              }
         
     | 
| 
       103 
104 
     | 
    
         | 
| 
       104 
105 
     | 
    
         
             
              async name(overrides?: Overrides): Promise<string> {
         
     | 
| 
         @@ -159,6 +160,51 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> { 
     | 
|
| 
       159 
160 
     | 
    
         
             
                  throw transformEtherError(e, undefined);
         
     | 
| 
       160 
161 
     | 
    
         
             
                }
         
     | 
| 
       161 
162 
     | 
    
         
             
              }
         
     | 
| 
      
 163 
     | 
    
         
            +
             
     | 
| 
      
 164 
     | 
    
         
            +
              callStatic = {
         
     | 
| 
      
 165 
     | 
    
         
            +
                contract: this.contract,
         
     | 
| 
      
 166 
     | 
    
         
            +
             
     | 
| 
      
 167 
     | 
    
         
            +
                async approve(
         
     | 
| 
      
 168 
     | 
    
         
            +
                  spender: string,
         
     | 
| 
      
 169 
     | 
    
         
            +
                  value: BigNumberish,
         
     | 
| 
      
 170 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 171 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 172 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 173 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 174 
     | 
    
         
            +
                      .getFunction("approve(address,uint256)")
         
     | 
| 
      
 175 
     | 
    
         
            +
                      .staticCall(spender, value, overrides || {});
         
     | 
| 
      
 176 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 177 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 178 
     | 
    
         
            +
                  }
         
     | 
| 
      
 179 
     | 
    
         
            +
                },
         
     | 
| 
      
 180 
     | 
    
         
            +
                async transferFrom(
         
     | 
| 
      
 181 
     | 
    
         
            +
                  from: string,
         
     | 
| 
      
 182 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 183 
     | 
    
         
            +
                  value: BigNumberish,
         
     | 
| 
      
 184 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 185 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 186 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 187 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 188 
     | 
    
         
            +
                      .getFunction("transferFrom(address,address,uint256)")
         
     | 
| 
      
 189 
     | 
    
         
            +
                      .staticCall(from, to, value, overrides || {});
         
     | 
| 
      
 190 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 191 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 192 
     | 
    
         
            +
                  }
         
     | 
| 
      
 193 
     | 
    
         
            +
                },
         
     | 
| 
      
 194 
     | 
    
         
            +
                async transfer(
         
     | 
| 
      
 195 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 196 
     | 
    
         
            +
                  value: BigNumberish,
         
     | 
| 
      
 197 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 198 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 199 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 200 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 201 
     | 
    
         
            +
                      .getFunction("transfer(address,uint256)")
         
     | 
| 
      
 202 
     | 
    
         
            +
                      .staticCall(to, value, overrides || {});
         
     | 
| 
      
 203 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 204 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 205 
     | 
    
         
            +
                  }
         
     | 
| 
      
 206 
     | 
    
         
            +
                },
         
     | 
| 
      
 207 
     | 
    
         
            +
              };
         
     | 
| 
       162 
208 
     | 
    
         
             
            }
         
     | 
| 
       163 
209 
     | 
    
         | 
| 
       164 
210 
     | 
    
         
             
            export class ERC20BytesBoundContractView extends BoundContractView<
         
     | 
| 
         @@ -210,6 +256,43 @@ export class ERC20BytesBoundContractView extends BoundContractView< 
     | 
|
| 
       210 
256 
     | 
    
         
             
                  ...overrides,
         
     | 
| 
       211 
257 
     | 
    
         
             
                });
         
     | 
| 
       212 
258 
     | 
    
         
             
              }
         
     | 
| 
      
 259 
     | 
    
         
            +
             
     | 
| 
      
 260 
     | 
    
         
            +
              callStatic = {
         
     | 
| 
      
 261 
     | 
    
         
            +
                view: this.view,
         
     | 
| 
      
 262 
     | 
    
         
            +
                context: this.context,
         
     | 
| 
      
 263 
     | 
    
         
            +
             
     | 
| 
      
 264 
     | 
    
         
            +
                async approve(
         
     | 
| 
      
 265 
     | 
    
         
            +
                  spender: string,
         
     | 
| 
      
 266 
     | 
    
         
            +
                  value: BigNumberish,
         
     | 
| 
      
 267 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 268 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 269 
     | 
    
         
            +
                  return await this.view.callStatic.approve(spender, value, {
         
     | 
| 
      
 270 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 271 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 272 
     | 
    
         
            +
                  });
         
     | 
| 
      
 273 
     | 
    
         
            +
                },
         
     | 
| 
      
 274 
     | 
    
         
            +
                async transferFrom(
         
     | 
| 
      
 275 
     | 
    
         
            +
                  from: string,
         
     | 
| 
      
 276 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 277 
     | 
    
         
            +
                  value: BigNumberish,
         
     | 
| 
      
 278 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 279 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 280 
     | 
    
         
            +
                  return await this.view.callStatic.transferFrom(from, to, value, {
         
     | 
| 
      
 281 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 282 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 283 
     | 
    
         
            +
                  });
         
     | 
| 
      
 284 
     | 
    
         
            +
                },
         
     | 
| 
      
 285 
     | 
    
         
            +
                async transfer(
         
     | 
| 
      
 286 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 287 
     | 
    
         
            +
                  value: BigNumberish,
         
     | 
| 
      
 288 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 289 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 290 
     | 
    
         
            +
                  return await this.view.callStatic.transfer(to, value, {
         
     | 
| 
      
 291 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 292 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 293 
     | 
    
         
            +
                  });
         
     | 
| 
      
 294 
     | 
    
         
            +
                },
         
     | 
| 
      
 295 
     | 
    
         
            +
              };
         
     | 
| 
       213 
296 
     | 
    
         
             
            }
         
     | 
| 
       214 
297 
     | 
    
         | 
| 
       215 
298 
     | 
    
         
             
            export type ERC20BytesContext = ContractContext<
         
     | 
| 
         @@ -151,6 +151,7 @@ const templateContract = ERC721__factory.connect("0x0", DummyProvider); 
     | 
|
| 
       151 
151 
     | 
    
         
             
            export class ERC721ContractView extends ContractView<ERC721> {
         
     | 
| 
       152 
152 
     | 
    
         
             
              constructor(contract: ERC721) {
         
     | 
| 
       153 
153 
     | 
    
         
             
                super(contract);
         
     | 
| 
      
 154 
     | 
    
         
            +
                this.callStatic.contract = contract;
         
     | 
| 
       154 
155 
     | 
    
         
             
              }
         
     | 
| 
       155 
156 
     | 
    
         | 
| 
       156 
157 
     | 
    
         
             
              async totalSupply(overrides?: Overrides): Promise<bigint> {
         
     | 
| 
         @@ -254,6 +255,80 @@ export class ERC721ContractView extends ContractView<ERC721> { 
     | 
|
| 
       254 
255 
     | 
    
         
             
                  throw transformEtherError(e, undefined);
         
     | 
| 
       255 
256 
     | 
    
         
             
                }
         
     | 
| 
       256 
257 
     | 
    
         
             
              }
         
     | 
| 
      
 258 
     | 
    
         
            +
             
     | 
| 
      
 259 
     | 
    
         
            +
              callStatic = {
         
     | 
| 
      
 260 
     | 
    
         
            +
                contract: this.contract,
         
     | 
| 
      
 261 
     | 
    
         
            +
             
     | 
| 
      
 262 
     | 
    
         
            +
                async approve(
         
     | 
| 
      
 263 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 264 
     | 
    
         
            +
                  tokenId: BigNumberish,
         
     | 
| 
      
 265 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 266 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 267 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 268 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 269 
     | 
    
         
            +
                      .getFunction("approve(address,uint256)")
         
     | 
| 
      
 270 
     | 
    
         
            +
                      .staticCall(to, tokenId, overrides || {});
         
     | 
| 
      
 271 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 272 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 273 
     | 
    
         
            +
                  }
         
     | 
| 
      
 274 
     | 
    
         
            +
                },
         
     | 
| 
      
 275 
     | 
    
         
            +
                async safeTransferFrom_address_address_uint256(
         
     | 
| 
      
 276 
     | 
    
         
            +
                  from: string,
         
     | 
| 
      
 277 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 278 
     | 
    
         
            +
                  tokenId: BigNumberish,
         
     | 
| 
      
 279 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 280 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 281 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 282 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 283 
     | 
    
         
            +
                      .getFunction("safeTransferFrom(address,address,uint256)")
         
     | 
| 
      
 284 
     | 
    
         
            +
                      .staticCall(from, to, tokenId, overrides || {});
         
     | 
| 
      
 285 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 286 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 287 
     | 
    
         
            +
                  }
         
     | 
| 
      
 288 
     | 
    
         
            +
                },
         
     | 
| 
      
 289 
     | 
    
         
            +
                async safeTransferFrom_address_address_uint256_bytes(
         
     | 
| 
      
 290 
     | 
    
         
            +
                  from: string,
         
     | 
| 
      
 291 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 292 
     | 
    
         
            +
                  tokenId: BigNumberish,
         
     | 
| 
      
 293 
     | 
    
         
            +
                  data: BytesLike,
         
     | 
| 
      
 294 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 295 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 296 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 297 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 298 
     | 
    
         
            +
                      .getFunction("safeTransferFrom(address,address,uint256,bytes)")
         
     | 
| 
      
 299 
     | 
    
         
            +
                      .staticCall(from, to, tokenId, data, overrides || {});
         
     | 
| 
      
 300 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 301 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 302 
     | 
    
         
            +
                  }
         
     | 
| 
      
 303 
     | 
    
         
            +
                },
         
     | 
| 
      
 304 
     | 
    
         
            +
                async setApprovalForAll(
         
     | 
| 
      
 305 
     | 
    
         
            +
                  operator: string,
         
     | 
| 
      
 306 
     | 
    
         
            +
                  _approved: boolean,
         
     | 
| 
      
 307 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 308 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 309 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 310 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 311 
     | 
    
         
            +
                      .getFunction("setApprovalForAll(address,bool)")
         
     | 
| 
      
 312 
     | 
    
         
            +
                      .staticCall(operator, _approved, overrides || {});
         
     | 
| 
      
 313 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 314 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 315 
     | 
    
         
            +
                  }
         
     | 
| 
      
 316 
     | 
    
         
            +
                },
         
     | 
| 
      
 317 
     | 
    
         
            +
                async transferFrom(
         
     | 
| 
      
 318 
     | 
    
         
            +
                  from: string,
         
     | 
| 
      
 319 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 320 
     | 
    
         
            +
                  tokenId: BigNumberish,
         
     | 
| 
      
 321 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 322 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 323 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 324 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 325 
     | 
    
         
            +
                      .getFunction("transferFrom(address,address,uint256)")
         
     | 
| 
      
 326 
     | 
    
         
            +
                      .staticCall(from, to, tokenId, overrides || {});
         
     | 
| 
      
 327 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 328 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 329 
     | 
    
         
            +
                  }
         
     | 
| 
      
 330 
     | 
    
         
            +
                },
         
     | 
| 
      
 331 
     | 
    
         
            +
              };
         
     | 
| 
       257 
332 
     | 
    
         
             
            }
         
     | 
| 
       258 
333 
     | 
    
         | 
| 
       259 
334 
     | 
    
         
             
            export class ERC721BoundContractView extends BoundContractView<
         
     | 
| 
         @@ -335,6 +410,77 @@ export class ERC721BoundContractView extends BoundContractView< 
     | 
|
| 
       335 
410 
     | 
    
         
             
                  ...overrides,
         
     | 
| 
       336 
411 
     | 
    
         
             
                });
         
     | 
| 
       337 
412 
     | 
    
         
             
              }
         
     | 
| 
      
 413 
     | 
    
         
            +
             
     | 
| 
      
 414 
     | 
    
         
            +
              callStatic = {
         
     | 
| 
      
 415 
     | 
    
         
            +
                view: this.view,
         
     | 
| 
      
 416 
     | 
    
         
            +
                context: this.context,
         
     | 
| 
      
 417 
     | 
    
         
            +
             
     | 
| 
      
 418 
     | 
    
         
            +
                async approve(
         
     | 
| 
      
 419 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 420 
     | 
    
         
            +
                  tokenId: BigNumberish,
         
     | 
| 
      
 421 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 422 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 423 
     | 
    
         
            +
                  return await this.view.callStatic.approve(to, tokenId, {
         
     | 
| 
      
 424 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 425 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 426 
     | 
    
         
            +
                  });
         
     | 
| 
      
 427 
     | 
    
         
            +
                },
         
     | 
| 
      
 428 
     | 
    
         
            +
                async safeTransferFrom_address_address_uint256(
         
     | 
| 
      
 429 
     | 
    
         
            +
                  from: string,
         
     | 
| 
      
 430 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 431 
     | 
    
         
            +
                  tokenId: BigNumberish,
         
     | 
| 
      
 432 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 433 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 434 
     | 
    
         
            +
                  return await this.view.callStatic.safeTransferFrom_address_address_uint256(
         
     | 
| 
      
 435 
     | 
    
         
            +
                    from,
         
     | 
| 
      
 436 
     | 
    
         
            +
                    to,
         
     | 
| 
      
 437 
     | 
    
         
            +
                    tokenId,
         
     | 
| 
      
 438 
     | 
    
         
            +
                    {
         
     | 
| 
      
 439 
     | 
    
         
            +
                      blockTag: this.context.blockNumber,
         
     | 
| 
      
 440 
     | 
    
         
            +
                      ...overrides,
         
     | 
| 
      
 441 
     | 
    
         
            +
                    }
         
     | 
| 
      
 442 
     | 
    
         
            +
                  );
         
     | 
| 
      
 443 
     | 
    
         
            +
                },
         
     | 
| 
      
 444 
     | 
    
         
            +
                async safeTransferFrom_address_address_uint256_bytes(
         
     | 
| 
      
 445 
     | 
    
         
            +
                  from: string,
         
     | 
| 
      
 446 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 447 
     | 
    
         
            +
                  tokenId: BigNumberish,
         
     | 
| 
      
 448 
     | 
    
         
            +
                  data: BytesLike,
         
     | 
| 
      
 449 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 450 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 451 
     | 
    
         
            +
                  return await this.view.callStatic.safeTransferFrom_address_address_uint256_bytes(
         
     | 
| 
      
 452 
     | 
    
         
            +
                    from,
         
     | 
| 
      
 453 
     | 
    
         
            +
                    to,
         
     | 
| 
      
 454 
     | 
    
         
            +
                    tokenId,
         
     | 
| 
      
 455 
     | 
    
         
            +
                    data,
         
     | 
| 
      
 456 
     | 
    
         
            +
                    {
         
     | 
| 
      
 457 
     | 
    
         
            +
                      blockTag: this.context.blockNumber,
         
     | 
| 
      
 458 
     | 
    
         
            +
                      ...overrides,
         
     | 
| 
      
 459 
     | 
    
         
            +
                    }
         
     | 
| 
      
 460 
     | 
    
         
            +
                  );
         
     | 
| 
      
 461 
     | 
    
         
            +
                },
         
     | 
| 
      
 462 
     | 
    
         
            +
                async setApprovalForAll(
         
     | 
| 
      
 463 
     | 
    
         
            +
                  operator: string,
         
     | 
| 
      
 464 
     | 
    
         
            +
                  _approved: boolean,
         
     | 
| 
      
 465 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 466 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 467 
     | 
    
         
            +
                  return await this.view.callStatic.setApprovalForAll(operator, _approved, {
         
     | 
| 
      
 468 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 469 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 470 
     | 
    
         
            +
                  });
         
     | 
| 
      
 471 
     | 
    
         
            +
                },
         
     | 
| 
      
 472 
     | 
    
         
            +
                async transferFrom(
         
     | 
| 
      
 473 
     | 
    
         
            +
                  from: string,
         
     | 
| 
      
 474 
     | 
    
         
            +
                  to: string,
         
     | 
| 
      
 475 
     | 
    
         
            +
                  tokenId: BigNumberish,
         
     | 
| 
      
 476 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 477 
     | 
    
         
            +
                ): Promise<void> {
         
     | 
| 
      
 478 
     | 
    
         
            +
                  return await this.view.callStatic.transferFrom(from, to, tokenId, {
         
     | 
| 
      
 479 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 480 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 481 
     | 
    
         
            +
                  });
         
     | 
| 
      
 482 
     | 
    
         
            +
                },
         
     | 
| 
      
 483 
     | 
    
         
            +
              };
         
     | 
| 
       338 
484 
     | 
    
         
             
            }
         
     | 
| 
       339 
485 
     | 
    
         | 
| 
       340 
486 
     | 
    
         
             
            export type ERC721Context = ContractContext<ERC721, ERC721BoundContractView>;
         
     | 
| 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            /* Autogenerated file. Do not edit manually. */
         
     | 
| 
       2 
2 
     | 
    
         
             
            /* tslint:disable */
         
     | 
| 
       3 
3 
     | 
    
         
             
            /* eslint-disable */
         
     | 
| 
       4 
     | 
    
         
            -
            import { Overrides } from "ethers";
         
     | 
| 
      
 4 
     | 
    
         
            +
            import { BigNumberish, Overrides } from "ethers";
         
     | 
| 
       5 
5 
     | 
    
         
             
            import {
         
     | 
| 
       6 
6 
     | 
    
         
             
              addContractByABI,
         
     | 
| 
       7 
7 
     | 
    
         
             
              getContractByABI,
         
     | 
| 
         @@ -108,6 +108,7 @@ const templateContract = WETH9__factory.connect("0x0", DummyProvider); 
     | 
|
| 
       108 
108 
     | 
    
         
             
            export class WETH9ContractView extends ContractView<WETH9> {
         
     | 
| 
       109 
109 
     | 
    
         
             
              constructor(contract: WETH9) {
         
     | 
| 
       110 
110 
     | 
    
         
             
                super(contract);
         
     | 
| 
      
 111 
     | 
    
         
            +
                this.callStatic.contract = contract;
         
     | 
| 
       111 
112 
     | 
    
         
             
              }
         
     | 
| 
       112 
113 
     | 
    
         | 
| 
       113 
114 
     | 
    
         
             
              async name(overrides?: Overrides): Promise<string> {
         
     | 
| 
         @@ -168,6 +169,69 @@ export class WETH9ContractView extends ContractView<WETH9> { 
     | 
|
| 
       168 
169 
     | 
    
         
             
                  throw transformEtherError(e, undefined);
         
     | 
| 
       169 
170 
     | 
    
         
             
                }
         
     | 
| 
       170 
171 
     | 
    
         
             
              }
         
     | 
| 
      
 172 
     | 
    
         
            +
             
     | 
| 
      
 173 
     | 
    
         
            +
              callStatic = {
         
     | 
| 
      
 174 
     | 
    
         
            +
                contract: this.contract,
         
     | 
| 
      
 175 
     | 
    
         
            +
             
     | 
| 
      
 176 
     | 
    
         
            +
                async approve(
         
     | 
| 
      
 177 
     | 
    
         
            +
                  guy: string,
         
     | 
| 
      
 178 
     | 
    
         
            +
                  wad: BigNumberish,
         
     | 
| 
      
 179 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 180 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 181 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 182 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 183 
     | 
    
         
            +
                      .getFunction("approve(address,uint256)")
         
     | 
| 
      
 184 
     | 
    
         
            +
                      .staticCall(guy, wad, overrides || {});
         
     | 
| 
      
 185 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 186 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 187 
     | 
    
         
            +
                  }
         
     | 
| 
      
 188 
     | 
    
         
            +
                },
         
     | 
| 
      
 189 
     | 
    
         
            +
                async transferFrom(
         
     | 
| 
      
 190 
     | 
    
         
            +
                  src: string,
         
     | 
| 
      
 191 
     | 
    
         
            +
                  dst: string,
         
     | 
| 
      
 192 
     | 
    
         
            +
                  wad: BigNumberish,
         
     | 
| 
      
 193 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 194 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 195 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 196 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 197 
     | 
    
         
            +
                      .getFunction("transferFrom(address,address,uint256)")
         
     | 
| 
      
 198 
     | 
    
         
            +
                      .staticCall(src, dst, wad, overrides || {});
         
     | 
| 
      
 199 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 200 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 201 
     | 
    
         
            +
                  }
         
     | 
| 
      
 202 
     | 
    
         
            +
                },
         
     | 
| 
      
 203 
     | 
    
         
            +
                async withdraw(wad: BigNumberish, overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 204 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 205 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 206 
     | 
    
         
            +
                      .getFunction("withdraw(uint256)")
         
     | 
| 
      
 207 
     | 
    
         
            +
                      .staticCall(wad, overrides || {});
         
     | 
| 
      
 208 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 209 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 210 
     | 
    
         
            +
                  }
         
     | 
| 
      
 211 
     | 
    
         
            +
                },
         
     | 
| 
      
 212 
     | 
    
         
            +
                async transfer(
         
     | 
| 
      
 213 
     | 
    
         
            +
                  dst: string,
         
     | 
| 
      
 214 
     | 
    
         
            +
                  wad: BigNumberish,
         
     | 
| 
      
 215 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 216 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 217 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 218 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 219 
     | 
    
         
            +
                      .getFunction("transfer(address,uint256)")
         
     | 
| 
      
 220 
     | 
    
         
            +
                      .staticCall(dst, wad, overrides || {});
         
     | 
| 
      
 221 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 222 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 223 
     | 
    
         
            +
                  }
         
     | 
| 
      
 224 
     | 
    
         
            +
                },
         
     | 
| 
      
 225 
     | 
    
         
            +
                async deposit(overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 226 
     | 
    
         
            +
                  try {
         
     | 
| 
      
 227 
     | 
    
         
            +
                    return await this.contract
         
     | 
| 
      
 228 
     | 
    
         
            +
                      .getFunction("deposit()")
         
     | 
| 
      
 229 
     | 
    
         
            +
                      .staticCall(overrides || {});
         
     | 
| 
      
 230 
     | 
    
         
            +
                  } catch (e) {
         
     | 
| 
      
 231 
     | 
    
         
            +
                    throw transformEtherError(e, undefined);
         
     | 
| 
      
 232 
     | 
    
         
            +
                  }
         
     | 
| 
      
 233 
     | 
    
         
            +
                },
         
     | 
| 
      
 234 
     | 
    
         
            +
              };
         
     | 
| 
       171 
235 
     | 
    
         
             
            }
         
     | 
| 
       172 
236 
     | 
    
         | 
| 
       173 
237 
     | 
    
         
             
            export class WETH9BoundContractView extends BoundContractView<
         
     | 
| 
         @@ -219,6 +283,55 @@ export class WETH9BoundContractView extends BoundContractView< 
     | 
|
| 
       219 
283 
     | 
    
         
             
                  ...overrides,
         
     | 
| 
       220 
284 
     | 
    
         
             
                });
         
     | 
| 
       221 
285 
     | 
    
         
             
              }
         
     | 
| 
      
 286 
     | 
    
         
            +
             
     | 
| 
      
 287 
     | 
    
         
            +
              callStatic = {
         
     | 
| 
      
 288 
     | 
    
         
            +
                view: this.view,
         
     | 
| 
      
 289 
     | 
    
         
            +
                context: this.context,
         
     | 
| 
      
 290 
     | 
    
         
            +
             
     | 
| 
      
 291 
     | 
    
         
            +
                async approve(
         
     | 
| 
      
 292 
     | 
    
         
            +
                  guy: string,
         
     | 
| 
      
 293 
     | 
    
         
            +
                  wad: BigNumberish,
         
     | 
| 
      
 294 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 295 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 296 
     | 
    
         
            +
                  return await this.view.callStatic.approve(guy, wad, {
         
     | 
| 
      
 297 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 298 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 299 
     | 
    
         
            +
                  });
         
     | 
| 
      
 300 
     | 
    
         
            +
                },
         
     | 
| 
      
 301 
     | 
    
         
            +
                async transferFrom(
         
     | 
| 
      
 302 
     | 
    
         
            +
                  src: string,
         
     | 
| 
      
 303 
     | 
    
         
            +
                  dst: string,
         
     | 
| 
      
 304 
     | 
    
         
            +
                  wad: BigNumberish,
         
     | 
| 
      
 305 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 306 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 307 
     | 
    
         
            +
                  return await this.view.callStatic.transferFrom(src, dst, wad, {
         
     | 
| 
      
 308 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 309 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 310 
     | 
    
         
            +
                  });
         
     | 
| 
      
 311 
     | 
    
         
            +
                },
         
     | 
| 
      
 312 
     | 
    
         
            +
                async withdraw(wad: BigNumberish, overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 313 
     | 
    
         
            +
                  return await this.view.callStatic.withdraw(wad, {
         
     | 
| 
      
 314 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 315 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 316 
     | 
    
         
            +
                  });
         
     | 
| 
      
 317 
     | 
    
         
            +
                },
         
     | 
| 
      
 318 
     | 
    
         
            +
                async transfer(
         
     | 
| 
      
 319 
     | 
    
         
            +
                  dst: string,
         
     | 
| 
      
 320 
     | 
    
         
            +
                  wad: BigNumberish,
         
     | 
| 
      
 321 
     | 
    
         
            +
                  overrides?: Overrides
         
     | 
| 
      
 322 
     | 
    
         
            +
                ): Promise<boolean> {
         
     | 
| 
      
 323 
     | 
    
         
            +
                  return await this.view.callStatic.transfer(dst, wad, {
         
     | 
| 
      
 324 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 325 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 326 
     | 
    
         
            +
                  });
         
     | 
| 
      
 327 
     | 
    
         
            +
                },
         
     | 
| 
      
 328 
     | 
    
         
            +
                async deposit(overrides?: Overrides): Promise<void> {
         
     | 
| 
      
 329 
     | 
    
         
            +
                  return await this.view.callStatic.deposit({
         
     | 
| 
      
 330 
     | 
    
         
            +
                    blockTag: this.context.blockNumber,
         
     | 
| 
      
 331 
     | 
    
         
            +
                    ...overrides,
         
     | 
| 
      
 332 
     | 
    
         
            +
                  });
         
     | 
| 
      
 333 
     | 
    
         
            +
                },
         
     | 
| 
      
 334 
     | 
    
         
            +
              };
         
     | 
| 
       222 
335 
     | 
    
         
             
            }
         
     | 
| 
       223 
336 
     | 
    
         | 
| 
       224 
337 
     | 
    
         
             
            export type WETH9Context = ContractContext<WETH9, WETH9BoundContractView>;
         
     |