Skip to content

Commit

Permalink
[FEAT] Arbitrum One Artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
JSanchezFDZ committed Aug 31, 2024
1 parent 46d897e commit 1af79f8
Show file tree
Hide file tree
Showing 7 changed files with 799 additions and 66 deletions.
16 changes: 8 additions & 8 deletions typescript/api-reference/classes/ArbitrumL2BitcoinDepositor.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ EthersContractHandle\<L2BitcoinDepositorTypechain\>.constructor

#### Defined in

[lib/arbitrum/l2-bitcoin-depositor.ts:37](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L37)
[lib/arbitrum/l2-bitcoin-depositor.ts:36](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L36)

## Properties

Expand All @@ -73,7 +73,7 @@ EthersContractHandle\<L2BitcoinDepositorTypechain\>.constructor

#### Defined in

[lib/arbitrum/l2-bitcoin-depositor.ts:35](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L35)
[lib/arbitrum/l2-bitcoin-depositor.ts:34](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L34)

___

Expand All @@ -83,7 +83,7 @@ ___

#### Defined in

[lib/arbitrum/l2-bitcoin-depositor.ts:34](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L34)
[lib/arbitrum/l2-bitcoin-depositor.ts:33](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L33)

___

Expand Down Expand Up @@ -153,7 +153,7 @@ EthersContractHandle.\_totalRetryAttempts

#### Defined in

[lib/arbitrum/l2-bitcoin-depositor.ts:85](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L85)
[lib/arbitrum/l2-bitcoin-depositor.ts:83](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L83)

___

Expand Down Expand Up @@ -195,7 +195,7 @@ ___

#### Defined in

[lib/arbitrum/l2-bitcoin-depositor.ts:61](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L61)
[lib/arbitrum/l2-bitcoin-depositor.ts:59](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L59)

___

Expand All @@ -215,7 +215,7 @@ ___

#### Defined in

[lib/arbitrum/l2-bitcoin-depositor.ts:69](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L69)
[lib/arbitrum/l2-bitcoin-depositor.ts:67](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L67)

___

Expand Down Expand Up @@ -278,7 +278,7 @@ ___

#### Defined in

[lib/arbitrum/l2-bitcoin-depositor.ts:93](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L93)
[lib/arbitrum/l2-bitcoin-depositor.ts:91](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L91)

___

Expand All @@ -304,4 +304,4 @@ ___

#### Defined in

