Skip to content

Commit

Permalink
ci(changesets): versioning packages (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 14, 2023
1 parent 3aa7ed4 commit c60a740
Show file tree
Hide file tree
Showing 83 changed files with 514 additions and 187 deletions.
5 changes: 0 additions & 5 deletions .changeset/chatty-news-dream.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/green-pugs-give.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/lemon-scissors-live.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/_data/versions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# generated-file
fuels: 0.30.0
fuel-core: 0.15.1
fuels: 0.31.0
fuel-core: 0.17.1
sway: 0.32.2
forc: 0.32.2
4 changes: 2 additions & 2 deletions docs/guide/contracts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Here's an example. Suppose your Sway contract has two ABI methods called `echo_s

expect(value).toBe('fuel-sdk');
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L109-L113)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L99-L103)

---

Expand All @@ -36,7 +36,7 @@ Here's an example. Suppose your Sway contract has two ABI methods called `echo_s
const { value } = await contractInstance.functions.echo_u8(3).call();
expect(value).toBe(3);
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L56-L59)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L46-L49)

---

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/contracts/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can access the logged values in TypeScript by using the `logs` property in t
expect(logs[2]).toEqual('Fuel');
expect([logs[3], logs[4], logs[5]]).toEqual([1, 2, 3]);
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L497-L504)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L401-L408)

---

4 changes: 1 addition & 3 deletions docs/guide/messages/getting-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ You can use the `getMessages` method to retrieve a list of messages from the blo
'0x00000000000000080000000000000007000000000000000600000000000000050000000000000004'
),
daHeight: bn(0),
fuelBlockSpend: bn(0),
},
];
const EXPECTED_MESSAGES_B: Message[] = [
Expand All @@ -41,7 +40,6 @@ You can use the `getMessages` method to retrieve a list of messages from the blo
amount: bn('12704439083013451934'),
data: arrayify('0x0000000000000007'),
daHeight: bn('3684546456337077810'),
fuelBlockSpend: bn(0),
},
];

Expand All @@ -51,7 +49,7 @@ You can use the `getMessages` method to retrieve a list of messages from the blo
expect(aMessages).toStrictEqual(EXPECTED_MESSAGES_A);
expect(bMessages).toStrictEqual(EXPECTED_MESSAGES_B);
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L369-L409)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L359-L397)

---

3 changes: 1 addition & 2 deletions docs/guide/messages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ export type Message = {
amount: BN;
data: BytesLike;
daHeight: BN;
fuelBlockSpend: BN;
};
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L5-L18)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L5-L17)

---

8 changes: 4 additions & 4 deletions docs/guide/types/enums-and-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Here is `SmallEnum`
```typescript
const INPUT = { Empty: [] };
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L175-L177)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L165-L167)

---

Expand All @@ -42,7 +42,7 @@ Here is `BigEnum`
```typescript
const INPUT = { AddressB: B256 };
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L183-L185)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L173-L175)

---

Expand Down Expand Up @@ -102,7 +102,7 @@ Using this Contract, our Optional params can either be the values expected, like
// we receive the result of adding whatever was passed
expect(Some).toStrictEqual(10);
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L216-L228)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L206-L218)

---

