Skip to content

Commit

Permalink
Merge pull request #1181 from algorand/staging
Browse files Browse the repository at this point in the history
Remove nonParticipation from offline keyreg example
  • Loading branch information
nullun authored Sep 20, 2023
2 parents aec3b2c + 8275b59 commit c18af37
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/get-details/accounts/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -738,4 +738,4 @@ The following code shows how to generate a multisignature account composed of th
```
<!-- ===GOAL_MULTISIG_CREATE=== -->

Multisignature accounts may also be referred to as multisig accounts and a multisig account composed of 3 addresses with a threshold of 2 is often referred to as a 2 out of 3 (i.e. 2/3) multisig account.
Multisignature accounts may also be referred to as multisig accounts and a multisig account composed of 3 addresses with a threshold of 2 is often referred to as a 2 out of 3 (i.e. 2/3) multisig account.
2 changes: 1 addition & 1 deletion docs/get-details/asa.md
Original file line number Diff line number Diff line change
Expand Up @@ -1211,4 +1211,4 @@ Retrieve an asset's configuration information from the network using the SDKs or
Freeze address: <freeze-address>
Clawback address: <clawback-address>
```
<!-- ===GOAL_ASSET_INFO=== -->
<!-- ===GOAL_ASSET_INFO=== -->
12 changes: 6 additions & 6 deletions docs/get-details/encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Given a base64 encoded byte array `SGksIEknbSBkZWNvZGVkIGZyb20gYmFzZTY0` it may
const b64Decoded = Buffer.from(b64Encoded, 'base64').toString();
console.log(b64Encoded, b64Decoded);
```
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L31-L34)
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L23-L26)
<!-- ===JSSDK_CODEC_BASE64=== -->

=== "Python"
Expand Down Expand Up @@ -156,7 +156,7 @@ Given an integer `1337`, you may encode it as:
const mixedDecoded = algosdk.decodeUint64(encoded, 'bigint');
console.log(int, encoded, safeDecoded, mixedDecoded);
```
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L37-L42)
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L29-L34)
<!-- ===JSSDK_CODEC_UINT64=== -->

=== "Python"
Expand Down Expand Up @@ -232,7 +232,7 @@ Create a payment transaction from one account to another using suggested paramet
);
console.log(restoredTxn);
```
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L45-L59)
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L37-L51)
<!-- ===JSSDK_CODEC_TRANSACTION_UNSIGNED=== -->
<!-- ===JSSDK_CODEC_TRANSACTION_SIGNED=== -->
```javascript
Expand All @@ -243,7 +243,7 @@ Create a payment transaction from one account to another using suggested paramet
);
console.log(restoredSignedTxn);
```
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L62-L68)
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L54-L60)
<!-- ===JSSDK_CODEC_TRANSACTION_SIGNED=== -->

=== "Python"
Expand Down Expand Up @@ -377,7 +377,7 @@ All the SDKs support encoding and decoding of ABI values. The encoding is done u
const decodeArray = uintArrayCodec.decode(encodedArray);
console.log(decodeArray); // [1, 2, 3, 4, 5]
```
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L71-L88)
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L63-L80)
<!-- ===JSSDK_CODEC_ABI==== -->

=== "Python"
Expand Down Expand Up @@ -454,4 +454,4 @@ All the SDKs support encoding and decoding of ABI values. The encoding is done u
System.out.printf("Decoded: %s\n", Arrays.toString((Object[]) arrDecoded));
```
[Snippet Source](https://github.com/algorand/java-algorand-sdk/blob/examples/examples/src/main/java/com/algorand/examples/CodecExamples.java#L70-L86)
<!-- ===JAVASDK_CODEC_ABI=== -->
<!-- ===JAVASDK_CODEC_ABI=== -->
2 changes: 1 addition & 1 deletion docs/get-details/indexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,4 @@ This will return an encoded value of `c2hvd2luZyBwcmVmaXg=`. This value can the
python3 -c "import base64;print(base64.b64encode('showing prefix'.encode()))"
$ curl "localhost:8980/v2/transactions?note-prefix=c2hvd2luZyBwcmVmaXg=" | json_pp
```
<!-- ===CURL_INDEXER_PREFIX_SEARCH=== -->
<!-- ===CURL_INDEXER_PREFIX_SEARCH=== -->
2 changes: 1 addition & 1 deletion docs/get-details/transactions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -743,4 +743,4 @@ Here we're directly setting the fee to be 2x the min fee since we want to cover

Unless you have specific security concerns, generally the maximum default range of 1000 rounds is acceptable. This will give you an ample window of validity time to submit your transaction.

One occasion where the maximum range may not be appropriate is when you want to be sure transaction fee is low and the network conditions may change before the transaction is submitted. In this case, a lower valid round range can limit potentially submitting the transaction during a window of higher congestion.
One occasion where the maximum range may not be appropriate is when you want to be sure transaction fee is low and the network conditions may change before the transaction is submitted. In this case, a lower valid round range can limit potentially submitting the transaction during a window of higher congestion.
4 changes: 2 additions & 2 deletions docs/get-details/transactions/offline_transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Unsigned transactions require the transaction object to be created before writin
);
console.log(restoredTxn);
```
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L45-L59)
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L37-L51)
<!-- ===JSSDK_CODEC_TRANSACTION_UNSIGNED=== -->

=== "Python"
Expand Down Expand Up @@ -114,7 +114,7 @@ Signed Transactions are similar, but require an account to sign the transaction
);
console.log(restoredSignedTxn);
```
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L62-L68)
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/codec.ts#L54-L60)
<!-- ===JSSDK_CODEC_TRANSACTION_SIGNED=== -->

=== "Python"
Expand Down
3 changes: 1 addition & 2 deletions docs/run-a-node/participate/offline.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ Create an offline key registration transaction for the address: `EW64GC6F24M7NDS
{
from: addr,
suggestedParams,
nonParticipation: true,
}
);
console.log(offlineKeyReg.get_obj_for_encoding());
```
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/participation.ts#L44-L55)
[Snippet Source](https://github.com/algorand/js-algorand-sdk/blob/examples/examples/participation.ts#L44-L54)
<!-- ===JSSDK_TRANSACTION_KEYREG_OFFLINE_CREATE=== -->

=== "Go"
Expand Down

0 comments on commit c18af37

Please sign in to comment.