@layerzerolabs/common-utils-stellar-contracts 0.2.122
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/Cargo.toml +28 -0
- package/LICENSE +23 -0
- package/clippy.toml +7 -0
- package/package.json +43 -0
- package/rust-toolchain.toml +4 -0
- package/rustfmt.toml +15 -0
- package/src/auth.rs +48 -0
- package/src/buffer_reader.rs +194 -0
- package/src/buffer_writer.rs +138 -0
- package/src/bytes_ext.rs +18 -0
- package/src/errors.rs +82 -0
- package/src/lib.rs +20 -0
- package/src/multisig.rs +247 -0
- package/src/option_ext.rs +38 -0
- package/src/ownable.rs +227 -0
- package/src/rbac.rs +438 -0
- package/src/testing_utils.rs +180 -0
- package/src/tests/auth.rs +179 -0
- package/src/tests/buffer_reader.rs +969 -0
- package/src/tests/buffer_writer.rs +689 -0
- package/src/tests/bytes_ext.rs +160 -0
- package/src/tests/mod.rs +13 -0
- package/src/tests/multisig.rs +760 -0
- package/src/tests/option_ext.rs +18 -0
- package/src/tests/ownable.rs +822 -0
- package/src/tests/rbac.rs +559 -0
- package/src/tests/test_helper.rs +67 -0
- package/src/tests/testing_utils.rs +522 -0
- package/src/tests/ttl_configurable.rs +586 -0
- package/src/tests/ttl_extendable.rs +64 -0
- package/src/tests/upgradeable.rs +529 -0
- package/src/ttl_configurable.rs +169 -0
- package/src/ttl_extendable.rs +25 -0
- package/src/upgradeable.rs +103 -0
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
use crate::errors::UpgradeableError;
|
|
2
|
+
use crate::upgradeable::{Upgradeable, UpgradeableInternal, UpgradeableStorage};
|
|
3
|
+
use soroban_sdk::{contract, contractimpl, xdr::ToXdr, Address, Bytes, Env, Symbol, Val};
|
|
4
|
+
|
|
5
|
+
// #![no_std]
|
|
6
|
+
|
|
7
|
+
// use soroban_sdk::{contract, contractimpl, BytesN, Env, Symbol};
|
|
8
|
+
// use utils::upgradeable::{self, Upgradeable, UpgradeableInternal};
|
|
9
|
+
|
|
10
|
+
// #[contract]
|
|
11
|
+
// pub struct DummyContract;
|
|
12
|
+
|
|
13
|
+
// impl UpgradeableInternal for DummyContract {
|
|
14
|
+
// type MigrationData = ();
|
|
15
|
+
|
|
16
|
+
// fn _migrate(env: &Env, _migration_data: &Self::MigrationData) {
|
|
17
|
+
// // Store the migration data to verify it was called
|
|
18
|
+
// env.storage().instance().set(&Symbol::new(env, "migrated"), &true);
|
|
19
|
+
// }
|
|
20
|
+
// }
|
|
21
|
+
|
|
22
|
+
// #[contractimpl]
|
|
23
|
+
// impl Upgradeable for DummyContract {
|
|
24
|
+
// fn upgrade(env: &Env, new_wasm_hash: BytesN<32>) {
|
|
25
|
+
// upgradeable::upgrade(env, new_wasm_hash);
|
|
26
|
+
// }
|
|
27
|
+
|
|
28
|
+
// fn migrate(env: &Env, migration_data: &()) {
|
|
29
|
+
// upgradeable::migrate::<Self>(env, migration_data);
|
|
30
|
+
// }
|
|
31
|
+
// }
|
|
32
|
+
|
|
33
|
+
// Hardcoded test WASM bytes for upgrade testing
|
|
34
|
+
// This is the compiled above dummy_contract WASM
|
|
35
|
+
const TEST_WASM: &[u8] = &[
|
|
36
|
+
0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x40, 0x0c, 0x60, 0x00, 0x01, 0x7e, 0x60, 0x01, 0x7e, 0x01,
|
|
37
|
+
0x7e, 0x60, 0x02, 0x7e, 0x7e, 0x01, 0x7e, 0x60, 0x03, 0x7e, 0x7e, 0x7e, 0x01, 0x7e, 0x60, 0x04, 0x7e, 0x7e, 0x7e,
|
|
38
|
+
0x7e, 0x01, 0x7e, 0x60, 0x00, 0x00, 0x60, 0x01, 0x7f, 0x00, 0x60, 0x02, 0x7f, 0x7f, 0x00, 0x60, 0x01, 0x7e, 0x01,
|
|
39
|
+
0x7f, 0x60, 0x03, 0x7f, 0x7f, 0x7f, 0x00, 0x60, 0x02, 0x7e, 0x7e, 0x00, 0x60, 0x02, 0x7f, 0x7e, 0x00, 0x02, 0x4f,
|
|
40
|
+
0x0d, 0x01, 0x78, 0x01, 0x37, 0x00, 0x00, 0x01, 0x61, 0x01, 0x30, 0x00, 0x01, 0x01, 0x62, 0x01, 0x38, 0x00, 0x01,
|
|
41
|
+
0x01, 0x6c, 0x01, 0x36, 0x00, 0x01, 0x01, 0x62, 0x01, 0x30, 0x00, 0x01, 0x01, 0x62, 0x01, 0x6a, 0x00, 0x02, 0x01,
|
|
42
|
+
0x6c, 0x01, 0x30, 0x00, 0x02, 0x01, 0x6c, 0x01, 0x31, 0x00, 0x02, 0x01, 0x6c, 0x01, 0x38, 0x00, 0x02, 0x01, 0x78,
|
|
43
|
+
0x01, 0x35, 0x00, 0x01, 0x01, 0x6c, 0x01, 0x5f, 0x00, 0x03, 0x01, 0x76, 0x01, 0x67, 0x00, 0x02, 0x01, 0x6d, 0x01,
|
|
44
|
+
0x61, 0x00, 0x04, 0x03, 0x0f, 0x0e, 0x05, 0x01, 0x06, 0x07, 0x06, 0x01, 0x00, 0x08, 0x01, 0x05, 0x09, 0x0a, 0x09,
|
|
45
|
+
0x0b, 0x05, 0x03, 0x01, 0x00, 0x11, 0x06, 0x21, 0x04, 0x7f, 0x01, 0x41, 0x80, 0x80, 0xc0, 0x00, 0x0b, 0x7f, 0x00,
|
|
46
|
+
0x41, 0x88, 0x80, 0xc0, 0x00, 0x0b, 0x7f, 0x00, 0x41, 0xbd, 0x80, 0xc0, 0x00, 0x0b, 0x7f, 0x00, 0x41, 0xc0, 0x80,
|
|
47
|
+
0xc0, 0x00, 0x0b, 0x07, 0x3d, 0x06, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x02, 0x00, 0x07, 0x75, 0x70, 0x67,
|
|
48
|
+
0x72, 0x61, 0x64, 0x65, 0x00, 0x0e, 0x07, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x00, 0x12, 0x01, 0x5f, 0x03,
|
|
49
|
+
0x01, 0x0a, 0x5f, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, 0x64, 0x03, 0x02, 0x0b, 0x5f, 0x5f, 0x68, 0x65,
|
|
50
|
+
0x61, 0x70, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x03, 0x03, 0x0a, 0xf1, 0x09, 0x0e, 0x0f, 0x00, 0x10, 0x80, 0x80, 0x80,
|
|
51
|
+
0x80, 0x00, 0x10, 0x81, 0x80, 0x80, 0x80, 0x00, 0x1a, 0x0b, 0x8b, 0x01, 0x01, 0x01, 0x7f, 0x23, 0x80, 0x80, 0x80,
|
|
52
|
+
0x80, 0x00, 0x41, 0x10, 0x6b, 0x22, 0x01, 0x24, 0x80, 0x80, 0x80, 0x80, 0x00, 0x02, 0x40, 0x20, 0x00, 0x42, 0xff,
|
|
53
|
+
0x01, 0x83, 0x42, 0xc8, 0x00, 0x52, 0x0d, 0x00, 0x20, 0x00, 0x10, 0x82, 0x80, 0x80, 0x80, 0x00, 0x42, 0x80, 0x80,
|
|
54
|
+
0x80, 0x80, 0x70, 0x83, 0x42, 0x80, 0x80, 0x80, 0x80, 0x80, 0x04, 0x52, 0x0d, 0x00, 0x20, 0x01, 0x41, 0x04, 0x6a,
|
|
55
|
+
0x10, 0x8f, 0x80, 0x80, 0x80, 0x00, 0x02, 0x40, 0x20, 0x01, 0x28, 0x02, 0x04, 0x41, 0x01, 0x47, 0x0d, 0x00, 0x20,
|
|
56
|
+
0x01, 0x28, 0x02, 0x08, 0x20, 0x01, 0x28, 0x02, 0x0c, 0x10, 0x90, 0x80, 0x80, 0x80, 0x00, 0x0b, 0x10, 0x8d, 0x80,
|
|
57
|
+
0x80, 0x80, 0x00, 0x41, 0x01, 0x10, 0x91, 0x80, 0x80, 0x80, 0x00, 0x20, 0x00, 0x10, 0x83, 0x80, 0x80, 0x80, 0x00,
|
|
58
|
+
0x1a, 0x20, 0x01, 0x41, 0x10, 0x6a, 0x24, 0x80, 0x80, 0x80, 0x80, 0x00, 0x42, 0x02, 0x0f, 0x0b, 0x00, 0x0b, 0x8b,
|
|
59
|
+
0x02, 0x02, 0x02, 0x7f, 0x02, 0x7e, 0x23, 0x80, 0x80, 0x80, 0x80, 0x00, 0x41, 0x10, 0x6b, 0x22, 0x01, 0x24, 0x80,
|
|
60
|
+
0x80, 0x80, 0x80, 0x00, 0x20, 0x01, 0x41, 0xac, 0x80, 0xc0, 0x80, 0x00, 0x41, 0x08, 0x10, 0x99, 0x80, 0x80, 0x80,
|
|
61
|
+
0x00, 0x02, 0x40, 0x20, 0x01, 0x28, 0x02, 0x00, 0x0d, 0x00, 0x20, 0x01, 0x20, 0x01, 0x29, 0x03, 0x08, 0x10, 0x9a,
|
|
62
|
+
0x80, 0x80, 0x80, 0x00, 0x20, 0x01, 0x28, 0x02, 0x00, 0x41, 0x01, 0x46, 0x0d, 0x00, 0x41, 0x00, 0x21, 0x02, 0x02,
|
|
63
|
+
0x40, 0x20, 0x01, 0x29, 0x03, 0x08, 0x22, 0x03, 0x10, 0x94, 0x80, 0x80, 0x80, 0x00, 0x45, 0x0d, 0x00, 0x20, 0x03,
|
|
64
|
+
0x10, 0x95, 0x80, 0x80, 0x80, 0x00, 0x21, 0x03, 0x41, 0x00, 0x21, 0x02, 0x02, 0x40, 0x03, 0x40, 0x20, 0x02, 0x41,
|
|
65
|
+
0x10, 0x46, 0x0d, 0x01, 0x20, 0x01, 0x20, 0x02, 0x6a, 0x42, 0x02, 0x37, 0x03, 0x00, 0x20, 0x02, 0x41, 0x08, 0x6a,
|
|
66
|
+
0x21, 0x02, 0x0c, 0x00, 0x0b, 0x0b, 0x20, 0x03, 0x42, 0xff, 0x01, 0x83, 0x42, 0xcc, 0x00, 0x52, 0x0d, 0x01, 0x20,
|
|
67
|
+
0x03, 0x41, 0x9c, 0x80, 0xc0, 0x80, 0x00, 0xad, 0x42, 0x20, 0x86, 0x42, 0x04, 0x84, 0x20, 0x01, 0xad, 0x42, 0x20,
|
|
68
|
+
0x86, 0x42, 0x04, 0x84, 0x42, 0x84, 0x80, 0x80, 0x80, 0x20, 0x10, 0x8c, 0x80, 0x80, 0x80, 0x00, 0x1a, 0x20, 0x01,
|
|
69
|
+
0x29, 0x03, 0x00, 0x22, 0x03, 0x42, 0xff, 0x01, 0x83, 0x42, 0x04, 0x52, 0x0d, 0x01, 0x20, 0x01, 0x29, 0x03, 0x08,
|
|
70
|
+
0x22, 0x04, 0x42, 0xff, 0x01, 0x83, 0x42, 0x04, 0x52, 0x0d, 0x01, 0x20, 0x00, 0x20, 0x03, 0x42, 0x20, 0x88, 0xa7,
|
|
71
|
+
0x36, 0x02, 0x08, 0x20, 0x00, 0x20, 0x04, 0x42, 0x20, 0x88, 0x3e, 0x02, 0x04, 0x41, 0x01, 0x21, 0x02, 0x0b, 0x20,
|
|
72
|
+
0x00, 0x20, 0x02, 0x36, 0x02, 0x00, 0x20, 0x01, 0x41, 0x10, 0x6a, 0x24, 0x80, 0x80, 0x80, 0x80, 0x00, 0x0f, 0x0b,
|
|
73
|
+
0x00, 0x0b, 0x1b, 0x00, 0x20, 0x00, 0xad, 0x42, 0x20, 0x86, 0x42, 0x04, 0x84, 0x20, 0x01, 0xad, 0x42, 0x20, 0x86,
|
|
74
|
+
0x42, 0x04, 0x84, 0x10, 0x88, 0x80, 0x80, 0x80, 0x00, 0x1a, 0x0b, 0x15, 0x00, 0x10, 0x93, 0x80, 0x80, 0x80, 0x00,
|
|
75
|
+
0x20, 0x00, 0xad, 0x42, 0xff, 0x01, 0x83, 0x10, 0x98, 0x80, 0x80, 0x80, 0x00, 0x0b, 0xc8, 0x01, 0x02, 0x01, 0x7f,
|
|
76
|
+
0x01, 0x7e, 0x23, 0x80, 0x80, 0x80, 0x80, 0x00, 0x41, 0x10, 0x6b, 0x22, 0x01, 0x24, 0x80, 0x80, 0x80, 0x80, 0x00,
|
|
77
|
+
0x02, 0x40, 0x20, 0x00, 0x42, 0xff, 0x01, 0x83, 0x42, 0xc8, 0x00, 0x52, 0x0d, 0x00, 0x20, 0x01, 0x10, 0x8f, 0x80,
|
|
78
|
+
0x80, 0x80, 0x00, 0x02, 0x40, 0x20, 0x01, 0x28, 0x02, 0x00, 0x41, 0x01, 0x47, 0x0d, 0x00, 0x20, 0x01, 0x28, 0x02,
|
|
79
|
+
0x04, 0x20, 0x01, 0x28, 0x02, 0x08, 0x10, 0x90, 0x80, 0x80, 0x80, 0x00, 0x0b, 0x10, 0x8d, 0x80, 0x80, 0x80, 0x00,
|
|
80
|
+
0x02, 0x40, 0x02, 0x40, 0x10, 0x93, 0x80, 0x80, 0x80, 0x00, 0x22, 0x02, 0x10, 0x94, 0x80, 0x80, 0x80, 0x00, 0x45,
|
|
81
|
+
0x0d, 0x00, 0x20, 0x02, 0x10, 0x95, 0x80, 0x80, 0x80, 0x00, 0xa7, 0x41, 0xff, 0x01, 0x71, 0x0e, 0x02, 0x00, 0x01,
|
|
82
|
+
0x02, 0x0b, 0x10, 0x96, 0x80, 0x80, 0x80, 0x00, 0x00, 0x0b, 0x20, 0x00, 0x10, 0x84, 0x80, 0x80, 0x80, 0x00, 0x1a,
|
|
83
|
+
0x20, 0x01, 0x41, 0x80, 0x80, 0xc0, 0x80, 0x00, 0x41, 0x08, 0x10, 0x97, 0x80, 0x80, 0x80, 0x00, 0x20, 0x01, 0x28,
|
|
84
|
+
0x02, 0x00, 0x41, 0x01, 0x46, 0x0d, 0x00, 0x20, 0x01, 0x29, 0x03, 0x08, 0x42, 0x01, 0x10, 0x98, 0x80, 0x80, 0x80,
|
|
85
|
+
0x00, 0x41, 0x00, 0x10, 0x91, 0x80, 0x80, 0x80, 0x00, 0x20, 0x01, 0x41, 0x10, 0x6a, 0x24, 0x80, 0x80, 0x80, 0x80,
|
|
86
|
+
0x00, 0x42, 0x02, 0x0f, 0x0b, 0x00, 0x0b, 0x60, 0x02, 0x01, 0x7f, 0x01, 0x7e, 0x23, 0x80, 0x80, 0x80, 0x80, 0x00,
|
|
87
|
+
0x41, 0x10, 0x6b, 0x22, 0x00, 0x24, 0x80, 0x80, 0x80, 0x80, 0x00, 0x20, 0x00, 0x41, 0xb4, 0x80, 0xc0, 0x80, 0x00,
|
|
88
|
+
0x41, 0x09, 0x10, 0x99, 0x80, 0x80, 0x80, 0x00, 0x02, 0x40, 0x02, 0x40, 0x20, 0x00, 0x28, 0x02, 0x00, 0x0d, 0x00,
|
|
89
|
+
0x20, 0x00, 0x20, 0x00, 0x29, 0x03, 0x08, 0x10, 0x9a, 0x80, 0x80, 0x80, 0x00, 0x20, 0x00, 0x28, 0x02, 0x00, 0x41,
|
|
90
|
+
0x01, 0x47, 0x0d, 0x01, 0x0b, 0x00, 0x0b, 0x20, 0x00, 0x29, 0x03, 0x08, 0x21, 0x01, 0x20, 0x00, 0x41, 0x10, 0x6a,
|
|
91
|
+
0x24, 0x80, 0x80, 0x80, 0x80, 0x00, 0x20, 0x01, 0x0b, 0x0f, 0x00, 0x20, 0x00, 0x42, 0x02, 0x10, 0x86, 0x80, 0x80,
|
|
92
|
+
0x80, 0x00, 0x42, 0x01, 0x51, 0x0b, 0x0c, 0x00, 0x20, 0x00, 0x42, 0x02, 0x10, 0x87, 0x80, 0x80, 0x80, 0x00, 0x0b,
|
|
93
|
+
0x11, 0x00, 0x42, 0x83, 0x80, 0x80, 0x80, 0xb0, 0x83, 0x01, 0x10, 0x89, 0x80, 0x80, 0x80, 0x00, 0x1a, 0x0b, 0x86,
|
|
94
|
+
0x02, 0x03, 0x01, 0x7f, 0x01, 0x7e, 0x04, 0x7f, 0x23, 0x80, 0x80, 0x80, 0x80, 0x00, 0x41, 0x10, 0x6b, 0x22, 0x03,
|
|
95
|
+
0x24, 0x80, 0x80, 0x80, 0x80, 0x00, 0x42, 0x00, 0x21, 0x04, 0x20, 0x02, 0x21, 0x05, 0x20, 0x01, 0x21, 0x06, 0x02,
|
|
96
|
+
0x40, 0x02, 0x40, 0x03, 0x40, 0x20, 0x05, 0x45, 0x0d, 0x01, 0x41, 0x01, 0x21, 0x07, 0x02, 0x40, 0x02, 0x40, 0x20,
|
|
97
|
+
0x06, 0x2d, 0x00, 0x00, 0x22, 0x08, 0x41, 0xdf, 0x00, 0x46, 0x0d, 0x00, 0x02, 0x40, 0x20, 0x08, 0x41, 0x50, 0x6a,
|
|
98
|
+
0x41, 0xff, 0x01, 0x71, 0x41, 0x0a, 0x49, 0x0d, 0x00, 0x02, 0x40, 0x20, 0x08, 0x41, 0xbf, 0x7f, 0x6a, 0x41, 0xff,
|
|
99
|
+
0x01, 0x71, 0x41, 0x1a, 0x49, 0x0d, 0x00, 0x20, 0x08, 0x41, 0x9f, 0x7f, 0x6a, 0x41, 0xff, 0x01, 0x71, 0x41, 0x19,
|
|
100
|
+
0x4b, 0x0d, 0x03, 0x20, 0x08, 0x41, 0x45, 0x6a, 0x21, 0x07, 0x0c, 0x02, 0x0b, 0x20, 0x08, 0x41, 0x4b, 0x6a, 0x21,
|
|
101
|
+
0x07, 0x0c, 0x01, 0x0b, 0x20, 0x08, 0x41, 0x52, 0x6a, 0x21, 0x07, 0x0b, 0x20, 0x04, 0x42, 0x06, 0x86, 0x20, 0x07,
|
|
102
|
+
0xad, 0x42, 0xff, 0x01, 0x83, 0x84, 0x21, 0x04, 0x20, 0x05, 0x41, 0x7f, 0x6a, 0x21, 0x05, 0x20, 0x06, 0x41, 0x01,
|
|
103
|
+
0x6a, 0x21, 0x06, 0x0c, 0x01, 0x0b, 0x0b, 0x20, 0x03, 0x20, 0x08, 0xad, 0x42, 0x08, 0x86, 0x42, 0x01, 0x84, 0x37,
|
|
104
|
+
0x03, 0x00, 0x20, 0x01, 0xad, 0x42, 0x20, 0x86, 0x42, 0x04, 0x84, 0x20, 0x02, 0xad, 0x42, 0x20, 0x86, 0x42, 0x04,
|
|
105
|
+
0x84, 0x10, 0x85, 0x80, 0x80, 0x80, 0x00, 0x21, 0x04, 0x0c, 0x01, 0x0b, 0x20, 0x03, 0x20, 0x04, 0x42, 0x08, 0x86,
|
|
106
|
+
0x42, 0x0e, 0x84, 0x22, 0x04, 0x37, 0x02, 0x04, 0x0b, 0x20, 0x00, 0x42, 0x00, 0x37, 0x03, 0x00, 0x20, 0x00, 0x20,
|
|
107
|
+
0x04, 0x37, 0x03, 0x08, 0x20, 0x03, 0x41, 0x10, 0x6a, 0x24, 0x80, 0x80, 0x80, 0x80, 0x00, 0x0b, 0x0f, 0x00, 0x20,
|
|
108
|
+
0x00, 0x20, 0x01, 0x42, 0x02, 0x10, 0x8a, 0x80, 0x80, 0x80, 0x00, 0x1a, 0x0b, 0x51, 0x02, 0x01, 0x7f, 0x01, 0x7e,
|
|
109
|
+
0x23, 0x80, 0x80, 0x80, 0x80, 0x00, 0x41, 0x10, 0x6b, 0x22, 0x03, 0x24, 0x80, 0x80, 0x80, 0x80, 0x00, 0x20, 0x03,
|
|
110
|
+
0x20, 0x01, 0x20, 0x02, 0x10, 0x97, 0x80, 0x80, 0x80, 0x00, 0x42, 0x01, 0x21, 0x04, 0x02, 0x40, 0x20, 0x03, 0x28,
|
|
111
|
+
0x02, 0x00, 0x0d, 0x00, 0x20, 0x00, 0x20, 0x03, 0x29, 0x03, 0x08, 0x37, 0x03, 0x08, 0x42, 0x00, 0x21, 0x04, 0x0b,
|
|
112
|
+
0x20, 0x00, 0x20, 0x04, 0x37, 0x03, 0x00, 0x20, 0x03, 0x41, 0x10, 0x6a, 0x24, 0x80, 0x80, 0x80, 0x80, 0x00, 0x0b,
|
|
113
|
+
0x4f, 0x01, 0x01, 0x7f, 0x23, 0x80, 0x80, 0x80, 0x80, 0x00, 0x41, 0x10, 0x6b, 0x22, 0x02, 0x24, 0x80, 0x80, 0x80,
|
|
114
|
+
0x80, 0x00, 0x20, 0x02, 0x20, 0x01, 0x37, 0x03, 0x08, 0x20, 0x02, 0x41, 0x08, 0x6a, 0xad, 0x42, 0x20, 0x86, 0x42,
|
|
115
|
+
0x04, 0x84, 0x42, 0x84, 0x80, 0x80, 0x80, 0x10, 0x10, 0x8b, 0x80, 0x80, 0x80, 0x00, 0x21, 0x01, 0x20, 0x00, 0x42,
|
|
116
|
+
0x00, 0x37, 0x03, 0x00, 0x20, 0x00, 0x20, 0x01, 0x37, 0x03, 0x08, 0x20, 0x02, 0x41, 0x10, 0x6a, 0x24, 0x80, 0x80,
|
|
117
|
+
0x80, 0x80, 0x00, 0x0b, 0x0b, 0x46, 0x01, 0x00, 0x41, 0x80, 0x80, 0xc0, 0x00, 0x0b, 0x3d, 0x6d, 0x69, 0x67, 0x72,
|
|
118
|
+
0x61, 0x74, 0x65, 0x64, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64,
|
|
119
|
+
0x5f, 0x74, 0x6f, 0x00, 0x00, 0x11, 0x00, 0x10, 0x00, 0x09, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x00, 0x09, 0x00,
|
|
120
|
+
0x00, 0x00, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67,
|
|
121
|
+
0x00, 0xf3, 0x19, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x70, 0x65, 0x63, 0x76, 0x30, 0x00,
|
|
122
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x95, 0x54, 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20,
|
|
123
|
+
0x64, 0x61, 0x74, 0x61, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x6d,
|
|
124
|
+
0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x73, 0x20,
|
|
125
|
+
0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x6e, 0x65, 0x77,
|
|
126
|
+
0x20, 0x57, 0x41, 0x53, 0x4d, 0x20, 0x62, 0x79, 0x74, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x0a, 0x53, 0x65, 0x74,
|
|
127
|
+
0x73, 0x20, 0x61, 0x20, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6c, 0x61, 0x67, 0x20,
|
|
128
|
+
0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x65,
|
|
129
|
+
0x64, 0x20, 0x62, 0x79, 0x20, 0x63, 0x61, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x60, 0x6d, 0x69, 0x67, 0x72, 0x61,
|
|
130
|
+
0x74, 0x65, 0x60, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x00,
|
|
131
|
+
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x6e, 0x65, 0x77, 0x5f, 0x77, 0x61, 0x73,
|
|
132
|
+
0x6d, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xee, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
|
|
133
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x52, 0x75, 0x6e, 0x73, 0x20, 0x6d, 0x69, 0x67, 0x72,
|
|
134
|
+
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x20, 0x61, 0x66, 0x74, 0x65, 0x72, 0x20, 0x61,
|
|
135
|
+
0x6e, 0x20, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x2e, 0x0a, 0x43, 0x61, 0x6e, 0x20, 0x6f, 0x6e, 0x6c, 0x79,
|
|
136
|
+
0x20, 0x62, 0x65, 0x20, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65,
|
|
137
|
+
0x20, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6c, 0x61, 0x67, 0x20, 0x69, 0x73, 0x20,
|
|
138
|
+
0x73, 0x65, 0x74, 0x20, 0x62, 0x79, 0x20, 0x61, 0x20, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x20, 0x60,
|
|
139
|
+
0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x60, 0x20, 0x63, 0x61, 0x6c, 0x6c, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
140
|
+
0x07, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
141
|
+
0x00, 0x0e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x00, 0x00, 0x00,
|
|
142
|
+
0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x1c, 0x42, 0x75, 0x66, 0x66,
|
|
143
|
+
0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x20, 0x31, 0x30, 0x30, 0x30,
|
|
144
|
+
0x2d, 0x31, 0x30, 0x30, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72,
|
|
145
|
+
0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
|
|
146
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4c, 0x65, 0x6e, 0x67, 0x74,
|
|
147
|
+
0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xe8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x49, 0x6e, 0x76,
|
|
148
|
+
0x61, 0x6c, 0x69, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x00,
|
|
149
|
+
0x00, 0x00, 0x00, 0x00, 0x03, 0xe9, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x1c, 0x42, 0x75, 0x66, 0x66, 0x65,
|
|
150
|
+
0x72, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x20, 0x31, 0x30, 0x31, 0x30, 0x2d,
|
|
151
|
+
0x31, 0x30, 0x31, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x57,
|
|
152
|
+
0x72, 0x69, 0x74, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
153
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
|
|
154
|
+
0x73, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xf2, 0x00, 0x00, 0x00, 0x04,
|
|
155
|
+
0x00, 0x00, 0x00, 0x1f, 0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65,
|
|
156
|
+
0x45, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x20, 0x31, 0x30, 0x32, 0x30, 0x2d, 0x31, 0x30, 0x32, 0x39, 0x00, 0x00, 0x00,
|
|
157
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x62,
|
|
158
|
+
0x6c, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
|
|
159
|
+
0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x00, 0x00, 0x03,
|
|
160
|
+
0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46,
|
|
161
|
+
0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x00, 0x00, 0x00, 0x03, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x54,
|
|
162
|
+
0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x46, 0x72, 0x6f, 0x7a,
|
|
163
|
+
0x65, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x03, 0xfe, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x17, 0x4f, 0x77, 0x6e,
|
|
164
|
+
0x61, 0x62, 0x6c, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x20, 0x31, 0x30, 0x33, 0x30, 0x2d, 0x31, 0x30, 0x33,
|
|
165
|
+
0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x4f, 0x77, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x72,
|
|
166
|
+
0x72, 0x6f, 0x72, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x49, 0x6e, 0x76, 0x61,
|
|
167
|
+
0x6c, 0x69, 0x64, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x00, 0x00, 0x00, 0x04,
|
|
168
|
+
0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x74, 0x6c,
|
|
169
|
+
0x00, 0x00, 0x00, 0x00, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x4e, 0x6f, 0x50, 0x65, 0x6e,
|
|
170
|
+
0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08,
|
|
171
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64,
|
|
172
|
+
0x79, 0x53, 0x65, 0x74, 0x00, 0x00, 0x00, 0x04, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x4f, 0x77,
|
|
173
|
+
0x6e, 0x65, 0x72, 0x4e, 0x6f, 0x74, 0x53, 0x65, 0x74, 0x00, 0x00, 0x00, 0x04, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
174
|
+
0x00, 0x00, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65,
|
|
175
|
+
0x73, 0x73, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0b, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x18, 0x42, 0x79, 0x74,
|
|
176
|
+
0x65, 0x73, 0x45, 0x78, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x20, 0x31, 0x30, 0x34, 0x30, 0x2d, 0x31, 0x30,
|
|
177
|
+
0x34, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x42, 0x79, 0x74, 0x65, 0x73, 0x45, 0x78, 0x74, 0x45,
|
|
178
|
+
0x72, 0x72, 0x6f, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e,
|
|
179
|
+
0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4d, 0x69, 0x73, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x00, 0x00, 0x00, 0x00, 0x04,
|
|
180
|
+
0x10, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x1b, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x61, 0x62, 0x6c,
|
|
181
|
+
0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x20, 0x31, 0x30, 0x35, 0x30, 0x2d, 0x31, 0x30, 0x35, 0x39, 0x00, 0x00,
|
|
182
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x45,
|
|
183
|
+
0x72, 0x72, 0x6f, 0x72, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x49, 0x6e, 0x76,
|
|
184
|
+
0x61, 0x6c, 0x69, 0x64, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x00, 0x00,
|
|
185
|
+
0x04, 0x1a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
186
|
+
0x4e, 0x6f, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x00, 0x00, 0x00, 0x04, 0x1b, 0x00, 0x00, 0x00, 0x04,
|
|
187
|
+
0x00, 0x00, 0x00, 0x18, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x73, 0x69, 0x67, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x20,
|
|
188
|
+
0x31, 0x30, 0x36, 0x30, 0x2d, 0x31, 0x30, 0x36, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x4d, 0x75,
|
|
189
|
+
0x6c, 0x74, 0x69, 0x73, 0x69, 0x67, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
|
|
190
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x49, 0x6e, 0x69, 0x74, 0x69,
|
|
191
|
+
0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x00, 0x00, 0x00, 0x00, 0x04, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
192
|
+
0x0d, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
193
|
+
0x04, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
|
|
194
|
+
0x45, 0x72, 0x72, 0x6f, 0x72, 0x00, 0x00, 0x00, 0x00, 0x04, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13,
|
|
195
|
+
0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73,
|
|
196
|
+
0x00, 0x00, 0x00, 0x04, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72,
|
|
197
|
+
0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x00, 0x00, 0x00, 0x00, 0x04, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
198
|
+
0x00, 0x00, 0x1d, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x4c, 0x65, 0x73, 0x73,
|
|
199
|
+
0x54, 0x68, 0x61, 0x6e, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04,
|
|
200
|
+
0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x55, 0x6e, 0x73, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x53, 0x69,
|
|
201
|
+
0x67, 0x6e, 0x65, 0x72, 0x73, 0x00, 0x00, 0x00, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x5a,
|
|
202
|
+
0x65, 0x72, 0x6f, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x2b,
|
|
203
|
+
0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x30, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x20, 0x65, 0x6d, 0x69, 0x74, 0x74,
|
|
204
|
+
0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x20, 0x69, 0x73,
|
|
205
|
+
0x20, 0x61, 0x64, 0x64, 0x65, 0x64, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x2e, 0x00,
|
|
206
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x53, 0x65, 0x74, 0x00, 0x00, 0x00,
|
|
207
|
+
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x00,
|
|
208
|
+
0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72,
|
|
209
|
+
0x00, 0x00, 0x00, 0x00, 0x03, 0xee, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
210
|
+
0x00, 0x00, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
|
|
211
|
+
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x36, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x20, 0x65,
|
|
212
|
+
0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x69, 0x67,
|
|
213
|
+
0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x20, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x20, 0x69, 0x73,
|
|
214
|
+
0x20, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c,
|
|
215
|
+
0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x53, 0x65, 0x74, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
|
|
216
|
+
0x0d, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x5f, 0x73, 0x65, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
217
|
+
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64,
|
|
218
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02,
|
|
219
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x73, 0x69,
|
|
220
|
+
0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
221
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
222
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x00, 0x00, 0x00,
|
|
223
|
+
0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x57, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x20, 0x65, 0x6d, 0x69, 0x74, 0x74,
|
|
224
|
+
0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x20, 0x69,
|
|
225
|
+
0x73, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x20, 0x28, 0x62, 0x6f, 0x74, 0x68,
|
|
226
|
+
0x20, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x2d, 0x73, 0x74, 0x65, 0x70, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x77,
|
|
227
|
+
0x6f, 0x2d, 0x73, 0x74, 0x65, 0x70, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x2e,
|
|
228
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x54,
|
|
229
|
+
0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x15, 0x6f,
|
|
230
|
+
0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65,
|
|
231
|
+
0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x6f, 0x6c, 0x64,
|
|
232
|
+
0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
233
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x00, 0x00, 0x00, 0x00,
|
|
234
|
+
0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x3b,
|
|
235
|
+
0x45, 0x76, 0x65, 0x6e, 0x74, 0x20, 0x65, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20,
|
|
236
|
+
0x61, 0x20, 0x32, 0x2d, 0x73, 0x74, 0x65, 0x70, 0x20, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x20,
|
|
237
|
+
0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65,
|
|
238
|
+
0x64, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69,
|
|
239
|
+
0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x69, 0x6e, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
240
|
+
0x01, 0x00, 0x00, 0x00, 0x16, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x5f, 0x74, 0x72, 0x61, 0x6e,
|
|
241
|
+
0x73, 0x66, 0x65, 0x72, 0x72, 0x69, 0x6e, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
242
|
+
0x00, 0x00, 0x09, 0x6f, 0x6c, 0x64, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13,
|
|
243
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x77, 0x6e,
|
|
244
|
+
0x65, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
245
|
+
0x00, 0x03, 0x74, 0x74, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
|
|
246
|
+
0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x2a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x20, 0x65, 0x6d, 0x69, 0x74, 0x74, 0x65,
|
|
247
|
+
0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x20, 0x69, 0x73,
|
|
248
|
+
0x20, 0x72, 0x65, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x64, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
249
|
+
0x00, 0x12, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65,
|
|
250
|
+
0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x13, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69,
|
|
251
|
+
0x70, 0x5f, 0x72, 0x65, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x64, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
|
|
252
|
+
0x00, 0x00, 0x00, 0x00, 0x09, 0x6f, 0x6c, 0x64, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
253
|
+
0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
254
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x4f, 0x77, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61,
|
|
255
|
+
0x67, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
256
|
+
0x05, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
257
|
+
0x00, 0x0c, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x00, 0x00, 0x00, 0x01, 0x00,
|
|
258
|
+
0x00, 0x00, 0x49, 0x54, 0x54, 0x4c, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
|
259
|
+
0x6e, 0x3a, 0x20, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x20, 0x28, 0x77, 0x68, 0x65, 0x6e, 0x20,
|
|
260
|
+
0x74, 0x6f, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x29, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x65, 0x78, 0x74, 0x65,
|
|
261
|
+
0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x20, 0x28, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x20, 0x54, 0x54, 0x4c, 0x29, 0x2e,
|
|
262
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
|
263
|
+
0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x28, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x20,
|
|
264
|
+
0x54, 0x54, 0x4c, 0x20, 0x61, 0x66, 0x74, 0x65, 0x72, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
|
|
265
|
+
0x20, 0x28, 0x69, 0x6e, 0x20, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x73, 0x29, 0x2e, 0x00, 0x00, 0x00, 0x09, 0x65,
|
|
266
|
+
0x78, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x33,
|
|
267
|
+
0x54, 0x54, 0x4c, 0x20, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20,
|
|
268
|
+
0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x20,
|
|
269
|
+
0x28, 0x69, 0x6e, 0x20, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x73, 0x29, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x09, 0x74,
|
|
270
|
+
0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05,
|
|
271
|
+
0x00, 0x00, 0x00, 0x27, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x20, 0x65, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x20, 0x77,
|
|
272
|
+
0x68, 0x65, 0x6e, 0x20, 0x54, 0x54, 0x4c, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x20, 0x61, 0x72, 0x65,
|
|
273
|
+
0x20, 0x73, 0x65, 0x74, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x54, 0x74, 0x6c, 0x43, 0x6f,
|
|
274
|
+
0x6e, 0x66, 0x69, 0x67, 0x73, 0x53, 0x65, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0f,
|
|
275
|
+
0x74, 0x74, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x5f, 0x73, 0x65, 0x74, 0x00, 0x00, 0x00, 0x00,
|
|
276
|
+
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x00, 0x00,
|
|
277
|
+
0x03, 0xe8, 0x00, 0x00, 0x07, 0xd0, 0x00, 0x00, 0x00, 0x09, 0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
|
|
278
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x70, 0x65, 0x72, 0x73,
|
|
279
|
+
0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x00, 0x00, 0x00, 0x00, 0x03, 0xe8, 0x00, 0x00, 0x07, 0xd0, 0x00, 0x00, 0x00,
|
|
280
|
+
0x09, 0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
281
|
+
0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x2a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x20, 0x65, 0x6d, 0x69,
|
|
282
|
+
0x74, 0x74, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x54, 0x54, 0x4c, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69,
|
|
283
|
+
0x67, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x66, 0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
284
|
+
0x00, 0x00, 0x00, 0x00, 0x10, 0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x46, 0x72, 0x6f, 0x7a,
|
|
285
|
+
0x65, 0x6e, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x12, 0x74, 0x74, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
|
|
286
|
+
0x67, 0x73, 0x5f, 0x66, 0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
|
|
287
|
+
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x54, 0x74, 0x6c,
|
|
288
|
+
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
289
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x46, 0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x00, 0x00, 0x00,
|
|
290
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
|
|
291
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74,
|
|
292
|
+
0x65, 0x6e, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
293
|
+
0x00, 0x12, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67,
|
|
294
|
+
0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09,
|
|
295
|
+
0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x11, 0x63, 0x6f, 0x6e, 0x74,
|
|
296
|
+
0x72, 0x61, 0x63, 0x74, 0x65, 0x6e, 0x76, 0x6d, 0x65, 0x74, 0x61, 0x76, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
297
|
+
0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6f, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6d, 0x65,
|
|
298
|
+
0x74, 0x61, 0x76, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x72, 0x73, 0x76, 0x65, 0x72, 0x00, 0x00,
|
|
299
|
+
0x00, 0x00, 0x00, 0x00, 0x06, 0x31, 0x2e, 0x39, 0x30, 0x2e, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
300
|
+
0x00, 0x08, 0x72, 0x73, 0x73, 0x64, 0x6b, 0x76, 0x65, 0x72, 0x00, 0x00, 0x00, 0x2f, 0x32, 0x33, 0x2e, 0x34, 0x2e,
|
|
301
|
+
0x30, 0x23, 0x36, 0x37, 0x33, 0x64, 0x36, 0x63, 0x34, 0x66, 0x32, 0x33, 0x36, 0x38, 0x64, 0x32, 0x38, 0x32, 0x64,
|
|
302
|
+
0x32, 0x35, 0x64, 0x61, 0x32, 0x39, 0x62, 0x64, 0x61, 0x35, 0x35, 0x63, 0x32, 0x31, 0x62, 0x38, 0x62, 0x65, 0x36,
|
|
303
|
+
0x39, 0x63, 0x61, 0x36, 0x00, 0x00, 0x2b, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6d, 0x65, 0x74,
|
|
304
|
+
0x61, 0x76, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x63, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x00, 0x00,
|
|
305
|
+
0x00, 0x00, 0x00, 0x07, 0x32, 0x33, 0x2e, 0x34, 0x2e, 0x31, 0x23, 0x00,
|
|
306
|
+
];
|
|
307
|
+
|
|
308
|
+
// ============================================
|
|
309
|
+
// Dummy Contract for Testing
|
|
310
|
+
// ============================================
|
|
311
|
+
|
|
312
|
+
#[contract]
|
|
313
|
+
pub struct DummyContract;
|
|
314
|
+
|
|
315
|
+
use crate::auth::Auth;
|
|
316
|
+
|
|
317
|
+
// Implement Auth trait (required by Upgradeable) - self-owning pattern
|
|
318
|
+
impl Auth for DummyContract {
|
|
319
|
+
fn authorizer(env: &Env) -> Option<Address> {
|
|
320
|
+
// Return the contract's own address (self-owning pattern)
|
|
321
|
+
Some(env.current_contract_address())
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// Regular trait implementation (not a contract implementation)
|
|
326
|
+
impl UpgradeableInternal for DummyContract {
|
|
327
|
+
type MigrationData = Val; // Use Val which implements FromXdr
|
|
328
|
+
|
|
329
|
+
fn __migrate(env: &Env, _migration_data: &Self::MigrationData) {
|
|
330
|
+
// Store the migration data to verify it was called
|
|
331
|
+
env.storage().instance().set(&Symbol::new(env, "migrated"), &true);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
#[contractimpl(contracttrait)]
|
|
336
|
+
impl Upgradeable for DummyContract {}
|
|
337
|
+
|
|
338
|
+
// Same as DummyContract but with a strict migration payload type so we can
|
|
339
|
+
// exercise the InvalidMigrationData error path in Upgradeable::migrate.
|
|
340
|
+
#[contract]
|
|
341
|
+
pub struct U32MigrationContract;
|
|
342
|
+
|
|
343
|
+
impl Auth for U32MigrationContract {
|
|
344
|
+
fn authorizer(env: &Env) -> Option<Address> {
|
|
345
|
+
Some(env.current_contract_address())
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
impl UpgradeableInternal for U32MigrationContract {
|
|
350
|
+
type MigrationData = u32;
|
|
351
|
+
|
|
352
|
+
fn __migrate(env: &Env, migration_data: &Self::MigrationData) {
|
|
353
|
+
env.storage().instance().set(&Symbol::new(env, "migrated_u32"), migration_data);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
#[contractimpl(contracttrait)]
|
|
358
|
+
impl Upgradeable for U32MigrationContract {}
|
|
359
|
+
|
|
360
|
+
#[test]
|
|
361
|
+
fn test_upgrade_success() {
|
|
362
|
+
let env = Env::default();
|
|
363
|
+
env.mock_all_auths();
|
|
364
|
+
let contract_id = env.register(DummyContract, ());
|
|
365
|
+
|
|
366
|
+
// Upload valid contract WASM to get a valid hash
|
|
367
|
+
let wasm_hash = env.deployer().upload_contract_wasm(Bytes::from_slice(&env, TEST_WASM));
|
|
368
|
+
|
|
369
|
+
env.as_contract(&contract_id, || {
|
|
370
|
+
// Initially, migrating flag should be false (default)
|
|
371
|
+
assert_eq!(UpgradeableStorage::migrating(&env), false);
|
|
372
|
+
});
|
|
373
|
+
|
|
374
|
+
// Call the actual upgrade function with valid WASM hash
|
|
375
|
+
let client = DummyContractClient::new(&env, &contract_id);
|
|
376
|
+
client.upgrade(&wasm_hash);
|
|
377
|
+
|
|
378
|
+
env.as_contract(&contract_id, || {
|
|
379
|
+
// Verify the flag is set by upgrade()
|
|
380
|
+
assert_eq!(UpgradeableStorage::migrating(&env), true);
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
#[test]
|
|
385
|
+
#[should_panic(expected = "Error(Auth, InvalidAction)")]
|
|
386
|
+
fn test_upgrade_requires_auth() {
|
|
387
|
+
let env = Env::default();
|
|
388
|
+
// Note: NOT calling mock_all_auths() - auth will fail
|
|
389
|
+
let contract_id = env.register(DummyContract, ());
|
|
390
|
+
let client = DummyContractClient::new(&env, &contract_id);
|
|
391
|
+
|
|
392
|
+
// Upload valid contract WASM to get a valid hash
|
|
393
|
+
let wasm_hash = env.deployer().upload_contract_wasm(Bytes::from_slice(&env, TEST_WASM));
|
|
394
|
+
|
|
395
|
+
client.upgrade(&wasm_hash);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
// After upgrade(), the contract runs TEST_WASM code, so migrate() must match that wasm's API.
|
|
399
|
+
#[test]
|
|
400
|
+
fn test_migrate_success() {
|
|
401
|
+
let env = Env::default();
|
|
402
|
+
env.mock_all_auths();
|
|
403
|
+
let contract_id = env.register(DummyContract, ());
|
|
404
|
+
let client = DummyContractClient::new(&env, &contract_id);
|
|
405
|
+
|
|
406
|
+
let wasm_hash = env.deployer().upload_contract_wasm(Bytes::from_slice(&env, TEST_WASM));
|
|
407
|
+
client.upgrade(&wasm_hash);
|
|
408
|
+
|
|
409
|
+
// Create empty migration data as XDR-encoded Bytes
|
|
410
|
+
let migration_data = Val::VOID.to_xdr(&env);
|
|
411
|
+
client.migrate(&migration_data);
|
|
412
|
+
|
|
413
|
+
env.as_contract(&contract_id, || {
|
|
414
|
+
// Verify migration flag was cleared
|
|
415
|
+
assert_eq!(UpgradeableStorage::migrating(&env), false);
|
|
416
|
+
|
|
417
|
+
// Verify migration data was stored (proving __migrate was called)
|
|
418
|
+
let stored_value: Option<bool> = env.storage().instance().get(&Symbol::new(&env, "migrated"));
|
|
419
|
+
assert_eq!(stored_value, Some(true));
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
#[test]
|
|
424
|
+
#[should_panic(expected = "Error(Auth, InvalidAction)")]
|
|
425
|
+
fn test_migrate_requires_auth() {
|
|
426
|
+
let env = Env::default();
|
|
427
|
+
// Note: NOT calling mock_all_auths() - auth will fail
|
|
428
|
+
let contract_id = env.register(DummyContract, ());
|
|
429
|
+
let client = DummyContractClient::new(&env, &contract_id);
|
|
430
|
+
|
|
431
|
+
// Set the migrating flag so we know failure is due to auth, not MigrationNotAllowed.
|
|
432
|
+
env.as_contract(&contract_id, || {
|
|
433
|
+
UpgradeableStorage::set_migrating(&env, &true);
|
|
434
|
+
assert_eq!(UpgradeableStorage::migrating(&env), true);
|
|
435
|
+
});
|
|
436
|
+
|
|
437
|
+
let migration_data = Val::VOID.to_xdr(&env);
|
|
438
|
+
client.migrate(&migration_data);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
#[test]
|
|
442
|
+
fn test_migrate_rejects_invalid_migration_data_and_does_not_clear_flag() {
|
|
443
|
+
let env = Env::default();
|
|
444
|
+
env.mock_all_auths();
|
|
445
|
+
let contract_id = env.register(U32MigrationContract, ());
|
|
446
|
+
let client = U32MigrationContractClient::new(&env, &contract_id);
|
|
447
|
+
|
|
448
|
+
// Allow migrate (so we hit the decode path rather than MigrationNotAllowed).
|
|
449
|
+
env.as_contract(&contract_id, || {
|
|
450
|
+
UpgradeableStorage::set_migrating(&env, &true);
|
|
451
|
+
assert_eq!(UpgradeableStorage::migrating(&env), true);
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
// Valid XDR, but not a u32 payload => should fail decoding in Upgradeable::migrate.
|
|
455
|
+
let bad_bytes = Val::VOID.to_xdr(&env);
|
|
456
|
+
let res = client.try_migrate(&bad_bytes);
|
|
457
|
+
assert_eq!(res.err().unwrap().ok().unwrap(), UpgradeableError::InvalidMigrationData.into());
|
|
458
|
+
|
|
459
|
+
// Since migration failed before reaching the "clear flag" line, migrating should still be true.
|
|
460
|
+
env.as_contract(&contract_id, || {
|
|
461
|
+
assert_eq!(UpgradeableStorage::migrating(&env), true);
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
#[test]
|
|
466
|
+
fn test_can_upgrade_and_migrate_multiple_times() {
|
|
467
|
+
let env = Env::default();
|
|
468
|
+
env.mock_all_auths();
|
|
469
|
+
let contract_id = env.register(DummyContract, ());
|
|
470
|
+
let client = DummyContractClient::new(&env, &contract_id);
|
|
471
|
+
|
|
472
|
+
let wasm_hash = env.deployer().upload_contract_wasm(Bytes::from_slice(&env, TEST_WASM));
|
|
473
|
+
let migration_data = Val::VOID.to_xdr(&env);
|
|
474
|
+
|
|
475
|
+
// First cycle
|
|
476
|
+
client.upgrade(&wasm_hash);
|
|
477
|
+
client.migrate(&migration_data);
|
|
478
|
+
env.as_contract(&contract_id, || {
|
|
479
|
+
assert_eq!(UpgradeableStorage::migrating(&env), false);
|
|
480
|
+
let stored_value: Option<bool> = env.storage().instance().get(&Symbol::new(&env, "migrated"));
|
|
481
|
+
assert_eq!(stored_value, Some(true));
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
// Second cycle (must be allowed)
|
|
485
|
+
client.upgrade(&wasm_hash);
|
|
486
|
+
client.migrate(&migration_data);
|
|
487
|
+
env.as_contract(&contract_id, || {
|
|
488
|
+
assert_eq!(UpgradeableStorage::migrating(&env), false);
|
|
489
|
+
let stored_value: Option<bool> = env.storage().instance().get(&Symbol::new(&env, "migrated"));
|
|
490
|
+
assert_eq!(stored_value, Some(true));
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
#[test]
|
|
495
|
+
fn test_migrate_fail_without_upgrade() {
|
|
496
|
+
let env = Env::default();
|
|
497
|
+
env.mock_all_auths();
|
|
498
|
+
let contract_id = env.register(DummyContract, ());
|
|
499
|
+
let client = DummyContractClient::new(&env, &contract_id);
|
|
500
|
+
|
|
501
|
+
// Try to migrate without setting migrating flag first
|
|
502
|
+
// Should panic with MigrationNotAllowed
|
|
503
|
+
let migration_data = Val::VOID.to_xdr(&env);
|
|
504
|
+
let result = client.try_migrate(&migration_data);
|
|
505
|
+
assert_eq!(result.err().unwrap().ok().unwrap(), UpgradeableError::MigrationNotAllowed.into());
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// ============================================
|
|
509
|
+
// Integration test: upgrade then migrate
|
|
510
|
+
// ============================================
|
|
511
|
+
|
|
512
|
+
#[test]
|
|
513
|
+
fn test_cannot_migrate_twice_without_upgrade() {
|
|
514
|
+
let env = Env::default();
|
|
515
|
+
env.mock_all_auths();
|
|
516
|
+
let contract_id = env.register(DummyContract, ());
|
|
517
|
+
let client = DummyContractClient::new(&env, &contract_id);
|
|
518
|
+
|
|
519
|
+
// First upgrade and migrate with valid WASM
|
|
520
|
+
let wasm_hash = env.deployer().upload_contract_wasm(Bytes::from_slice(&env, TEST_WASM));
|
|
521
|
+
client.upgrade(&wasm_hash);
|
|
522
|
+
|
|
523
|
+
let migration_data = Val::VOID.to_xdr(&env);
|
|
524
|
+
client.migrate(&migration_data);
|
|
525
|
+
|
|
526
|
+
// Try to migrate again without upgrade - should panic
|
|
527
|
+
let result = client.try_migrate(&migration_data);
|
|
528
|
+
assert_eq!(result.err().unwrap().ok().unwrap(), UpgradeableError::MigrationNotAllowed.into());
|
|
529
|
+
}
|