Expand All @@ -118,7 +118,7 @@ Or we can supply a partial list, where unsupplied values are converted to `Optio
// we receive the result of adding whatever was passed
expect(Some).toStrictEqual(1);
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L232-L240)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L222-L230)

---

2 changes: 1 addition & 1 deletion docs/guide/types/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If your contract's method takes and returns, a `str[8]`, the SDK wrapper method

expect(value).toBe('fuel-sdk');
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L109-L113)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L99-L103)

---

2 changes: 1 addition & 1 deletion docs/guide/types/vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The following code calls this Sway contract method which accepts a `Vec<ComplexS
last,
]
```
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L341-L355)
###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L331-L345)

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,45 @@ Current provider

## Methods

### fetch
### decodeTransaction

**fetch**<`TTransactionType`\>(): `Promise`<{ `transaction`: [`Transaction`](../namespaces/internal.md#transaction)<`TTransactionType`\> ; `transactionWithReceipts`: { `__typename`: ``"Transaction"`` ; `gasPrice?`: ``null`` \| `string` ; `id`: `string` ; `rawPayload`: `string` ; `receipts?`: ``null`` \| { `__typename`: ``"Receipt"`` ; `data?`: ``null`` \| `string` ; `rawPayload`: `string` }[] ; `status?`: ``null`` \| { `__typename`: ``"FailureStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `reason`: `string` ; `time`: `string` ; `type`: ``"FailureStatus"`` } \| { `__typename`: ``"SubmittedStatus"`` ; `time`: `string` ; `type`: ``"SubmittedStatus"`` } \| { `__typename`: ``"SuccessStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `programState?`: ``null`` \| { `__typename`: ``"ProgramState"`` ; `data`: `string` ; `returnType`: [`GqlReturnType`](../enums/internal-GqlReturnType.md) } ; `time`: `string` ; `type`: ``"SuccessStatus"`` } } }\>
**decodeTransaction**<`TTransactionType`\>(`transactionWithReceipts`): [`Transaction`](../namespaces/internal.md#transaction)<`TTransactionType`\>

#### Type parameters

| Name | Type |
| :------ | :------ |
| `TTransactionType` | `void` |

#### Parameters

| Name | Type |
| :------ | :------ |
| `transactionWithReceipts` | `Object` |
| `transactionWithReceipts.__typename` | ``"Transaction"`` |
| `transactionWithReceipts.gasPrice?` | ``null`` \| `string` |
| `transactionWithReceipts.id` | `string` |
| `transactionWithReceipts.rawPayload` | `string` |
| `transactionWithReceipts.receipts?` | ``null`` \| { `__typename`: ``"Receipt"`` ; `data?`: ``null`` \| `string` ; `rawPayload`: `string` }[] |
| `transactionWithReceipts.status?` | ``null`` \| { `__typename`: ``"FailureStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `reason`: `string` ; `time`: `any` ; `type`: ``"FailureStatus"`` } \| { `__typename`: ``"SqueezedOutStatus"`` ; `type`: ``"SqueezedOutStatus"`` } \| { `__typename`: ``"SubmittedStatus"`` ; `time`: `any` ; `type`: ``"SubmittedStatus"`` } \| { `__typename`: ``"SuccessStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `programState?`: ``null`` \| { `__typename`: ``"ProgramState"`` ; `data`: `string` ; `returnType`: [`GqlReturnType`](../enums/internal-GqlReturnType.md) } ; `time`: `any` ; `type`: ``"SuccessStatus"`` } |

#### Returns

[`Transaction`](../namespaces/internal.md#transaction)<`TTransactionType`\>

#### Defined in

[packages/providers/src/transaction-response/transaction-response.ts:114](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-response/transaction-response.ts#L114)

___

### fetch

**fetch**(): `Promise`<`undefined` \| ``null`` \| { `__typename`: ``"Transaction"`` ; `gasPrice?`: ``null`` \| `string` ; `id`: `string` ; `rawPayload`: `string` ; `receipts?`: ``null`` \| { `__typename`: ``"Receipt"`` ; `data?`: ``null`` \| `string` ; `rawPayload`: `string` }[] ; `status?`: ``null`` \| { `__typename`: ``"FailureStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `reason`: `string` ; `time`: `any` ; `type`: ``"FailureStatus"`` } \| { `__typename`: ``"SqueezedOutStatus"`` ; `type`: ``"SqueezedOutStatus"`` } \| { `__typename`: ``"SubmittedStatus"`` ; `time`: `any` ; `type`: ``"SubmittedStatus"`` } \| { `__typename`: ``"SuccessStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `programState?`: ``null`` \| { `__typename`: ``"ProgramState"`` ; `data`: `string` ; `returnType`: [`GqlReturnType`](../enums/internal-GqlReturnType.md) } ; `time`: `any` ; `type`: ``"SuccessStatus"`` } }\>

#### Returns

`Promise`<{ `transaction`: [`Transaction`](../namespaces/internal.md#transaction)<`TTransactionType`\> ; `transactionWithReceipts`: { `__typename`: ``"Transaction"`` ; `gasPrice?`: ``null`` \| `string` ; `id`: `string` ; `rawPayload`: `string` ; `receipts?`: ``null`` \| { `__typename`: ``"Receipt"`` ; `data?`: ``null`` \| `string` ; `rawPayload`: `string` }[] ; `status?`: ``null`` \| { `__typename`: ``"FailureStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `reason`: `string` ; `time`: `string` ; `type`: ``"FailureStatus"`` } \| { `__typename`: ``"SubmittedStatus"`` ; `time`: `string` ; `type`: ``"SubmittedStatus"`` } \| { `__typename`: ``"SuccessStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `programState?`: ``null`` \| { `__typename`: ``"ProgramState"`` ; `data`: `string` ; `returnType`: [`GqlReturnType`](../enums/internal-GqlReturnType.md) } ; `time`: `string` ; `type`: ``"SuccessStatus"`` } } }\>
`Promise`<`undefined` \| ``null`` \| { `__typename`: ``"Transaction"`` ; `gasPrice?`: ``null`` \| `string` ; `id`: `string` ; `rawPayload`: `string` ; `receipts?`: ``null`` \| { `__typename`: ``"Receipt"`` ; `data?`: ``null`` \| `string` ; `rawPayload`: `string` }[] ; `status?`: ``null`` \| { `__typename`: ``"FailureStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `reason`: `string` ; `time`: `any` ; `type`: ``"FailureStatus"`` } \| { `__typename`: ``"SqueezedOutStatus"`` ; `type`: ``"SqueezedOutStatus"`` } \| { `__typename`: ``"SubmittedStatus"`` ; `time`: `any` ; `type`: ``"SubmittedStatus"`` } \| { `__typename`: ``"SuccessStatus"`` ; `block`: { `__typename`: ``"Block"`` ; `id`: `string` } ; `programState?`: ``null`` \| { `__typename`: ``"ProgramState"`` ; `data`: `string` ; `returnType`: [`GqlReturnType`](../enums/internal-GqlReturnType.md) } ; `time`: `any` ; `type`: ``"SuccessStatus"`` } }\>

#### Defined in

Expand All @@ -115,7 +141,7 @@ Waits for transaction to succeed and returns the result

#### Defined in

[packages/providers/src/transaction-response/transaction-response.ts:191](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-response/transaction-response.ts#L191)
[packages/providers/src/transaction-response/transaction-response.ts:188](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-response/transaction-response.ts#L188)

___

Expand All @@ -137,4 +163,4 @@ Waits for transaction to succeed or fail and returns the result

#### Defined in

[packages/providers/src/transaction-response/transaction-response.ts:128](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-response/transaction-response.ts#L128)
[packages/providers/src/transaction-response/transaction-response.ts:124](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-response/transaction-response.ts#L124)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nav_order: 4

#### Defined in

packages/providers/src/__generated__/operations.ts:161
packages/providers/src/__generated__/operations.ts:157

___

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

#### Defined in

packages/providers/src/__generated__/operations.ts:162
packages/providers/src/__generated__/operations.ts:158
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nav_order: 4

#### Defined in

packages/providers/src/__generated__/operations.ts:659
packages/providers/src/__generated__/operations.ts:688

___

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

#### Defined in

packages/providers/src/__generated__/operations.ts:660
packages/providers/src/__generated__/operations.ts:689

___

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

#### Defined in

packages/providers/src/__generated__/operations.ts:661
packages/providers/src/__generated__/operations.ts:690
1 change: 0 additions & 1 deletion docs/packages/fuel-ts-contract/namespaces/internal.md
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ A Fuel message
| `amount` | [`BN`](../classes/internal-BN.md) |
| `daHeight` | [`BN`](../classes/internal-BN.md) |
| `data` | `BytesLike` |
| `fuelBlockSpend` | [`BN`](../classes/internal-BN.md) |
| `nonce` | [`BN`](../classes/internal-BN.md) |
| `recipient` | [`AbstractAddress`](../classes/internal-AbstractAddress.md) |
| `sender` | [`AbstractAddress`](../classes/internal-AbstractAddress.md) |
Expand Down
32 changes: 16 additions & 16 deletions docs/packages/fuel-ts-providers/classes/Provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ This process is done at most 10 times

#### Defined in

[packages/providers/src/provider.ts:336](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L336)
[packages/providers/src/provider.ts:335](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L335)

___

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

#### Defined in

[packages/providers/src/provider.ts:731](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L731)
[packages/providers/src/provider.ts:728](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L728)

___

Expand Down Expand Up @@ -256,7 +256,7 @@ Returns the balance for the given owner for the given asset ID

#### Defined in

[packages/providers/src/provider.ts:625](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L625)
[packages/providers/src/provider.ts:623](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L623)

___

Expand All @@ -279,7 +279,7 @@ Returns balances for the given owner

#### Defined in

[packages/providers/src/provider.ts:641](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L641)
[packages/providers/src/provider.ts:639](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L639)

___

Expand All @@ -301,7 +301,7 @@ Returns block matching the given ID or type

#### Defined in

[packages/providers/src/provider.ts:517](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L517)
[packages/providers/src/provider.ts:515](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L515)

___

Expand Down Expand Up @@ -339,7 +339,7 @@ Returns block matching the given ID or type, including transaction data

#### Defined in

[packages/providers/src/provider.ts:547](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L547)
[packages/providers/src/provider.ts:545](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L545)

___

Expand Down Expand Up @@ -379,7 +379,7 @@ Returns coins for the given owner

#### Defined in

[packages/providers/src/provider.ts:435](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L435)
[packages/providers/src/provider.ts:434](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L434)

___

Expand All @@ -403,7 +403,7 @@ contract bytecode and contract id

#### Defined in

[packages/providers/src/provider.ts:598](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L598)
[packages/providers/src/provider.ts:596](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L596)

___

Expand All @@ -426,7 +426,7 @@ Returns the balance for the given contract for the given asset ID

#### Defined in

[packages/providers/src/provider.ts:609](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L609)
[packages/providers/src/provider.ts:607](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L607)

___

Expand All @@ -449,7 +449,7 @@ Returns Message Proof for given transaction id and the message id from MessageOu

#### Defined in

[packages/providers/src/provider.ts:692](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L692)
[packages/providers/src/provider.ts:689](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L689)

___

Expand All @@ -472,7 +472,7 @@ Returns message for the given address

#### Defined in

[packages/providers/src/provider.ts:664](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L664)
[packages/providers/src/provider.ts:662](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L662)

___

Expand Down Expand Up @@ -528,7 +528,7 @@ Returns resources for the given owner satisfying the spend query

#### Defined in

[packages/providers/src/provider.ts:465](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L465)
[packages/providers/src/provider.ts:464](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L464)

___

Expand Down Expand Up @@ -556,7 +556,7 @@ Get transaction with the given ID

#### Defined in

[packages/providers/src/provider.ts:580](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L580)
[packages/providers/src/provider.ts:578](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L578)

___

Expand Down Expand Up @@ -586,7 +586,7 @@ transaction. The default value is 0.2 or 20%

#### Defined in

[packages/providers/src/provider.ts:401](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L401)
[packages/providers/src/provider.ts:400](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L400)

___

Expand Down Expand Up @@ -651,7 +651,7 @@ the transaction will be mutate and VariableOuputs will be added

#### Defined in

[packages/providers/src/provider.ts:377](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L377)
[packages/providers/src/provider.ts:376](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L376)

___

Expand Down Expand Up @@ -683,4 +683,4 @@ ___

#### Defined in

[packages/providers/src/provider.ts:785](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L785)
[packages/providers/src/provider.ts:782](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L782)
Loading

0 comments on commit c60a740

Please sign in to comment.