[lib/arbitrum/l2-bitcoin-depositor.ts:77](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L77)
[lib/arbitrum/l2-bitcoin-depositor.ts:75](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts#L75)
6 changes: 3 additions & 3 deletions typescript/api-reference/classes/ArbitrumL2TBTCToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ EthersContractHandle\<L2TBTCTypechain\>.constructor

#### Defined in

[lib/arbitrum/l2-tbtc-token.ts:23](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-tbtc-token.ts#L23)
[lib/arbitrum/l2-tbtc-token.ts:22](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-tbtc-token.ts#L22)

## Properties

Expand Down Expand Up @@ -134,7 +134,7 @@ EthersContractHandle.\_totalRetryAttempts

#### Defined in

[lib/arbitrum/l2-tbtc-token.ts:53](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-tbtc-token.ts#L53)
[lib/arbitrum/l2-tbtc-token.ts:51](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-tbtc-token.ts#L51)

___

Expand Down Expand Up @@ -176,7 +176,7 @@ ___

#### Defined in

[lib/arbitrum/l2-tbtc-token.ts:45](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-tbtc-token.ts#L45)
[lib/arbitrum/l2-tbtc-token.ts:43](https://github.com/Unknown-Gravity/tbtc-v2-sdk/blob/main/typescript/src/lib/arbitrum/l2-tbtc-token.ts#L43)

___

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0xf90292a39014033DE50c81f651365cB6A1040Bb6",
"address": "0x1C8d7b744b474c080faADd5BF9AD965Be4258F9e",
"abi": [
{
"inputs": [],
Expand Down Expand Up @@ -355,75 +355,75 @@
"type": "function"
}
],
"transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df",
"transactionHash": "0xb7407ca090240d1d1c4bd13c12c66826cf72e5a54ab44535165d3207a34579ea",
"receipt": {
"to": null,
"from": "0x68ad60CC5e8f3B7cC53beaB321cf0e6036962dBc",
"contractAddress": "0x04BE8F183572ec802aD26756F3E9398098700E76",
"transactionIndex": 2,
"gasUsed": "704802",
"logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400002000200000000000000000000000000000000000080000000000000800080000000000000000000000000000400000000000100000000000000000000000000000020000000000000000020040000000008000400000000000000000020000000000000000000080000000000000000000000000000000000000000400000",
"blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85",
"transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df",
"from": "0xBC9C7345d240764BAF2D2016a86165BDf06131c2",
"contractAddress": "0x1C8d7b744b474c080faADd5BF9AD965Be4258F9e",
"transactionIndex": 1,
"gasUsed": "766562",
"logsBloom": "0x00000000001000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000100000000040000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000810000000000000004000000400000000000000000000000000000000000000200400080000000000002800000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000400100000000000000020000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xc52717448d3c1ddb16d61eb4e8b39cba69ea4073b6185d05a4c820578c0a8d33",
"transactionHash": "0xb7407ca090240d1d1c4bd13c12c66826cf72e5a54ab44535165d3207a34579ea",
"logs": [
{
"transactionIndex": 2,
"blockNumber": 7063584,
"transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df",
"address": "0x04BE8F183572ec802aD26756F3E9398098700E76",
"transactionIndex": 1,
"blockNumber": 247865814,
"transactionHash": "0xb7407ca090240d1d1c4bd13c12c66826cf72e5a54ab44535165d3207a34579ea",
"address": "0x1C8d7b744b474c080faADd5BF9AD965Be4258F9e",
"topics": [
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
"0x0000000000000000000000001ecd87c8d510a7390a561ae0ac54fbe7e5125bcf"
"0x000000000000000000000000ff79fca71751a5a0c4487a1ace268d6cd2a64db1"
],
"data": "0x",
"logIndex": 1,
"blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85"
"logIndex": 0,
"blockHash": "0xc52717448d3c1ddb16d61eb4e8b39cba69ea4073b6185d05a4c820578c0a8d33"
},
{
"transactionIndex": 2,
"blockNumber": 7063584,
"transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df",
"address": "0x04BE8F183572ec802aD26756F3E9398098700E76",
"transactionIndex": 1,
"blockNumber": 247865814,
"transactionHash": "0xb7407ca090240d1d1c4bd13c12c66826cf72e5a54ab44535165d3207a34579ea",
"address": "0x1C8d7b744b474c080faADd5BF9AD965Be4258F9e",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000068ad60cc5e8f3b7cc53beab321cf0e6036962dbc"
"0x000000000000000000000000bc9c7345d240764baf2d2016a86165bdf06131c2"
],
"data": "0x",
"logIndex": 2,
"blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85"
"logIndex": 1,
"blockHash": "0xc52717448d3c1ddb16d61eb4e8b39cba69ea4073b6185d05a4c820578c0a8d33"
},
{
"transactionIndex": 2,
"blockNumber": 7063584,
"transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df",
"address": "0x04BE8F183572ec802aD26756F3E9398098700E76",
"transactionIndex": 1,
"blockNumber": 247865814,
"transactionHash": "0xb7407ca090240d1d1c4bd13c12c66826cf72e5a54ab44535165d3207a34579ea",
"address": "0x1C8d7b744b474c080faADd5BF9AD965Be4258F9e",
"topics": [
"0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
"logIndex": 3,
"blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85"
"logIndex": 2,
"blockHash": "0xc52717448d3c1ddb16d61eb4e8b39cba69ea4073b6185d05a4c820578c0a8d33"
},
{
"transactionIndex": 2,
"blockNumber": 7063584,
"transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df",
"address": "0x04BE8F183572ec802aD26756F3E9398098700E76",
"transactionIndex": 1,
"blockNumber": 247865814,
"transactionHash": "0xb7407ca090240d1d1c4bd13c12c66826cf72e5a54ab44535165d3207a34579ea",
"address": "0x1C8d7b744b474c080faADd5BF9AD965Be4258F9e",
"topics": [
"0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b2f6c5b73239c39360ee0ea95047565dab13e3c7",
"logIndex": 4,
"blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85"
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000037169570d846cc05d5848aaa30194d308b355638",
"logIndex": 3,
"blockHash": "0xc52717448d3c1ddb16d61eb4e8b39cba69ea4073b6185d05a4c820578c0a8d33"
}
],
"blockNumber": 7063584,
"cumulativeGasUsed": "804788",
"blockNumber": 247865814,
"cumulativeGasUsed": "766562",
"status": 1,
"byzantium": true
},
"numDeployments": 1,
"implementation": "0x1Ecd87C8D510A7390a561AE0Ac54FBe7e5125BcF",
"implementation": "0xFf79fca71751A5A0C4487a1aCE268d6cd2A64Db1",
"devdoc": "Contract deployed as upgradable proxy"
}
10 changes: 4 additions & 6 deletions typescript/src/lib/arbitrum/l2-bitcoin-depositor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import {
import { Hex } from "../utils"
import { BitcoinRawTxVectors } from "../bitcoin"

// TODO: Uncomment once Arbitrum native minting is available on Arbitrum mainnet.
// import ArbitrumL2BitcoinDepositorDeployment from "./artifacts/arbitrumOne/ArbitrumL2BitcoinDepositor.json"
import ArbitrumL2BitcoinDepositorDeployment from "./artifacts/arbitrumOne/ArbitrumL2BitcoinDepositor.json"
import ArbitrumSepoliaL2BitcoinDepositorDeployment from "./artifacts/arbitrumSepolia/ArbitrumL2BitcoinDepositor.json"

/**
Expand All @@ -41,10 +40,9 @@ export class ArbitrumL2BitcoinDepositor
case Chains.Arbitrum.ArbitrumSepolia:
deployment = ArbitrumSepoliaL2BitcoinDepositorDeployment
break
// TODO: Uncomment once Arbitrum native minting is available on Arbitrum mainnet.
// case Chains.Arbitrum.Arbitrum:
// deployment = ArbitrumL2BitcoinDepositorDeployment
// break
case Chains.Arbitrum.Arbitrum:
deployment = ArbitrumL2BitcoinDepositorDeployment
break
default:
throw new Error("Unsupported deployment type")
}
Expand Down
10 changes: 4 additions & 6 deletions typescript/src/lib/arbitrum/l2-tbtc-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { ChainIdentifier, Chains, L2TBTCToken } from "../contracts"
import { BigNumber } from "ethers"
import { EthereumAddress } from "../ethereum"

// TODO: Uncomment once Arbitrum native minting is available on Arbitrum mainnet.
// import ArbitrumL2TBTCTokenDeployment from "./artifacts/arbitrumOne/ArbitrumTBTC.json"
import ArbitrumL2TBTCTokenDeployment from "./artifacts/arbitrumOne/ArbitrumTBTC.json"
import ArbitrumSepoliaL2TBTCTokenDeployment from "./artifacts/arbitrumSepolia/ArbitrumTBTC.json"

/**
Expand All @@ -27,10 +26,9 @@ export class ArbitrumL2TBTCToken
case Chains.Arbitrum.ArbitrumSepolia:
deployment = ArbitrumSepoliaL2TBTCTokenDeployment
break
// TODO: Uncomment once Arbitrum native minting is available on Arbitrum mainnet.
// case Chains.Arbitrum.Arbitrum:
// deployment = ArbitrumL2TBTCTokenDeployment
// break
case Chains.Arbitrum.Arbitrum:
deployment = ArbitrumL2TBTCTokenDeployment
break
default:
throw new Error("Unsupported deployment type")
}
Expand Down
Loading

0 comments on commit 1af79f8

Please sign in to comment.